/* ==========================================================================
   Eazy Trans, LLC — Design System
   High-end bulk freight brokerage / motor carrier
   Palette: deep navy/charcoal + steel gray, single sparing accent (muted gold)
   Type:    Barlow Condensed (display) + Inter (body)
   Author:  Brand build — production-ready, developer-friendly
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Design tokens (CSS custom properties)
   2.  Reset & base
   3.  Typography
   4.  Layout primitives (container, grid, section)
   5.  Header / navigation
   6.  Footer
   7.  Buttons & links
   8.  Hero
   9.  Cards & content components
   10. Stats band / trust bar / logo strip
   11. Forms (marketing + multi-step applications)
   12. Motion (scroll reveal)
   13. Utilities
   14. Responsive breakpoints
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
  /* Core palette */
  --navy-900: #0b1420;   /* near-black navy — hero base, footer */
  --navy-800: #10202f;
  --navy-700: #15293b;   /* primary dark surface */
  --charcoal: #1c1c20;
  --steel-600: #3a4a5a;
  --steel-500: #52657a;  /* steel gray */
  --steel-400: #8394a6;
  --steel-300: #aab7c4;
  --steel-200: #d4dce4;
  --steel-100: #eef2f6;  /* light section background */
  --paper:     #f7f9fb;
  --white:     #ffffff;

  /* Single sparing accent — muted gold.
     accent-600/700 are tuned to pass WCAG AA (4.5:1) as TEXT on white/steel-100/paper —
     the original #b1861f only hit 3.3:1 on white, which failed for body-size links/labels. */
  --accent:      #c8992e;
  --accent-600:  #85661f;  /* text/links/labels on light surfaces — 5.4:1 on white */
  --accent-700:  #6a531a;  /* hover/active state for the above — 6.6:1 on white */
  --accent-300:  #e3c877;  /* light gold for text on dark navy surfaces only — 11:1 */

  /* Safety-orange available as alternate accent (used minimally).
     Darkened from #d0621f 2026-08-24: this is not decorative, it is the
     colour of every validation message, the required-field asterisk, the
     "Required before hire" tags and the submit-failure note — all of them
     small text, all of them the moment an applicant most needs to read
     something. #d0621f was 3.85:1 on white and 3.43:1 on --steel-100,
     under the 4.5:1 WCAG 1.4.3 needs. Now 5.10 / 4.83 / 4.53. */
  --safety:      #b1531a;

  /* Semantic */
  --text-strong: var(--navy-900);
  --text-body:   #35424f;
  --text-muted:  var(--steel-500);
  --text-invert: #eaf0f6;
  /* For text that is meant to recede but is still text: placeholders and
     the credentials strip. --steel-400 was being used for both at 3.11:1,
     which fails 1.4.3 — a placeholder is text and is often the only hint
     a field gives about its format. 5.14:1 on white, 4.56:1 on
     --steel-100, still visibly lighter than --text-body. */
  --text-subtle: #626f7d;
  /* Boundary of an interactive control (input, select, textarea, radio
     card, upload dropzone). WCAG 1.4.11 wants 3:1 for these and
     --steel-200 gave 1.39:1 — the edge of every form field on the site was
     effectively invisible to a low-vision applicant. 3.33:1 on white.
     Deliberately NOT --line: that one is decorative rules and dividers,
     which 1.4.11 exempts, and darkening it would coarsen the whole page. */
  --field-border: #828e9c;
  --line:        rgba(19, 38, 56, 0.12);
  --line-invert: rgba(255, 255, 255, 0.14);

  /* Type scale (fluid) */
  --fs-display: clamp(3rem, 7vw, 6.5rem);
  --fs-h1:      clamp(2.4rem, 5vw, 4.25rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 3rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --fs-h4:      1.25rem;
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing scale — strict 8px rhythm (8/16/24/32/48/64/96) */
  --sp-1: 0.5rem;   /* 8px  */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 3rem;     /* 48px */
  --sp-6: 4rem;     /* 64px */
  --sp-7: 6rem;     /* 96px */

  --maxw: 1240px;
  --maxw-narrow: 880px;

  --radius: 3px;      /* restrained — no pill everything */
  --radius-lg: 6px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 32, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(11, 20, 32, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(11, 20, 32, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 76px;

  /* Film-grain texture — tiled SVG noise, opacity baked in. Applied to the
     hero overlay and dark bands so the photography reads cinematic. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");

  /* One photographic grade for every photo on the site, so mixed-source
     photography reads as a single commissioned shoot. */
  --photo-grade: contrast(1.04) saturate(0.92) brightness(0.99);
}

/* 2. RESET & BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }

/* Brand selection + desktop scrollbar — small signals of intent */
::selection { background: var(--navy-900); color: var(--accent-300); }
@media (min-width: 900px) {
  html { scrollbar-width: thin; scrollbar-color: var(--steel-500) var(--steel-100); }
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: var(--steel-100); }
  ::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 6px; border: 3px solid var(--steel-100); }
  ::-webkit-scrollbar-thumb:hover { background: var(--navy-800); }
}

