/* =============================================================
   MD Trading Group — Hero + Navbar
   Vanilla CSS · Design tokens · Responsive · Accessible
   Brand accent: #1c5ad1
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --blue-500: #2f6be0;
  --blue-600: #1c5ad1;   /* primary brand */
  --blue-700: #1749a8;   /* hover / pressed */
  --blue-800: #123a86;

  --navy-900: #071427;
  --navy-800: #0b1e3d;

  --white: #ffffff;
  --ink-900: #10192b;
  --ink-700: #33415c;
  --ink-500: #64748b;
  --line: #e6eaf1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 60px -12px rgba(7, 20, 39, 0.45);
  --shadow-btn: 0 10px 24px -8px rgba(28, 90, 209, 0.6);

  --container: 1240px;
  --nav-h: 92px;
  /* Breathing room between the fixed navbar and the hero copy. The navbar is
     out of flow, so the hero must reserve --nav-h itself; this is the visual
     gap on top of that. */
  --nav-gap: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--navy-900);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--blue-700);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: url("../assets/hero-cargo.jpg") center 30% / cover no-repeat;
  overflow: hidden;
}

/* Blue-tinted gradient wash that ties the photo to the brand and
   keeps text + stats legible (top blue, left dark, bottom dark). */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(7, 20, 39, 0.94) 0%,
      rgba(9, 27, 58, 0.72) 32%,
      rgba(9, 27, 58, 0.28) 62%,
      rgba(7, 20, 39, 0.42) 100%),
    linear-gradient(to bottom,
      rgba(28, 90, 209, 0.55) 0%,
      rgba(11, 30, 61, 0.10) 26%,
      rgba(7, 20, 39, 0.00) 52%,
      rgba(5, 12, 24, 0.88) 100%);
}

/* =============================================================
   NAVBAR
   ============================================================= */
/* Fixed so the bar (and phone number) stays visible on scroll. Transparent
   over the hero; flips to a solid white bar once the page starts scrolling. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.navbar.is-scrolled {
  background: var(--white);
  box-shadow: 0 6px 24px -12px rgba(7, 20, 39, 0.35);
  border-bottom-color: var(--line);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand__logo {
  width: auto;
  height: 44px;
  /* Logo art is blue+black on transparent; lifted to white over the dark hero.
     Once the bar goes white on scroll, we animate back to its true colors. */
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}
.navbar.is-scrolled .brand__logo { filter: brightness(1) invert(0); }

/* --- Primary links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

/* CTA inside drawer — hidden on desktop, shown in mobile menu. */
.nav-links__cta { display: none; }

.nav-links__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links__item:hover { color: var(--white); }
.nav-links__item.is-active { color: var(--white); }
.nav-links__item.is-active::after {
  content: "";
  position: absolute;
}

.chevron { transition: transform 0.25s var(--ease); opacity: 0.9; }

