/* ============================================================
   FrontierFleet — design system
   Professional B2B commercial-EV lead-gen site
   Palette: deep navy + electric teal + warm white
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #07101F;
  --navy-900: #0A1628;
  --navy-800: #122238;
  --navy-700: #1B3050;
  --navy-600: #294870;
  --navy-100: #E6ECF5;
  --navy-50:  #F2F5FA;

  --teal-500: #00C2A8;
  --teal-400: #14D9BD;
  --teal-300: #5BE9D3;
  --teal-100: #CFF6EF;

  --amber-500: #F2A93B;  /* warning / "limited" accents */

  --ink-900: #0E141C;
  --ink-700: #2C3744;
  --ink-500: #5B6A7C;
  --ink-400: #8492A2;
  --ink-300: #B7C1CC;
  --ink-200: #DDE3EA;
  --ink-100: #EEF1F5;

  --bg:       #FBFAF7;   /* warm off-white */
  --surface:  #FFFFFF;
  --surface-dim: #F5F3EE;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale (responsive via clamp) */
  --fs-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h1: clamp(2rem, 3vw + 1rem, 3rem);
  --fs-h2: clamp(1.6rem, 2vw + 0.8rem, 2.25rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.8rem, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Spacing (8px grid) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --sh-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --sh-lg: 0 12px 32px rgba(10, 22, 40, 0.10);
  --sh-glow: 0 8px 24px rgba(0, 194, 168, 0.20);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy-900);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--ink-700); }
.lead { font-size: 1.15rem; color: var(--ink-700); line-height: 1.6; max-width: 60ch; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.eyebrow--ink { color: var(--ink-500); }

a.link {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-300);
  transition: border-color 0.2s var(--ease);
}
a.link:hover { border-color: var(--teal-500); }

::selection { background: var(--teal-100); color: var(--navy-900); }

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: clamp(3rem, 7vw, 6rem); }
section + section.tight { padding-top: 0; }

.section-head { max-width: 56ch; margin-bottom: var(--sp-7); }
.section-head .eyebrow { display: inline-block; margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 960px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); }
}

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.stack > * + * { margin-top: var(--sp-4); }
.stack--lg > * + * { margin-top: var(--sp-6); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { background: var(--teal-400); }

.btn--dark {
  background: var(--navy-900);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-800); }

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--ink-300);
}
.btn--ghost:hover { border-color: var(--navy-900); background: var(--surface); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.7); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: grid;
  place-items: center;
  color: var(--teal-400);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--sh-sm);
}
.brand__name span { color: var(--ink-500); font-weight: 500; }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { display: flex; gap: var(--sp-5); align-items: center; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--navy-900);
}
.nav__link.is-active { border-bottom-color: var(--teal-500); }

/* Dropdown menu (used by "About Us" parent that contains About + Our Vision) */
.nav__item--has-dropdown { position: relative; list-style: none; }
.nav__caret { display: inline-block; margin-left: 4px; font-size: 0.7em; opacity: 0.7; transition: transform 0.15s; }
.nav__item--has-dropdown:hover .nav__caret,
.nav__item--has-dropdown:focus-within .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  list-style: none;
  margin: 0; padding: .5rem 0;
  position: absolute;
  top: 100%; left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  box-shadow: 0 6px 20px rgba(7,16,31,0.10);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  z-index: 50;
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .15s, transform .15s, visibility 0s;
}
.nav__dropdown li { margin: 0; }
.nav__dropdown a {
  display: block;
  padding: .55rem 1rem;
  color: var(--ink-700);
  text-decoration: none;
  font-size: .92rem;
  white-space: nowrap;
}
.nav__dropdown a:hover { background: var(--surface-dim); color: var(--teal-600); }

.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-md); }
.nav__toggle svg { width: 22px; height: 22px; }

