/* ==========================================================
   TriniEV.com — Design System
   Aesthetic: Tropical Editorial — EV green, black, white.
   Helvetica Neue throughout — clean, consistent, readable.
   ========================================================== */

/* System fonts only — no external font dependency */

/* --- Design Tokens --- */
:root {
  /* Core palette — EV green, black, white */
  --color-forest:       #0D0D0D;
  --color-forest-light: #005C38;
  --color-navy:         #111111;
  --color-lime:         #00A36C;
  --color-lime-dark:    #007A52;
  --color-sand:         #F5F5F5;
  --color-cream:        #FFFFFF;
  --color-white:        #FFFFFF;
  --color-text:         #1A1A1A;
  --color-text-muted:   #444444;
  --color-text-light:   #767676;
  --color-border:       #E2E2E2;
  --color-border-dark:  #003D20;

  /* Powertrain badge colors */
  --color-ev:   #00C49A;
  --color-phev: #F5A623;
  --color-reev: #00A36C;

  /* Typography */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;
  --s-4: 1rem;     --s-5: 1.25rem;  --s-6: 1.5rem;
  --s-8: 2rem;     --s-10: 2.5rem;  --s-12: 3rem;
  --s-16: 4rem;    --s-20: 5rem;    --s-24: 6rem;

  /* Layout */
  --w-sm:  640px;
  --w-md:  768px;
  --w-lg:  1024px;
  --w-xl:  1280px;
  --w-2xl: 1440px;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0,0,0,0.08);
  --sh-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.05);
  --sh-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.05);
  --sh-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Nav */
  --nav-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { max-width: 70ch; }
strong { font-weight: 600; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--w-xl);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.container--wide   { max-width: var(--w-2xl); }
.container--narrow { max-width: var(--w-md); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #0D0D0D;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s-4);
}
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.site-nav__logo span { color: var(--color-lime); }
.site-nav__logo-dot { display: none; }

.site-nav__links {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
.site-nav__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link.active { color: var(--color-lime); }
.site-nav__cta {
  display: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: var(--s-2) var(--s-5);
  background: var(--color-lime);
  color: var(--color-white);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__cta:hover { background: var(--color-white); color: var(--color-forest); transform: translateY(-1px); }
.site-nav__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  color: white;
}
.site-nav__menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t-base);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity var(--t-base);
}
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: #0D0D0D;
  padding: var(--s-6);
  transform: translateX(100%);
  transition: transform var(--t-base);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  overflow-y: auto;
}
.mobile-drawer.is-open { pointer-events: auto; }
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__close {
  align-self: flex-end;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  line-height: 1;
  padding: var(--s-2);
  transition: color var(--t-fast);
}
.mobile-drawer__close:hover { color: var(--color-lime); }
.mobile-drawer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}
.mobile-drawer__logo span { color: var(--color-lime); }
.mobile-drawer__links { display: flex; flex-direction: column; gap: 0; }
.mobile-drawer__link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--color-border-dark);
  transition: color var(--t-fast);
}
.mobile-drawer__link:hover { color: var(--color-lime); }