/* --- Dropdown --- */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.dropdown li a:hover { background: #f1f5fd; color: var(--blue-700); }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron { transform: rotate(180deg); }

/* --- Nav actions --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 14px;
  background: rgba(9, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.phone-pill:hover { background: rgba(9, 20, 40, 0.78); }
.phone-pill__icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
}

/* ---- Scrolled (solid white bar) variants ---- */
.navbar.is-scrolled .nav-links__item { color: var(--ink-700); }
.navbar.is-scrolled .nav-links__item:hover,
.navbar.is-scrolled .nav-links__item.is-active { color: var(--blue-600); }

.navbar.is-scrolled .phone-pill {
  background: #f1f5fd;
  border-color: var(--line);
  color: var(--ink-900);
}
.navbar.is-scrolled .phone-pill:hover { background: #e6edfb; }

/* White "Get Started" button needs an edge so it reads on the white bar. */
.navbar.is-scrolled .btn--light { border: 1px solid var(--line); }

/* Hamburger bars go dark on the white bar (mobile). */
.navbar.is-scrolled .hamburger span { background: var(--ink-900); }

/* --- Language switcher (ES / EN) ---
   A segmented pill in .nav-actions. Both options are always real <a> links to
   the current page's counterpart — never JS-driven — so crawlers follow them
   and the hreflang pair stays consistent with what users can actually click. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(9, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang-switch__opt {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch__opt:hover { color: var(--white); }
.lang-switch__opt[aria-current="true"] {
  background: var(--blue-600);
  color: var(--white);
}

.navbar.is-scrolled .lang-switch { background: #f1f5fd; border-color: var(--line); }
.navbar.is-scrolled .lang-switch__opt { color: var(--ink-700); }
.navbar.is-scrolled .lang-switch__opt:hover { color: var(--blue-600); }
.navbar.is-scrolled .lang-switch__opt[aria-current="true"] { color: var(--white); }

@media (max-width: 900px) {
  .lang-switch__opt { padding: 6px 9px; font-size: 0.75rem; }
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn__badge {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  flex: none;
}
.btn__badge--ghost { background: rgba(255, 255, 255, 0.18); }

.btn--light {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5);
}
.btn--light:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--lg { font-size: 1.02rem; padding: 11px 30px 11px 11px; }
.btn--lg .btn__badge { width: 32px; height: 32px; border-radius: 8px; }

.btn--block {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  gap: 0;
}

/* =============================================================
   HERO CONTENT
   ============================================================= */
.hero__content {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--nav-gap)) 32px 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 400px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__copy { max-width: 660px; }

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 5.3vw, 4.9rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
  margin: 0 0 34px;
  max-width: 440px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

/* --- Thank-you variant -------------------------------------------------
   Reuses .hero wholesale (already min-height:100vh, and .hero__content
   already offsets the fixed navbar) so the navbar + hero fill exactly one
   screen. Only the layout changes: one centred column, no tracking card. */
.hero--thanks .hero__content { justify-content: center; }
.hero--thanks .hero__copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero--thanks .hero__subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Same circular treatment as .process__circle, so the confirmation mark
   reads as part of the existing design system. */
.thanks__check {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 8vw, 84px);
  margin: 0 auto 28px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue-500) 0%, var(--blue-700) 100%);
  box-shadow:
    0 18px 34px -12px rgba(28, 90, 209, 0.6),
    inset 0 2px 6px rgba(255, 255, 255, 0.28);
}
.thanks__check svg { width: 46%; height: 46%; }

/* =============================================================
   TRACKING CARD
   ============================================================= */
.track-card {
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  justify-self: end;
  width: 100%;
}

.track-card__tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  position: relative;
  padding: 0 2px 14px;
  background: none;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: color 0.2s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.tab.is-active { color: var(--ink-900); }
.tab.is-active::after { transform: scaleX(1); }

.track-form__input {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: #f4f6fb;
  border: 1px solid #e3e8f2;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.track-form__input::placeholder { color: #9aa6bd; }
.track-form__input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 224, 0.18);
}

.track-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
}
.track-card__meta a:hover { color: var(--blue-700); }
.track-card__help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
}

/* =============================================================
   STATS BAR
   ============================================================= */
.stats {
  position: relative;
  z-index: 10;
  background: linear-gradient(to top, rgba(5, 12, 24, 0.72), rgba(5, 12, 24, 0.28));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}
.stats__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  padding: 4px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stats__num {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.stats__label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

/* =============================================================
   SERVICES SECTION
   ============================================================= */
.services {
  position: relative;
  background: #f6f8fc;
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 110px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}

/* Soft brand glow + faint grid — adds depth without noise. */
.services::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(28, 90, 209, 0.13), transparent 68%);
  pointer-events: none;
}
.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 90, 209, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 90, 209, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}

.services__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Section header ---------- */
.section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(38px, 5vw, 62px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 18px;
  background: rgba(28, 90, 209, 0.08);
  border: 1px solid rgba(28, 90, 209, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}
.section-title__accent { color: var(--blue-600); }

/* Outlined "brand" word — the premium detail from the reference. */
.section-title__brand {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--blue-600);
  paint-order: stroke fill;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(16, 25, 43, 0.07);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 18px 40px -22px rgba(16, 25, 43, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(28, 90, 209, 0.22);
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 34px 60px -26px rgba(28, 90, 209, 0.35);
}

.card__media {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px 12px 12px;
}

.card__title {
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.card__text {
  margin: 0 0 26px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-500);
}

/* Push CTA to a consistent baseline across cards of unequal text length. */
.card__body .btn { margin-top: auto; }

/* ---------- Card buttons ---------- */
.btn--pill {
  gap: 9px;
  padding: 13px 24px;
  font-size: 0.92rem;
}
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn--pill:hover .btn__arrow { transform: translateX(4px); }

/* =============================================================
   FAQ SECTION
   ============================================================= */
.faq {
  position: relative;
  background: var(--white);
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}

/* Soft brand wash behind the cards — depth without a hard edge. */
.faq::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -25%;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(28, 90, 209, 0.09), transparent 62%);
  pointer-events: none;
}

.faq__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.faq__head {
  position: relative;
  text-align: center;
  margin: 0 auto clamp(38px, 5vw, 62px);
}

.faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-600);
}

/* Arrow-tipped rule on each side of the eyebrow. */
.faq__rule {
  position: relative;
  display: block;
  width: clamp(48px, 8vw, 104px);
  height: 1.5px;
  background: currentColor;
}
.faq__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.faq__rule--flip::after { left: auto; right: 0; transform: translateY(-50%) rotate(-135deg); }

.faq__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

.faq__plane {
  position: absolute;
  top: 4px;
  right: 0;
  width: clamp(74px, 8vw, 108px);
  fill: rgba(28, 90, 209, 0.22);
  transform: rotate(42deg);
  pointer-events: none;
}

/* ---------- Grid ---------- */
/* Both columns share one grid row, so the feature card is exactly as tall
   as the three stacked cards beside it. */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Both columns are equal-row grids sharing the same gap, so the two feature
   cards span exactly the same total height as the three cards beside them. */
.faq__features,
.faq__list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 28px;
}

/* ---------- Shared card shell ---------- */
.faq-feature,
.faq-item {
  background: var(--white);
  border: 1px solid rgba(16, 25, 43, 0.07);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 18px 40px -22px rgba(16, 25, 43, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq-feature:hover,
.faq-item:hover {
  transform: translateY(-6px);
  border-color: rgba(28, 90, 209, 0.22);
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 34px 60px -26px rgba(28, 90, 209, 0.35);
}

/* Absolutely positioned so the photo's own aspect ratio never dictates how
   tall a card is — the text does, and the image fills whatever height results.
   Without this, swapping in a portrait crop silently stretches the card. */
.faq-feature__media,
.faq-item__media { position: relative; }

.faq-feature img,
.faq-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.faq-feature:hover img,
.faq-item:hover img { transform: scale(1.06); }

/* ---------- Featured card ---------- */
.faq-feature {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

/* The image absorbs the leftover height so the card matches the column. */
.faq-feature__media {
  flex: 1;
  min-height: 170px;
  border-radius: 15px;
  overflow: hidden;
}

.faq-feature__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 12px 10px;
}

.faq-feature__badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.faq-feature__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.faq-feature__marker {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(28, 90, 209, 0.14);
}

.faq-feature__text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-500);
}

/* ---------- Side cards ---------- */
.faq-item {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 22px;
  padding: 14px;
}

/* Stretches to the card's height so the image stays flush with the body. */
.faq-item__media {
  border-radius: 15px;
  overflow: hidden;
  min-height: 170px;
}

.faq-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px 6px 0;
}

.faq-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.faq-item__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(28, 90, 209, 0.09);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.faq-item__title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.25vw, 1.24rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}

.faq-item__answer {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-500);
  text-wrap: pretty;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(28, 90, 209, 0.12);
}

/* ---------- FAQ responsive ---------- */
@media (max-width: 900px) {
  .faq__inner { padding: 0 20px; }
  .faq__grid { grid-template-columns: 1fr; gap: 24px; max-width: 520px; margin: 0 auto; }
  .faq__features,
  .faq__list { grid-auto-rows: auto; gap: 24px; }

  /* Stacked: nothing to match, so the feature image keeps its own ratio. */
  .faq-feature__media { flex: none; min-height: 0; aspect-ratio: 16 / 11; }
  .faq__plane { display: none; }
}

@media (max-width: 560px) {
  .faq-item { grid-template-columns: 1fr; gap: 16px; }
  .faq-item__media { aspect-ratio: 16 / 10; }
  .faq-item__body { padding: 0 6px 8px; }
  .faq-feature__body { gap: 16px; padding: 22px 8px 10px; }
  .faq-feature__badge { width: 46px; height: 46px; border-radius: 14px; }
  .faq__eyebrow { font-size: 0.82rem; gap: 9px; }
}

/* =============================================================
   CONTACT / QUOTE SECTION
   ============================================================= */
.contact {
  position: relative;
  background: var(--white);
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -12%;
  left: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(28, 90, 209, 0.08), transparent 62%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- Left column ---------- */
.contact__title { margin-top: 8px; text-align: left; }

.contact__lead {
  margin: 20px 0 40px;
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-500);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 28px;
}
.feature { display: flex; gap: 16px; }

.feature__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.feature__title {
  margin: 4px 0 7px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.feature__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-500);
}

/* ---------- Right column: image + overlapping form ---------- */
.contact__panel { position: relative; }

.contact__media {
  width: 52%;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-card);
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; }