/* 3. TYPOGRAPHY ========================================================== */
h1, h2, h3, h4, h5, .display {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--fs-h1); line-height: 1.03; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.08; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }

p { margin: 0 0 1.15rem; max-width: 68ch; }

a { color: var(--accent-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-700); }
a:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 2px; border-radius: 1px; }

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

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 0 0 var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--invert { color: var(--accent-300); }
.eyebrow--center { justify-content: center; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.muted { color: var(--text-muted); }

/* Section intro block */
.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head--sm h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

/* 4. LAYOUT PRIMITIVES =================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: var(--sp-7) 0; position: relative; }
.section--tight { padding: var(--sp-6) 0; }
.section--dark { background: var(--navy-900); background-image: var(--grain); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(234, 240, 246, 0.82); }
.section--steel { background: var(--steel-100); }
.section--paper { background: var(--paper); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.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: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.25fr 0.75fr; }

/* 5. HEADER / NAV ======================================================== */
.topbar {
  background: var(--navy-900);
  color: var(--text-invert);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-invert);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 40px; padding: 0.35rem clamp(1.25rem, 4vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.topbar a { color: var(--text-invert); }
.topbar a:hover { color: var(--accent-300); }
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(234,240,246,0.75); }
.topbar__item strong { color: var(--white); font-weight: 600; }
.topbar .badge { color: var(--accent-300); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; }

.lang-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding-left: 1.1rem; margin-left: 0.1rem; border-left: 1px solid var(--line-invert); }
.lang-flag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.35rem; border-radius: 4px; opacity: 0.55; transition: opacity 0.15s ease, background 0.15s ease; }
.lang-flag:hover { opacity: 0.9; color: var(--text-invert); }
.lang-flag:focus-visible { opacity: 1; outline: 2px solid var(--accent-300); outline-offset: 2px; }
.lang-flag.is-active { opacity: 1; background: rgba(234,240,246,0.12); }
.lang-flag__icon { display: inline-flex; line-height: 0; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.lang-flag__icon svg { display: block; }
.lang-flag__label { font-weight: 700; font-size: 0.68rem; letter-spacing: 0.04em; }
@media (max-width: 720px) { .lang-flag__label { display: none; } .lang-toggle { padding-left: 0.75rem; margin-left: 0; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 20, 32, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-invert);
  transition: background 0.3s var(--ease);
}
.site-header.is-solid { background: var(--navy-900); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent-300);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; color: var(--white); text-transform: uppercase; }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--steel-300); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: rgba(234, 240, 246, 0.82);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.6rem 0.85rem; border-radius: var(--radius);
  position: relative;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:focus-visible { color: var(--white); outline: 2px solid var(--accent-300); outline-offset: -2px; }
.nav__links a.is-active { color: var(--white); }
/* Animated underline — scales in from the left on hover and for the active page */
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.75rem; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--white);
}
.nav__toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.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); }