/* Desktop: cluster of header CTAs (Buy + Lease) right of the nav */
.site-header__cta { display: flex; gap: .5rem; align-items: center; }
/* The in-nav mobile-menu CTA cluster is hidden on desktop (the desktop cluster
   above does that job). It only appears when the mobile hamburger menu opens. */
.nav__cta-mobile { display: none; }

@media (max-width: 900px) {
  .nav__list { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: var(--sp-5); gap: var(--sp-4); border-bottom: 1px solid var(--ink-200); box-shadow: var(--sh-lg); }
  .nav.is-open .nav__list { display: flex; }
  .nav__toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .nav.is-open .nav__cta-mobile { display: flex; gap: .5rem; flex-wrap: wrap; }

  /* Dropdown collapses to inline nested list on mobile (no floating panel) */
  .nav__dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: .25rem 0 .25rem 1rem;
    transition: none;
  }
  .nav__caret { display: none; }
  .nav__dropdown a { padding: .35rem 0; font-size: .9rem; color: var(--ink-500); }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(0, 194, 168, 0.12) 0%, transparent 60%),
    radial-gradient(80% 100% at 10% 90%, rgba(41, 72, 112, 0.10) 0%, transparent 60%),
    var(--bg);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal-500) 0%, var(--teal-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Secondary line of the hero h1: smaller, lighter, supports the primary line
   rather than competing with it. Per Olivia's typography critique 2026-05-19. */
.hero__h1-sub {
  display: block;
  margin-top: 0.4em;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-700);
}
.hero__sub { margin-top: var(--sp-5); font-size: 1.2rem; color: var(--ink-700); max-width: 52ch; }
.hero__ctas { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 70% 20%, rgba(0, 194, 168, 0.35) 0%, transparent 60%),
    radial-gradient(50% 50% at 30% 80%, rgba(91, 233, 211, 0.20) 0%, transparent 60%);
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero__visual-label {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300);
  z-index: 1;
}

.hero__stats {
  position: absolute; left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-7);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  z-index: 2;
}
.hero__stat {
  background: rgba(7, 16, 31, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  color: #fff;
}
.hero__stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.hero__stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300); margin-top: 2px; }

/* ---------- 8. Stat tile band (used on vehicle pages) ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--sp-6);
}
.stat-tile { background: var(--surface); padding: var(--sp-5); }
.stat-tile__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  line-height: 1;
}
.stat-tile__unit { font-size: 1rem; color: var(--ink-500); margin-left: 4px; }
.stat-tile__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: var(--sp-2);
}

/* ---------- 9. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--ink-300); }

.card--link { display: block; cursor: pointer; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--navy-100); }

.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--teal-100);
  color: var(--navy-900);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-700); font-size: 0.95rem; }

/* Value-prop card with number */
.vcard {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  border-top: 3px solid var(--teal-500);
  box-shadow: var(--sh-sm);
}
.vcard__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--teal-500);
  margin-bottom: var(--sp-3);
}

/* Vehicle catalogue card */
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--navy-100); }
.vehicle-card__img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  position: relative;
}
.vehicle-card__img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 70% at 50% 50%, black 0%, transparent 100%);
}
.vehicle-card__img-label {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  padding: 4px 8px;
  border: 1px solid rgba(91, 233, 211, 0.4);
  border-radius: var(--r-sm);
  background: rgba(7,16,31,0.5);
  z-index: 1;
}
.vehicle-card__img-class {
  position: absolute; right: var(--sp-4); top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}
.vehicle-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.vehicle-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-900); letter-spacing: -0.01em; }
.vehicle-card__oem { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.vehicle-card__specs { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-900); font-weight: 500; }
.vehicle-card__spec strong { color: var(--navy-900); font-weight: 700; }
.vehicle-card__cta { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--ink-100); font-size: 0.9rem; font-weight: 500; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; }
.vehicle-card__cta .arrow { color: var(--teal-500); }