.quote-card {
  position: relative;
  margin: -140px 0 0 0;
  width: min(100%, 500px);
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid rgba(16, 25, 43, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.quote-card__title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.quote-card__text {
  margin: 0 0 24px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--ink-500);
}

/* ---------- Form ---------- */
.quote-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; }

.field__label {
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
}

.field__input {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-900);
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: #97a3b6; }
.field__input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 224, 0.16);
}
.field__input.is-invalid { border-color: #e0474c; box-shadow: 0 0 0 3px rgba(224, 71, 76, 0.14); }

.field__select { position: relative; }
.field__select .field__input { padding-right: 40px; cursor: pointer; }
.field__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--ink-500);
  pointer-events: none;
}

.quote-form__submit { margin-top: 4px; gap: 10px; }
.quote-form__submit svg { transition: transform 0.25s var(--ease); }
.quote-form__submit:hover svg { transform: translateX(3px); }

.quote-form__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-500);
}
.quote-form__ok {
  margin: 14px 0 0;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f7a3d;
  background: rgba(16, 158, 79, 0.1);
  border: 1px solid rgba(16, 158, 79, 0.28);
  border-radius: 12px;
}

/* ---------- Contact responsive ---------- */
@media (max-width: 980px) {
  .contact__inner { grid-template-columns: 1fr; gap: 44px; }
  .contact__intro { max-width: 640px; }
  .contact__panel { max-width: 560px; }
  .contact__media { width: 100%; aspect-ratio: 16 / 10; }
  .quote-card { margin: -90px auto 0; }
}

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

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 22px; }
  .quote-form__grid { grid-template-columns: 1fr; }
  .contact__media { aspect-ratio: 4 / 3; }
  .quote-card { margin-top: -70px; }
}

/* =============================================================
   TRUSTED EXPERTS — full-bleed banner
   ============================================================= */
.cta {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 46vw, 620px);
  display: flex;
  align-items: center;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Left-weighted scrim: copy stays legible, the right of the photo stays open. */
.cta__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(7, 20, 39, 0.95) 0%,
      rgba(7, 20, 39, 0.9) 24%,
      rgba(9, 26, 52, 0.62) 46%,
      rgba(11, 30, 61, 0.24) 66%,
      rgba(11, 30, 61, 0.06) 84%
    ),
    linear-gradient(to top, rgba(7, 20, 39, 0.55), transparent 45%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) 32px;
}

.cta__copy { max-width: 620px; }