/* 6. FOOTER ============================================================== */
.site-footer { background: var(--navy-900); color: var(--text-invert); padding-top: var(--sp-6); }
.site-footer a { color: rgba(234, 240, 246, 0.72); }
.site-footer a:hover { color: var(--accent-300); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: var(--sp-5); }
.footer__col h5 { font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 1.1rem; font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.6rem; font-size: 0.94rem; }
.footer__brand .brand__name { font-size: 1.7rem; }
.footer__desc { color: rgba(234, 240, 246, 0.6); font-size: 0.92rem; max-width: 34ch; margin-top: 1rem; }
.footer__contact { font-size: 0.94rem; line-height: 1.9; color: rgba(234,240,246,0.8); }
.footer__contact strong { color: var(--white); }
.footer__block { margin-top: 0.6rem; }
.footer__phone { font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; color: var(--white); letter-spacing: 0.01em; display: block; margin-bottom: 0.5rem; }
.footer__eoe {
  border-top: 1px solid var(--line-invert);
  border-bottom: 1px solid var(--line-invert);
  padding: 1.4rem 0; margin: 0;
  font-size: 0.85rem; color: rgba(234,240,246,0.62);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer__eoe .tag { color: var(--accent-300); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.6rem 0 2.5rem; font-size: 0.82rem; color: rgba(234,240,246,0.5); }
.footer__legal a { color: rgba(234,240,246,0.5); }
.footer__watermark { text-align: center; padding: 0 0 1.6rem; font-size: 0.74rem; color: rgba(234,240,246,0.35); }
.footer__watermark a { color: rgba(234,240,246,0.5); }
.footer__watermark a:hover { color: var(--accent-300); }

/* 7. BUTTONS ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 3px; }

.btn--accent { background: var(--accent); color: #1a1206; border-color: var(--accent); box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--accent-300); color: #1a1206; }
.btn--solid { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--solid:hover { background: var(--steel-100); color: var(--navy-900); }
.btn--dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--steel-300); }
.btn--outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--navy-900);
}
.arrow-link .arw { transition: transform 0.25s var(--ease); }
.arrow-link:hover { color: var(--accent-600); }
.arrow-link:hover .arw { transform: translateX(5px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* 8. HERO ================================================================ */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero--page { min-height: 60vh; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-grade);
  /* Slow one-time push-in; reduced-motion collapses it to the (static) end frame */
  animation: heroScale 14s var(--ease) 0.3s forwards;
}
@keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.06); } }

/* Tuned against the real hero photo: dark enough for white text on the lower
   left, light enough that the equipment still reads on the right. If the hero
   image is ever swapped for a brighter one, re-check contrast before shipping. */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    var(--grain),
    linear-gradient(90deg, rgba(7,13,20,0.78) 0%, rgba(7,13,20,0.42) 45%, rgba(7,13,20,0.10) 100%),
    linear-gradient(0deg, rgba(7,13,20,0.88) 0%, rgba(7,13,20,0.06) 42%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5.5rem); }
.hero__content { max-width: 860px; }
.hero__title { color: var(--white); font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 1.5rem; text-wrap: balance; }
.hero__title .accent { color: var(--accent-300); }

/* Hand-drawn underline on the hero keyword — draws in once after the reveal */
.u-mark { position: relative; display: inline-block; }
.u-mark__svg {
  position: absolute; left: 0; bottom: -0.1em;
  width: 100%; height: 0.13em; color: var(--accent);
  overflow: visible; pointer-events: none;
}
.u-mark__svg path { stroke-dasharray: 230; stroke-dashoffset: 230; animation: drawU 0.9s var(--ease) 1.15s forwards; }
@keyframes drawU { to { stroke-dashoffset: 0; } }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: rgba(255,255,255,0.86); max-width: 60ch; margin-bottom: 2.25rem; line-height: 1.55; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.18); }
.hero__meta .item .k { font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; color: var(--white); line-height: 1; }
.hero__meta .item .v { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 0.35rem; }
/* Regulatory wordmark in the meta row — a plate, not a fake numeral */
.hero__meta .item .k--badge {
  font-size: 1.35rem; letter-spacing: 0.08em;
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius);
  padding: 0.42rem 0.85rem; margin-top: 0.2rem;
  color: var(--accent-300);
}

/* Scroll cue — static (nothing loops), fades on first scroll */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  pointer-events: none; transition: opacity 0.5s var(--ease);
}
.scroll-cue::after { content: ""; width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,0.55), transparent); }
.scroll-cue.is-hidden { opacity: 0; }
@media (max-width: 720px) { .scroll-cue { display: none; } }

.page-hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
/* Holds contrast for the lead paragraph, which runs further right than the h1
   and would otherwise sit over a sunlit tanker. */
.page-hero__overlay { position: absolute; inset: 0; background: var(--grain), linear-gradient(90deg, rgba(7,13,20,0.90), rgba(7,13,20,0.68) 55%, rgba(7,13,20,0.45)); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem,4vw,3rem) clamp(3.5rem, 8vh, 5rem); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,0.82); max-width: 62ch; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--accent-300); }