/* ---------- 10. Bands (alternating section backgrounds) ---------- */
.band--surface { background: var(--surface); border-block: 1px solid var(--ink-100); }
.band--dim    { background: var(--surface-dim); }
.band--navy   { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.band--navy h1, .band--navy h2, .band--navy h3, .band--navy h4 { color: #fff; }
.band--navy .eyebrow { color: var(--teal-300); }
.band--navy p { color: rgba(255,255,255,0.7); }
/* Cards nested inside a navy band: switch to dark "glass" treatment so
   inherited white text remains readable. */
.band--navy .vcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 3px solid var(--teal-400);
  box-shadow: none;
}
.band--navy .vcard__num { color: var(--teal-300); }
.band--navy .vcard h3,
.band--navy .vcard h2 { color: #fff; }
.band--navy .vcard p { color: rgba(255, 255, 255, 0.75); }
.band--navy .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.band--navy .card p { color: rgba(255, 255, 255, 0.75); }

/* ---------- 11. Spec accordion ---------- */
.spec-group {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
.spec-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--surface);
  border: 0;
  cursor: pointer;
  text-align: left;
}
.spec-group__head:hover { background: var(--surface-dim); }
.spec-group__chev { transition: transform 0.2s var(--ease); color: var(--ink-500); }
.spec-group.is-open .spec-group__chev { transform: rotate(180deg); color: var(--teal-500); }
.spec-group__body { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.spec-group.is-open .spec-group__body { max-height: 2000px; }
.spec-group__inner { padding: 0 var(--sp-5) var(--sp-5); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-3) 0; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--ink-500); width: 40%; font-family: var(--font-sans); }
.spec-table td { color: var(--ink-900); font-family: var(--font-mono); font-size: 0.88rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- 12. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label, .label { font-size: 0.9rem; font-weight: 500; color: var(--navy-900); }
.field .hint { font-size: 0.8rem; color: var(--ink-500); }
.input, .select, .textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--ink-300);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--ink-900);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(0,194,168,0.18);
}
.textarea { min-height: 120px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.88rem;
  color: var(--ink-700);
}
.checkbox input { margin-top: 3px; accent-color: var(--teal-500); }

/* Radio cards (used in wizard step 1/2) */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }
.radio-card {
  position: relative;
  padding: var(--sp-4);
  border: 1px solid var(--ink-300);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card__title { font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }
.radio-card__sub { font-size: 0.82rem; color: var(--ink-500); margin-top: 2px; }
.radio-card:hover { border-color: var(--navy-700); }
.radio-card:has(input:checked) {
  border-color: var(--teal-500);
  background: var(--teal-100);
  box-shadow: 0 0 0 1px var(--teal-500);
}

/* ---------- 13. Wizard ---------- */
.wizard { max-width: 760px; margin-inline: auto; }
.wizard__steps {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  flex-wrap: wrap;
}
.wizard__step {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-400);
}
.wizard__step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-500);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.wizard__step.is-active { color: var(--navy-900); }
.wizard__step.is-active .wizard__step-num { background: var(--navy-900); color: var(--teal-400); }
.wizard__step.is-done .wizard__step-num { background: var(--teal-500); color: var(--navy-950); }
.wizard__step-line { width: 36px; height: 1px; background: var(--ink-200); }

.wizard__panel { display: none; }
.wizard__panel.is-active { display: block; }
.wizard__panel h2 { margin-bottom: var(--sp-3); }
.wizard__nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); }
.wizard__nav .btn--back { background: transparent; color: var(--ink-700); border: 1px solid var(--ink-200); }

