/* ==========================================================================
   RawGadz, shared stylesheet
   Concept: a cool "chrome mist" showroom floor. Photography carries the
   emotion, wide Archivo carries the badge-like voice, one papaya accent
   marks every action. Light theme only.

   Shape rule: cards and photos use --r-card, form fields use --r-field,
   every button and chip is a full pill.
   Z-index scale: nav 40, mobile menu 41, hero controls 3, hero copy 2.
   ========================================================================== */

:root{
  --bg: #eceeef;
  --surface: #f6f7f7;
  --surface-2: #e2e5e7;
  --ink: #14171a;
  --ink-soft: #2a2f34;
  --steel: #565e64;
  --line: rgba(20,23,26,0.12);
  --line-strong: rgba(20,23,26,0.22);
  --accent: #ee6a2f;           /* fills only: buttons, progress, focus */
  --accent-hover: #f47d47;
  --accent-text: #b4461a;      /* accent used as text on light surfaces */
  --on-accent: #14171a;
  --error: #b42318;
  --shadow: 0 1px 2px rgba(20,23,26,0.06), 0 12px 32px -12px rgba(20,23,26,0.18);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-card: 16px;
  --r-field: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wipe: cubic-bezier(0.77, 0, 0.18, 1);
  --nav-h: 72px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; }

