/* ==========================================================================
   MACE LOGISTICS CORP. — www.macelogistics.com
   Design system + components
   Brand palette sampled directly from the corporate logo:
     navy #121341 · orange #F38120 · sky #18A6E6 · gray #7E7F81
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0B0C2B;
  --navy-800: #121341;   /* primary brand navy (from logo) */
  --navy-700: #1B1D57;
  --navy-600: #262A75;
  --navy-100: #E7E8F2;
  --navy-50:  #F2F3F9;

  --orange-800: #A94F08;  /* AA text on --orange-100 tints */
  --orange-700: #C55F0C;
  --orange-600: #DC6E11;
  --orange-500: #F38120;  /* brand orange (from logo) */
  --orange-200: #FBD6B4;
  --orange-100: #FEF1E4;

  --sky-800: #0A6A94;     /* AA text on --sky-100 tints */
  --sky-700: #0B7FB4;
  --sky-600: #1195D0;
  --sky-500: #18A6E6;     /* brand sky (from logo) */
  --sky-200: #B4E4F9;
  --sky-100: #E6F5FD;

  --steel-500: #7E7F81;   /* brand gray (from logo) */

  /* Neutrals (navy-tinted for cohesion) */
  --n-0:   #FFFFFF;
  --n-25:  #FBFCFE;
  --n-50:  #F5F7FB;
  --n-100: #EDF0F6;
  --n-200: #DFE4EE;
  --n-300: #C7CEDC;
  --n-400: #A3ACBF;
  --n-500: #7C8598;
  --n-600: #5C6478;
  --n-700: #414962;
  --n-900: #121341;

  /* Semantic */
  --bg:            var(--n-0);
  --bg-soft:       var(--n-50);
  --surface:       var(--n-0);
  --border:        var(--n-200);
  --border-soft:   var(--n-100);
  --heading:       var(--navy-800);
  --text:          #545C70;
  --text-strong:   var(--n-700);
  --text-muted:    #666F83;   /* darker than --n-500 so small print clears AA */
  --success:       #16915E;

  /* Typography */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.2rem, 1.35rem + 3vw, 3.5rem);
  --fs-h2:    clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3:    clamp(1.2rem, 1.06rem + 0.5vw, 1.4rem);
  --fs-lead:  clamp(1.02rem, 0.96rem + 0.3vw, 1.19rem);
  --fs-body:  1rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;

  /* Space & shape */
  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(18, 19, 65, .06);
  --sh-sm: 0 2px 4px rgba(18, 19, 65, .05), 0 1px 2px rgba(18, 19, 65, .04);
  --sh-md: 0 8px 20px -6px rgba(18, 19, 65, .10), 0 2px 6px rgba(18, 19, 65, .05);
  --sh-lg: 0 22px 48px -16px rgba(18, 19, 65, .18), 0 4px 12px rgba(18, 19, 65, .06);
  --sh-xl: 0 40px 80px -28px rgba(18, 19, 65, .30), 0 8px 24px rgba(18, 19, 65, .08);

  --ring: 0 0 0 4px rgba(24, 166, 230, .28);
  --ease: cubic-bezier(.22, .68, .32, 1);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* `clip` contains the off-canvas mobile drawer without creating a scroll
     container (plain `overflow-x: hidden` on <body> propagates to the viewport
     and leaves the document scrollWidth inflated). */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fallback for browsers without `overflow: clip`. Applied to <body> rather than
   <html> so the overflow propagates to the viewport and leaves the sticky
   header working. */
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 .6em;
  font-weight: 800;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.014em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-800); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange-800); }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

strong { color: var(--text-strong); font-weight: 600; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.section--navy {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(24, 166, 230, .22), transparent 62%),
    radial-gradient(760px 420px at 92% 100%, rgba(243, 129, 32, .18), transparent 60%),
    linear-gradient(150deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, .78);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }

.grid { display: grid; gap: clamp(1.15rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.12fr .88fr; }
.split--wide-right { grid-template-columns: .88fr 1.12fr; }

/* Grid tracks default to a min-content floor, which lets long words and wide
   children push a container past its parent. Opt every track out of that. */
.grid > *,
.split > *,
.trust > *,
.hero__grid > *,
.contact-grid > *,
.portal-shots > *,
.steps > * { min-width: 0; }

/* --------------------------------------------------------------------------
   4. Section headings
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .755rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-800);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--sky-500));
}
.section--navy .eyebrow { color: var(--sky-200); }

.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { font-size: var(--fs-lead); }
.section--navy .section-head p { color: rgba(255, 255, 255, .74); }

.lead { font-size: var(--fs-lead); color: var(--text); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .935rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(243, 129, 32, .58);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 32px -10px rgba(243, 129, 32, .66); }

.btn--navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(18, 19, 65, .6);
}
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost {
  background: var(--n-0);
  color: var(--navy-800);
  border-color: var(--border);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover { border-color: var(--navy-800); color: var(--navy-800); box-shadow: var(--sh-md); }

.btn--outline-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.btn--sm { padding: .68rem 1.2rem; font-size: .86rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy-800);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--orange-800); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Icons & badges
   -------------------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon--fill { fill: currentColor; stroke: none; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(18, 19, 65, .75);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.icon-tile--orange { background: linear-gradient(140deg, var(--orange-500), var(--orange-600)); box-shadow: 0 10px 22px -12px rgba(243, 129, 32, .8); }
.icon-tile--sky { background: linear-gradient(140deg, var(--sky-500), var(--sky-700)); box-shadow: 0 10px 22px -12px rgba(24, 166, 230, .8); }
.icon-tile--soft { background: var(--navy-50); color: var(--navy-800); box-shadow: none; }
.icon-tile--sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-tile--sm .icon { width: 20px; height: 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .95rem .42rem .6rem;
  border-radius: var(--r-pill);
  background: var(--n-0);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-strong);
  box-shadow: var(--sh-xs);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(243, 129, 32, .18);
}
.pill--light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: var(--fs-sm); }

.card--hover:hover {
  transform: translateY(-6px);
  border-color: var(--navy-100);
  box-shadow: var(--sh-lg);
}
.card--hover:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }

.card__top-rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--orange-500), var(--sky-500));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card--hover:hover .card__top-rule { opacity: 1; }

.card__icon { margin-bottom: 1.15rem; }

.card--glass {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card--glass p { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .74);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: .3rem;
}
.topbar__list { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { margin: 0; }
.topbar a { color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--orange-500); }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }
.topbar__tag { display: inline-flex; align-items: center; gap: .45rem; color: rgba(255, 255, 255, .62); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 6px 24px -14px rgba(18, 19, 65, .34);
  background: rgba(255, 255, 255, .95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 52px; width: auto; }
.brand__text { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav__menu li { margin: 0; }
/* The CTA inside the menu list belongs to the mobile drawer only — the desktop
   header shows its own pair of buttons in .nav__actions. */
.nav__menu .btn { display: none; }
.nav__link {
  position: relative;
  display: block;
  padding: .55rem .85rem;
  font-family: var(--font-head);
  font-size: .915rem;
  font-weight: 600;
  color: var(--text-strong);
  border-radius: var(--r-sm);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--sky-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--navy-800); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy-800); }

.nav__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--n-0);
  color: var(--navy-800);
  cursor: pointer;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 43, .5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  z-index: 98;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 6vw, 6rem) clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(24, 166, 230, .16), transparent 62%),
    radial-gradient(760px 440px at 4% 8%, rgba(243, 129, 32, .11), transparent 58%),
    linear-gradient(180deg, #FBFCFE 0%, #F3F6FB 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 19, 65, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 65, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(80% 62% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 62% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--orange-500) 8%, var(--sky-500) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: var(--fs-lead); max-width: 34rem; margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 2.1rem; }

/* Four items, so a fixed 2×2 reads more evenly than auto-fit, which lands on an
   awkward 3 + 1 at some widths. */
.hero__proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border);
}
.hero__proof-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__proof-item span { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--n-0);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
}
.hero__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.05rem;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.2;
}
.float-card span { font-size: .72rem; color: var(--text-muted); }