.cta__title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cta__text {
  margin: 0 0 34px;
  max-width: 540px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.cta__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

/* Pill CTA with the arrow badge trailing the label. */
.btn--cta {
  gap: 14px;
  padding: 9px 9px 9px 30px;
  font-size: 1.02rem;
  border-radius: var(--radius-pill);
}
.btn--cta .btn__badge { width: 40px; height: 40px; border-radius: 50%; }
.btn--cta:hover .btn__badge svg { transform: translateX(2px); }
.btn--cta .btn__badge svg { transition: transform 0.25s var(--ease); }

/* ---------- Social proof ---------- */
.cta__proof { display: flex; align-items: center; gap: 14px; }

.cta__avatars { display: flex; }
.cta__avatars .avatar + .avatar { margin-left: -14px; }

.avatar--sm {
  width: 44px;
  height: 44px;
  font-size: 0.76rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.cta__proof-txt {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.4;
}
.cta__proof-txt strong { font-size: 0.98rem; font-weight: 700; }
.cta__proof-txt small { font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- CTA responsive ---------- */
@media (max-width: 900px) {
  .cta__inner { padding: clamp(56px, 9vw, 80px) 20px; }
  /* Photo has no calm zone at this width — deepen the scrim overall. */
  .cta__scrim {
    background:
      linear-gradient(100deg, rgba(7, 20, 39, 0.94) 0%, rgba(9, 26, 52, 0.78) 55%, rgba(11, 30, 61, 0.6) 100%),
      linear-gradient(to top, rgba(7, 20, 39, 0.5), transparent 50%);
  }
}

@media (max-width: 560px) {
  .cta__actions { gap: 22px; }
  .btn--cta { padding: 8px 8px 8px 24px; font-size: 0.96rem; }
  .btn--cta .btn__badge { width: 36px; height: 36px; }
  .avatar--sm { width: 38px; height: 38px; font-size: 0.7rem; }
}

/* =============================================================
   HAMBURGER (mobile)
   ============================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: rgba(9, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease),
    background 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet / small desktop: card narrows */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 340px; gap: 32px; }
}

/* Below 900px: single column, off-canvas nav */
@media (max-width: 900px) {
  :root { --nav-h: 76px; --nav-gap: 24px; }

  .navbar__inner { padding: 14px 20px; gap: 14px; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 96px 22px 32px;
    background: var(--navy-800);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    z-index: 30;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links__item { width: 100%; font-size: 1.05rem; padding: 14px 12px; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    margin: 2px 0 6px;
  }
  .dropdown li a { color: rgba(255, 255, 255, 0.8); }
  .dropdown li a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

  .phone-pill__num { display: none; }
  .phone-pill { padding: 8px; gap: 0; }
  .hamburger { display: flex; }

  /* Secondary CTA lives inside the drawer on mobile to keep the bar clean. */
  .nav-actions .btn--light { display: none; }
  .nav-actions { margin-left: auto; gap: 10px; }
  .nav-links__cta { display: block; margin-top: 12px; }

  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__copy { max-width: 100%; }
  .track-card { max-width: 440px; justify-self: start; }

  /* Services stack to one column */
  .cards { grid-template-columns: 1fr; gap: 24px; max-width: 520px; margin: 0 auto; }
  .services__inner { padding: 0 20px; }
}

/* Body scroll lock when menu open */
body.nav-open { overflow: hidden; }

/* Backdrop for mobile menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 25;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* Phone: stats stack 2x2 */
@media (max-width: 620px) {
  :root { --nav-gap: 20px; }

  .navbar__inner { padding: 12px 18px; }
  .hero__content { padding: calc(var(--nav-h) + var(--nav-gap)) 18px 32px; }
  .hero__title { line-height: 1; }
  .track-card { padding: 20px; }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 22px 18px;
  }
  .stats__item { padding: 4px 18px; }
  .stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Very small */
@media (max-width: 380px) {
  .btn--light span:last-child { display: none; }
  .btn--light { padding: 6px; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background:
    radial-gradient(1200px 400px at 78% -10%, rgba(28, 90, 209, 0.28), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, 0.72);
}

.footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 5vw, 64px) 32px clamp(34px, 4vw, 52px);
  align-items: stretch;
}

/* ---------- Left CTA panel ---------- */
.footer__cta {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
}
.footer__cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer__cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 39, 0.35) 0%, rgba(7, 20, 39, 0.72) 60%, rgba(7, 20, 39, 0.9) 100%);
}
.footer__cta-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: clamp(24px, 3vw, 34px);
  color: var(--white);
}
.footer__cta-kicker {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.footer__cta-title {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.footer__cta-accent { color: var(--blue-500); }
.footer__cta-btn { align-self: flex-start; }

/* ---------- Right main panel ---------- */
.footer__main { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand__logo { height: 42px; }

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 300px;
  max-width: 520px;
  justify-content: flex-end;
}
.newsletter__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}
.newsletter__icon {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.newsletter__input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 224, 0.28);
}
.newsletter__input.is-invalid { border-color: #ff6b6f; box-shadow: 0 0 0 3px rgba(255, 107, 111, 0.22); }
.newsletter__btn { border-radius: var(--radius-pill); padding: 12px 26px; }
.newsletter__ok {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6ee7a8;
}

/* Link columns */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
.footer__col-title {
  margin: 0 0 18px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--white);
}
.footer__links { display: grid; gap: 12px; }
.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer__links a:hover { color: var(--white); padding-left: 4px; }

/* Official info */
.footer__info { display: grid; gap: 16px; }
.footer__info li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; line-height: 1.5; }
.footer__info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(28, 90, 209, 0.22);
  color: var(--blue-500);
}
.footer__info a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s var(--ease); }
.footer__info a:hover { color: var(--white); }

.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); transform: translateY(-2px); }

/* Bottom bar */
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer__copy { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { font-size: 0.86rem; color: rgba(255, 255, 255, 0.66); transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--white); }

/* ---------- Footer responsive ---------- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; padding: 40px 20px 36px; }
  .footer__cta { min-height: 240px; }
  .footer__bar-inner { padding: 18px 20px; }
  .newsletter { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .newsletter { width: 100%; max-width: none; }
}
@media (max-width: 400px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   GLOBAL ROUTE MAP — animated China → Panama cargo journey
   -------------------------------------------------------------
   The DEFAULT state is the *finished* scene (pins up, trail
   drawn, box resting on Panama). The `.is-flying` class — added
   by IntersectionObserver when the section scrolls into view —
   replays the journey from China. This means no-JS and
   reduced-motion visitors still get a sensible, complete map.
   ============================================================= */
