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

/* ---------- Typeface ----------
   Inter is self-hosted rather than loaded from the Google Fonts CDN:
   fonts.googleapis.com and fonts.gstatic.com are both unreachable from
   mainland China, and since browsers partitioned the HTTP cache per-site
   there is no longer any shared-cache benefit to the CDN either. Serving
   the files ourselves removes two DNS lookups and two TLS handshakes from
   the critical path.

   These are variable fonts covering weights 400-800 in a single file, so
   every weight the design uses costs one request. The unicode-range on
   each face means the browser downloads latin-ext only if a page actually
   contains a character outside Latin-1 — Spanish accents and punctuation
   (á é í ó ú ñ ü ¿ ¡) all live in the base latin subset.

   Inter is licensed SIL OFL 1.1 — see assets/fonts/OFL.txt.
   ---------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 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-1000.a217dfe88790.webp") center 30% / cover no-repeat;
  overflow: hidden;
}

/* The hero photo is the LCP element on every page that uses it, so it ships in
   three widths instead of one 2400px file. Mobile-first: the smallest variant
   is the default and larger viewports opt up. The matching <link rel="preload">
   in each page's <head> carries the same media queries, so the preload and the
   stylesheet always agree on which file to fetch — otherwise a phone would
   download two copies of the hero. */
@media (min-width: 701px) {
  .hero { background-image: url("../assets/hero-cargo-1600.c1128b41fd88.webp"); }
}
@media (min-width: 1601px) {
  .hero { background-image: url("../assets/hero-cargo.8a77ad779255.webp"); }
}

/* 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;
}

/* Log in + Register pair. Register carries the filled treatment and Log in the
   outline, so the two read as one group with a clear primary. */
.nav-auth {
  display: inline-flex;
  /* stretch, not center: the two buttons carry different padding and border
     widths, so letting the shorter one fill keeps them level without pinning
     either to a hard-coded height. */
  align-items: stretch;
  gap: 10px;
}

/* .btn's base padding is left-light (10px) to seat a badge; Register no longer
   carries one, so it goes symmetric or the label sits off-centre. Background
   and colour are on the transition list because this button restyles when the
   bar goes solid — see .navbar.is-scrolled below. */
.nav-auth .btn--light {
  padding: 11px 24px;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease);
}

.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; }

/* Over the hero the white pill reads fine against the photo. Once the bar goes
   solid white it would vanish into it, so Register switches to the brand blue
   there — matching .btn--primary, shadow included. Timed to the same 0.35s the
   navbar uses for its own background, so the two changes land together. */
.navbar.is-scrolled .nav-auth .btn--light {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.navbar.is-scrolled .nav-auth .btn--light:hover { background: var(--blue-700); }

/* Scoped to .nav-actions on purpose: the same .btn--outline also lives in the
   mobile drawer, which stays navy no matter how far the page is scrolled. */
.navbar.is-scrolled .nav-actions .btn--outline {
  border-color: rgba(16, 25, 43, 0.16);
  color: var(--ink-900);
}
.navbar.is-scrolled .nav-actions .btn--outline:hover {
  background: #f1f5fd;
  border-color: var(--blue-600);
  color: var(--blue-600);
}

/* Hamburger bars go dark on the white bar — which only reads if the button
   behind them stops being dark too. Same light treatment as .lang-switch. */
.navbar.is-scrolled .hamburger {
  background: #f1f5fd;
  border-color: var(--line);
}
.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); }

/* Same component on a surface that is white from the start (the auth pages),
   so it carries the scrolled-bar palette without depending on the navbar. */
.lang-switch--light { background: #f1f5fd; border-color: var(--line); }
.lang-switch--light .lang-switch__opt { color: var(--ink-700); }
.lang-switch--light .lang-switch__opt:hover { color: var(--blue-600); }
.lang-switch--light .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); }

/* Outline pill — the quieter half of a button pair. Written for dark
   surfaces (the hero bar, the mobile drawer); light surfaces opt in via
   the `.navbar.is-scrolled .nav-actions` override further down. */
.btn--outline {
  padding: 11px 22px;
  gap: 0;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}
.btn--outline:active { transform: translateY(0); }

.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); }

/* =============================================================
   TRACKING RESULT — the public face of the application
   =============================================================
   Lives in styles.css and not app.css because the landing pages load only
   this bundle; app.css ships with base_app.html and is not present here.
   That is also why .trail below is a second, smaller rail rather than a
   reuse of app.css's .rail — same shape, its own two classes, and it
   deliberately carries less: no note, and no staff email. */
.track-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-500);
}
.track-back:hover { color: var(--blue-600); }