.float-card--a { left: -18px; top: 16%; animation-delay: -1s; }
.float-card--b { right: -14px; bottom: 12%; animation-delay: -3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* --------------------------------------------------------------------------
   10. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(760px 380px at 82% 0%, rgba(24, 166, 230, .25), transparent 62%),
    radial-gradient(620px 340px at 8% 100%, rgba(243, 129, 32, .2), transparent 60%),
    linear-gradient(140deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .8);
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .9rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.page-hero p { font-size: var(--fs-lead); color: rgba(255, 255, 255, .78); max-width: 44rem; margin-inline: auto; }
.page-hero .eyebrow { color: var(--sky-200); }
.page-hero .eyebrow::before { display: none; }

.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .55);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; opacity: .45; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--orange-500); }

/* --------------------------------------------------------------------------
   11. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.35rem 1.5rem;
  background: var(--n-0);
}
.trust__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: .12rem;
}
.trust__item span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; display: block; }

/* --------------------------------------------------------------------------
   12. Services
   -------------------------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.4rem;
  font-size: var(--fs-sm);
}
.service-card li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .45rem;
  color: var(--text);
}
.service-card li .icon { width: 17px; height: 17px; color: var(--success); margin-top: .34rem; stroke-width: 2.5; }
.service-card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------------------
   13. Client portal + video
   -------------------------------------------------------------------------- */
/* The poster and the YouTube iframe both fill the same 16:9 box, so swapping
   one for the other on play causes no reflow. */
.portal-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, .1);
}
.portal-video__poster,
.portal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.portal-video__poster { object-fit: cover; }
.portal-video.is-playing .portal-video__poster { visibility: hidden; }

.portal-video__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(11, 12, 43, .30) 0%, rgba(11, 12, 43, .62) 100%);
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.portal-video.is-playing .portal-video__overlay { opacity: 0; visibility: hidden; }

.portal-video__play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 18px 40px -12px rgba(243, 129, 32, .8);
  transition: transform .3s var(--ease);
}
.portal-video__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.portal-video__overlay:hover .portal-video__play { transform: scale(1.08); }

.portal-video__play::before,
.portal-video__play::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(243, 129, 32, .55);
  animation: pulse-ring 2.8s var(--ease) infinite;
}
.portal-video__play::after { animation-delay: 1.4s; }

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.portal-video__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.5rem 1.6rem 1.15rem;
  text-align: center;
  color: #fff;
  pointer-events: none;
  /* The poster is a bright photograph, so the caption needs its own scrim
     rather than relying on the overlay tint underneath it. */
  background: linear-gradient(180deg,
    rgba(11, 12, 43, 0) 0%,
    rgba(11, 12, 43, .72) 42%,
    rgba(11, 12, 43, .94) 78%,
    rgba(11, 12, 43, .97) 100%);
}
.portal-video__caption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}
.portal-video__caption span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .74); }

.portal-features { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.15rem; }
.portal-features li { display: flex; gap: 1rem; margin: 0; }
.portal-features h4 { margin: 0 0 .18rem; color: #fff; }
.portal-features p { font-size: var(--fs-sm); margin: 0; color: rgba(255, 255, 255, .7); }

.portal-shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.15rem; align-items: start; }
.portal-shots figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--n-0);
  box-shadow: var(--sh-lg);
}
.portal-shots figcaption {
  padding: .8rem 1rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  background: var(--n-25);
}

/* --------------------------------------------------------------------------
   14. Process steps
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--n-300) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step__num {
  counter-increment: step;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--n-0);
  border: 2px solid var(--navy-100);
  color: var(--navy-800);
  box-shadow: var(--sh-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.step__num::after {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
}
.step:hover .step__num {
  transform: translateY(-4px);
  border-color: transparent;
  background: linear-gradient(140deg, var(--orange-500), var(--orange-600));
  color: #fff;
}
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   15. Coverage / lanes
   -------------------------------------------------------------------------- */
/* The lane row is used on both light sections (the China, air-freight and
   service pages) and on navy ones (the home-page coverage band). The base
   styles below are the LIGHT treatment; the navy overrides follow. Defining it
   the other way round is what left the rows white-on-white off the home page. */