/* 9. CARDS & CONTENT ===================================================== */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-200); }
.card__num { font-family: "Barlow Condensed", sans-serif; font-size: 1rem; letter-spacing: 0.1em; color: var(--accent-600); font-weight: 600; }
.card__title { margin: 0.9rem 0 0.6rem; font-size: 1.35rem; }
.card p { font-size: var(--fs-sm); color: var(--text-body); margin-bottom: 1.2rem; }
.card--dark { background: var(--navy-800); background-image: var(--grain); border-color: var(--line-invert); }
.card--dark .card__title, .card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: rgba(234,240,246,0.72); }

/* Audience CTA card (was inline-styled) */
.card--cta { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 320px; }
.card--cta h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* Contact page — application routes replace the removed general-inquiry form.
   The whole card is the link; neutralize the global gold link color inside. */
.contact-apply { display: grid; gap: 1.25rem; margin: 1.75rem 0; }
.contact-apply__card, .contact-apply__card:hover { color: inherit; text-decoration: none; }
.contact-apply .card--cta { min-height: 0; }
.contact-intro { margin-bottom: 1.5rem; }
.contact-note { font-size: var(--fs-sm); }
.contact-note a { font-weight: 600; }
.contact-phone { color: var(--navy-900); font-size: 2.4rem; }
a.contact-phone:hover { color: var(--accent-600); }
.card-stack { display: grid; gap: 1.5rem; align-content: start; }
.section--flush-top { padding-top: 0; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }

/* Service card with top rule + index */
.svc-card { position: relative; padding-top: 2rem; border-top: 2px solid var(--navy-900); }
.svc-card .idx { position: absolute; top: -0.1rem; right: 0; font-family: "Barlow Condensed", sans-serif; font-size: 3.4rem; line-height: 1; color: var(--steel-200); transition: color 0.25s var(--ease); }
.svc-card h3 { margin-bottom: 0.6rem; }

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list--spaced { margin-top: 1.5rem; }
.feature-list li { position: relative; padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 12px; height: 2px; background: var(--accent); }
.section--dark .feature-list li { border-color: var(--line-invert); color: rgba(234,240,246,0.85); }

/* Equipment / spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 1.1rem 1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
.spec-table th { font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.spec-table td strong { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.15rem; }
/* Two-audience comparison table (homepage). Stacks on narrow screens: the
   column headers are clipped and each cell reprints its own via data-col,
   because a three-column table at 390px is unreadable. Keep data-col in sync
   with <thead> in BOTH index.html and index-es.html. */
.spec-table--compare th[scope="row"] { white-space: nowrap; }
@media (max-width: 760px) {
  .spec-table--compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .spec-table--compare tr { display: block; border-bottom: 1px solid var(--line); }
  .spec-table--compare tr:last-child { border-bottom: 0; }
  .spec-table--compare th, .spec-table--compare td { display: block; border-bottom: 0; padding: 0.3rem 1rem; }
  .spec-table--compare th[scope="row"] { padding-top: 1.2rem; white-space: normal; }
  .spec-table--compare td::before { content: attr(data-col); display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 0.15rem; }
  .spec-table--compare td:last-child { padding-bottom: 1.2rem; }
}

/* Real photography. Same geometry as .img-ph, but holding an actual <img>.
   Source photos are 4:3, so aspect-ratio matches and nothing is cropped. */
.img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); }
.img-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  filter: var(--photo-grade);
  transition: transform 0.6s var(--ease);
}
/* Layered edge: hairline gold rule inside, offset steel rule outside (outlines
   are not clipped by overflow, so the offset survives the crop). */
.img-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(200, 153, 46, 0.28);
  pointer-events: none; z-index: 2;
}
.img-frame:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .img-frame { outline: 1px solid var(--steel-200); outline-offset: 8px; }
}
/* Grid-bleed: the split photo pushes past the container padding on desktop */
@media (min-width: 1080px) {
  .split__media--bleed { margin-right: calc(clamp(1.25rem, 4vw, 3rem) * -1); }
}
/* Inline service-area map (about.html). Inline rather than an <img> so it
   inherits the page font and the brand colours stay in one place. */
.img-frame .tx-map { display: block; width: 100%; height: auto; }
.img-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 0.9rem;
  background: linear-gradient(0deg, rgba(7,13,20,0.82), transparent);
  color: rgba(255,255,255,0.82); font-size: 0.78rem; letter-spacing: 0.06em;
}