.track-result__ref {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  /* A reference has no spaces to break at, and the card is narrow on a
     phone. Without this it widens the hero instead of wrapping. */
  overflow-wrap: anywhere;
}
.track-result__lane {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
}

.track-miss__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-900);
}
.track-miss__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-500);
}

/* ---- the rail -------------------------------------------------------
   The connector is drawn PER STEP rather than as one border on the <ol>,
   because each segment needs its own colour: solid behind what has
   happened, faint ahead of it. One border can only be one colour. */
.trail { margin: 0; padding: 0; list-style: none; }

.trail__step { position: relative; padding: 0 0 18px 26px; }
.trail__step::before {
  content: "";
  position: absolute;
  left: 5px;            /* 12px dot at left:0 -> centre 6px, less half the rule */
  top: 15px;
  bottom: 0;
  width: 2px;
  background: #e3e9f3;
}
/* Drawn downward from each dot, so the last step simply draws nothing and
   no line dangles past the end of the list. */
.trail__step:last-child { padding-bottom: 0; }
.trail__step:last-child::before { display: none; }
.trail__step--done::before { background: #15803d; }

.trail__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid #cbd5e5;
  border-radius: 50%;
  background: var(--white);
}
.trail__step--done .trail__dot { border-color: #15803d; background: #15803d; }
/* The current step is a RING and not a filled dot: filled reads as
   finished, and this is where the cargo is sitting right now. */
.trail__step--current .trail__dot {
  border-color: var(--blue-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28, 90, 209, 0.15);
}

.trail__name { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink-900); }
.trail__step--current .trail__name { color: var(--blue-600); }
.trail__step--pending .trail__name { color: #9aa6bd; font-weight: 600; }

.trail__time { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--ink-500); }
.trail__none { margin: 0; font-size: 0.9rem; color: var(--ink-500); }

.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);
}

/* Photo variant. object-fit keeps a square source from distorting inside the
   circle; the gradient above stays underneath as a tint while the file loads,
   so the stack never flashes as empty rings. */
img.avatar { object-fit: cover; }

/* ---------- 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); }

/* Per-field server-side error, rendered under the input it belongs to. The
   browser's own bubble only ever shows one message and vanishes on the next
   keystroke; these come back from Django on the re-rendered page and stay put
   until the field is actually fixed. Paired with .is-invalid on the input, so
   the error is signalled by position and text, never by colour alone. */
.field__error {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: #c0323c;
}

/* "(optional)" next to a label. A field the server does not require must not
   look identical to one it does. */
.field__hint {
  font-weight: 500;
  color: var(--ink-500);
}

.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;
}

/* Shown when the submission never reaches the form service — a dropped
   connection, an outage, a blocked request. Without this the button just
   goes quiet and the lead is lost, so the message carries a way to reach
   us that does not depend on the form working. */
.quote-form__error {
  margin: 14px 0 0;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a32330;
  background: rgba(224, 71, 76, 0.09);
  border: 1px solid rgba(224, 71, 76, 0.3);
  border-radius: 12px;
}
.quote-form__error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot: off-screen rather than display:none, since some bots skip
   fields they can tell are not rendered. Never announced or focusable. */
.quote-form__botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* In-flight state for the submit button. */
.quote-form__submit[aria-busy="true"] {
  opacity: 0.72;
  cursor: progress;
}

/* Invalid fields get a red edge; the class is applied on a failed submit
   attempt, not while the user is still typing. */
.field__input.is-invalid {
  border-color: #e0474c;
  box-shadow: 0 0 0 3px rgba(224, 71, 76, 0.14);
}

/* ---------- 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
   ============================================================= */

/* The bar now carries two CTAs instead of one. Before anything wraps, tighten
   the link spacing and drop the phone number to its icon — the number is still
   one tap away, and it also sits in the footer of every page. */
@media (max-width: 1160px) {
  .navbar__inner { gap: 16px; }
  .nav-links__item { padding: 10px 10px; font-size: 0.9rem; }
  .nav-actions { gap: 10px; }
  .phone-pill__num { display: none; }
  .phone-pill { padding: 8px; gap: 0; }
  /* Scoped to .nav-auth so the drawer's full-width pair keeps its own sizing. */
  .nav-auth .btn { font-size: 0.9rem; }
  .nav-auth .btn--outline { padding: 10px 16px; }
  .nav-auth .btn--light { padding: 10px 18px; }
}