.route {
  --pin-w: clamp(34px, 5vw, 58px);   /* shared by pins + label offset */
  position: relative;
  background: #f6f8fc;
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
/* Soft brand glow to echo the sibling sections. */
.route::before {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 120%;
  height: 640px;
  background: radial-gradient(circle at center, rgba(28, 90, 209, 0.10), transparent 62%);
  pointer-events: none;
}
.route__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.route__lead {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  text-align: center;
}

/* ---------- Map stage ---------- */
.route__map {
  position: relative;
  width: 100%;
  max-width: 1000px;              /* big, but in step with other sections */
  margin: clamp(30px, 5vw, 56px) auto 0;
  aspect-ratio: 1024 / 512;      /* locks the coordinate system for pins */
}

/* Brand-navy world silhouette — the backdrop the route rides on. */
.route__world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;   /* box is locked to the map's 2:1 ratio, so no distortion */
}

/* ---------- Trade route line ---------- */
.route__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
}
.route__path { fill: none; stroke-linecap: round; }
.route__path--ghost {
  stroke: rgba(28, 90, 209, 0.30);
  stroke-width: 2;
  stroke-dasharray: 0.006 0.014;   /* faint dotted "planned" route */
}
.route__path--trail {
  stroke: #2f6be0;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;            /* drawn by default; hidden only while flying */
  filter: drop-shadow(0 0 4px rgba(47, 107, 224, 0.55));
}

/* ---------- Location pins ---------- */
.route__pin {
  position: absolute;
  width: var(--pin-w);
  z-index: 4;
  transform: translate(-50%, -90%);   /* anchor: marker base sits on the coordinate */
  transform-origin: 50% 90%;
  filter: drop-shadow(0 6px 10px rgba(7, 20, 39, 0.35));
  pointer-events: none;
}
.route__pin img { width: 100%; height: auto; }
.route__pin--china  { left: 75%; top: 34%; }     /* East-central China          */
.route__pin--panama { left: 19%; top: 51.5%; }   /* Panama isthmus (marked spot) */

/* Radar pulse under each marker (plays only while flying). */
.route__pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 90%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(47, 107, 224, 0.45);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  z-index: -1;
}

/* ---------- City labels — pinned directly above each marker ---------- */
.route__label {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  font-size: clamp(0.62rem, 1.1vw, 0.8rem);
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -8px rgba(7, 20, 39, 0.5);
  white-space: nowrap;
  /* left/top sit on the pin's coordinate; lift the pill just above the marker */
  transform: translate(-50%, calc(-100% - 0.85 * var(--pin-w) - 8px));
}
.route__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
}
.route__label--china  { left: 75%; top: 34%; }
.route__label--panama { left: 19%; top: 51.5%; }

/* ---------- Travelling cargo box (default: rested on Panama) ----------
   Anchored on the box artwork's visual centre (not the padded PNG centre)
   so the route line runs through its middle and is always covered by it. */
.route__box {
  position: absolute;
  left: 19%;
  top: 51.5%;
  width: clamp(32px, 4.6vw, 58px);
  height: auto;
  z-index: 6;
  transform: translate(-50.7%, -52%);
  filter: drop-shadow(0 8px 12px rgba(7, 20, 39, 0.4));
  pointer-events: none;
  will-change: left, top;
}

/* ---------- Play state (added on scroll-in) ---------- */
.route.is-flying .route__pin       { animation: route-pin-in 0.6s var(--ease) both; }
.route.is-flying .route__pin--panama { animation-delay: 0.15s; }
.route.is-flying .route__pin::before { animation: route-pulse 2.4s ease-out 0.2s infinite; }
.route.is-flying .route__pin--panama::before { animation-delay: 0.6s; }
.route.is-flying .route__label     { animation: route-label-in 0.5s var(--ease) 0.25s both; }
/* NOTE: the box + trail are driven together from a single JS clock
   (see js/main.js) so their positions stay locked — no CSS animation here. */

@keyframes route-pin-in {
  0%   { opacity: 0; transform: translate(-50%, -90%) scale(0.35); }
  60%  { opacity: 1; transform: translate(-50%, -90%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -90%) scale(1); }
}
@keyframes route-pulse {
  0%   { opacity: 0.55; transform: translate(-50%, -50%) scale(0.4); }
  70%  { opacity: 0;    transform: translate(-50%, -50%) scale(2.1); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(2.1); }
}
@keyframes route-label-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 640px) {
  .route { --pin-w: clamp(26px, 8vw, 40px); }
  .route__label { padding: 4px 9px; }
  .route__box { width: clamp(24px, 7vw, 40px); }
}

