:root {
  --navy: #10283b;
  --dark: #0a1d2b;
  --orange: #f18b40;
  --muted: #667681;
  --light: #f4f7f8;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: 0.25s;
  background: rgba(9, 27, 41, 0.3);
  color: #fff;
}

header.scrolled {
  background: rgba(10, 29, 43, 0.97);
  box-shadow: 0 4px 20px #0002;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 9px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 38px;
    max-width: 130px;
  }
}
.logo {
  font: 800 20px 'Manrope', sans-serif;
  letter-spacing: -1.3px;
}

.logo span {
  color: var(--orange);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.contact-detail small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.65;
}

.contact-detail b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
}

.contact-detail a:hover {
  color: #f59e0b;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.links a:hover {
  color: var(--orange);
}

.navcta, .btn {
  background: var(--orange);
  color: var(--dark);
  padding: 14px 22px;
  border-radius: 3px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
}

.navcta {
  padding: 11px 17px;
}

.menu {
  display: none;
  background: none;
  color: #fff;
  border: 0;
  font-size: 27px;
}

.hero {
  min-height: 760px;
  height: 95svh;
  max-height: 1000px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}

.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 22, 35, 0.9), rgba(5, 22, 35, 0.58) 50%, rgba(5, 22, 35, 0.15));
}

.hero-content {
  padding-top: 75px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero-content a {
  pointer-events: auto;
}

.hero-bottom {
  z-index: 2;
}

.carousel-controls {
  position: absolute;
  right: max(28px, calc((100vw - 1144px) / 2));
  bottom: 76px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff88;
  background: #081c2b77;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.carousel-arrow:hover {
  background: var(--orange);
  color: var(--dark);
}

.carousel-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #ffffff88;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--orange);
  width: 27px;
  border-radius: 9px;
}

.hero-slide[aria-hidden="true"] {
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--orange);
}

h1 {
  font-size: clamp(46px, 6vw, 86px);
  letter-spacing: -3.5px;
  margin: 24px 0;
  max-width: 850px;
}

h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p {
  max-width: 580px;
  color: #d8e1e5;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.outline {
  border: 1px solid #ffffff80;
  padding: 13px 22px;
  font-weight: 700;
  border-radius: 3px;
}

.hero-bottom {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  color: #e6ebee;
  font-size: 12px;
  letter-spacing: 2px;
}

.hero-bottom .wrap {
  display: flex;
  justify-content: space-between;
}

.section {
  padding: 110px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 49px);
  letter-spacing: -1.8px;
  margin: 13px 0 20px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  min-height: 460px;
  background: url('images/hero4.jpeg') center/cover;
  position: relative;
}

.img-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--orange);
  padding: 25px 32px;
  font: 800 17px 'Manrope', sans-serif;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid #dce3e6;
  margin-top: 34px;
  padding-top: 24px;
}

.stats strong {
  font: 800 23px 'Manrope', sans-serif;
  display: block;
}

.stats small {
  color: var(--muted);
}

.light {
  background: var(--light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service {
  background: #fff;
  padding: 34px 30px;
  min-height: 270px;
  border: 1px solid #e6ebee;
  transition: 0.2s;
}

.service:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
}

.service .num {
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
}

.service h3 {
  font-size: 21px;
  margin: 40px 0 12px;
}

.service p {
  color: var(--muted);
  font-size: 14px;
}

.vision {
  background: var(--navy);
  color: #fff;
}

.vision .lead {
  color: #b8c8d1;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.vision-card {
  padding: 42px;
  border: 1px solid #ffffff33;
  background: #ffffff08;
}

.vision-card h3 {
  font-size: 26px;
}

.vision-card p, .vision-card li {
  color: #c4d1d8;
}

.vision-card ul {
  padding-left: 20px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit {
  border-top: 3px solid var(--orange);
  padding-top: 24px;
}

.benefit b {
  font-size: 18px;
}

.benefit p {
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 22px 0;
}

.step strong {
  font: 800 40px 'Manrope', sans-serif;
  color: var(--orange);
}

.step h3 {
  font-size: 19px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
}

.contact {
  background: var(--dark);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 75px;
}

.contact p {
  color: #b9c8d1;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  background: #ffffff0c;
  color: #fff;
  border: 1px solid #ffffff38;
  border-radius: 3px;
  font: inherit;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b6c4ce;
}

.contact-form button {
  justify-content: center;
}

.contact-note {
  font-size: 12px;
}

footer {
  background: #061722;
  color: #91a4b0;
  padding: 28px 0;
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s, transform 0.65s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .links {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 25px 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .links.open {
    display: flex;
  }

  .menu {
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 700px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    min-height: 72px;
  }

  .links {
    top: 72px;
  }

  .hero {
    min-height: 680px;
    height: 92svh;
  }

  .hero-slide {
    background-position: 60% center;
  }

  .carousel-controls {
    right: 20px;
    bottom: 66px;
  }

  h1 {
    letter-spacing: -2px;
  }

  .hero-bottom {
    bottom: 20px;
  }

  .hero-bottom span:last-child {
    display: none;
  }

  .section {
    padding: 75px 0;
  }

  .about-img {
    min-height: 330px;
  }

  .service-grid,
  .vision-grid,
  .benefits,
  .steps {
    grid-template-columns: 1fr;
  }

  .vision-card {
    padding: 28px;
  }

  .service {
    min-height: 220px;
  }

  .service h3 {
    margin-top: 25px;
  }

  .stats {
    gap: 8px;
  }

  .stats strong {
    font-size: 18px;
  }
}
/* RBMLOGISTIK: header and contact alignment refinements */
.logo { gap: 11px; letter-spacing: normal; min-width: 0; }
.logo-img { margin: 0; height: 46px; max-width: none; flex: 0 0 auto; }
.logo-text { font: 800 clamp(12px, 1.45vw, 19px)/1.25 'Manrope',sans-serif; letter-spacing: -.5px; color: #fff; white-space: nowrap; }
.logo-text span { color: var(--orange); }
.contact-info { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 32px; }
.contact-item { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 16px; min-width: 0; }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.contact-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding-top: 2px; }
.contact-detail small { line-height: 1.35; }
.contact-detail b { line-height: 1.55; overflow-wrap: anywhere; }
.contact-detail a:focus-visible, .carousel-arrow:focus-visible, .carousel-dot:focus-visible, .menu:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.section { scroll-margin-top: 78px; }
@media(max-width:900px){.logo-text {font-size: 16px;} .logo-img {height: 40px;}}
@media(max-width:600px){.logo {gap: 7px;} .logo-text {font-size: clamp(10px,3vw,14px);letter-spacing:-.3px;} .logo-img {height:34px;} .contact-item {grid-template-columns:44px minmax(0,1fr);gap:12px;} .contact-icon {width:44px;height:44px;} .contact-detail b {font-size:14px;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.hero-slide{transition:none}}
