/* ==========================================================================
   PACIFIC BLACK TRANSPORT — main.css
   Cinematic monochrome luxury. Dark theme only.
   All colors come from the tokens below — no hard-coded hex elsewhere.
   v2: adds .email-fallback panel styles (mailto fallback, section 10).
   v3: adds h1.h1-long — smaller clamp for long single-word headlines.
   v4: CSS-only fixes: /partner/ headline auto-shrink; nav/footer order
       forced to Ride · Drive · Partner · Vehicles · Standards.
   v5: FIX — the current page's own nav link was jumping to first position
       (its href doesn't match the order selectors on its own page, so it
       fell back to order 0). Added [aria-current="page"] rules keyed on
       the page's body accent class so the active link keeps its slot.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --black:    #0A0A0B;
  --charcoal: #141416;
  --graphite: #1E1E21;
  --line:     #2A2A2E;
  --silver:   #A8ABB0;   /* bumped from #9EA1A6 for AA contrast on --black */
  --white:    #F5F5F3;

  --accent:   #C9CDD3;   /* default: platinum (Home / Standards / Contact) */
  --error:    #8C4A4A;   /* muted accent-red, error borders only */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --section-y: clamp(110px, 16vw, 220px);
  --ease: cubic-bezier(.25, .6, .3, 1);
}

/* Per-page micro-accent (3–5% max of any viewport) */
body.accent-champagne { --accent: #C6B49A; }  /* /ride/ */
body.accent-silver    { --accent: #B4B8BF; }  /* /vehicles/ */
body.accent-blue      { --accent: #5A6E8C; }  /* /drive/ */
body.accent-emerald   { --accent: #4E6B5C; }  /* /partner/ */

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--black); }

/* --------------------------------------------------------------------------
   3. TYPE SYSTEM
   -------------------------------------------------------------------------- */
/* Display: bold, architectural, automotive. Supporting: light, refined. */
h1, h2, h3 { font-family: var(--font-display); }

h1 {
  font-weight: 860;
  font-stretch: 112%;
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

/* Long-headline variant — for H1s containing a word longer than ~10 letters.
   The default clamp is sized for short hero words and overflows the viewport
   with long single words. Add class="h1-long" to any such H1. */
h1.h1-long {
  font-size: clamp(2.2rem, 6.4vw, 5rem);
}

/* /partner/ hero says "TRANSPORTATION CAPACITY FOR YOUR BUSINESS" —
   14 uppercase stretched letters overflow at the default size. The partner
   page carries body.accent-emerald, so the fix applies automatically.
   Remove this rule if the /partner/ headline is ever shortened. */
body.accent-emerald .hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 5rem);
}

h2 {
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h3 {
  font-weight: 650;
  font-stretch: 104%;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: .005em;
}

p { color: var(--silver); max-width: 62ch; font-weight: 400; }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--white); font-weight: 300; }

/* Utility / eyebrow type — small caps, wide tracked, deliberately quiet */
.utility, .eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--silver);
}
.eyebrow { display: block; color: var(--accent); margin-bottom: 20px; }

/* Signature element: accent rule that "draws" itself under each eyebrow.
   Motion is applied only inside the no-preference media query below. */
.eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  width: 56px;
  margin-top: 12px;
  background: var(--accent);
  transform-origin: left center;
}

.small-print {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--silver);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: var(--section-y) 0; }
section.alt { background: var(--charcoal); }

.grid-2 { display: grid; gap: 64px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.stack > * + * { margin-top: 28px; }

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--black);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 92px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Wordmark — pure HTML/CSS, no image */
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .mark {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px); font-weight: 850; font-stretch: 110%;
  letter-spacing: .2em; color: var(--white);
}
.wordmark .sub {
  font-size: clamp(9px, 1vw, 10.5px); letter-spacing: .32em;
  text-transform: uppercase; color: var(--silver); margin-top: 6px;
}