/* ---------- 14. Sticky bar / floating CTAs ---------- */
.sticky-cta {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-end;
}
.fab-whatsapp {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* In-page sticky vehicle CTA bar */
.vehicle-action-bar {
  position: sticky;
  bottom: var(--sp-5);
  z-index: 30;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  box-shadow: var(--sh-lg);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}
.vehicle-action-bar__title { font-weight: 600; }
.vehicle-action-bar__sub { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding-block: var(--sp-8) var(--sp-6);
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer ul li { margin-bottom: var(--sp-2); }
.site-footer a { font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--teal-300); }
.site-footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.site-footer .brand { color: #fff; margin-bottom: var(--sp-4); }
.site-footer .brand__mark { background: var(--navy-800); color: var(--teal-400); }
.site-footer__about p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 36ch; }

/* ---------- 16. Misc ---------- */
.partner-row { display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; opacity: 0.85; }
.partner-row__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink-700);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.partner-row__item span { font-weight: 400; color: var(--ink-500); font-size: 0.85rem; margin-left: 4px; }

/* Screen-reader-only — for SEO h1 hidden visually when image carries the headline */
.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;
}

/* Banner-style hero — single full-width image, no grid */
.hero--banner { padding-block: var(--sp-6) var(--sp-5); }
.hero-banner img {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px rgba(7,16,31,0.12);
}

/* Article share bar — LinkedIn / WhatsApp / Email / Copy link */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding: 1rem 0;
  border-block: 1px solid var(--ink-200);
}
.share-bar__label {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: .25rem;
}
.share-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  font-family: inherit;
}
.share-bar__btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(7,16,31,0.08); }
.share-bar__btn--linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-bar__btn--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-bar__btn--email:hover    { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.share-bar__btn--copy:hover     { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.share-bar__btn--copy.is-copied { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ───── Insights index — pillar pills, hero article, sidebar layout ───── */

/* Hero article card — big spotlight slot at top of index */
.hero-article {
  display: block;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-dim) 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(7,16,31,0.04);
}
.hero-article:hover {
  border-color: var(--teal-500);
  box-shadow: 0 10px 30px rgba(7,16,31,0.10);
  transform: translateY(-2px);
}
.hero-article__body { max-width: 64ch; }
.hero-article h2 { color: var(--ink-900); }

/* Pillar filter pills */
.pillar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.pillar-pill {
  padding: .55rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.pillar-pill:hover { border-color: var(--teal-500); color: var(--teal-600); }
.pillar-pill.is-active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
}

/* Pillar-coloured badges (one accent per content pillar) */
.badge--pillar { font-weight: 600; }
.badge--pillar-policy    { background: #e3eafc; color: #1e3a8a; }
.badge--pillar-tco       { background: #d1fae5; color: #065f46; }
.badge--pillar-infra     { background: #fde9d2; color: #92400e; }
.badge--pillar-renewable { background: #d4f4dd; color: #14532d; }
.badge--pillar-microgrid { background: #ede9fe; color: #5b21b6; }

/* Insights 2-column layout: cards on left, sticky sidebar on right */
.insights-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-7);
  align-items: start;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.insights-sidebar {
  position: sticky;
  top: calc(var(--sp-6) + 60px);
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

/* Insight card style (filterable) */
.insight-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  overflow: hidden;
}
.insight-card:not(.insight-card--placeholder):hover {
  border-color: var(--teal-500);
  box-shadow: 0 6px 18px rgba(7,16,31,0.08);
  transform: translateY(-2px);
}
.insight-card__body { padding: 1.5rem; }
.insight-card h3 { font-size: 1.05rem; line-height: 1.3; }

@media (max-width: 900px) {
  .insights-layout { grid-template-columns: 1fr; }
  .insights-sidebar { position: static; }
  .hero-article { padding: 1.5rem; }
}

/* Use-case filter pills on /vehicles/ — quick-tap sector chips */
.usecase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.usecase-pill {
  padding: .55rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.usecase-pill:hover { border-color: var(--teal-500); color: var(--teal-600); }
.usecase-pill.is-active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
}
.advanced-filters {
  margin-bottom: .5rem;
}
.advanced-filters summary {
  cursor: pointer;
  font-size: .85rem;
  color: var(--ink-500);
  padding: .35rem 0;
}
.advanced-filters summary:hover { color: var(--teal-600); }

/* Standards & compliance section — 2-column readable layout */
.standards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.standards-block h3 {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal-500);
  display: inline-block;
}
.standards-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.standards-block ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-700);
}
.standards-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65rem;
  width: 6px;
  height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}
@media (max-width: 720px) {
  .standards-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Reference deployments — horizontal swipeable card strip */
.ref-strip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem .25rem 2rem;
  margin-inline: -.25rem;
  /* Soft scroll-shadow indicating more content */
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 60px), transparent 100%);
}
.ref-strip::-webkit-scrollbar { height: 8px; }
.ref-strip::-webkit-scrollbar-track { background: var(--surface-dim); border-radius: 4px; }
.ref-strip::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 4px; }
.ref-strip::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

