/* ==========================================================================
   X3von Cars — Core Stylesheet
   Premium pre-owned automotive showroom, United Arab Emirates
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & controls
   6.  Navigation
   7.  Hero
   8.  Vehicle cards
   9.  Sections (features, stats, trust, services)
   10. Inventory / filters
   11. Vehicle detail
   12. Gallery
   13. Accordion / tabs
   14. Forms
   15. Testimonials
   16. Finance calculator
   17. Compare & favorites
   18. Modal, toast, floating actions
   19. Footer
   20. Utilities
   21. Blog
   ========================================================================== */

/* 1. Design tokens ======================================================== */

:root {
  /* Surfaces */
  --bg:            #08080A;
  --bg-alt:        #0C0D10;
  --surface:       #121317;
  --surface-2:     #17191E;
  --surface-3:     #1D1F25;

  /* Lines & strokes */
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --line-soft:     rgba(255, 255, 255, 0.04);

  /* Text */
  --text:          #F4F4F6;
  --text-2:        #B9BAC1;
  --text-3:        #85868E;
  --text-inverse:  #0A0A0C;

  /* Accent — champagne */
  --gold:          #C6A15B;
  --gold-light:    #E0C287;
  --gold-dim:      rgba(198, 161, 91, 0.14);
  --gold-line:     rgba(198, 161, 91, 0.35);

  /* Status */
  --success:       #4FB286;
  --danger:        #D2604F;
  --whatsapp:      #25D366;

  /* Elevation */
  --shadow-md:     0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg:     0 32px 70px -24px rgba(0, 0, 0, 0.85);

  /* Radius — softly curved, kept consistent across cards and controls */
  --r-xs:          8px;
  --r-sm:          12px;
  --r-md:          18px;
  --r-lg:          26px;
  --r-pill:        999px;

  /* Rhythm */
  --gap:           clamp(1rem, 2vw, 1.5rem);
  --section-y:     clamp(4.5rem, 9vw, 8.5rem);
  --shell:         1320px;
  --shell-pad:     clamp(1.15rem, 4vw, 2.75rem);

  /* Motion */
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:        140ms;
  --t:             260ms;
  --t-slow:        520ms;

  /* Overlays, glass and tints — re-pointed by the light theme */
  --tint-1:        rgba(255, 255, 255, 0.03);
  --tint-2:        rgba(255, 255, 255, 0.06);
  --tint-3:        rgba(255, 255, 255, 0.10);
  --glass:         rgba(12, 13, 16, 0.72);
  --glass-strong:  rgba(24, 26, 31, 0.90);
  --glass-nav:     rgba(8, 8, 10, 0.82);
  --glass-solid:   rgba(18, 19, 23, 0.96);
  --backdrop:      rgba(4, 4, 6, 0.82);
  --scroll-thumb:  #26282F;
  --scroll-thumb-hover: #33363F;

  /* Constant light ink for controls that always sit on photography */
  --on-dark:       #F4F4F6;
  --on-dark-line:  rgba(255, 255, 255, 0.22);

  /* Chrome */
  --nav-h:         76px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

/* 2. Reset & base ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
picture,
video,
canvas,
svg { display: block; max-width: 100%; }

img { height: auto; background-color: var(--surface-2); }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--text-inverse);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: var(--r-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* 3. Typography =========================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.015em; }
h5 { font-size: 1rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 60ch;
}

.muted { color: var(--text-3); }
.gold  { color: var(--gold); }

/* 4. Layout primitives ==================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.shell--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.section-head > * { min-width: 0; max-width: 100%; }
.section-head__text { max-width: 46rem; }
.section-head h2 { margin-top: 0.85rem; }
.section-head p { margin-top: 1rem; color: var(--text-2); max-width: 52ch; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Page header (interior pages) */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(90% 120% at 15% 0%, rgba(198, 161, 91, 0.12), transparent 62%),
              var(--bg-alt);
}
.page-head__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.92) 100%);
}
.page-head h1 { margin-top: 1rem; }
.page-head p { margin-top: 1.15rem; }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.6;
}
.crumbs a { transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text-2); }

/* 5. Buttons & controls =================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-size: 0.855rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--text-inverse);
  --btn-bd: var(--gold);
}
.btn--primary:hover {
  --btn-bg: var(--gold-light);
  --btn-bd: var(--gold-light);
  box-shadow: 0 14px 32px -14px rgba(198, 161, 91, 0.7);
}

.btn--ghost { --btn-bg: var(--tint-1); }
.btn--ghost:hover {
  --btn-bg: var(--tint-3);
  --btn-bd: var(--line-strong);
}

.btn--outline-gold { --btn-fg: var(--gold); --btn-bd: var(--gold-line); }
.btn--outline-gold:hover { --btn-bg: var(--gold-dim); --btn-bd: var(--gold); }

.btn--whatsapp {
  --btn-bg: var(--whatsapp);
  --btn-fg: #06301A;
  --btn-bd: var(--whatsapp);
}
.btn--whatsapp:hover { filter: brightness(1.08); }

.btn--sm { padding: 0.65rem 1.1rem; min-height: 40px; font-size: 0.76rem; }
.btn--lg { padding: 1.1rem 2rem; min-height: 56px; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Text link with animated rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold-line);
  transition: gap var(--t) var(--ease), border-color var(--t) var(--ease);
}
.link-arrow:hover { gap: 0.95rem; border-color: var(--gold); }

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--tint-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.chip--gold {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: var(--gold-line);
}
.chip--sold { color: var(--danger); border-color: rgba(210, 96, 79, 0.4); background: rgba(210, 96, 79, 0.12); }

/* Icon button */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease),
              background var(--t) var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--glass-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-active { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }
.icon-btn.is-active svg { fill: currentColor; }

/* 6. Navigation =========================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              height var(--t) var(--ease), backdrop-filter var(--t) var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.75), rgba(8, 8, 10, 0));
  /* Always dark: this gradient only appears over the cinematic hero. */
  opacity: 1;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.nav.is-scrolled {
  height: 66px;
  background: var(--glass-nav);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-scrolled::before,
.nav--solid::before { opacity: 0; }   /* the scrim only belongs over the hero */
.nav--solid {
  background: var(--glass-nav);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
  flex: none;
}
.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.53rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  color: var(--text-2);
  transition: color var(--t) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }

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

.nav__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: none;
  place-items: center;
  background: var(--gold);
  color: var(--text-inverse);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  line-height: 1;
}
.nav__count.is-visible { display: grid; }
.nav__icon-wrap { position: relative; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.burger__bars { position: relative; width: 18px; height: 12px; }
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger__bars span:nth-child(3) { bottom: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--shell-pad) 2rem;
  background: var(--glass-solid);
  backdrop-filter: blur(24px);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__links { display: grid; align-content: start; gap: 0.25rem; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(14px);
}
.drawer.is-open .drawer__link {
  animation: drawerIn 460ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.drawer__link span { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-3); }
.drawer__link.is-current { color: var(--gold); }
.drawer__foot { display: grid; gap: 0.75rem; padding-top: 1.5rem; }
.drawer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-3);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* 7. Hero ================================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3rem, 7vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  z-index: -2;
  will-change: transform;
  background-image: url("https://images.unsplash.com/photo-1585390062628-be8608aa7d83?auto=format&fit=crop&w=1920&q=70");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}
@media (max-width: 700px) {
  .hero__media { background-image: url("https://images.unsplash.com/photo-1585390062628-be8608aa7d83?auto=format&fit=crop&w=900&q=65"); }
}
/* Motion layer: the showroom clip covers the still once it can actually play.
   Until then (and forever, if it never loads) opacity stays 0 and the themed
   background image above shows through untouched. */
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__video {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  pointer-events: none;
  background: transparent;
}
.hero__video.is-ready { opacity: 1; }
/* No motion, no clip — the still hero stays exactly as it was. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.35) 32%, rgba(8, 8, 10, 0.94) 88%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.86) 0%, rgba(8, 8, 10, 0.1) 65%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.hero__content { max-width: 60rem; }
.hero h1 { margin-top: 0; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.65;
}
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.hero__stat {
  padding: 1.35rem 1.5rem;
  background: rgba(12, 13, 16, 0.6);
  backdrop-filter: blur(14px);
}
.hero__stat dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.4rem;
}
.hero__stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__stat dd .unit { color: var(--gold); }

/* Marquee brand rail */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding-block: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.marquee__item:hover { color: var(--gold); }

/* 8. Vehicle cards ======================================================== */

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.car-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

.car-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out), filter var(--t) var(--ease);
}
.car-card:hover .car-card__media img { transform: scale(1.055); }
.car-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, transparent 34%, rgba(8, 8, 10, 0.5) 100%);
  pointer-events: none;
}

.car-card__badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 5.5rem);
}
.car-card__badge {
  padding: 0.32rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  backdrop-filter: blur(8px);
}
.car-card__badge--featured { background: var(--gold); color: var(--text-inverse); }
.car-card__badge--reserved { background: rgba(8, 8, 10, 0.75); color: var(--on-dark); border: 1px solid var(--on-dark-line); }
.car-card__badge--sold { background: var(--danger); color: #fff; }

.car-card__tools {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.car-card:hover .car-card__tools,
.car-card:focus-within .car-card__tools { opacity: 1; transform: none; }
@media (hover: none) {
  .car-card__tools { opacity: 1; transform: none; }
}
.car-card__tools .icon-btn { width: 38px; height: 38px; }

.car-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}
.car-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.car-card__title {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.car-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.car-card__variant {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  color: var(--text-2);
}
.car-card__specs li { display: flex; align-items: center; gap: 0.4rem; }
.car-card__specs li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.7;
  margin-right: 0.35rem;
}
.car-card__specs svg { width: 14px; height: 14px; color: var(--text-3); }

.car-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
}
.car-card__price-label {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.car-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 0.15rem;
}
.car-card__price small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-right: 0.3rem;
}
.car-card__monthly { font-size: 0.74rem; color: var(--text-3); margin-top: 0.3rem; }
.car-card__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.6rem 0;
  transition: gap var(--t) var(--ease);
}
.car-card:hover .car-card__cta { gap: 0.8rem; }
.car-card__cta svg { width: 15px; height: 15px; }

.car-card--sold .car-card__media img { filter: grayscale(0.85) brightness(0.6); }

/* 9. Sections ============================================================= */