/* =============================================================
   WORKING PROCESS — 4-step timeline (ocean-freight)
   ============================================================= */
.process {
  --pc: clamp(84px, 9vw, 132px);        /* circle diameter            */
  --gap: clamp(18px, 2vw, 30px);        /* column gap (shared w/ arrows) */
  --conn: rgba(28, 90, 209, 0.45);      /* connector line + arrowheads */
  position: relative;
  background: #f6f8fc;
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
/* Soft brand glow, matching the sibling sections. */
.process::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 120%;
  height: 620px;
  background: radial-gradient(circle at center, rgba(28, 90, 209, 0.10), transparent 62%);
  pointer-events: none;
}
.process__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow ---------- */
.process__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.process__eyebrow::before,
.process__eyebrow::after {
  content: "";
  width: clamp(24px, 4vw, 40px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--blue-500));
}
.process__eyebrow::after { background: linear-gradient(90deg, var(--blue-500), transparent); }

/* ---------- Track ---------- */
.process__track {
  list-style: none;
  margin: clamp(26px, 3.5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.process__step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}

/* Connector line + arrowhead between adjacent circles (desktop row only).
   Anchored to the circle's vertical centre. Because % here is relative to
   one 1fr track (which excludes the grid gap), the next circle's centre sits
   at calc(150% + var(--gap)); the line/arrow stop 12px shy of it, symmetric
   with the 12px start offset from this circle. */
.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--pc) / 2);
  left: calc(50% + var(--pc) / 2 + 12px);
  width: calc(100% + var(--gap) - var(--pc) - 24px);
  height: 2px;
  transform: translateY(-50%);
  background: var(--conn);
}
.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--pc) / 2);
  left: calc(150% + var(--gap) - var(--pc) / 2 - 23px);
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  background: var(--conn);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Circle ---------- */
.process__circle {
  position: relative;
  z-index: 2;
  width: var(--pc);
  height: var(--pc);
  margin: 0 auto clamp(18px, 2vw, 26px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-500) 0%, var(--blue-700) 100%);
  box-shadow:
    0 18px 34px -12px rgba(28, 90, 209, 0.6),
    inset 0 2px 6px rgba(255, 255, 255, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process__circle svg { width: 44%; height: 44%; }
.process__step:hover .process__circle {
  transform: translateY(-5px);
  box-shadow:
    0 26px 44px -12px rgba(28, 90, 209, 0.72),
    inset 0 2px 6px rgba(255, 255, 255, 0.28);
}

/* ---------- Text ---------- */
.process__step-title {
  margin: 0 0 10px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.process__step-text {
  margin: 0 auto;
  max-width: 262px;
  color: var(--ink-500);
  font-size: clamp(0.86rem, 1.1vw, 0.95rem);
  line-height: 1.62;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .process__inner { padding: 0 20px; }
  .process__track { grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 6vw, 52px) 24px; }
  /* Horizontal connectors only make sense in the single desktop row. */
  .process__step:not(:last-child)::after,
  .process__step:not(:last-child)::before { display: none; }
}
@media (max-width: 520px) {
  .process__track { grid-template-columns: 1fr; }
  .process__step-text { max-width: 320px; }
}

/* `.process` and `.services` share the same #f6f8fc, so when they sit back to
   back (ocean-freight.html) their stacked padding reads as one section with a
   dead zone. Collapse the seam. Doesn't apply on index.html, where .services
   follows the dark hero and needs its full top padding. */
.process + .services { padding-top: clamp(28px, 3.5vw, 52px); }

/* =============================================================
   FAQ ACCORDION  (.qna)
   Namespaced `qna` because `.faq` already belongs to the news grid.
   ============================================================= */
.qna {
  position: relative;
  background: var(--white);
  color: var(--ink-900);
  padding: clamp(64px, 8vw, 108px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}

/* Soft brand wash, matching the sibling sections. */
.qna::before {
  content: "";
  position: absolute;
  right: -12%;
  top: 8%;
  width: 820px;
  max-width: 130%;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(28, 90, 209, 0.10), transparent 62%);
  pointer-events: none;
}

.qna__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.qna__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

/* ---------- Header ---------- */
.qna__eyebrow {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-500);
}
.qna__title { margin-bottom: clamp(26px, 3vw, 40px); }

/* ---------- List ---------- */
.qna__list { display: grid; gap: 14px; }