.ref-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(7,16,31,0.04);
  transition: transform .15s, box-shadow .15s;
}
.ref-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7,16,31,0.08);
}
.ref-card__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-dim);
  background-size: cover;
  background-position: center;
}
.ref-card__photo--text {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.ref-card__photo-label { padding: 1rem; text-align: center; }
.ref-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.ref-card__tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface-dim);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ref-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.ref-card p { font-size: 0.9rem; color: var(--ink-500); line-height: 1.5; margin: 0; }

/* Named reference project — visually distinct credibility tag at card bottom */
.ref-card__named {
  margin-top: auto !important;
  padding-top: .75rem;
  border-top: 1px dashed var(--ink-200);
  font-size: 0.85rem;
  color: var(--teal-600) !important;
  font-weight: 600;
  line-height: 1.4;
}
.ref-card__named-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: .15rem;
}

@media (max-width: 600px) {
  .ref-card { flex-basis: 280px; padding: 1.25rem; }
}

/* Article subscribe bar — email capture for "Subscribe to insights" */
.subscribe-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--surface-dim) 0%, #fff 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  margin-block: 1rem;
}
.subscribe-bar__copy h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}
.subscribe-bar__form {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: stretch;
}
.subscribe-bar__email {
  flex: 1 1 220px;
  min-width: 0;
  padding: .7rem 1rem;
  border: 1px solid var(--ink-300);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.subscribe-bar__email:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
  border-color: var(--teal-500);
}
.subscribe-bar__fineprint {
  flex: 1 0 100%;
  margin: .5rem 0 0;
  font-size: .75rem;
  color: var(--ink-500);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .subscribe-bar { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
}

/* Trust-row band: under-hero strip of icon+label trust badges */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-5) var(--sp-7);
  align-items: center;
}
.trust-row__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}
.trust-row__item svg { color: var(--teal-600); flex-shrink: 0; }
@media (max-width: 600px) {
  .trust-row { gap: var(--sp-3) var(--sp-5); }
  .trust-row__item { font-size: 0.85rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--teal-100);
  color: var(--navy-900);
}
.badge--ink { background: var(--ink-100); color: var(--ink-700); }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }

.callout {
  background: var(--navy-50);
  border-left: 3px solid var(--teal-500);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.breadcrumb { font-size: 0.85rem; color: var(--ink-500); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--ink-700); }
.breadcrumb a:hover { color: var(--teal-500); }
.breadcrumb span { margin-inline: 6px; color: var(--ink-300); }

.empty-state { text-align: center; padding: var(--sp-8) var(--sp-5); color: var(--ink-500); }

/* ---------- 17. Imagery treatments ---------- */

/* Hero visual with real photo. Photo lives on the inner --photo div so we can
   layer a dark gradient overlay on top for text legibility. */
.hero__visual--photo {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.hero__visual--photo .hero__visual-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__visual--photo::before,
.hero__visual--photo::after { display: none; }
.hero__visual--photo .hero__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,16,31,0) 0%, rgba(7,16,31,0.0) 50%, rgba(7,16,31,0.65) 100%),
    linear-gradient(90deg, rgba(7,16,31,0) 60%, rgba(7,16,31,0.2) 100%);
}