/* Feature / value cards */
.value-card {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.15rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.value-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.value-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.value-card:hover::after { transform: scaleX(1); }
.value-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 1.35rem;
}
.value-card__icon svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 1.16rem; }
.value-card p { margin-top: 0.7rem; color: var(--text-2); font-size: 0.93rem; line-height: 1.65; }
.value-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--tint-2);
  letter-spacing: -0.04em;
}

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; }
.split__badge span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.split__body h2 { margin-top: 1rem; }
.split__body p { margin-top: 1.25rem; color: var(--text-2); }

/* Checklist */
.checklist { display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats-strip__item {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  background: var(--bg);
  text-align: center;
}
.stats-strip__value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stats-strip__value .unit { color: var(--gold); }
.stats-strip__label {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { counter-increment: step; padding: clamp(1.6rem, 2.6vw, 2.25rem); background: var(--surface); transition: background var(--t) var(--ease); }
.step:hover { background: var(--surface-2); }
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.08rem; }
.step p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-2); }

/* Body-type / brand browse tiles */
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tile {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 1.85rem 1rem;
  background: var(--surface);
  text-align: center;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.tile:hover { background: var(--surface-2); }
.tile:hover .tile__icon { color: var(--gold); transform: translateY(-2px); }
.tile__icon { color: var(--text-3); transition: color var(--t) var(--ease), transform var(--t) var(--ease); }
.tile__icon svg { width: 40px; height: 26px; }
.tile__label { font-size: 0.8rem; font-weight: 500; }
.tile__count { font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.1em; }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.96) 12%, rgba(8, 8, 10, 0.6) 65%, rgba(8, 8, 10, 0.85) 100%);
}
.cta-band__inner { padding-block: clamp(4rem, 8vw, 7rem); max-width: 46rem; }
.cta-band h2 { margin-top: 1rem; }
.cta-band p { margin-top: 1.15rem; color: var(--text-2); }
.cta-band .cluster { margin-top: 2rem; }

/* 10. Inventory & filters ================================================= */

.inventory { display: grid; grid-template-columns: 296px 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }

.filters {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  max-height: calc(100vh - var(--nav-h) - 3rem);
  display: flex;
  flex-direction: column;
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.filters__head h2 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.filters__body { padding: 0.5rem 1.25rem 1.25rem; overflow-y: auto; flex: 1; }
.filters__foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); flex: none; display: none; gap: 0.75rem; }

.filter-group { border-bottom: 1px solid var(--line-soft); padding-block: 1.05rem; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0;
}
.filter-group__toggle svg { width: 14px; height: 14px; color: var(--text-3); transition: transform var(--t) var(--ease); }
.filter-group__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.filter-group__panel { display: grid; gap: 0.55rem; padding-top: 1rem; }
.filter-group__toggle[aria-expanded="false"] + .filter-group__panel { display: none; }

.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color var(--t-fast) var(--ease);
}
.check:hover { color: var(--text); }
.check input {
  appearance: none;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--text-inverse);
  border-bottom: 1.6px solid var(--text-inverse);
  transform: rotate(-45deg) scale(0);
  transition: transform var(--t-fast) var(--ease);
  margin-top: -2px;
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check__count { margin-left: auto; font-size: 0.75rem; color: var(--text-3); }

.range-row { display: flex; align-items: center; gap: 0.6rem; }
.range-row span { color: var(--text-3); font-size: 0.8rem; }

.field-inline {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease);
}
.field-inline:focus { border-color: var(--gold-line); outline: none; }

.filters__reset {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease);
}
.filters__reset:hover { color: var(--gold); }

/* Toolbar above results */
.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  background: var(--bg);
  transition: top var(--t) var(--ease);
}
html.is-scrolled .inv-toolbar {
  top: 66px;
}
.inv-toolbar__count { font-size: 0.9rem; color: var(--text-2); }
.inv-toolbar__count strong { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.inv-toolbar__spacer { margin-left: auto; }

.search-bar { position: relative; flex: 1; min-width: 240px; }
.search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.search-bar input {
  width: 100%;
  padding: 0.9rem 2.6rem 0.9rem 2.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar input:focus { outline: none; border-color: var(--gold-line); background: var(--surface-2); }
.search-bar__clear {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: var(--text-3);
}
.search-bar__clear:hover { color: var(--text); background: var(--tint-2); }
.search-bar.has-value .search-bar__clear { display: grid; }

.select-wrap { position: relative; }
.select-wrap svg {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-3);
  pointer-events: none;
}
.select-wrap { min-width: 0; }
.select-wrap select {
  appearance: none;
  max-width: 100%;
  text-overflow: ellipsis;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--t) var(--ease);
}
.select-wrap select:focus { outline: none; border-color: var(--gold-line); }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { color: var(--text); background: var(--tint-2); }

/* Active filter pills */
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.active-filters:empty { display: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: var(--text-2);
}
.pill button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--text-3);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pill button:hover { color: var(--text); background: var(--tint-3); }
.pill button svg { width: 11px; height: 11px; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap); }
.results-grid.is-list { grid-template-columns: 1fr; }
.results-grid.is-list .car-card { flex-direction: row; }
.results-grid.is-list .car-card__media { width: 40%; aspect-ratio: 16 / 11; flex: none; }
.results-grid.is-list .car-card__body { padding: 1.5rem 1.75rem; }

