/* XANDOR — Night Showroom
   Concept: the whole site is a dark stage. A spotlight follows the cursor
   in the hero. A marquee ticker runs like a showroom announcement board.
   Cars rise into view on scroll with a headlight-glow trail. Hovering a
   car sweeps a beam of light across it.
*/

:root {
  --stage: #08090b;
  --panel: #121417;
  --panel-2: #181b1f;
  --hairline: #24282d;
  --gold: #c8a24a;
  --gold-glow: #f0cf7f;
  --paper: #f2f1ea;
  --graphite: #83898f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stage);
  color: var(--paper);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--paper);
}

.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
nav.primary { display: flex; align-items: center; gap: 30px; }
nav.primary a {
  text-decoration: none;
  color: var(--graphite);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--paper); }
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}
.btn-primary { background: var(--gold); color: #1a1305; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -8px rgba(240, 207, 127, 0.5); }
.btn-ghost { border-color: var(--hairline); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-glow); transform: translateY(-2px); }

/* ---------- Hero: the spotlight stage ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 30%),
    rgba(240, 207, 127, 0.16), rgba(240, 207, 127, 0.05) 45%, transparent 70%);
  transition: background 0.15s ease-out;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 700px 300px at 50% 0%, rgba(200,162,74,0.08), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-glow);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .bulb { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-glow); box-shadow: 0 0 12px 3px rgba(240,207,127,0.7); }

.hero h1 {
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.92;
}
.hero .accent { color: var(--gold); }

.hero p.lede {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 400;
  color: var(--graphite);
  font-size: 18px;
  max-width: 50ch;
  margin: 26px 0 36px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Marquee ticker ---------- */
.ticker-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ticker-track span .dot { color: var(--gold); font-size: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); }
.section-head p { color: var(--graphite); font-family: 'Inter', sans-serif; font-size: 15px; margin-top: 8px; text-transform: none; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.stats .stat { background: var(--panel); padding: 34px 28px; text-align: center; }
.stats .stat .num { font-family: 'Bebas Neue', sans-serif; font-size: 52px; color: var(--gold-glow); line-height: 1; }
.stats .stat .lab { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-top: 8px; }

/* ---------- Stock cards ---------- */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.car-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.car-card:hover { transform: translateY(-6px); border-color: rgba(200,162,74,0.4); }
.car-card:focus-visible { outline: 2px solid var(--gold-glow); outline-offset: 3px; }

.car-photo {
  aspect-ratio: 16/10;
  background: var(--panel-2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.car-photo svg { width: 62%; opacity: 0.9; }
.sweep {
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(240,207,127,0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
}
.car-card:hover .sweep { left: 130%; }

.car-body { padding: 22px 22px 24px; }
.car-body .status {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-glow);
  border: 1px solid rgba(200,162,74,0.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.car-body h3 { font-size: 26px; letter-spacing: 0.02em; margin-bottom: 4px; }
.car-body .trim { color: var(--graphite); font-family: 'Inter', sans-serif; font-size: 13.5px; text-transform: none; margin-bottom: 16px; }

.spec-row { display: flex; gap: 16px; margin-bottom: 18px; }
.spec-row .spec { flex: 1; }
.spec-row .spec .k { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 3px; }
.spec-row .spec .v { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--paper); }

.car-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hairline); padding-top: 16px; }
.price { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: var(--paper); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-block { margin-bottom: 30px; }
.contact-block .k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-glow); display: block; margin-bottom: 8px; }
.contact-block a.big, .contact-block .big { font-size: 24px; text-decoration: none; color: var(--paper); font-family: 'Inter', sans-serif; }
.contact-block a.big:hover { color: var(--gold-glow); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.hours-table td:last-child { text-align: right; font-family: 'JetBrains Mono', monospace; color: var(--graphite); }

.map-frame { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--hairline); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) contrast(0.9); }

/* ---------- Footer ---------- */
footer.site { padding: 40px 0; color: var(--graphite); font-size: 13px; border-top: 1px solid var(--hairline); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Car detail page ---------- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}
.breadcrumb:hover { color: var(--gold-glow); }

.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }

.detail-photo {
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.detail-photo svg { width: 100%; }

.detail-status {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-glow);
  border: 1px solid rgba(200,162,74,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.detail-title { font-size: clamp(36px, 5vw, 52px); line-height: 1; margin-bottom: 6px; }
.detail-trim { color: var(--graphite); font-family: 'Inter', sans-serif; font-size: 15px; text-transform: none; margin-bottom: 22px; }
.detail-price { font-family: 'JetBrains Mono', monospace; font-size: 34px; font-weight: 700; color: var(--paper); margin-bottom: 26px; }

.detail-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.detail-specs .spec { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; }
.detail-specs .spec .k { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 4px; }
.detail-specs .spec .v { font-family: 'JetBrains Mono', monospace; font-size: 15px; }

.detail-desc { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--paper); text-transform: none; line-height: 1.7; margin-bottom: 26px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list li {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-size: 13.5px;
  color: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 15px;
  display: flex; align-items: center; gap: 7px;
}
.feature-list li::before { content: "\2713"; color: var(--gold-glow); font-size: 12px; }

/* ---------- Card photo carousel ---------- */
.car-photo.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.carousel-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 100%; object-fit: cover; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.carousel-dots .dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(242,241,234,0.4); padding: 0; cursor: pointer; }
.carousel-dots .dot.active { background: var(--gold-glow); }

/* Status colour variants */
.car-card.is-sold { opacity: 0.55; }
.car-card.is-offer .status { color: var(--graphite); border-color: var(--hairline); }
.detail-status.status-sold, .detail-status.status-under-offer { color: var(--graphite); border-color: var(--hairline); }

/* ---------- Detail page gallery ---------- */
.gallery-main {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.gallery-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px; }
.gallery-stage img, .gallery-stage video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.gallery-stage svg { width: 55%; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,9,11,0.6); border: 1px solid var(--hairline);
  color: var(--paper); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.gallery-arrow.left { left: 12px; }
.gallery-arrow.right { right: 12px; }

.gallery-expand {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(8,9,11,0.6); border: 1px solid var(--hairline); border-radius: 8px;
  color: var(--paper); font-size: 12.5px; padding: 6px 12px;
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: 0 0 76px; aspect-ratio: 16/10;
  background: var(--panel-2); border: 1px solid var(--hairline); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; position: relative;
  cursor: pointer; padding: 0; overflow: hidden;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 60%; opacity: 0.7; }
.thumb.active { border-color: var(--gold); }
.thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gold-glow); font-size: 16px; background: rgba(8,9,11,0.35);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,5,6,0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage { max-width: 88vw; max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img, .lightbox-stage video { max-width: 88vw; max-height: 84vh; object-fit: contain; }
.lightbox-stage svg { width: 320px; max-width: 60vw; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: var(--paper); font-size: 34px; line-height: 1; cursor: pointer;
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline);
  color: var(--paper); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-arrow.left { left: 24px; }
.lightbox-arrow.right { right: 24px; }
.lightbox-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--graphite); font-family: 'JetBrains Mono', monospace; font-size: 13px;
}

/* ---------- Overview icon grid ---------- */
.overview-block { border: 1px solid var(--hairline); border-radius: 18px; padding: 26px 28px; margin-top: 36px; }
.overview-block h2 { font-size: 22px; margin-bottom: 20px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.ov-spec { display: flex; align-items: flex-start; gap: 12px; }
.ov-spec .ov-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-glow); margin-top: 2px; }
.ov-spec .ov-icon svg { width: 100%; height: 100%; }
.ov-spec .k { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); margin-bottom: 3px; }
.ov-spec .v { font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: var(--paper); }

/* ---------- Description block ---------- */
.description-block { border: 1px solid var(--hairline); border-radius: 18px; padding: 26px 28px; margin-top: 18px; }
.description-block h2 { font-size: 22px; margin-bottom: 14px; }
.description-block p { font-family: 'Inter', sans-serif; text-transform: none; font-size: 15.5px; color: var(--paper); line-height: 1.75; margin: 0; }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 70px 0 60px; }
  nav.primary { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--gold-glow); outline-offset: 2px; }