/* 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); }

  /* The drawer is always navy, however far the page is scrolled — so the
     is-scrolled colours, which exist for the white desktop bar, have to be
     undone here. Without the second selector the menu turns near-black ink
     on navy the moment the visitor scrolls. */
  .nav-links__item,
  .navbar.is-scrolled .nav-links__item {
    width: 100%;
    font-size: 1.05rem;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.95);
  }
  .nav-links__item:hover,
  .navbar.is-scrolled .nav-links__item:hover,
  .navbar.is-scrolled .nav-links__item.is-active { color: var(--white); }

  .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.88); }
  .dropdown li a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

  /* Phone drops to an icon and becomes a solid blue tile sized to the
     hamburger, so the two controls read as a matched pair instead of a
     blue square floating inside a dark circle. The pill sheds its own
     chrome and the inner icon block becomes the whole control. */
  .phone-pill__num { display: none; }
  /* The :hover variants are listed too — each one outranks the plain selector,
     so leaving them out would flash the old pill back on tap. */
  .phone-pill,
  .phone-pill:hover,
  .navbar.is-scrolled .phone-pill,
  .navbar.is-scrolled .phone-pill:hover {
    padding: 0;
    gap: 0;
    background: none;
    border: 0;
    backdrop-filter: none;
  }
  .phone-pill__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
  }
  .phone-pill__icon svg { width: 21px; height: 21px; }
  .phone-pill:hover .phone-pill__icon,
  .navbar.is-scrolled .phone-pill:hover .phone-pill__icon { background: var(--blue-700); }

  .hamburger { display: flex; }

  /* Auth CTAs live inside the drawer on mobile to keep the bar clean. */
  .nav-auth { display: none; }
  .nav-actions { margin-left: auto; gap: 10px; }
  /* auto-rows 1fr evens out the 1.5px border the outline button carries and
     the primary one does not, so the stacked pair reads as one block. */
  .nav-links__cta {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .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) {
  .navbar__inner { padding: 12px 14px; gap: 10px; }
  .brand__logo { height: 38px; }
}

/* =============================================================
   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%);
  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%; }
}

/* =============================================================
   AUTH PAGES  (login / register)
   Split screen: form panel on the left, brand photo carrying the
   hero message on the right. These are standalone pages — no
   navbar, no footer — so the logo doubles as the way back home.
   ============================================================= */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;   /* mobile browsers: excludes the collapsing URL bar */
  background: var(--white);
  color: var(--ink-900);
}

/* <body> is navy site-wide. These pages are white edge to edge, so the root
   has to match — otherwise the overscroll bounce flashes the dark background
   above the logo. Purely cosmetic, so browsers without :has() lose nothing. */
html:has(.auth),
body:has(.auth) { background: var(--white); }

/* ---------- Left: form panel ---------- */
/* Vertical values are driven by vh, horizontal ones by vw: the panel has to
   stay inside one viewport on a laptop, and height is the axis that runs out
   first. Every gap below shrinks with the window instead of forcing a scroll. */
.auth__panel {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 22px);
  padding: clamp(18px, 3vh, 46px) clamp(22px, 4vw, 64px);
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth__brand-logo {
  display: block;
  width: auto;
  height: clamp(38px, 3.4vw, 46px);
}

/* flex:1 hands the panel's leftover height to the form, which centres itself
   inside it — so the powered-by strip stays on the floor at any viewport
   height without absolute positioning. */
.auth__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 424px);
  margin: 0 auto;
  padding: clamp(8px, 1.6vh, 20px) 0;
}

.auth__title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.9vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.auth__lead {
  margin: 0 0 clamp(16px, 2.8vh, 30px);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-500);
}

/* ---------- Form ---------- */
.auth-form { display: grid; gap: clamp(11px, 1.8vh, 16px); }

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-form__submit { margin-top: 6px; }

/* Remember-me / forgot-password line. */
.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.auth-form__link {
  color: var(--blue-600);
  font-weight: 600;
}
.auth-form__link:hover { color: var(--blue-700); text-decoration: underline; }

/* Post-submit notice. Neutral brand blue rather than the green success box,
   since nothing has actually been created until a backend is wired up. */
.auth-form__note {
  margin: 0;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  color: #17458f;
  background: rgba(28, 90, 209, 0.08);
  border: 1px solid rgba(28, 90, 209, 0.24);
  border-radius: 12px;
}

/* Checkbox rows override .field's column stacking. */
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-700);
}
.field--check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--blue-600);
}
.field--check a { color: var(--blue-600); font-weight: 600; }
.field--check a:hover { text-decoration: underline; }
/* A checkbox has no border to redden, so a required-but-unticked one gets an
   outline instead — same signal as .field__input.is-invalid. */