/* Capped so the rows keep a readable measure when the list runs the full
   width of a page section. Inside the narrower home-page grid column the
   cap never bites. */
.lane-list { display: grid; gap: .75rem; max-width: 900px; margin-inline: auto; }
.lane {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lane:hover {
  border-color: var(--sky-500);
  box-shadow: var(--sh-sm);
  transform: translateX(4px);
}
.lane__port { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: .96rem; }
.lane__port small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); }
.lane__arrow { color: var(--sky-500); display: inline-flex; }
.lane__arrow .icon { width: 20px; height: 20px; }
.lane__mode {
  justify-self: end;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--sky-100);
  color: var(--sky-800);
  border: 1px solid rgba(24, 166, 230, .32);
  white-space: nowrap;
}
.lane__mode--air { background: var(--orange-100); color: var(--orange-800); border-color: rgba(243, 129, 32, .34); }

/* Navy sections: the row goes glass, like .card--glass and .accred. */
.section--navy .lane {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: none;
}
.section--navy .lane:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
}
.section--navy .lane__port { color: #fff; }
.section--navy .lane__port small { color: rgba(255, 255, 255, .55); }
.section--navy .lane__mode {
  background: rgba(24, 166, 230, .18);
  color: var(--sky-200);
  border-color: rgba(24, 166, 230, .3);
}
.section--navy .lane__mode--air {
  background: rgba(243, 129, 32, .16);
  color: var(--orange-200);
  border-color: rgba(243, 129, 32, .32);
}

/* --------------------------------------------------------------------------
   16. Stats
   -------------------------------------------------------------------------- */
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: .5rem;
}
.stat__value .unit { color: var(--orange-500); }
.stat__label { font-size: var(--fs-sm); color: rgba(255, 255, 255, .68); }

/* --------------------------------------------------------------------------
   17. Feature list (checks)
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin: 0; font-size: var(--fs-sm); }
.check-list .icon {
  width: 22px; height: 22px; flex: none;
  padding: 3px;
  border-radius: 50%;
  background: rgba(22, 145, 94, .1);
  color: var(--success);
  stroke-width: 3;
  margin-top: 1px;
}
.check-list--light li { color: rgba(255, 255, 255, .76); }
.check-list--light .icon { background: rgba(24, 166, 230, .16); color: var(--sky-200); }

/* --------------------------------------------------------------------------
   18. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.acc {
  background: var(--n-0);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.acc.is-open { border-color: var(--navy-100); box-shadow: var(--sh-md); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.4;
}
.acc__btn .icon { width: 20px; height: 20px; color: var(--orange-700); transition: transform .3s var(--ease); }
.acc.is-open .acc__btn .icon { transform: rotate(45deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 1.35rem 1.3rem; font-size: var(--fs-sm); margin: 0; }

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(680px 340px at 12% 0%, rgba(24, 166, 230, .35), transparent 60%),
    radial-gradient(680px 340px at 88% 100%, rgba(243, 129, 32, .32), transparent 58%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--sh-xl);
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, .76); max-width: 52ch; margin-inline: auto 1.9rem; margin-inline: auto; margin-bottom: 1.9rem; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   20. Contact & form
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; margin: 0; }
.contact-list h4 { margin: 0 0 .12rem; font-size: .95rem; }
.contact-list a, .contact-list p { font-size: var(--fs-sm); color: var(--text); margin: 0; }
.contact-list a:hover { color: var(--orange-800); }

.form-card {
  background: var(--n-0);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--sh-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: .01em;
}
.req { color: var(--orange-800); }   /* required marker, in labels and in the form legend */

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  background: var(--n-25);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8598' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 17px;
  padding-right: 2.6rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--n-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--n-0);
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(24, 166, 230, .14);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.field__error { font-size: var(--fs-xs); color: #D64545; min-height: 1.1em; }

.form-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1rem; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.1rem;
  padding: .95rem 1.1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  background: rgba(22, 145, 94, .08);
  border: 1px solid rgba(22, 145, 94, .24);
  color: #0F6B45;
}
.form-status.is-visible { display: flex; }
.form-status .icon { width: 19px; height: 19px; flex: none; margin-top: 2px; }