@media (min-width: 768px) {
  .site-nav__links { display: flex; }
  .site-nav__cta   { display: block; }
  .site-nav__menu-btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--color-white);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 60%, rgba(0,163,108,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 55%, rgba(0,163,108,0.10) 0%, transparent 52%),
    #FFFFFF;
}
.hero__map {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 62%;
  max-width: 820px;
  height: auto;
  color: #00A36C;
  opacity: 0.14;
  pointer-events: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--s-24);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--s-4);
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--color-lime);
}
.hero__title {
  color: var(--color-text);
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-6);
  max-width: 14ch;
}
.hero__title em { font-style: normal; color: var(--color-lime); }
.hero__body {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: var(--s-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-top: var(--s-16);
  padding-top: var(--s-8);
  border-top: 1px solid var(--color-border);
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}
.hero__stat-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-lime);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-white);
  color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,163,108,0.25);
}
.btn--outline {
  border-color: rgba(0,0,0,0.2);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
}
.btn--dark {
  background: var(--color-forest);
  color: var(--color-white);
}
.btn--dark:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover { border-color: var(--color-forest); }
.btn--sm { padding: var(--s-2) var(--s-4); font-size: 0.75rem; }
.btn--lg { padding: var(--s-4) var(--s-8); font-size: 0.9rem; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.badge--ev   { background: rgba(0,196,154,0.12); color: #00A882; border: 1px solid rgba(0,196,154,0.28); }
.badge--phev { background: rgba(245,166,35,0.12); color: #C07800; border: 1px solid rgba(245,166,35,0.28); }
.badge--reev { background: rgba(0,163,108,0.12); color: #005C38; border: 1px solid rgba(0,163,108,0.35); }
.badge--new  { background: rgba(220,38,38,0.10); color: #B91C1C; border: 1px solid rgba(220,38,38,0.22); }
.badge--official { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.3); }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding-block: var(--s-20); }
.section--dark     { background: #012B1A; color: var(--color-white); }
.section--navy     { background: #EEF4F0; color: var(--color-text); }
.section--sand     { background: var(--color-sand); }
.section--charcoal { background: #E0E0E0; color: var(--color-text); }
.section--white { background: var(--color-white); }

.section-header { margin-bottom: var(--s-12); }
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-forest-light);
  margin-bottom: var(--s-3);
}
.section-header__eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
}
.section-header__eyebrow--light { color: var(--color-lime); }
.section-header__title { margin-bottom: var(--s-4); }
.section-header__title--light { color: var(--color-white); }
.section-header__subtitle { color: var(--color-text-muted); font-size: 1.15rem; max-width: 58ch; }
.section-header__subtitle--light { color: rgba(255,255,255,0.68); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: #012B1A;
  padding-block: var(--s-16);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,163,108,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,108,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
}
.page-header__title { color: white; margin-bottom: var(--s-4); }
.page-header__subtitle { color: rgba(255,255,255,0.68); font-size: 1.1rem; max-width: 55ch; }

/* ============================================================
   CAR CARDS
   ============================================================ */
.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 600px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .car-grid { grid-template-columns: repeat(3, 1fr); } }

.car-card {
  background: var(--color-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-xl);
  border-color: rgba(0,163,108,0.5);
}
.car-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.car-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.car-card:hover .car-card__image img { transform: scale(1.06); }
.car-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-card__placeholder svg { opacity: 0.18; width: 72px; height: 72px; color: white; }
.car-card__badges {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  gap: var(--s-2);
}
.car-card__body {
  padding: var(--s-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.car-card__brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.car-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.car-card__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.car-card__specs {
  display: flex;
  gap: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--color-border);
}
.car-card__spec { display: flex; flex-direction: column; gap: 2px; }
.car-card__spec-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-light);
  font-weight: 600;
}
.car-card__spec-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}
.car-card__footer {
  padding: var(--s-4) var(--s-5);
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.car-card__price { display: flex; flex-direction: column; gap: 1px; }
.car-card__price-ttd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-forest);
}
.car-card__price-usd {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ============================================================
   RANKINGS
   ============================================================ */
.rankings-list { display: flex; flex-direction: column; gap: var(--s-3); }
.rank-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.rank-card:hover {
  border-color: rgba(0,163,108,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transform: translateX(4px);
}
.section--dark .rank-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.rank-card__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}
.rank-card--gold .rank-card__num { color: var(--color-lime); }
.rank-card__thumb {
  width: 80px; height: 56px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-forest), var(--color-navy));
  overflow: hidden;
}
.rank-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-card__body { flex: 1; min-width: 0; }
.rank-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--s-1);
}
.rank-card__reason {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
.rank-card__score {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.rank-card__score-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  line-height: 1;
}
.rank-card--gold .rank-card__score-num { color: var(--color-lime); }
.rank-card__score-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--color-white);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.feature-card:hover { box-shadow: var(--sh-md); }
.feature-card--dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
}
.feature-card__icon {
  width: 52px; height: 52px;
  background: var(--color-sand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-bottom: var(--s-5);
}
.feature-card--dark .feature-card__icon {
  background: rgba(0,163,108,0.12);
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.feature-card--dark .feature-card__title { color: white; }
.feature-card__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.feature-card--dark .feature-card__body { color: rgba(255,255,255,0.6); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  background: var(--color-white);
  color: var(--color-text);
  transition: background var(--t-fast);
}
.faq-question:hover { background: var(--color-sand); }
.faq-question[aria-expanded="true"] { background: var(--color-forest); color: white; }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: var(--r-full);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--t-base);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: var(--s-5) var(--s-6);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px solid var(--color-border);
}
.faq-answer.is-open { display: block; }
.faq-answer a { color: var(--color-forest); text-decoration: underline; }
.faq-answer a:hover { color: var(--color-forest-light); }

/* ============================================================
   CAR LISTING PAGE
   ============================================================ */
.car-hero {
  position: relative;
  background: #012B1A;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.car-hero__bg {
  position: absolute;
  inset: 0;
}
.car-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.car-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.98) 0%, rgba(13,13,13,0.5) 50%, transparent 100%);
}
.car-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--s-10) var(--s-8);
  width: 100%;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--color-lime); }
.breadcrumb__sep { opacity: 0.4; }
.car-hero__title { color: white; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--s-4); }
.car-hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.car-hero__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-lime);
  margin-top: var(--s-4);
}
.car-hero__price-usd {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--s-1);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.specs-table th, .specs-table td {
  padding: var(--s-3) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  vertical-align: top;
}
.specs-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  background: var(--color-sand);
  width: 38%;
  font-style: normal;
}
.specs-table td { font-weight: 500; color: var(--color-text); }
.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