.empty-state {
  padding: clamp(3rem, 7vw, 5.5rem) 2rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.empty-state svg { width: 44px; height: 44px; color: var(--text-3); margin: 0 auto 1.5rem; }
.empty-state h3 { font-size: 1.35rem; }
.empty-state p { margin-top: 0.75rem; color: var(--text-3); max-width: 38ch; margin-inline: auto; }
.empty-state .cluster { justify-content: center; margin-top: 1.75rem; }

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.35s linear infinite;
  border-radius: var(--r-sm);
}
.skeleton-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.skeleton-card__media { aspect-ratio: 16 / 10; }
.skeleton-card__body { padding: 1.35rem; display: grid; gap: 0.7rem; }

/* Mobile filter trigger + sheet close (both desktop-hidden) */
.filter-trigger { display: none; }
.filters__close { display: none; }
@media (max-width: 1024px) {
  .filters__close { display: grid; }
}

/* 11. Vehicle detail ====================================================== */

.detail { padding-top: var(--nav-h); }
.detail__crumbs { padding-block: 1.5rem 0.5rem; }

.detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.detail__title h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.detail__title .car-card__variant { font-size: 1rem; margin-top: 0.5rem; }
.detail__key-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.detail__key-line li { display: flex; align-items: center; gap: 0.5rem; }
.detail__key-line li + li::before {
  content: "";
  width: 1px;
  height: 13px;
  background: var(--line-strong);
  margin-right: 0.5rem;
}
.detail__tools { display: flex; gap: 0.55rem; }

/* Sticky purchase panel */
.buy-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.buy-panel__price {
  padding: 1.6rem 1.6rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(198, 161, 91, 0.07), transparent);
}
.buy-panel__label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.buy-panel__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-top: 0.35rem;
  line-height: 1.05;
}
.buy-panel__value small { font-size: 0.9rem; font-weight: 500; color: var(--gold); letter-spacing: 0.06em; margin-right: 0.4rem; }
.buy-panel__finance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--text-2);
}
.buy-panel__finance strong { color: var(--text); font-family: var(--font-display); }
.buy-panel__actions { padding: 1.4rem 1.6rem; display: grid; gap: 0.7rem; }
.buy-panel__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.buy-panel__meta {
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: var(--text-3);
  background: var(--bg-alt);
}
.buy-panel__meta li { display: flex; align-items: center; gap: 0.6rem; }
.buy-panel__meta svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--t) var(--ease);
}
.highlight:hover { background: var(--surface-2); }
.highlight svg { width: 19px; height: 19px; color: var(--gold); flex: none; }

/* Key spec tiles */
.spec-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
}
.spec-tile {
  display: flex;
  flex-direction: column;
}
.spec-tile svg { width: 20px; height: 20px; color: var(--gold); margin-bottom: 0.5rem; }
.spec-tile dt { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.25rem; }
.spec-tile dd { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* Spec table groups */
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.spec-group h3 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 0.5rem;
}
.spec-list dt,
.spec-list dd { padding: 0.75rem 0; font-size: 0.9rem; }
.spec-list { display: grid; grid-template-columns: 1fr auto; }
.spec-list dt { color: var(--text-3); border-bottom: 1px solid var(--line-soft); }
.spec-list dd { margin: 0; text-align: right; font-weight: 500; border-bottom: 1px solid var(--line-soft); }

/* Feature groups */
.feature-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.feature-col { padding: clamp(1.5rem, 2.4vw, 2rem); background: var(--surface); }
.feature-col__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.35rem; }
.feature-col__head svg { width: 18px; height: 18px; color: var(--gold); }
.feature-col__head h3 { font-size: 0.98rem; letter-spacing: 0.02em; }
.feature-col ul { display: grid; gap: 0.7rem; }
.feature-col li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.89rem; color: var(--text-2); }
.feature-col li svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 3px; opacity: 0.8; }

/* Feature groups are <details>: on wide screens the heading is inert and every
   group stays open (car-details.js), so the only visible extra is the count. */
.feature-col__head { list-style: none; cursor: default; }
.feature-col__head::-webkit-details-marker { display: none; }
.feature-col__head h3 { flex: 1; }
.feature-col__count {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.feature-col__head > svg:last-child { display: none; width: 16px; height: 16px; color: var(--text-3); transition: transform var(--t) var(--ease); }

/* Generic phone fold (finance calculator). Inert above 640px. */
.fold > .fold__summary { display: none; list-style: none; }
.fold > .fold__summary::-webkit-details-marker { display: none; }

/* "Read more" under clamped showroom copy — only ever shown on phones. */
.read-more {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: none;
  border: 0;
  padding: 0.25rem 0;
}

/* Detail section blocks */
.detail-block { padding-block: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
.detail-block > h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin-bottom: 1.6rem;
}
.detail-block__intro { color: var(--text-2); max-width: 70ch; margin-bottom: 1.75rem; line-height: 1.75; }

/* About this vehicle card */
.about-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.about-card__content { margin-bottom: 1.5rem; }
.about-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}
.about-card__intro {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 12. Gallery ============================================================= */

.gallery { display: grid; gap: 0.75rem; }
.gallery__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-y;
}
.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t) var(--ease);
}
.gallery__stage img.is-swapping { opacity: 0; }

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--t) var(--ease), background var(--t) var(--ease);
}
.gallery__stage:hover .gallery__nav,
.gallery__stage:focus-within .gallery__nav { opacity: 1; }
@media (hover: none) { .gallery__nav { opacity: 1; } }
.gallery__nav:hover { background: rgba(198, 161, 91, 0.9); color: var(--text-inverse); }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: 1rem; }
.gallery__nav--next { right: 1rem; }