.field--check input.is-invalid { outline: 2px solid #e0474c; outline-offset: 2px; }

/* Password reveal — same wrapper pattern as .field__select. */
.field__pass { position: relative; }
.field__pass .field__input { padding-right: 48px; }

.field__reveal {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  border-radius: 9px;
  color: var(--ink-500);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.field__reveal:hover { color: var(--blue-600); background: #eef3fd; }
.field__reveal .field__reveal-off { display: none; }
.field__reveal.is-on .field__reveal-on { display: none; }
.field__reveal.is-on .field__reveal-off { display: block; }

/* ---------- Cross-link + powered-by ---------- */
.auth__alt {
  margin: clamp(14px, 2.4vh, 24px) 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-500);
}
.auth__alt a { color: var(--blue-600); font-weight: 700; }
.auth__alt a:hover { color: var(--blue-700); text-decoration: underline; }

.auth__powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.auth__powered-logo {
  display: block;
  width: auto;
  height: 24px;
  border-radius: 4px;
}

/* ---------- Compact variant ----------
   Register carries eight fields against Log in's two, so on its own it would
   be the one auth screen that scrolls. Two levers, no clipping: a wider column
   so fields pair up two per row (four rows instead of eight), and a tighter
   control size. Anything denser than this belongs on a second step. */
.auth--compact .auth__body { width: min(100%, 520px); }

.auth--compact .auth__lead { margin-bottom: clamp(12px, 2vh, 22px); }

.auth--compact .auth-form { gap: clamp(9px, 1.5vh, 14px); }

.auth--compact .field__label {
  margin-bottom: 5px;
  font-size: 0.78rem;
}
.auth--compact .field__input { padding: 11px 14px; }
.auth--compact .field__pass .field__input { padding-right: 44px; }
.auth--compact .field__reveal { right: 6px; width: 30px; height: 30px; }
.auth--compact .auth-form__submit { padding: 13px 24px; }

/* Short-viewport tiers. Both are gated on min-width: 901px — below that the
   layout has already stacked into a normal scrolling page, where the copy is
   worth keeping. Order of sacrifice is deliberate: prose first, then chrome,
   never a field or the submit button. */
@media (min-width: 901px) and (max-height: 780px) {
  .auth--compact .auth__lead { display: none; }
  .auth--compact .auth__title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
}

@media (min-width: 901px) and (max-height: 660px) {
  .auth--compact .auth__brand-logo { height: 34px; }
  .auth--compact .field__input { padding: 9px 13px; }
  .auth--compact .auth-form__submit { padding: 11px 24px; }
  .auth--compact .auth__powered-logo { height: 20px; }
}

/* ---------- Right: brand photo + hero message ----------
   Same three-width source set as .hero, so a phone never pulls the 2400px
   file. The modifier sits after the media query on purpose: it has equal
   specificity, so source order is what lets it win at every width. */
.auth__aside {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 3.4vw, 62px);
  color: var(--white);
  background: var(--auth-img) center / cover no-repeat;
  overflow: hidden;
  --auth-img: url("../assets/hero-cargo-1000.a217dfe88790.webp");
}
@media (min-width: 701px) {
  .auth__aside { --auth-img: url("../assets/hero-cargo-1600.c1128b41fd88.webp"); }
}
/* Login takes the port photo so the two pages don't read as the same screen. */
.auth__aside--port { --auth-img: url("../assets/cta-port.66da564b065b.webp"); }

/* Same wash as .hero__overlay — brand blue at the top, deep navy at the base
   so the message keeps its contrast wherever the photo goes light. */
.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(28, 90, 209, 0.52) 0%,
      rgba(11, 30, 61, 0.14) 26%,
      rgba(7, 20, 39, 0.16) 46%,
      rgba(5, 12, 24, 0.92) 100%);
}

.auth__aside-copy { max-width: 540px; }

.auth__aside-title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3vw, 3.05rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.auth__aside-text {
  margin: 0;
  max-width: 440px;
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Auth responsive ---------- */
@media (max-width: 1080px) {
  .auth { grid-template-columns: 1.05fr 0.95fr; }
}

/* Below the split the page becomes a normal vertical read: form, then the
   image block. Nothing follows it — these pages carry no footer, so sign-in
   stays a single-purpose screen. */
@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* The form is what the visitor came for, so it owns the first screen by
     itself — powered-by still lands on the fold, exactly as on desktop. */
  .auth__panel {
    min-height: 100vh;
    min-height: 100svh;
    padding: 22px 20px 30px;
  }

  /* Square by construction: the column is full-bleed at this width, so 1:1
     makes the block as tall as the viewport is wide. That extra height is
     what earns the subtitle its place back. */
  .auth__aside {
    aspect-ratio: 1 / 1;
    padding: clamp(24px, 6vw, 44px);
  }
}

@media (max-width: 460px) {
  .auth-form__row { grid-template-columns: 1fr; }
}

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