.form-status--error {
  background: rgba(214, 69, 69, .07);
  border-color: rgba(214, 69, 69, .26);
  color: #A32B2B;
}

/* Honeypot — kept out of sight and out of the tab order, but not
   `display: none`, which some bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   21. Map
   -------------------------------------------------------------------------- */
/* .map-frame is kept for a future embed: drop an iframe back inside it once
   there is a Maps Embed API key or a pb= share URL to point at. */
.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  line-height: 0;
  background: var(--n-100);
}
.map-frame iframe { width: 100%; height: clamp(300px, 42vw, 440px); border: 0; display: block; filter: grayscale(.2) contrast(1.04); }

.map-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.map-card__body { display: flex; align-items: flex-start; gap: 1.1rem; }
.map-card__body h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.map-card address { font-style: normal; color: var(--text); line-height: 1.6; }
.map-card__hours { margin: .7rem 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.map-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

@media (max-width: 720px) {
  .map-card { flex-direction: column; align-items: stretch; }
  .map-card__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  font-size: var(--fs-sm);
  padding-top: clamp(3rem, 6vw, 4.75rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.35fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
/* The logo is navy artwork on a transparent ground, so on the navy footer it
   sits on a white card rather than directly on the dark background.
   Direct child only — the FIATA mark nested in .accred has its own treatment. */
.footer__brand > img {
  height: 58px;
  width: auto;
  margin-bottom: 1.25rem;
  background: #fff;
  padding: .75rem 1.05rem;
  border-radius: 14px;
  box-shadow: var(--sh-sm);
}
.footer__brand p { font-size: var(--fs-sm); max-width: 34ch; }

.footer h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer li { margin: 0; }
.footer a { color: rgba(255, 255, 255, .62); }
.footer a:hover { color: var(--orange-500); }

.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--sky-500); margin-top: 3px; flex: none; }

/* --------------------------------------------------------------------------
   Accreditation mark (FIATA)
   The FIATA logo is a blue mark on a transparent background, so on the navy
   footer it sits on a white chip to keep it legible and on-brand.
   -------------------------------------------------------------------------- */
/* No white card: the FIATA mark is mostly a white globe with blue orbit rings,
   which already reads clearly on navy. A faint glass panel gives it structure
   without punching a bright hole in the footer. */
.accred {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: .9rem 1.4rem .9rem 1rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.accred img {
  height: 96px;
  width: auto;
  flex: none;
  /* Lifts the mark off the dark ground so its edges stay crisp. */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.accred b {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: .15rem;
}
.accred small {
  display: block;
  font-size: .76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .6);
}

/* White tile for the mark where an icon tile would otherwise sit. Sized to
   match the neighbouring .icon-tile--sm so rows stay aligned, with the mark
   filling as much of the tile as it can. */
.logo-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  flex: none;
}
.logo-tile img { width: 46px; height: auto; }

/* On dark sections the tile goes glass rather than white, for the same reason
   as .accred — a white square would fight the navy. */
.section--navy .logo-tile {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
}

.socials { display: flex; gap: .55rem; margin-top: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .48);
}
.footer-bottom ul { display: flex; gap: 1.35rem; flex-wrap: wrap; }

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.9rem);
  bottom: clamp(1rem, 3vw, 1.9rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background-color .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-500); }

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to `.js`, which an inline script in <head> adds. Without JavaScript —
   or if main.js fails to load — the content simply stays visible instead of
   being stranded at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: 2rem; }
.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;
}

/* --------------------------------------------------------------------------
   25. Inner-page components
   -------------------------------------------------------------------------- */

/* Alternating service blocks -------------------------------------------- */
.svc-block { scroll-margin-top: calc(var(--header-h) + 40px); }
.svc-block + .svc-block { margin-top: clamp(3.25rem, 6vw, 5.5rem); }
.svc-block:nth-child(even) .svc-block__visual { order: -1; }