.gallery__counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.4rem 0.8rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.gallery__expand { position: absolute; bottom: 1rem; left: 1rem; z-index: 3; }

.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.gallery__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  opacity: 0.5;
  scroll-snap-align: start;
  transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(4, 4, 6, 0.97);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.lightbox__title { font-size: 0.85rem; color: var(--text-2); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform var(--t-slow) var(--ease-out);
  will-change: transform;
}
.lightbox__stage img.is-zoomed { cursor: zoom-out; transform: scale(2); }
.lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.lightbox__thumbs .gallery__thumb { width: 88px; flex: none; }
.lightbox .gallery__nav { opacity: 1; }
.lightbox .gallery__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox .gallery__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }

/* 13. Accordion =========================================================== */

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--t) var(--ease);
}
.accordion__trigger:hover { color: var(--gold); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { border-color: var(--gold-line); background: var(--gold-dim); color: var(--gold); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel p {
  padding-bottom: 1.5rem;
  color: var(--text-2);
  max-width: 76ch;
  line-height: 1.75;
}
.accordion__panel a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* 14. Forms =============================================================== */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; min-width: 0; }
.form-grid > * { min-width: 0; }
.field { display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }

.field label,
.fieldset legend {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field label .req { color: var(--gold); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.1);
}
.field select {
  appearance: none;
  background-image: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field--select { position: relative; }
.field--select > svg {
  position: absolute;
  right: 1rem;
  bottom: 1.05rem;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  pointer-events: none;
}
.field__hint { font-size: 0.78rem; color: var(--text-3); }
.field__error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--danger);
}
.field__error svg { width: 13px; height: 13px; flex: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: flex; }

/* Radio pills */
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { position: relative; }
.radio-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.radio-pill span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  color: var(--text-2);
  transition: all var(--t) var(--ease);
}
.radio-pill input:checked + span {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.radio-pill svg { width: 15px; height: 15px; }

.fieldset { display: grid; gap: 0.75rem; border: 0; padding: 0; }

/* Consent */
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.84rem; color: var(--text-3); line-height: 1.55; }
.consent input {
  appearance: none;
  width: 17px; height: 17px;
  flex: none;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--text-inverse);
  border-bottom: 1.6px solid var(--text-inverse);
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform var(--t-fast) var(--ease);
}
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* File drop */
.dropzone {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.dropzone:hover,
.dropzone.is-dragging { border-color: var(--gold); background: var(--gold-dim); }
.dropzone svg { width: 26px; height: 26px; color: var(--gold); }
.dropzone strong { font-size: 0.92rem; font-weight: 600; }
.dropzone span { font-size: 0.8rem; color: var(--text-3); }
.dropzone input { display: none; }
.file-list { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.83rem;
}
.file-list li svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.file-list .file-size { margin-left: auto; color: var(--text-3); font-size: 0.76rem; }
.file-list button { color: var(--text-3); display: grid; place-items: center; }
.file-list button:hover { color: var(--danger); }

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}
.form-success.is-visible { display: block; animation: fadeUp 520ms var(--ease-out) both; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}
.form-success__icon svg { width: 27px; height: 27px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { margin-top: 0.85rem; color: var(--text-2); max-width: 44ch; margin-inline: auto; }
.form-success .cluster { justify-content: center; margin-top: 1.85rem; }
form.is-submitted { display: none; }

/* Enquiry context strip inside forms */
.enquiry-context {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
}
.enquiry-context img { width: 84px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xs); }
.enquiry-context__name { font-weight: 600; font-size: 0.95rem; }
.enquiry-context__price { font-size: 0.84rem; color: var(--gold); margin-top: 0.15rem; }

/* 15. Testimonials ======================================================== */

.reviews { position: relative; }
.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  gap: var(--gap);
  transition: transform var(--t-slow) var(--ease-out);
  will-change: transform;
}
.review {
  flex: 0 0 calc((100% - var(--gap) * 2) / 3);
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.15rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.review__stars { display: flex; gap: 3px; color: var(--gold); }
.review__stars svg { width: 15px; height: 15px; fill: currentColor; }
.review__stars svg.is-empty { opacity: 0.22; }
.review__quote {
  margin-top: 1.15rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-2);
  flex: 1;
}
.review__foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.review__name { font-size: 0.92rem; font-weight: 600; }
.review__meta { font-size: 0.78rem; color: var(--text-3); margin-top: 0.15rem; }

.carousel-nav { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; max-width: 100%; }
.carousel-dots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-inline: 0.5rem; min-width: 0; }
.carousel-dots button {
  width: 24px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  transition: background var(--t) var(--ease), width var(--t) var(--ease);
}
.carousel-dots button[aria-current="true"] { background: var(--gold); width: 38px; }

/* 16. Finance calculator ================================================== */

.calc {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calc__inputs { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); display: grid; gap: 1.75rem; align-content: start; min-width: 0; }
.calc__result { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg-alt); display: flex; flex-direction: column; }

/* Names the car and price the instalment is derived from. Sits above the
   sliders in the vehicle-page widget; absent on any other [data-calc] block. */