/* Pros / Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 640px) { .pros-cons-grid { grid-template-columns: 1fr 1fr; } }

.pros-box, .cons-box {
  border-radius: var(--r-xl);
  padding: var(--s-6);
}
.pros-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid #007A62;
}
.cons-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid #B91C1C;
}
.pros-box__heading, .cons-box__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.pros-box__heading { color: #007A62; }
.cons-box__heading { color: #B91C1C; }
.pros-cons-list { display: flex; flex-direction: column; gap: var(--s-3); }
.pros-cons-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}
.pros-cons-item::before {
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1rem;
}
.pros-box .pros-cons-item::before { content: '✓'; color: #007A62; }
.cons-box .pros-cons-item::before { content: '✗'; color: #B91C1C; }

/* Alerts */
.alert {
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.alert--warning {
  background: var(--color-white);
  border: 1px solid rgba(245,166,35,0.35);
  border-left: 4px solid #F5A623;
}
.alert--danger {
  background: var(--color-white);
  border: 1px solid rgba(220,38,38,0.25);
  border-left: 4px solid #DC2626;
}
.alert--info {
  background: var(--color-white);
  border: 1px solid rgba(13,13,13,0.15);
  border-left: 4px solid var(--color-forest);
}
.alert--success {
  background: var(--color-white);
  border: 1px solid rgba(0,163,108,0.25);
  border-left: 4px solid #00A36C;
}
.alert__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.alert__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: var(--s-1);
}
.alert__body { font-size: 1rem; color: var(--color-text-muted); line-height: 1.65; }

/* Powertrain acronym cards */
.pt-acronym {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.pt-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--color-border);
}