/* Quote / testimonial */
.quote { border-left: 3px solid var(--accent); padding-left: 2rem; }
.quote blockquote { font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; color: var(--text-strong); margin: 0 0 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.section--dark .quote blockquote { color: var(--white); }
.quote__cta { margin-top: 1rem; }

/* Brand manifesto variant — a standard we state, not a testimonial we fake */
.quote--manifesto { position: relative; }
.quote--manifesto::before {
  content: "\201C";
  position: absolute; top: -3.25rem; left: -0.9rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 9rem; line-height: 1;
  color: rgba(11, 20, 32, 0.06);
  pointer-events: none; user-select: none;
}
.section--dark .quote--manifesto::before { color: rgba(255, 255, 255, 0.07); }

/* Centered flex wrapper (was inline-styled) */
.split__center { display: flex; align-items: center; }

/* Value / step list */
.numbered { counter-reset: n; display: grid; gap: 1.5rem; }
.numbered .item { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.numbered .item::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; color: var(--accent-600); font-weight: 700; }
.section--dark .numbered .item { border-color: var(--line-invert); }

/* 10. STATS BAND / TRUST BAR / LOGO STRIP ================================ */
.stats-band { background: var(--navy-900); background-image: var(--grain); color: var(--white); }
.stats-band .grid-4 { gap: 0; }
.stat { padding: clamp(2rem,4vw,3.5rem) clamp(1.25rem,3vw,2.5rem); border-right: 1px solid var(--line-invert); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 0.95; color: var(--white); font-variant-numeric: tabular-nums; }
.stat .num .accent { color: var(--accent-300); }

.stat .label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.75rem; }
.stat .sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.4rem; }

/* Credentials strip — engraved-plate lockups */
.cred-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.cred {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1rem 1.3rem; text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cred__top { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-subtle); }
.cred__main { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.05; letter-spacing: 0.03em; text-transform: uppercase; color: var(--navy-700); }
.cred__rule { width: 26px; height: 1px; background: var(--accent); margin: 0.2rem 0 0.1rem; }
.cred__sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-500); }

/* Full-bleed closing CTA band — photo, tuned scrim, grain */
.cta-band { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-grade); }
/* Uniform dark scrim (0.72–0.85) — centered white text stays >= 4.5:1 everywhere */
.cta-band__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    var(--grain),
    linear-gradient(0deg, rgba(7, 13, 20, 0.85) 0%, rgba(7, 13, 20, 0.72) 55%, rgba(7, 13, 20, 0.82) 100%);
}
.cta-band__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; text-align: center; padding: clamp(4.5rem, 11vh, 7.5rem) clamp(1.25rem, 4vw, 3rem); }
.cta-band h2 { color: var(--white); font-size: clamp(2.4rem, 4.5vw, 4rem); max-width: 20ch; margin: 0 auto 1.25rem; }
.cta-band .lead { color: rgba(255, 255, 255, 0.85); max-width: 56ch; margin: 0 auto 2.25rem; }
/* Signature hairline where the band meets the page */
.cta-band::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 2px; background: var(--accent); z-index: 2; }
.btn-row--center { justify-content: center; }