.nav-links { display: none; align-items: center; gap: 34px; }
.nav-links a.nav-item {
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  color: var(--silver);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a.nav-item:hover { color: var(--white); }
.nav-links a.nav-item[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* NAV ORDER — Ride · Drive · Partner · Vehicles · Standards.
   Reorders visually via flex `order`, no HTML edits required.
   The CTA button (.btn, also linking to /ride/) is pushed last.
   NOTE: this is a visual reorder only — DOM/tab order is unchanged.
   For a permanent fix, reorder the links in the HTML and delete this block. */
.nav-links a.nav-item[href*="ride"]      { order: 1; }
.nav-links a.nav-item[href*="drive"]     { order: 2; }
.nav-links a.nav-item[href*="partner"]   { order: 3; }
.nav-links a.nav-item[href*="vehicle"]   { order: 4; }
.nav-links a.nav-item[href*="standards"] { order: 5; }
.nav-links .btn { order: 10; }

/* v5 FIX — keep the CURRENT page's link in its fixed slot.
   On its own page, that link's href often doesn't contain the page name
   (e.g. "./" or "#"), so none of the rules above matched and it fell back
   to order 0 — appearing FIRST. The page is identified by its body accent
   class, so the active link can be pinned to its correct position: */
body.accent-champagne .nav-links a.nav-item[aria-current="page"] { order: 1; } /* Ride */
body.accent-blue      .nav-links a.nav-item[aria-current="page"] { order: 2; } /* Drive */
body.accent-emerald   .nav-links a.nav-item[aria-current="page"] { order: 3; } /* Partner */
body.accent-silver    .nav-links a.nav-item[aria-current="page"] { order: 4; } /* Vehicles */
/* Standards has no accent class — but the desktop nav contains no Home or
   Contact link, so on a no-accent page the only possible active nav link
   is Standards. Safe to pin it: */
body:not([class*="accent-"]) .nav-links a.nav-item[aria-current="page"] { order: 5; } /* Standards */

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em;
  padding: 15px 30px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--white);
  background: transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease);
  text-align: center;
}
.btn:hover { border-color: var(--accent); }
.btn-solid {
  background: var(--white); color: var(--black); border-color: var(--white);
}
.btn-solid:hover {
  box-shadow: 0 0 20px 0 rgba(245, 245, 243, .18);
  border-color: var(--accent);
}
.btn-outline { border-color: var(--silver); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile menu */
.menu-toggle {
  background: none; border: 1px solid var(--line); border-radius: 2px;
  color: var(--white); padding: 10px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--black);
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 30px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--white);
}
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { font-family: var(--font-body); margin-top: 12px; }

/* MOBILE MENU ORDER — same order as desktop nav; Home (if present)
   stays first (order 0), CTA button stays last. */
.mobile-menu a[href*="ride"]:not(.btn)  { order: 1; }
.mobile-menu a[href*="drive"]           { order: 2; }
.mobile-menu a[href*="partner"]         { order: 3; }
.mobile-menu a[href*="vehicle"]         { order: 4; }
.mobile-menu a[href*="standards"]       { order: 5; }
.mobile-menu a[href*="contact"]         { order: 6; }
.mobile-menu .btn                       { order: 10; }

/* v5 FIX — same active-link pinning for the mobile menu. The Home link
   is excluded via :not() guards on common home hrefs so it never moves. */