.qna__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 14px 30px -24px rgba(16, 25, 43, 0.35);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.qna__item.is-open {
  border-color: rgba(28, 90, 209, 0.28);
  box-shadow:
    0 1px 2px rgba(16, 25, 43, 0.04),
    0 22px 46px -26px rgba(28, 90, 209, 0.5);
}

.qna__q { margin: 0; }

.qna__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(15px, 1.6vw, 19px) clamp(14px, 1.4vw, 18px)
           clamp(15px, 1.6vw, 19px) clamp(18px, 2vw, 26px);
  background: none;
  border: 0;
  border-radius: inherit;
  text-align: left;
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
  text-wrap: balance;
}

.qna__label { transition: color 0.25s var(--ease); }
.qna__trigger:hover .qna__label { color: var(--blue-600); }

.qna__chev {
  display: inline-flex;
  color: var(--blue-600);
  transition: transform 0.35s var(--ease);
}
.qna__item.is-open .qna__chev { transform: rotate(90deg); }

.qna__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(28, 90, 209, 0.10);
  color: var(--blue-600);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.qna__trigger:hover .qna__num,
.qna__item.is-open .qna__num {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 18px -6px rgba(28, 90, 209, 0.7);
}

/* ---------- Panel ----------
   0fr -> 1fr animates to the content's natural height without JS having to
   measure scrollHeight, so it stays correct when the text reflows. */
.qna__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.qna__item.is-open .qna__panel { grid-template-rows: 1fr; }

/* visibility (not just overflow) keeps collapsed copy out of the a11y tree
   and out of the tab order, while still animating. */
.qna__panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0.38s var(--ease);
}
.qna__item.is-open .qna__panel-inner { visibility: visible; }

.qna__a {
  margin: 0;
  padding: 2px clamp(18px, 2vw, 26px) clamp(17px, 2vw, 22px);
  max-width: 58ch;
  color: var(--ink-700);
  font-size: clamp(0.88rem, 1.05vw, 0.96rem);
  line-height: 1.7;
}

/* ---------- Media ---------- */
.qna__media {
  position: relative;
  display: grid;
  place-items: center;
}
.qna__img {
  width: 100%;
  max-width: 660px;
  height: auto;
}

/* The image stays inside its grid column at every width, so its right edge
   lines up with the section container — and therefore with the CTA card below
   and every other section on the page. */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .qna__grid { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 40px); }
  .qna__img { max-width: 540px; }
}
@media (max-width: 900px) {
  .qna__inner { padding: 0 20px; }
}
@media (max-width: 520px) {
  .qna__trigger { gap: 8px; padding-right: 12px; padding-left: 16px; }
  .qna__num { width: 30px; height: 30px; font-size: 0.78rem; }
}

/* =============================================================
   QUOTE CTA  (.quote-cta)
   Namespaced `quote-cta` because `.cta` is the ocean-freight hero banner.
   ============================================================= */
/* No top padding: the white .qna above already ends with its own bottom
   padding, and doubling them would open a dead zone at the seam. */
.quote-cta {
  position: relative;
  background: var(--white);
  padding: 0 0 clamp(70px, 9vw, 120px);
}

.quote-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.quote-cta__banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 40vw, 500px);
  padding: clamp(20px, 2.6vw, 36px);
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(16, 25, 43, 0.05),
    0 34px 70px -30px rgba(7, 20, 39, 0.55);
}

.quote-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand-tinted wash: darkest behind the card so its edge never fights the
   busy terminal photo, clearing toward the right so the port stays readable. */
.quote-cta__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(7, 20, 39, 0.62) 0%,
      rgba(9, 27, 58, 0.34) 44%,
      rgba(7, 20, 39, 0.10) 78%,
      rgba(7, 20, 39, 0.20) 100%);
}

.quote-cta__card {
  width: min(100%, 490px);
  padding: clamp(24px, 2.8vw, 38px);
  background: var(--white);
  border-radius: clamp(16px, 1.8vw, 22px);
  box-shadow: 0 26px 60px -20px rgba(7, 20, 39, 0.4);
}

.quote-cta__title {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  text-wrap: balance;
}

.quote-cta__text {
  margin: 0 0 clamp(20px, 2.2vw, 26px);
  color: var(--ink-700);
  font-size: clamp(0.89rem, 1.05vw, 0.97rem);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .quote-cta__inner { padding: 0 20px; }
}
/* Below the two-column feel: drop the card to the base of the banner and let
   the photo breathe above it instead of being fully covered. */
@media (max-width: 720px) {
  .quote-cta__banner {
    align-items: flex-end;
    min-height: 0;
    padding-top: clamp(140px, 40vw, 220px);
  }
  .quote-cta__card { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