/* 11. FORMS ============================================================== */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; color: var(--text-body); }
.form-head { padding: clamp(1.5rem,3vw,2.25rem) clamp(1.5rem,3vw,2.5rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.form-body { padding: clamp(1.5rem,3vw,2.5rem); }

/* The form card is always a LIGHT surface, even when a page places it inside
   a .section--dark (e.g. the quote form on services.html). Without this, the
   dark section's white-heading rule bleeds in and headings/paragraphs go
   white-on-white/near-invisible inside the card. */
.section--dark .form-wrap h1, .section--dark .form-wrap h2,
.section--dark .form-wrap h3, .section--dark .form-wrap h4 { color: var(--text-strong); }
.section--dark .form-wrap p { color: var(--text-body); }

/* Progress / stepper */
.stepper { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.stepper__item { flex: 1 1 auto; min-width: 24px; }
.stepper__bar { height: 4px; border-radius: 2px; background: var(--steel-200); overflow: hidden; }
/* The filled segment has to be distinguishable from the empty track — 1.4.11
   treats a progress indicator as a graphical object. --accent on --steel-200
   was 1.88:1; --accent-600 on the same track is 3.87:1. The step number is
   also text and is now announced, so this bar is belt-and-braces either way,
   but it is the only at-a-glance progress cue and should read at a glance. */
.stepper__bar span { display: block; height: 100%; width: 0; background: var(--accent-600); transition: width 0.4s var(--ease); }
.stepper__item.is-done .stepper__bar span,
.stepper__item.is-active .stepper__bar span { width: 100%; }
.step-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.step-meta .count { font-family: "Barlow Condensed", sans-serif; font-size: 1rem; letter-spacing: 0.08em; color: var(--accent-600); }

.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.step__title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.step__intro { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 1.75rem; max-width: 60ch; }

.field-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; grid-column: span 12; }
.field.col-2 { grid-column: span 2; }
.field.col-3 { grid-column: span 3; }
.field.col-4 { grid-column: span 4; }
.field.col-5 { grid-column: span 5; }
.field.col-6 { grid-column: span 6; }
.field.col-8 { grid-column: span 8; }

label, .field > .lbl { font-size: 0.82rem; font-weight: 600; color: var(--text-strong); letter-spacing: 0.01em; }
label .req { color: var(--safety); margin-left: 2px; }
.field .hint { font-size: 0.76rem; color: var(--text-muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], input[type="url"], select, textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--text-strong);
  background: var(--white); border: 1.5px solid var(--field-border); border-radius: var(--radius);
  padding: 0.72rem 0.85rem; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
/* The focus indicator itself has to clear 3:1 (1.4.11). It used to be a
   --accent border at 2.61:1 plus an 18%-alpha glow that contributed almost
   nothing — visible to most people, not to the ones the criterion is for.
   A real outline in --accent-600 (5.36:1) sits on top of whatever the
   border is doing, so it also survives the error state. */
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-600); outline-offset: 1px;
  border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(200,153,46,0.18);
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); opacity: 1; }
input:disabled, select:disabled { background: var(--steel-100); color: var(--text-muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352657a' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--safety); }
.field .error-msg { font-size: 0.76rem; color: var(--safety); font-weight: 500; display: none; }
.field.has-error .error-msg { display: block; }

/* A required consent checkbox sits inside a <label class="checkbox-line"> with
   no .field ancestor, so validateStep's error class landed on an element with
   no styling — the applicant was scrolled to a box that looked perfectly fine
   and told nothing. Same for a .choice-row carrying data-required-group. */
.checkbox-line.has-error, .choice-row.has-error {
  border-left: 3px solid var(--safety);
  padding-left: 0.8rem; margin-left: -0.8rem;
}
.checkbox-line.has-error { color: var(--safety); }
.checkbox-line.has-error input { outline: 2px solid var(--safety); outline-offset: 2px; }
.choice-row.has-error + .error-msg, .choice-row.has-error ~ .error-msg { display: block; }

/* Radio / checkbox groups */
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  /* A radio card is an interactive control, so 1.4.11 wants a 3:1 boundary;
     --steel-200 gave 1.39:1. */
  border: 1.5px solid var(--field-border); border-radius: var(--radius);
  padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 500; color: var(--text-body);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.choice input { width: auto; margin: 0; accent-color: var(--accent-600); }
/* Selected state, so the indicator itself has to clear 3:1 — --accent is only
   2.61:1 on white. The native radio dot is already --accent-600; match it. */
.choice:has(input:checked) { border-color: var(--accent-600); background: rgba(200,153,46,0.08); color: var(--text-strong); }
.choice:hover { border-color: var(--accent-600); }
.checkbox-line { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; font-weight: 400; color: var(--text-body); line-height: 1.55; cursor: pointer; }
.checkbox-line input { width: auto; margin-top: 0.25rem; accent-color: var(--accent-600); flex: 0 0 auto; }

/* Repeatable rows */
.repeat { display: grid; gap: 1rem; }
.repeat__row { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.35rem 1rem; background: var(--paper); }
.repeat__row .row-tag { position: absolute; top: -0.7rem; left: 1rem; background: var(--navy-900); color: #fff; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 2px; }
.repeat__remove { position: absolute; top: 0.8rem; right: 0.8rem; background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.repeat__remove:hover { color: var(--safety); }
.btn-add { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1.5px dashed var(--steel-300); color: var(--navy-900); font-weight: 600; font-size: 0.88rem; padding: 0.7rem 1.1rem; border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn-add:hover { border-color: var(--accent); color: var(--accent-600); }

/* Section-skip ("none") toggle */
.skip-toggle { background: var(--steel-100); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; }

/* Navigation buttons */
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-nav .spacer { flex: 1; }
.save-note { font-size: 0.76rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.save-note .dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5f; display: inline-block; }

/* Privacy / secure notice */
.secure-note {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: rgba(19,41,59,0.04); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.8rem; color: var(--text-body); line-height: 1.5; margin-top: 0.5rem;
}
.secure-note svg { flex: 0 0 auto; color: var(--accent-600); margin-top: 2px; }

/* Legal agreement viewer */
/* tabindex="0" in the markup makes this scrollable region reachable from
   the keyboard — without it, a keyboard-only applicant could not scroll to
   the end of the agreement, so the gate never released the required
   checkbox and the owner-operator application could not be submitted at
   all. Focusable means it needs a visible focus indicator of its own. */
.legal-doc:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 2px; }
.legal-doc {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--field-border); border-radius: var(--radius);
  padding: 1.5rem; background: var(--paper); font-size: 0.86rem; line-height: 1.7; color: var(--text-body); margin-bottom: 1.25rem;
}
.legal-doc h4 { font-size: 1rem; margin-top: 1.2rem; }
.legal-doc h4:first-child { margin-top: 0; }
.legal-doc p { font-size: 0.86rem; max-width: none; }
.legal-scroll-hint { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* Signature capture */
.sign-field { border: 1.5px solid var(--field-border); border-radius: var(--radius); background: repeating-linear-gradient(0deg, transparent, transparent 34px, var(--steel-100) 34px, var(--steel-100) 35px); }
.sign-field input { border: 0; background: transparent; font-family: "Barlow Condensed", cursive, sans-serif; font-size: 1.6rem; color: var(--navy-900); letter-spacing: 0.02em; }
.sign-field input:focus { box-shadow: none; }

/* File upload */
.upload { border: 1.5px dashed var(--field-border); border-radius: var(--radius-lg); padding: 1.25rem; background: var(--paper); transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.upload.is-drag { border-color: var(--accent); background: rgba(200,153,46,0.06); }
.upload__label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.upload__meta { display: flex; flex-direction: column; gap: 0.2rem; }
.upload__meta .name { font-weight: 600; font-size: 0.92rem; color: var(--text-strong); }
.upload__meta .req-tag { font-size: 0.72rem; color: var(--safety); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.upload input[type="file"] { display: none; }
.upload__btn { font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem; border: 1.5px solid var(--steel-300); border-radius: var(--radius); cursor: pointer; color: var(--navy-900); white-space: nowrap; background: var(--white); }
.upload__btn:hover { border-color: var(--accent); color: var(--accent-600); }
.upload__file { margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-body); display: none; align-items: center; gap: 0.5rem; }
.upload.has-file .upload__file { display: flex; }
.upload__file .ok { color: #2f9e5f; }

/* Review summary */
.review-grid { display: grid; gap: 0.5rem; }
.review-grid .r { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.review-grid .r .k { color: var(--text-muted); }

/* Official downloadable document (real PDF application) */
.official-doc { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); background: var(--white); padding: clamp(1.4rem,2.5vw,1.9rem); margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.official-doc__row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.official-doc__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius); background: rgba(200,153,46,0.12); color: var(--accent-600); display: grid; place-items: center; }
.official-doc__body { flex: 1 1 260px; }
/* Was an <h4> sitting directly under the page's <h2>, skipping a level and
   failing 1.3.1. Promoted to <h3> 2026-08-24 and given a class so the visual
   size stays exactly where it was — heading LEVEL is structure, heading size
   is presentation, and only the first of those had to change. */
.official-doc__body h4,
.official-doc__body .official-doc__title { margin: 0 0 0.25rem; font-size: 1.1rem; }
.official-doc__body p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.official-doc__meta { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-500); margin-top: 0.35rem; }
.official-doc__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.official-doc details { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.official-doc summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--navy-900); list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.official-doc summary::-webkit-details-marker { display: none; }
.official-doc summary::before { content: "\25B8"; color: var(--accent-600); transition: transform 0.2s var(--ease); display: inline-block; }
.official-doc details[open] summary::before { transform: rotate(90deg); }
.official-doc__viewer { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--steel-100); }
.official-doc__viewer iframe { width: 100%; height: 560px; border: 0; display: block; }
.divider-or { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Success state */
.form-success { text-align: center; padding: clamp(2.5rem,6vw,4.5rem) 2rem; display: none; }
.form-success.is-visible { display: block; animation: stepIn 0.5s var(--ease); }
.form-success .icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(47,158,95,0.12); color: #2f9e5f; display: grid; place-items: center; margin: 0 auto 1.5rem; }

/* Submission reference. Shown only on a real submission (the Worker returns the
   id); stays hidden in demo mode and if the reply ever arrives without one. */
.submission-ref {
  max-width: 34ch; margin: 0 auto 1.25rem; padding: 0.9rem 1.25rem;
  border: 1px dashed var(--steel-300); border-radius: var(--radius);
  background: var(--steel-100); font-size: 0.9rem; color: var(--text-body);
}
.submission-ref strong {
  display: block; margin: 0.35rem 0 0.5rem;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.9rem; line-height: 1;
  letter-spacing: 0.12em; color: var(--text-strong);
}
.submission-ref span { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* 12. MOTION ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* 13. UTILITIES ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.measure-center { max-width: 56ch; margin-left: auto; margin-right: auto; }
.mb-btn-gap { margin-bottom: 2rem; }

/* Inline-style conversion utilities (2026-08-05) — every style="" attribute on
   the interior pages was converted to one of these. Prefer these over new
   inline styles. */
.mt-05 { margin-top: 0.5rem; }
.mt-1  { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-3  { margin-top: 3rem; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-15 { margin-bottom: 1.5rem; }
.m-0   { margin: 0; }
.m-stack { margin: 1.25rem 0 1.5rem; }
.m-15-1  { margin: 1.5rem 0 1rem; }
.gap-1 { gap: 1rem; }
.jc-center { justify-content: center; }
.ta-right { text-align: right; }
.ib-left { display: inline-block; text-align: left; }
.fs-85  { font-size: 0.85rem; }
.fs-24r { font-size: 2.4rem; }
.txt-safety { color: var(--safety); }
.bl-accent { border-left: 3px solid var(--accent); }
.grid-gap-1 { display: grid; gap: 1rem; }
.measure-20 { max-width: 20ch; margin: 0 auto 1.5rem; }
.measure-24 { max-width: 24ch; margin: 0 auto 1.5rem; }
.measure-48 { max-width: 48ch; margin: 0 auto 1rem; }

.w-26 { width: 26%; }
.w-22 { width: 22%; }
.hint--inline { display: inline; }
.ta-tall { min-height: 160px; }
.doc-220 { max-height: 220px; margin-top: 1.5rem; }
.doc-200 { max-height: 200px; margin-top: 1.5rem; }

.form-error-note { color: var(--safety); margin-top: 1rem; font-weight: 600; }
.table-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map-embed iframe { border: 0; display: block; }

.hide { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--accent-600); border: 1px solid var(--line); border-radius: 100px; padding: 0.4rem 0.9rem; }
.section--dark .pill { color: var(--accent-300); border-color: var(--line-invert); }
.anchor { scroll-margin-top: calc(var(--nav-h) + 30px); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--navy-900); color: #fff; padding: 0.8rem 1.2rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; color: #fff; }

/* 14. RESPONSIVE ======================================================== */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-invert); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-invert); }

  /* Trust bar folds to 2x2 with a horizontal hairline */

  /* Mobile nav */
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line-invert);
    padding: 0.5rem clamp(1.25rem,4vw,3rem) 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--line-invert); font-size: 1rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}
@media (max-width: 720px) {
  .topbar__group--left { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .field-grid { gap: 1rem; }
  .field.col-2, .field.col-3, .field.col-4, .field.col-5, .field.col-6, .field.col-8, .field.col-9 { grid-column: span 12; }

  .review-grid .r { grid-template-columns: 1fr; gap: 0.15rem; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1 1 auto; }
  .hero__meta { gap: 1.25rem 2rem; }
  .hero__meta .item .k { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .stats-band .grid-4 { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; }

  /* Trust bar stacks — single hairline between rows */

  /* Keep the topbar to essentials on small phones so it never wraps to 2 lines */
  .topbar .badge, .topbar__item[href^="mailto:"] { display: none; }
  .topbar__group { gap: 0.85rem; }
  .brand__tag { display: none; }
}