body.accent-champagne .mobile-menu a[aria-current="page"]:not(.btn) { order: 1; }
body.accent-blue      .mobile-menu a[aria-current="page"]:not(.btn) { order: 2; }
body.accent-emerald   .mobile-menu a[aria-current="page"]:not(.btn) { order: 3; }
body.accent-silver    .mobile-menu a[aria-current="page"]:not(.btn) { order: 4; }
body:not([class*="accent-"]) .mobile-menu
  a[aria-current="page"]:not(.btn):not([href="/"]):not([href="./"]):not([href="../"]):not([href$="index.html"]):not([href*="contact"]) { order: 5; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(64px, 10vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero.compact { min-height: 56vh; }

.hero-media {
  position: absolute; inset: -12% 0; z-index: -2;   /* bleed for parallax travel */
  will-change: transform;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  /* dark gradient scrim, bottom 40% */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
              var(--black) 0%,
              color-mix(in srgb, var(--black) 72%, transparent) 24%,
              color-mix(in srgb, var(--black) 30%, transparent) 40%,
              color-mix(in srgb, var(--black) 20%, transparent) 100%);
}
.hero .container { position: relative; }

/* Oversized background typography — drifts with scroll (JS [data-speed]) */
.bg-word {
  position: absolute; z-index: -1;
  right: 1vw; bottom: 6vh;
  font-family: var(--font-display);
  font-weight: 900; font-stretch: 120%;
  font-size: clamp(5.5rem, 14vw, 13rem);
  line-height: 1; letter-spacing: .01em;
  color: rgba(245, 245, 243, .045);  /* solid low-alpha fill — no stroke, no subpixel fringing */
  user-select: none; pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 760px) { .bg-word { display: none; } }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--white);
}
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 36px 30px;
  transition: border-color .2s var(--ease);
  display: block;
}
.card:hover { border-color: var(--accent); }
.card .utility { color: var(--accent); }
.card h3 { margin: 14px 0 10px; }
.card p { font-size: 15px; }

.card-row { display: grid; gap: 20px; }
@media (min-width: 760px) { .card-row.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .card-row.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .card-row.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.vehicle-card { padding: 0; overflow: hidden; }
.vehicle-card img {
  aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block;
  transition: transform 1.2s var(--ease);
}
.vehicle-card:hover img { transform: scale(1.045); }
.vehicle-card .vc-body { padding: 22px 22px 26px; }
.vehicle-card .model { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); margin-top: 6px; }

/* --------------------------------------------------------------------------
   8. STEPS / DEFINITION LISTS / STANDARDS
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step .utility { color: var(--accent); }
.step p { margin-top: 8px; font-size: 15px; }

.def-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.def-list > div {
  display: grid; gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .def-list > div { grid-template-columns: 280px 1fr; gap: 40px; }
}
.def-list dt { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.def-list dd { color: var(--silver); font-size: 15px; }

.tag-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tag-grid li {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 18px 20px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--silver);
}

/* --------------------------------------------------------------------------
   9. VEHICLE CLASS SECTIONS (/vehicles/)
   -------------------------------------------------------------------------- */
.class-section { display: grid; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .class-section { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; }
  .class-section.flip .class-media { order: 2; }
}
.class-media {
  overflow: hidden; border: 1px solid var(--line); border-radius: 3px;
  position: relative;
}
.class-media::after {
  /* whisper of a bottom gradient so the frame edge reads on bright photos */
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to top, rgba(5,5,6,.35), transparent);
  pointer-events: none;
}
.class-media img {
  aspect-ratio: 16/10; object-fit: cover; width: 100%; display: block;
  transition: transform 1.4s var(--ease);
}
.class-section:hover .class-media img { transform: scale(1.04); }
.class-link {
  display: inline-block; margin-top: 22px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* --------------------------------------------------------------------------
   10. FORMS (shared module)
   -------------------------------------------------------------------------- */
.form-panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(24px, 4vw, 48px);
}

.form-grid { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--silver);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--white);
  font: inherit; font-size: 16px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .error-msg {
  display: none;
  margin-top: 7px; font-size: 13px; color: var(--silver);
}
.field.invalid .error-msg { display: block; }

/* Radio cards (vehicle class picker) */
.radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card label {
  display: block; cursor: pointer;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--graphite);
  padding: 14px;
  text-transform: none; letter-spacing: 0; margin: 0;
  transition: border-color .2s var(--ease);
}
.radio-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: 2px; margin-bottom: 10px; }
.radio-card .rc-name { display: block; color: var(--white); font-size: 14px; }
.radio-card .rc-model { display: block; font-size: 11px; color: var(--silver); margin-top: 3px; }
.radio-card input:checked + label { border-color: var(--accent); }
.radio-card input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Checkbox row */
.check-row { display: flex; flex-wrap: wrap; gap: 18px; }
.check-row label {
  display: flex; align-items: center; gap: 9px;
  text-transform: none; letter-spacing: 0; margin: 0;
  color: var(--white); font-size: 15px; cursor: pointer;
}
.check-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-footer { margin-top: 28px; display: grid; gap: 16px; }
.privacy-line { font-size: 12.5px; color: var(--silver); }
.privacy-line a { border-bottom: 1px solid var(--line); }