.svc-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #fff;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background:
    radial-gradient(520px 260px at 82% 6%, rgba(24, 166, 230, .34), transparent 62%),
    linear-gradient(145deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--sh-lg);
}
.svc-visual--orange {
  background:
    radial-gradient(520px 260px at 82% 6%, rgba(243, 129, 32, .38), transparent 62%),
    linear-gradient(145deg, var(--navy-800), var(--navy-900));
}
.svc-visual::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}
.svc-visual__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.svc-visual__icon .icon { width: 34px; height: 34px; stroke-width: 1.5; }

.svc-visual__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.5rem;
}
.svc-visual__stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.svc-visual__stats span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .62); }

/* Spec table ------------------------------------------------------------- */
.spec {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--n-0);
  box-shadow: var(--sh-sm);
}
.spec__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: .95rem 1.3rem;
  font-size: var(--fs-sm);
}
.spec__row + .spec__row { border-top: 1px solid var(--border-soft); }
.spec__row:nth-child(odd) { background: var(--n-25); }
.spec__row dt { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); }
.spec__row dd { margin: 0; }

/* Value cards (about) ---------------------------------------------------- */
.value-card { position: relative; padding-left: 0; }
.value-card__mark {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--orange-500), var(--sky-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .8rem;
}

/* Contact quick cards ---------------------------------------------------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.6rem;
  background: var(--n-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.contact-card h4 { margin: .35rem 0 0; }
.contact-card p, .contact-card a { font-size: var(--fs-sm); margin: 0; }
.contact-card small { font-size: var(--fs-xs); color: var(--text-muted); }

/* Portal capability rows ------------------------------------------------- */
.cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.35rem 0;
}
.cap + .cap { border-top: 1px solid var(--border); }
.cap h4 { margin-bottom: .25rem; }
.cap p { font-size: var(--fs-sm); margin: 0; }

/* Device showcase -------------------------------------------------------- */
.showcase {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--n-0);
  box-shadow: var(--sh-xl);
}
.showcase img { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }

  /* Mobile navigation drawer.
     `backdrop-filter` makes an element a containing block for its fixed-position
     descendants, which would trap the drawer inside the header's own box. Drop
     the blur here (and paint the header solid instead) so the drawer can anchor
     to the viewport. */
  .site-header,
  .site-header.is-stuck {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--n-0);
  }

  .nav__toggle { display: grid; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 1.6rem) 1.5rem 2rem;
    background: var(--n-0);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 60px -30px rgba(18, 19, 65, .5);
    transform: translateX(105%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav__menu.is-open { transform: translateX(0); }

  .nav__link {
    padding: 1rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--orange-800); }

  .nav__menu .btn { display: inline-flex; margin-top: 1.6rem; }
  .nav__actions .btn--nav-cta { display: none; }

  /* Layout collapse */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 620px; margin-inline: auto; width: 100%; }
  .float-card--a { left: 4px; }
  .float-card--b { right: 4px; }

  .split,
  .split--wide-left,
  .split--wide-right { grid-template-columns: 1fr; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .svc-block:nth-child(even) .svc-block__visual { order: 0; }
  .svc-visual { min-height: 0; }
}

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; }
  .topbar__tag { display: none; }
  .topbar__list { gap: 1.1rem; justify-content: center; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .trust { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .portal-shots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom ul { justify-content: center; }

  .hero__proof { gap: 1.2rem 1.8rem; }
  .hero__proof-item strong { font-size: 1.35rem; }

  .lane { grid-template-columns: 1fr auto 1fr; row-gap: .7rem; }
  .lane__mode { grid-column: 1 / -1; justify-self: start; }

  .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn-row .btn { flex: 1 1 auto; }

  .portal-video__play { width: 66px; height: 66px; }
  .portal-video__play .icon { width: 24px; height: 24px; }
  .portal-video__play::before,
  .portal-video__play::after { width: 66px; height: 66px; }

  .spec__row { grid-template-columns: 1fr; gap: .2rem; }
  .svc-visual__stats { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .float-card { padding: .65rem .85rem; }
  .float-card strong { font-size: .84rem; }
}

/* --------------------------------------------------------------------------
   27. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .to-top, .portal-video, .site-footer { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1.5rem; }
}