/* Powertrain explainer pill */
.powertrain-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--color-sand);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--color-border);
}
.powertrain-pill__type {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.powertrain-pill__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--color-white);
}
.glossary-row {
  border-bottom: 1px solid var(--color-border);
}
.glossary-row:last-child { border-bottom: none; }
.glossary-row__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--t-base);
}
.glossary-row__trigger:hover { background: var(--color-sand); }
.glossary-row__trigger[aria-expanded="true"] { background: var(--color-sand); }
.glossary-row__abbr {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-forest);
  min-width: 110px;
  flex-shrink: 0;
}
.glossary-row__full {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}
.glossary-row__icon {
  font-size: 0.75rem;
  color: var(--color-text-light);
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.glossary-row__trigger[aria-expanded="true"] .glossary-row__icon {
  transform: rotate(45deg);
}
.glossary-row__body {
  display: none;
  padding: var(--s-4) var(--s-6) var(--s-5);
  padding-left: calc(var(--s-6) + 110px + var(--s-4));
}
.glossary-row__trigger[aria-expanded="true"] + .glossary-row__body {
  display: block;
}
.glossary-row__def {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.glossary-row__example {
  margin-top: var(--s-3);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
}
.comparison-table th {
  background: #012B1A;
  color: white;
  padding: var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  font-size: 0.82rem;
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-white);
}
.comparison-table td:first-child {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  background: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td:not(:first-child) { background: rgba(0,163,108,0.04); }

/* Check / cross in tables */
.tbl-yes { color: #007A62; font-weight: 700; }
.tbl-no  { color: #B91C1C; font-weight: 700; }
.tbl-partial { color: #C07800; font-weight: 700; }

/* ============================================================
   DEALER vs GREY MARKET
   ============================================================ */
.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .risk-grid { grid-template-columns: repeat(2, 1fr); } }

.risk-card {
  border-radius: var(--r-xl);
  padding: var(--s-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
}
.risk-card--bad {
  border-left-color: #DC2626;
}
.risk-card--good {
  border-left-color: #00A36C;
}
.risk-card__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-2);
}
.risk-card--bad .risk-card__label { color: #B91C1C; }
.risk-card--good .risk-card__label { color: #007A62; }
.risk-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.risk-list { display: flex; flex-direction: column; gap: var(--s-3); }
.risk-item {
  display: flex;
  gap: var(--s-3);
  font-size: 1rem;
  line-height: 1.65;
  align-items: flex-start;
}
.risk-item::before {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.risk-card--bad .risk-item::before { content: '✗'; color: #B91C1C; }
.risk-card--good .risk-item::before { content: '✓'; color: #007A62; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  padding-block: var(--s-16);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2.5fr 1fr 1fr 1fr; } }

.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-4); }
.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}
.site-footer__logo span { color: var(--color-lime); }
.site-footer__tagline { font-size: 0.9rem; line-height: 1.65; max-width: 32ch; }
.site-footer__col-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  margin-bottom: var(--s-4);
}
.site-footer__links { display: flex; flex-direction: column; gap: var(--s-3); }
.site-footer__link {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}
.site-footer__link:hover { color: var(--color-lime); }
.site-footer__divider {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: var(--s-4);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.text-lime   { color: var(--color-lime); }
.text-muted  { color: var(--color-text-muted); }

/* Why-REEV two-column layout on desktop */
.reev-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (min-width: 900px) {
  .reev-split { grid-template-columns: 1.4fr 1fr; }
}

/* Checklist */
.check-list { display: flex; flex-direction: column; gap: var(--s-4); }
.check-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.check-item__icon {
  width: 32px; height: 32px;
  background: var(--color-forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-lime);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-item__body { font-size: 0.95rem; line-height: 1.6; }
.check-item__body strong { color: var(--color-text); }

/* Visually disabled "Coming Soon" cards */
.car-card--soon { opacity: 0.72; }
.car-card--soon:hover { transform: none; box-shadow: none; border-color: var(--color-border); }

@media print {
  .site-nav, .mobile-drawer, .site-footer { display: none; }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */
@media (max-width: 767px) {

  /* Reduce section padding on phones */
  .section { padding-block: var(--s-10); }

  /* Homepage hero — less tall, less padding */
  .hero { min-height: 60vh; }
  .hero__content { padding-block: var(--s-12); }
  .hero__stats { margin-top: var(--s-10); padding-top: var(--s-6); gap: var(--s-6); }

  /* T&T map — show more of the island on mobile */
  .hero__map {
    width: 95%;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.12;
  }

  /* Car hero — left text column fills full width on mobile */
  .car-hero__left {
    width: 100%;
  }

  /* Car hero — right column (image + score) goes full width below title */
  .car-hero__right {
    width: 100%;
    flex-shrink: unset;
  }
  .car-hero__right img {
    width: 100%;
    max-width: 100%;
  }

  /* Rank cards — stack vertically on phones */
  .rank-card {
    flex-wrap: wrap;
    gap: var(--s-3);
  }
  .rank-card__thumb {
    width: 100%;
    height: 160px;
    order: -1;
  }
  .rank-card__num { min-width: auto; }
  .rank-card__score { flex-direction: row; gap: var(--s-1); align-items: baseline; }

  /* Glossary accordion — remove deep indent on phones */
  .glossary-row__body { padding-left: var(--s-5); }
  .glossary-row__abbr { min-width: 70px; }
  .glossary-row__trigger { gap: var(--s-3); }

  /* Comparison table — mobile: feature as shaded header row, two value columns below */
  .comparison-wrap { overflow-x: hidden; }
  .comparison-table { min-width: 0; }
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody { display: block; width: 100%; }
  .comparison-table thead tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .comparison-table thead th:first-child { display: none; }
  .comparison-table thead th {
    font-size: 0.78rem;
    text-align: center;
    padding: var(--s-3) var(--s-2);
  }
  .comparison-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    width: 100%;
  }
  .comparison-table .cmp-feature {
    grid-column: 1 / -1;
    background: var(--color-sand);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: var(--s-2) var(--s-3);
    border: none;
  }
  .comparison-table .cmp-a,
  .comparison-table .cmp-b {
    text-align: center;
    padding: var(--s-3) var(--s-2);
    border-bottom: 1px solid var(--color-border);
    border-right: none;
    font-size: 0.9rem;
  }
  .comparison-table .cmp-a { border-right: 1px solid var(--color-border); }

  /* Glossary 4-col table — feature row + 3 value columns */
  .comparison-table--3col,
  .comparison-table--3col thead,
  .comparison-table--3col tbody { display: block; width: 100%; min-width: 0; }
  .comparison-table--3col thead tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .comparison-table--3col thead th:first-child { display: none; }
  .comparison-table--3col thead th {
    font-size: 0.75rem;
    text-align: center;
    padding: var(--s-3) var(--s-2);
  }
  .comparison-table--3col tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    width: 100%;
  }
  .comparison-table--3col .cmp-feature {
    grid-column: 1 / -1;
    background: var(--color-sand);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: var(--s-2) var(--s-3);
    border: none;
    text-align: left;
  }
  .comparison-table--3col td:not(.cmp-feature) {
    text-align: center;
    padding: var(--s-3) var(--s-1);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: 0.82rem;
    background: var(--color-white);
  }
  .comparison-table--3col td:last-child { border-right: none; }

  /* Page header — tighter on mobile */
  .page-header { padding-block: var(--s-10) var(--s-8); }

  /* CTA banner — stack on mobile */
  .container > div[style*="space-between"] {
    flex-direction: column;
    align-items: flex-start;
  }
}