.form-status { display: none; margin-top: 16px; font-size: 14px; color: var(--silver); }
.form-status.visible { display: block; }

/* Email fallback panel — injected by main.js when no mail app opens.
   Offers "Open in Gmail" (browser compose) + "Copy message". */
.email-fallback {
  margin-top: 20px;
  padding: 24px;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.email-fallback[hidden] { display: none; }
.email-fallback-lead {
  color: var(--white);
  font-size: 15px;
  margin: 0 0 16px;
  max-width: none;
}
.email-fallback-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.email-fallback-actions .btn { flex: 1 1 180px; }
.email-fallback-small {
  color: var(--silver);
  font-size: 12.5px;
  margin: 16px 0 0;
  max-width: none;
  overflow-wrap: anywhere;   /* long gmail address wraps cleanly on small phones */
}

.confirmation-panel {
  display: none;
  text-align: center; padding: clamp(40px, 8vw, 80px) 24px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.confirmation-panel.visible { display: block; }
.confirmation-panel h3 { margin-bottom: 14px; }
.confirmation-panel p { margin: 0 auto; }

/* Tabs (drive pathways) */
.tab-selector { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 760px) { .tab-selector { grid-template-columns: 1fr 1fr; } }
.tab-btn {
  text-align: left;
  background: var(--charcoal);
  border: 1px solid var(--line); border-radius: 3px;
  color: var(--white);
  padding: 26px 26px;
  transition: border-color .2s var(--ease);
}
.tab-btn .utility { display: block; margin-bottom: 8px; }
.tab-btn:hover { border-color: var(--accent); }
.tab-btn[aria-selected="true"] { border-color: var(--accent); }
.tab-btn[aria-selected="true"] .utility { color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --------------------------------------------------------------------------
   11. CTA BAND / STICKY MOBILE CTA
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 28px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { display: block; width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  background: var(--black);
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--silver); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--white); }

/* FOOTER ORDER — Home stays first (order 0), then
   Ride · Drive · Partner · Vehicles · Standards · Contact. */
.footer-links a[href*="ride"]      { order: 1; }
.footer-links a[href*="drive"]     { order: 2; }
.footer-links a[href*="partner"]   { order: 3; }
.footer-links a[href*="vehicle"]   { order: 4; }
.footer-links a[href*="standards"] { order: 5; }
.footer-links a[href*="contact"]   { order: 6; }

/* v5 FIX — pin the current page's footer link to its slot too.
   Home is protected by :not() guards so it always stays first. */
body.accent-champagne .footer-links a[aria-current="page"] { order: 1; }
body.accent-blue      .footer-links a[aria-current="page"] { order: 2; }
body.accent-emerald   .footer-links a[aria-current="page"] { order: 3; }
body.accent-silver    .footer-links a[aria-current="page"] { order: 4; }
body:not([class*="accent-"]) .footer-links
  a[aria-current="page"]:not([href="/"]):not([href="./"]):not([href="../"]):not([href$="index.html"]):not([href*="contact"]) { order: 5; }

.footer-heading { margin-bottom: 18px; display: block; }
.footer-legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.footer-legal p { font-size: 12px; }

/* --------------------------------------------------------------------------
   13. MOTION (opt-in only — reduced motion gets final states instantly)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {

  /* Hero slow cinematic scale: 1.0 → 1.06 over ~14s */
  .hero-media img { animation: heroScale 14s var(--ease) forwards; }
  @keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.06); } }

  /* Section entrance: fade + deep rise, once */
  .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }

  /* Vehicle photos settle from a gentle zoom while their block reveals */
  .reveal .class-media img, .reveal .vehicle-card img { transform: scale(1.07); }
  .reveal.in .class-media img, .reveal.in .vehicle-card img { transform: scale(1); }

  /* Staggered children — cards / steps / tags cascade in one-by-one */
  .card-row.reveal > *, .steps.reveal > *, .tag-grid.reveal > li, .def-list.reveal > div {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .card-row.reveal.in > *, .steps.reveal.in > *, .tag-grid.reveal.in > li, .def-list.reveal.in > div {
    opacity: 1; transform: none;
  }
  .reveal.in > *:nth-child(1) { transition-delay: .05s; }
  .reveal.in > *:nth-child(2) { transition-delay: .16s; }
  .reveal.in > *:nth-child(3) { transition-delay: .27s; }
  .reveal.in > *:nth-child(4) { transition-delay: .38s; }
  .reveal.in > *:nth-child(5) { transition-delay: .49s; }
  .reveal.in > *:nth-child(6) { transition-delay: .60s; }
  .reveal.in > *:nth-child(n+7) { transition-delay: .70s; }

  /* Signature: accent rule draws itself when heading enters viewport */
  .eyebrow::after { transform: scaleX(0); transition: transform .7s var(--ease) .15s; }
  .eyebrow.in::after { transform: scaleX(1); }

  /* Hero headline: mask reveal on load + tracking settles tight */
  .hero h1 {
    animation: heroTitle 1.3s var(--ease) both .2s;
  }
  @keyframes heroTitle {
    from { clip-path: inset(0 0 102% 0); transform: translateY(46px); letter-spacing: .05em; }
    to   { clip-path: inset(-6% 0 -12% 0); transform: none; letter-spacing: -.015em; }
  }
  .hero .hero-sub { animation: fadeRise 1s var(--ease) both .75s; }
  .hero .hero-ctas { animation: fadeRise 1s var(--ease) both .95s; }
  .hero .eyebrow { animation: fadeRise .9s var(--ease) both .1s; }
  @keyframes fadeRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  /* Section titles: wipe up from a mask, dark gray → white, tracking settles */
  section h2 {
    /* 98% (not 102%): a fully self-clipped element reports an empty intersection
       rect in Chrome, so IntersectionObserver would never fire for it. */
    clip-path: inset(0 0 98% 0);
    transform: translateY(34px);
    color: color-mix(in srgb, var(--white) 34%, var(--black));
    letter-spacing: .03em;
    transition: clip-path 1s var(--ease), transform 1s var(--ease),
                color 1.1s var(--ease) .25s, letter-spacing 1.1s var(--ease);
  }
  section h2.in {
    clip-path: inset(-8% 0 -12% 0);
    transform: none;
    color: var(--white);
    letter-spacing: -.01em;
  }

  /* Scroll progress — 1px accent line under the header (JS-driven width) */
  .scroll-progress {
    position: absolute; left: 0; bottom: -1px; height: 1px;
    width: 0; background: var(--accent); opacity: .8;
  }

  /* Hero content drifts up slightly as you scroll away (JS-driven) */
  .hero .container { will-change: transform, opacity; }
}