h1, h2, h3, h4{
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0; color: var(--steel); max-width: 60ch; text-wrap: pretty; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ph{ line-height: 1; }

/* ------------------------------ eyebrow --------------------------------- */
.eyebrow{
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ------------------------------ buttons --------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .2s var(--ease);
}
.btn .ph{ font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right{ transform: translateX(3px); }
.btn:active{ transform: scale(0.98); }

.btn-primary{ background: var(--accent); color: var(--on-accent); }
.btn-primary:hover{ background: var(--accent-hover); }

.btn-outline{ border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover{ border-color: var(--ink); }

/* ghost variant for photographic backgrounds: tinted backdrop + stroke */
.btn-glass{
  color: #f4f6f7;
  border-color: rgba(255,255,255,0.35);
  background: rgba(14,16,18,0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass:hover{ border-color: rgba(255,255,255,0.8); background: rgba(14,16,18,0.42); }

.btn-sm{ min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block{ width: 100%; }

.text-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.text-link:hover{ border-color: var(--accent); gap: 12px; }

/* -------------------------------- nav ----------------------------------- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  color: var(--ink);
  background: rgba(236,238,239,0.94);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(20,23,26,0.35);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* keeps anchor targets clear of the fixed bar */
html{ scroll-padding-top: calc(var(--nav-h) + 16px); }
.hero-marker{
  position: absolute;
  left: 0; right: 0;
  bottom: var(--nav-h);
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
/* over the hero photo the bar goes transparent with light text */
.js .site-nav.is-over-hero{
  color: #f4f6f7;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.js .site-nav.is-over-hero .btn-outline{ color: #f4f6f7; border-color: rgba(255,255,255,0.4); }
.js .site-nav.is-over-hero .nav-toggle{ border-color: rgba(255,255,255,0.4); }

.brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-icon{
  font-size: 26px;
  color: var(--accent);
  transition: transform .6s var(--ease);
}
.brand:hover .brand-icon{ transform: rotate(-90deg); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-size: 15px;
  font-weight: 500;
  opacity: 0.78;
  position: relative;
  padding: 6px 0;
  transition: opacity .2s ease;
}
.nav-links a:hover, .nav-links a.current{ opacity: 1; }
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.current::after{ transform: scaleX(1); }

.nav-right{ display: flex; align-items: center; gap: 18px; }
.nav-phone{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.8;
  white-space: nowrap;
}

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mobile-nav{
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-nav.open{ opacity: 1; transform: none; visibility: visible; }
.mobile-nav a{
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn{ margin-top: 18px; border-bottom: 1px solid transparent; }

/* -------------------------------- hero ---------------------------------- */
.hero{
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f4f6f7;
  background: #0e1012;
  overflow: hidden;
  isolation: isolate;
}

.hero-slides{ position: absolute; inset: 0; z-index: 0; }
.hero-slide{
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}
.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 60% 50%);
  transform: scale(1.02);
}
.hero-slide.is-active{ visibility: visible; z-index: 1; }
.hero-slide.is-leaving{ visibility: visible; z-index: 0; }
/* same declaration for active and leaving so the zoom never restarts mid-exit */
.hero-slide.is-active img, .hero-slide.is-leaving img{ animation: settle 8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* the incoming photo wipes across like a car passing the camera */
.hero-slide.is-entering{ animation: wipe-in 1.15s var(--ease-wipe) both; }
.hero-slide.is-entering.from-left{ animation-name: wipe-in-left; }

@keyframes wipe-in{ from{ clip-path: inset(0 0 0 100%); } to{ clip-path: inset(0 0 0 0); } }
@keyframes wipe-in-left{ from{ clip-path: inset(0 100% 0 0); } to{ clip-path: inset(0 0 0 0); } }
@keyframes settle{ from{ transform: scale(1.12); } to{ transform: scale(1.02); } }

/* scrim keeps the copy legible over bright skies and dark garages alike */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,12,14,0.72) 0%, rgba(10,12,14,0.35) 42%, rgba(10,12,14,0) 70%),
    linear-gradient(0deg, rgba(10,12,14,0.85) 0%, rgba(10,12,14,0.25) 38%, rgba(10,12,14,0) 60%),
    linear-gradient(180deg, rgba(10,12,14,0.5) 0%, rgba(10,12,14,0) 20%);
}

.hero-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.hero-copy{ max-width: 980px; }
.hero-copy .eyebrow{ color: #ffb58f; }
.hero h1{
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  margin: 18px 0 22px;
  color: #f7f8f8;
}
.hero-copy p{
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(244,246,247,0.82);
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-ctas{ display: flex; gap: 12px; flex-wrap: wrap; }

/* entry choreography for the copy on first paint */
.hero-copy > *{ animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2){ animation-delay: .08s; }
.hero-copy > *:nth-child(3){ animation-delay: .16s; }
.hero-copy > *:nth-child(4){ animation-delay: .24s; }
@keyframes rise{ from{ opacity: 0; transform: translateY(18px); } to{ opacity: 1; transform: none; } }

/* model rail: the slider controls are the lineup itself */
.hero-rail{
  position: relative;
  z-index: 3;
  margin-top: clamp(40px, 7vh, 88px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 20px;
}
.rail-tab{
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 14px 0 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(244,246,247,0.62);
  position: relative;
  transition: color .3s var(--ease);
}
.rail-tab::before, .rail-tab::after{
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  border-radius: 2px;
}
.rail-tab::before{ right: 0; background: rgba(255,255,255,0.22); }
.rail-tab::after{
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.rail-tab:hover{ color: #f4f6f7; }
.rail-tab.is-active{ color: #f7f8f8; }
.rail-tab.is-active::after{ animation: progress var(--dur, 7000ms) linear forwards; }
.hero.is-paused .rail-tab.is-active::after{ animation-play-state: paused; }
@keyframes progress{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

.rail-name{
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rail-meta{
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.75;
}

.rail-controls{ display: flex; gap: 8px; }
.rail-btn{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(14,16,18,0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #f4f6f7;
  transition: border-color .25s ease, background-color .25s ease, transform .2s var(--ease);
}
.rail-btn:hover{ border-color: rgba(255,255,255,0.8); }
.rail-btn:active{ transform: scale(0.94); }

/* ------------------------------- stats ---------------------------------- */
.stats{ border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat{
  padding: 34px 28px 32px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stat:first-child{ border-left: none; padding-left: 0; }
.stat .num{
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.stat .desc{ font-size: 14px; line-height: 1.4; color: var(--steel); }

/* ------------------------------ sections -------------------------------- */
.section{ padding-block: clamp(80px, 10vw, 136px); }
.section-head{ max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2{ font-size: clamp(34px, 4.4vw, 60px); }
.section-head p{ margin-top: 18px; font-size: 17px; }
.section-head .text-link{ margin-top: 24px; }

/* scroll reveal, gated so content is visible without JS */
.js .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in{ opacity: 1; transform: none; }
.js .reveal-stagger > *{ opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal-stagger.is-in > *{ opacity: 1; transform: none; }

/* ------------------------------ vehicles -------------------------------- */
.grid-vehicles{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.vcard:nth-child(1){ grid-column: span 7; }
.vcard:nth-child(2){ grid-column: span 5; }
.vcard:nth-child(3){ grid-column: span 5; }
.vcard:nth-child(4){ grid-column: span 7; }

.vcard{
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.vcard:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }

.vphoto{
  height: clamp(220px, 26vw, 380px);
  overflow: hidden;
  background: var(--surface-2);
}
.vphoto img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 1.2s var(--ease);
}
.vcard:hover .vphoto img{ transform: scale(1.04); }

.vbody{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  padding: 26px 28px 28px;
  align-items: end;
  flex: 1;
}
.vtitle h3{ font-size: clamp(22px, 2vw, 28px); }
.vtitle .type{ margin-top: 8px; font-size: 14px; color: var(--steel); }
.vtitle .stock{ color: var(--accent-text); font-weight: 600; }
.vcard .price{
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.vcard .price small{ display: block; font-size: 12px; color: var(--steel); font-weight: 400; }

.specs{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.specs div{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.specs dt{ font-size: 12px; color: var(--steel); }
.specs dd{ margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; }

.vcard .vcta{ grid-column: 1 / -1; justify-self: start; }

/* ----------------------------- accessories ------------------------------ */
.accessories{ background: var(--surface); border-block: 1px solid var(--line); }

.shop-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.shop-head > div{ max-width: 720px; }
.shop-head h2{ font-size: clamp(34px, 4.4vw, 60px); }
.shop-head p{ margin-top: 18px; font-size: 17px; }
.shop-head .text-link{ flex: none; }

/* storefront grid: every card the same size, 4 x 3 on desktop */
.product-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.pcard{
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.pcard:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }

.pphoto{
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.pphoto img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 1s var(--ease);
}
.pcard:hover .pphoto img{ transform: scale(1.05); }

/* sale badge carries real data: the discount on the live store */
.pbadge{
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.pbody{
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 18px 18px;
}
.pcat{ font-size: 12px; color: var(--steel); }
.pbody h3{
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(15px * 1.35 * 2);
}
.pbody h3 a:hover{ color: var(--accent-text); }
.pprice{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 4px 0 14px;
  font-family: var(--mono);
}
.pprice strong{ font-size: 16px; font-weight: 500; }
.pprice s{ font-size: 13px; color: var(--steel); }
.pfrom{ font-family: var(--body); font-size: 12px; color: var(--steel); }
.pbody .btn{ margin-top: auto; }
.pcard:hover .btn-outline{ border-color: var(--ink); }

/* ------------------------------ visit ----------------------------------- */
.visit{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.visit-photo{
  grid-column: span 6;
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  width: 100%;
}
.visit-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.visit-copy{ grid-column: 8 / span 5; }
.visit-copy h2{ font-size: clamp(32px, 3.8vw, 52px); margin-top: 16px; }

.steps{ list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; }
.steps li{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
}
.steps li + li{ border-top: 1px solid var(--line); }
.steps .mark{
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
}
.steps li:first-child .mark{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps h3{ font-family: var(--body); font-stretch: 100%; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.steps p{ font-size: 15px; margin-top: 6px; }

.showroom-list{
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 24px;
  align-items: center;
}
.showroom-list li{ display: flex; gap: 12px; align-items: flex-start; }
.showroom-list .ph{ font-size: 20px; color: var(--accent-text); margin-top: 2px; }
.showroom-list strong{ display: block; font-weight: 600; font-size: 15px; }
.showroom-list span{ font-size: 14px; color: var(--steel); }
.showroom-list .hours{ font-family: var(--mono); font-size: 13px; color: var(--steel); }

/* ---------------------------- testimonial ------------------------------- */
.testimonial{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}
.testimonial figure{ grid-column: 2 / span 9; margin: 0; }
.testimonial blockquote{
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.testimonial blockquote .hl{ color: var(--accent-text); }
.testimonial figcaption{ margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.testimonial figcaption img{ width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.testimonial figcaption strong{ display: block; font-size: 15px; font-weight: 600; }
.testimonial figcaption span{ font-size: 14px; color: var(--steel); }

/* ------------------------------- cta band ------------------------------- */
.cta-band{ padding: 0 var(--gutter) clamp(64px, 8vw, 104px); }
.cta-inner{
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  border-radius: calc(var(--r-card) + 4px);
  overflow: hidden;
  background: #0b0c0d;
  color: #f4f6f7;
  min-height: clamp(360px, 38vw, 520px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
/* the studio shot has a black ground, so it can sit on the right and melt into the panel */
.cta-inner img{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 76%; height: 100%;
  object-fit: cover;
  object-position: 80% 55%;
  z-index: -1;
}
.cta-inner::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b0c0d 0%, #0b0c0d 26%, rgba(11,12,13,0.55) 46%, rgba(11,12,13,0) 66%);
}
.cta-copy{ padding: clamp(28px, 5vw, 64px); max-width: 640px; }
.cta-copy h2{ font-size: clamp(30px, 4vw, 56px); color: #f7f8f8; }
.cta-copy p{ color: rgba(244,246,247,0.78); margin: 18px 0 30px; font-size: 17px; }

/* -------------------------------- footer -------------------------------- */
footer{ padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-grid h4{
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--steel);
  margin-bottom: 18px;
}
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 12px; font-size: 15px; }
.footer-grid li a{ transition: color .2s ease; }
.footer-grid li a:hover{ color: var(--accent-text); }
.footer-grid > div > p{ font-size: 15px; margin-top: 14px; max-width: 36ch; }

.newsletter{ margin-top: 28px; max-width: 380px; }
.newsletter label{ display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.newsletter .row{
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .2s ease;
}
.newsletter .row:focus-within{ border-color: var(--accent); }
.newsletter input{
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.newsletter input::placeholder{ color: var(--steel); }
.newsletter input:focus{ outline: none; }
.newsletter .hint{ font-size: 13px; margin-top: 8px; }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--steel);
}
.socials{ display: flex; gap: 10px; }
.socials a{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.socials a:hover{ border-color: var(--accent); color: var(--accent-text); }

/* ======================== test drive booking page ======================== */
.page-head{
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb{ display: flex; gap: 8px; font-size: 14px; color: var(--steel); margin-bottom: 20px; }
.breadcrumb a:hover{ color: var(--ink); }
.page-head h1{ font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; margin-bottom: 18px; }
.page-head p{ font-size: 18px; }

.booking-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 120px);
}

.field-group{ margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.group-label{
  display: block;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.hint{ font-size: 13px; color: var(--steel); margin-top: 8px; }

.vehicle-select{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.vopt{ position: relative; display: block; cursor: pointer; }
.vopt input{ position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vopt .card{
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.vopt .thumb{ display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.vopt .thumb img{ width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.vopt .thumb.empty{ display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--steel); }
.vopt .label{ display: block; padding: 10px 12px 12px; }
.vopt .name{ display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.vopt .type{ display: block; font-size: 12px; color: var(--steel); margin-top: 2px; }
.vopt:hover .card{ border-color: var(--ink); }
.vopt input:checked + .card{ border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vopt input:focus-visible + .card{ outline: 2px solid var(--accent); outline-offset: 3px; }

.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.text-field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.text-field label{ font-size: 14px; font-weight: 600; color: var(--ink); }
.text-field input, .text-field select, .text-field textarea{
  width: 100%;
  min-height: 50px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.text-field select{ appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.text-field textarea{ resize: vertical; min-height: 110px; }
.text-field input:focus, .text-field select:focus, .text-field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.text-field input::placeholder, .text-field textarea::placeholder{ color: var(--steel); }

.radio-row{ display: flex; gap: 10px; flex-wrap: wrap; }
.radio-opt{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.radio-opt:has(input:checked){ border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.radio-opt input{ accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

.form-error{ display: none; font-size: 13px; color: var(--error); }
.invalid .form-error{ display: block; }
.text-field.invalid input, .text-field.invalid select{ border-color: var(--error); }

.submit-row .hint{ margin-top: 14px; text-align: center; max-width: none; }

/* summary */
.summary{ position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.summary-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.summary-photo{ aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.summary-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: opacity .35s ease; }
.summary-photo img.is-swapping{ opacity: 0; }
.summary-body{ padding: 22px 24px 24px; }
.summary-body .kicker{ font-size: 13px; color: var(--steel); }
.summary-body h3{ font-size: 24px; margin-top: 6px; }
.summary-body .type{ font-size: 14px; color: var(--steel); margin-top: 6px; }
.summary-specs{
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.summary-specs div{ display: flex; flex-direction: column; gap: 2px; }
.summary-specs dt{ font-size: 12px; color: var(--steel); }
.summary-specs dd{ margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; }

.info-block{
  padding: 22px 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}
.info-block h4{ font-family: var(--body); font-stretch: 100%; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.info-block ul{ list-style: none; margin: 0; padding: 0; }
.info-block li{ display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; color: var(--ink-soft); }
.info-block li .ph{ color: var(--accent-text); font-size: 18px; }
.info-block .hours{ margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--steel); }
.info-block .hours strong{ color: var(--ink); font-weight: 600; }

.confirm-panel{
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}
.confirm-panel .mark{
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
}
.confirm-panel h2{ font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.confirm-panel .ref{ margin-top: 22px; font-family: var(--mono); font-size: 15px; }
.confirm-panel .ref span{ color: var(--accent-text); font-weight: 500; }
.confirm-panel .btn{ margin-top: 28px; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 1120px){
  .nav-phone{ display: none; }
}

@media (max-width: 1024px){
  .vcard:nth-child(n){ grid-column: span 6; }
  .product-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid{ grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid > div:first-child{ grid-column: 1 / -1; }
  .booking-layout{ grid-template-columns: 1fr; }
  .summary{ position: static; grid-row: 1; }
  .showroom-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showroom-list .hours{ grid-column: 1 / -1; }
}

@media (max-width: 860px){
  .nav-links, .nav-right .btn{ display: none; }
  .nav-toggle{ display: inline-flex; }

  .hero-rail{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .rail-controls{ display: none; }
  .rail-meta{ display: none; }
  .rail-name{ font-size: 12px; }

  .stats .wrap{ grid-template-columns: 1fr 1fr; }
  .stat{ padding: 24px 0; border-left: none; flex-direction: column; gap: 6px; }
  .stat:nth-child(even){ padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3){ border-top: 1px solid var(--line); }

  .visit{ grid-template-columns: 1fr; }
  .visit-photo, .visit-copy{ grid-column: 1 / -1; }
  .visit-photo{ aspect-ratio: 4 / 3; }

  .testimonial figure{ grid-column: 1 / -1; }
  .field-row{ grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px){
  .hero::after{
    background:
      linear-gradient(0deg, rgba(10,12,14,0.92) 0%, rgba(10,12,14,0.6) 45%, rgba(10,12,14,0.1) 75%),
      linear-gradient(180deg, rgba(10,12,14,0.55) 0%, rgba(10,12,14,0) 22%);
  }
  .hero-slide img{ object-position: var(--pos-m, var(--pos, 65% 50%)); }
  .hero-ctas .btn{ flex: 1 1 auto; }

  .vcard:nth-child(n){ grid-column: 1 / -1; }
  .vbody{ grid-template-columns: 1fr; }
  .vcard .price{ text-align: left; }
  .specs{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .product-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pbody{ padding: 12px 12px 14px; }
  .pbody h3{ font-size: 14px; min-height: calc(14px * 1.35 * 2); }
  .showroom-list{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-inner{ min-height: 520px; }
  .cta-inner img{ width: 100%; height: 60%; object-position: 72% 50%; }
  .cta-inner::before{ background: linear-gradient(0deg, #0b0c0d 0%, #0b0c0d 45%, rgba(11,12,13,0.3) 70%, rgba(11,12,13,0) 100%); }
}

/* ---------------------------- reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-slide img{ animation: none !important; transform: none; }
  .rail-tab.is-active::after{ animation: none !important; transform: scaleX(1); }
  .js .reveal, .js .reveal-stagger > *{ opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce){
  .site-nav:not(.is-over-hero){ background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-glass, .rail-btn{ background: rgba(14,16,18,0.75); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