.calc__vehicle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-2);
}
.calc__vehicle:empty { display: none; }
.calc__vehicle span { color: var(--text-3); font-size: 0.82rem; }
.calc__vehicle strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
/* Outranks `.calc__vehicle strong` above — same class count, one more element,
   so it needs the extra qualifier to win the colour. */
.calc__vehicle strong.calc__vehicle-price { color: var(--gold); flex-basis: 100%; }

.calc-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.calc-field__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.calc-field__value {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc-field__value small { font-size: 0.72rem; color: var(--gold); margin-right: 0.25rem; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold) var(--fill, 40%), var(--line-strong) var(--fill, 40%));
}
input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold) var(--fill, 40%), var(--line-strong) var(--fill, 40%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold-line), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold-line);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.calc-field__scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-3); margin-top: 0.35rem; }

.calc__monthly { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.calc__monthly-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.calc__monthly-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.calc__monthly-value small { font-size: 0.95rem; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; margin-right: 0.4rem; }
.calc__monthly-note { font-size: 0.8rem; color: var(--text-3); margin-top: 0.5rem; }

.calc__breakdown { display: grid; gap: 0; margin-top: 1.5rem; }
.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.89rem;
}
.calc__row dt { color: var(--text-3); }
.calc__row dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__row--total dd { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }

.calc__disclaimer {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--tint-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.6;
  display: flex;
  gap: 0.65rem;
}
.calc__disclaimer svg { width: 15px; height: 15px; flex: none; color: var(--text-3); margin-top: 2px; }
.calc__actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.7rem; }

/* 17. Compare & favorites ================================================= */

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 150%);
  z-index: 85;
  width: min(960px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.85rem 0.85rem 1.35rem;
  background: var(--glass-solid);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-slow) var(--ease-out);
}
.compare-bar.is-visible { transform: translate(-50%, 0); }
.compare-bar__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); flex: none; }
.compare-bar__items { display: flex; gap: 0.6rem; flex: 1; overflow-x: auto; }
.compare-bar__item {
  position: relative;
  width: 74px;
  aspect-ratio: 4 / 3;
  flex: none;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare-bar__item img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar__item button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.85);
  border-radius: 50%;
  color: var(--on-dark);
}
.compare-bar__item button svg { width: 9px; height: 9px; }
.compare-bar__slot {
  width: 74px;
  aspect-ratio: 4 / 3;
  flex: none;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 0.7rem;
}
.compare-bar__actions { display: flex; gap: 0.5rem; flex: none; }

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  vertical-align: middle;
}
.compare-table thead th { background: var(--surface); vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table tbody th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-alt);
  width: 190px;
  position: sticky;
  left: 0;
}
.compare-table tbody tr:hover td { background: var(--tint-1); }
.compare-table td.is-best { color: var(--gold); font-weight: 600; }
.compare-head__media { aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 0.85rem; }
.compare-head__media img { width: 100%; height: 100%; object-fit: cover; }
.compare-head__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.compare-head__price { color: var(--gold); font-size: 0.92rem; margin-top: 0.25rem; }
.compare-head__remove { margin-top: 0.75rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.compare-head__remove:hover { color: var(--danger); }

/* 18. Modal, toast, floating actions ====================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform var(--t-slow) var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 1.32rem; }
.modal__head p { font-size: 0.87rem; color: var(--text-3); margin-top: 0.4rem; }
.modal__body { padding: 1.75rem; }
.modal__close { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-2); transition: all var(--t) var(--ease); }
.modal__close:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.modal__close svg { width: 15px; height: 15px; }

/* Status modal — sold / reserved notice on the vehicle detail page */
/* One explicit column: an auto track would grow to the panel's max width and
   push it off-screen on phones. */
.modal--status { z-index: 112; grid-template-columns: minmax(0, 1fr); }
.status-modal__panel { width: min(460px, 100%); max-height: none; overflow: visible; }
.status-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.status-modal__body { padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 2.5rem) clamp(1.75rem, 4vw, 2.25rem); text-align: center; }
.status-modal__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
}
.status-modal__icon svg { width: 26px; height: 26px; }
.status-modal--sold .status-modal__icon { color: var(--danger); background: rgba(210, 96, 79, 0.12); border-color: rgba(210, 96, 79, 0.4); }
.status-modal__body .chip { margin-bottom: 1rem; }
.status-modal__body h2 { font-size: 1.45rem; line-height: 1.2; }
.status-modal__body p { margin-top: 0.75rem; color: var(--text-3); font-size: 0.92rem; max-width: 36ch; margin-inline: auto; }
.status-modal__actions { display: grid; gap: 0.6rem; margin-top: 1.6rem; }
.status-modal__actions .btn { width: 100%; }
/* Toast */
.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 130;
  display: grid;
  gap: 0.6rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background: var(--glass-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 380ms var(--ease-out) both;
  pointer-events: auto;
  max-width: 340px;
}
.toast.is-leaving { animation: toastOut 280ms var(--ease) forwards; }
.toast svg { width: 17px; height: 17px; flex: none; color: var(--gold); }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  background: var(--whatsapp);
  color: #06301A;
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.6);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.fab-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(37, 211, 102, 0.75); }
.fab-whatsapp svg { width: 21px; height: 21px; flex: none; }
.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.5);
  animation: pulseRing 2.8s var(--ease) infinite;
  pointer-events: none;
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 84;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--glass-solid);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar a,
.mobile-bar button {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border-right: 1px solid var(--line-soft);
}
.mobile-bar > :last-child { border-right: 0; }
.mobile-bar svg { width: 19px; height: 19px; }
.mobile-bar .is-primary { color: var(--gold); }
.mobile-bar .is-whatsapp { color: var(--whatsapp); }

/* Progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  pointer-events: none;
}

/* 19. Footer ============================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.footer__brand p { margin-top: 1.35rem; color: var(--text-3); font-size: 0.9rem; max-width: 34ch; line-height: 1.7; }
.footer h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}
.footer__links { display: grid; gap: 0.75rem; }
.footer__links--columns { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease), padding-left var(--t) var(--ease);
}
.footer__links a:hover { color: var(--gold); padding-left: 5px; }

.footer__contact { display: grid; gap: 1rem; }
.footer__contact li { display: flex; gap: 0.75rem; font-size: 0.9rem; color: var(--text-2); }
.footer__contact svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: 3px; }
.footer__contact a:hover { color: var(--gold); }
.footer__contact span { color: var(--text-3); display: block; font-size: 0.78rem; margin-top: 2px; }

.socials { display: flex; gap: 0.55rem; margin-top: 1.75rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: all var(--t) var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bottom a { color: inherit; transition: color 0.2s ease; }
.footer__bottom a:hover { color: var(--gold); }

/* 20. Utilities =========================================================== */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.full { grid-column: 1 / -1; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin-top: 2.25rem; }
.prose p { margin-top: 1.15rem; color: var(--text-2); line-height: 1.8; }
.prose ul { margin-top: 1.15rem; display: grid; gap: 0.7rem; }
.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-2);
  line-height: 1.7;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }

/* Map embed */
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.86); }

/* Opening hours */
.hours { display: grid; gap: 0; }
.hours li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.hours li span:first-child { color: var(--text-3); }
.hours li.is-today { color: var(--gold); }
.hours li.is-today span:first-child { color: var(--gold); }

/* Showroom gallery mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 0.75rem;
}
.mosaic figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-column: span 2; }

/* ==========================================================================
   21. Blog
   --------------------------------------------------------------------------
   The article list on /blogs. Posts are read in place rather than on a second
   page, so a long one is clamped to a readable opening and expands where it
   sits — the clamp is a max-height rather than -webkit-line-clamp so the
   reveal can be animated and so the collapsed state still measures its full
   height, which is how the script knows whether the toggle is needed at all.
   ========================================================================== */

/* The count and the cards share one measure, set on the wrapper rather than on
   each — `ch` resolves against the element's own font size, so the smaller
   count would otherwise centre itself on a narrower column than the cards. */
.blog-column { max-width: 78ch; margin-inline: auto; }
.blog-list { display: grid; gap: var(--gap); }
.blog-count { margin-bottom: 1.5rem; }