/* --------------------------------------------------------------------------
   14. 404
   -------------------------------------------------------------------------- */
.page-404 { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.page-404 .container { display: grid; gap: 24px; justify-items: center; }

/* /partner/: taller hero so the 3-line headline sits lower, with
   breathing room above — content is bottom-anchored via flex-end. */
body.accent-emerald .hero.compact {
  min-height: 86vh;
}


/* ---- Address autocomplete dropdown (Photon) ---- */
.field { position: relative; }
.ac-list {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 3px;
  max-height: 280px; overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.ac-list.open { display: block; }
.ac-item { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.active { background: var(--graphite); }
.ac-main { display: block; color: var(--white); font-size: 15px; }
.ac-sub  { display: block; color: var(--silver); font-size: 12.5px; margin-top: 2px; }

/* ---- flatpickr: match PBT tokens ---- */
.flatpickr-calendar { background: var(--charcoal); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.flatpickr-day.today { border-color: var(--accent); }
.flatpickr-day:hover { background: var(--graphite); border-color: var(--graphite); }

/* Flipped class sections: mirror the column widths so the photo
   always sits in the wider (1.15fr) column — all car images equal size. */
@media (min-width: 900px) {
  .class-section.flip { grid-template-columns: 1fr 1.15fr; }
}

/* Ride form vehicle-class cards: 4 equal columns spanning the full
   form width (aligned with the Date/Time columns above), equal heights. */
@media (min-width: 760px) {
  .radio-cards { grid-template-columns: repeat(4, 1fr); }
}
.radio-card { display: flex; }
.radio-card label { display: flex; flex-direction: column; width: 100%; }
.radio-card .rc-model { margin-top: auto; padding-top: 3px; }

/* Tag-grid icons — thin line icons in the page accent */
.tag-grid li { display: flex; align-items: center; gap: 14px; }
.tag-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

/* ============ CONSOLIDATED ADDITIONS (icons + card fixes) ============ */

/* Tag-grid icons (partner page) */
.tag-grid li { display: flex; align-items: center; gap: 14px; }
.tag-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
}

/* Step icons (drive page: Why PBT / What We Look For) */
.step-icon {
  display: block;
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
  margin-bottom: 14px;
}
.step:hover .step-icon, .tag-grid li:hover .tag-icon { opacity: 1; }

/* Numbered process strip (drive page, Pathway A) */
.process-strip {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 36px;
}
.process-strip .p-step { border-top: 1px solid var(--line); padding-top: 16px; }
.process-strip .p-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.process-strip .p-name { font-size: 13px; color: var(--white); }

/* Ride form: 4 equal vehicle cards, full width, equal heights */
@media (min-width: 760px) { .radio-cards { grid-template-columns: repeat(4, 1fr); } }
.radio-card { display: flex; }
.radio-card label { display: flex; flex-direction: column; width: 100%; }
.radio-card .rc-model { margin-top: auto; padding-top: 3px; }

/* Vehicles page: photo always in the wider column — equal image sizes */
@media (min-width: 900px) { .class-section.flip { grid-template-columns: 1fr 1.15fr; } }

/* Drive page: center the icon + label + text in each step */
body.accent-blue .steps .step {
  text-align: center;
}
body.accent-blue .steps .step .step-icon {
  margin-left: auto;
  margin-right: auto;
}
body.accent-blue .steps .step p {
  margin-left: auto;
  margin-right: auto;
}

.hero-media { inset: -12% 0; }
.hero-media img { object-fit: cover; object-position: center center; }

/* Centered icon steps — works on every page */
.step-centered { text-align: center; }
.step-centered .step-icon { margin-left: auto; margin-right: auto; }
.step-centered p { margin-left: auto; margin-right: auto; }

/* Card icons — Ride / Drive / Partner cards */
.card-icon {
  display: block;
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .85;
  margin-bottom: 18px;
  transition: opacity .2s var(--ease);
}
.card:hover .card-icon { opacity: 1; }

/* Centered cards — Ride / Drive / Partner */
.card-centered { text-align: center; }
.card-centered .card-icon { margin-left: auto; margin-right: auto; }
.card-centered p { margin-left: auto; margin-right: auto; }

/* ---- Floating call button ---- */
.call-fab {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: #34C759;
  color: #06210E;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  transition: opacity .35s ease, transform .35s ease, background .2s ease;

  /* hidden until JS adds .fab-ready after 10s */
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}
.call-fab-icon { width: 20px; height: 20px; fill: currentColor; }
.call-fab:hover { background: #2FB350; }

/* visible state */
.call-fab.fab-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* hidden again while scrolling — must come AFTER .fab-ready to win */
.call-fab.fab-ready.fab-hidden {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

/* "online" pulse */
@media (prefers-reduced-motion: no-preference) {
  .call-fab.fab-ready { animation: fabPulse 1.8s ease-out infinite; }
  @keyframes fabPulse {
    0%   { box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 0 rgba(52,199,89,.7); }
    70%  { box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 30px rgba(52,199,89,0); }
    100% { box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 0 rgba(52,199,89,0); }
  }
}

@media