/* Vehicle catalogue card — real photo */
.vehicle-card__img--photo {
  background-color: var(--surface-dim);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.vehicle-card__img--photo::before { display: none; }
.vehicle-card__img--photo .vehicle-card__img-label,
.vehicle-card__img--photo .vehicle-card__img-class {
  background: rgba(7,16,31,0.6);
  backdrop-filter: blur(4px);
  border-color: transparent;
  color: #fff;
  padding: 5px 10px;
}

/* Full-width scene banner (between sections) */
.scene-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 540px;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.scene-banner--tall { aspect-ratio: 16 / 9; max-height: 640px; }
.scene-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,16,31,0.85) 0%, rgba(7,16,31,0.55) 45%, rgba(7,16,31,0.15) 100%);
}
.scene-banner__overlay--center {
  background: linear-gradient(180deg, rgba(7,16,31,0.2) 0%, rgba(7,16,31,0.65) 100%);
}
.scene-banner__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.scene-banner__content h2,
.scene-banner__content h1 { color: #fff; }
.scene-banner__content p { color: rgba(255,255,255,0.8); max-width: 56ch; }
.scene-banner__content .eyebrow { color: var(--teal-300); }

/* Mobile: drop the aspect-ratio cage so content (eyebrow + h2 + p + CTA) fits without clipping.
   The 16/9 ratio at 375px screen width = ~211px tall, but the content needs ~300px. */
@media (max-width: 720px) {
  .scene-banner,
  .scene-banner--tall {
    aspect-ratio: auto;
    max-height: none;
    min-height: 380px;
    padding-block: 3rem;
  }
  .scene-banner__content { justify-content: center; }
  .scene-banner__content p { max-width: 100%; }
}

/* Side-by-side photo + text block */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.media-block--reverse { direction: rtl; }
.media-block--reverse > * { direction: ltr; }
.media-block__photo {
  aspect-ratio: 4 / 3;
  background-color: var(--surface-dim);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
@media (max-width: 900px) {
  .media-block, .media-block--reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* Tile band of photos (industries / lifestyle) */
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
}
.photo-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,31,0.1) 50%, rgba(7,16,31,0.85) 100%);
}
.photo-tile__content {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  color: #fff;
  z-index: 1;
}
.photo-tile__content h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.photo-tile__content p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 0; }

/* ---------- Compare matrix (vehicles/compare.html) ---------- */
.compare-matrix-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare-matrix {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: .92rem;
}
.compare-matrix thead th {
  background: var(--navy-900);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--navy-700);
  position: sticky;
  top: 0;
  z-index: 1;
}
.compare-matrix tbody td {
  padding: 0.95rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--ink-100);
  line-height: 1.5;
}
.compare-matrix tbody tr:hover { background: var(--surface-dim); }
.compare-matrix tbody tr:last-child td { border-bottom: 0; }
.compare-matrix .link { color: var(--ink-900); border-bottom: 1px dotted var(--ink-300); }
.compare-matrix .link:hover { color: var(--teal-500); border-bottom-color: var(--teal-500); }
.compare-matrix tbody td:first-child { width: 56px; text-align: center; }
.compare-matrix tbody td:nth-child(2) { min-width: 200px; }
.compare-matrix tbody td:nth-child(3) { white-space: nowrap; font-size: .85rem; color: var(--ink-500); }
.compare-matrix tbody td:last-child { font-weight: 500; min-width: 180px; }

.tier-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  line-height: 1;
}
.tier-pill--1 { background: var(--teal-500); }
.tier-pill--2 { background: #f59e0b; }
.tier-pill--3 { background: #6366f1; }

/* Print: hide non-essential */
@media print {
  .site-header, .site-footer, .sticky-cta, .vehicle-action-bar { display: none !important; }
  body { background: #fff; }
}