.blog-card {
  position: relative;
  padding: clamp(1.6rem, 3.2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.blog-card:hover { border-color: var(--line-strong); }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.blog-card__meta svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

.blog-card__title {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-card__body {
  max-width: none;
  max-height: 11.5em;
  overflow: hidden;
  /* Fades the clamped last line into the card rather than guillotining it. */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  transition: max-height var(--t) var(--ease);
}
.blog-card__body > p:first-child { margin-top: 1.15rem; }

.blog-card.is-open .blog-card__body {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
}
.blog-card__more svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.blog-card__more:hover { color: var(--gold-light); }
.blog-card.is-open .blog-card__more svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .blog-card__body, .blog-card__more svg { transition: none; }
}

/* ==========================================================================
   22. Light theme
   --------------------------------------------------------------------------
   Applied by setting data-theme="light" on <html>. The dark palette above
   stays the default so the brand's first impression is unchanged; an inline
   script in each page head restores the visitor's saved choice before paint.

   Full-bleed photographic sections (hero, CTA bands, the lightbox) keep a
   dark treatment in both themes and re-point their inherited tokens to light
   ink, so the cinematic imagery still carries white type.
   ========================================================================== */

:root[data-theme="light"] {
  color-scheme: light;

  /* Surfaces — warm paper white rather than clinical grey */
  --bg:            #FAF9F7;
  --bg-alt:        #F2F0EB;
  --surface:       #FFFFFF;
  --surface-2:     #F7F5F1;
  --surface-3:     #EFECE6;

  /* Lines */
  --line:          rgba(20, 18, 14, 0.11);
  --line-strong:   rgba(20, 18, 14, 0.22);
  --line-soft:     rgba(20, 18, 14, 0.06);

  /* Text */
  --text:          #16161A;
  --text-2:        #4C4C57;
  --text-3:        #65656F;   /* >= 4.5:1 on every light surface */
  --text-inverse:  #FFFFFF;

  /* Accent — a deeper bronze so gold stays legible on white */
  --gold:          #7E5D1C;      /* deep bronze — >= 4.5:1 on tinted surfaces */
  --gold-light:    #634916;      /* hover: darkens instead of lightening */
  --gold-dim:      rgba(126, 93, 28, 0.10);
  --gold-line:     rgba(126, 93, 28, 0.34);

  --success:       #1F7A57;
  --danger:        #B0392A;

  /* Elevation — softer and warmer than the dark theme */
  --shadow-md:     0 12px 30px -14px rgba(24, 20, 12, 0.22);
  --shadow-lg:     0 28px 60px -28px rgba(24, 20, 12, 0.30);

  /* Tints & glass */
  --tint-1:        rgba(20, 18, 14, 0.035);
  --tint-2:        rgba(20, 18, 14, 0.06);
  --tint-3:        rgba(20, 18, 14, 0.10);
  --glass:         rgba(255, 255, 255, 0.80);
  --glass-strong:  rgba(255, 255, 255, 0.94);
  --glass-nav:     rgba(250, 249, 247, 0.86);
  --glass-solid:   rgba(255, 255, 255, 0.97);
  --backdrop:      rgba(28, 25, 20, 0.55);
  --scroll-thumb:  #CFCAC0;
  --scroll-thumb-hover: #B8B2A6;
}

/* Photographic sections stay dark in both themes ------------------------- */

:root[data-theme="light"] .cta-band,
:root[data-theme="light"] .lightbox {
  --text:          #F4F4F6;
  --text-2:        #C9CAD1;
  --text-3:        #9B9CA5;
  --text-inverse:  #0A0A0C;
  --line:          rgba(255, 255, 255, 0.10);
  --line-strong:   rgba(255, 255, 255, 0.20);
  --line-soft:     rgba(255, 255, 255, 0.06);
  --gold:          #D8B979;
  --gold-light:    #E8D0A0;
  --gold-dim:      rgba(216, 185, 121, 0.16);
  --gold-line:     rgba(216, 185, 121, 0.42);
  --tint-1:        rgba(255, 255, 255, 0.05);
  --tint-2:        rgba(255, 255, 255, 0.09);
  --tint-3:        rgba(255, 255, 255, 0.14);
  --glass:         rgba(12, 13, 16, 0.62);
  --glass-strong:  rgba(24, 26, 31, 0.88);
  color: var(--text);
}

/* Interior page headers become light, with the photo as a faint wash ----- */

:root[data-theme="light"] .page-head::before {
  background: radial-gradient(90% 120% at 15% 0%, rgba(126, 93, 28, 0.10), transparent 62%),
              var(--bg-alt);
}
:root[data-theme="light"] .page-head::after {
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.74) 0%, rgba(250, 249, 247, 0.95) 100%);
}
:root[data-theme="light"] .page-head__media { opacity: 0.22; }

/* Component corrections -------------------------------------------------- */

:root[data-theme="light"] .hero__media {
  background-image: url("https://images.unsplash.com/photo-1660108424203-2300518b1e10?auto=format&fit=crop&w=1920&q=72");
  background-position: center 50%;
}
@media (max-width: 700px) {
  :root[data-theme="light"] .hero__media { background-image: url("https://images.unsplash.com/photo-1660108424203-2300518b1e10?auto=format&fit=crop&w=900&q=66"); }
}

/* A pale wash instead of the dark scrim, weighted left so the headline,
   supporting copy and stat strip all sit on near-solid paper. */
:root[data-theme="light"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(250, 249, 247, 0.48) 0%, rgba(250, 249, 247, 0.14) 26%, rgba(250, 249, 247, 0.97) 86%),
    linear-gradient(90deg, rgba(250, 249, 247, 0.94) 0%, rgba(250, 249, 247, 0.62) 42%, rgba(250, 249, 247, 0.10) 74%);
}
/* Footage shot for a dark hero is too heavy under the pale wash — lift and
   soften it so the headline keeps its contrast. */
:root[data-theme="light"] .hero__video {
  filter: brightness(1.12) saturate(0.92);
}
:root[data-theme="light"] .hero__video.is-ready { opacity: 0.85; }
:root[data-theme="light"] .hero__grain {
  background-image: radial-gradient(rgba(20, 18, 14, 0.05) 1px, transparent 1px);
  opacity: 0.4;
}
:root[data-theme="light"] .hero__stat {
  background: rgba(255, 255, 255, 0.66);
}
/* The nav now sits over pale artwork, so it keeps the light-theme ink and
   needs its dark top scrim flipped. */
:root[data-theme="light"] .nav::before {
  background: linear-gradient(180deg, rgba(250, 249, 247, 0.85), rgba(250, 249, 247, 0));
}
:root[data-theme="light"] .buy-panel__price {
  background: linear-gradient(180deg, rgba(126, 93, 28, 0.06), transparent);
}
:root[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
}
:root[data-theme="light"] .map-frame iframe { filter: none; }
:root[data-theme="light"] .review__avatar { color: var(--gold); }
:root[data-theme="light"] .car-card__media::after {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.16) 0%, transparent 34%, rgba(8, 8, 10, 0.36) 100%);
}
:root[data-theme="light"] .btn--whatsapp { --btn-fg: #04240F; }
:root[data-theme="light"] .fab-whatsapp { color: #04240F; }
:root[data-theme="light"] .mobile-bar .is-whatsapp { color: #0F8A43; }
/* Theme switch ------------------------------------------------------------ */

.theme-toggle svg { transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }
.theme-toggle:hover svg { transform: rotate(-12deg); }

.drawer .theme-toggle { justify-content: center; }
.drawer .theme-toggle svg { width: 17px; height: 17px; }
