/* ============================================================
   Design tokens — dark, premium showroom theme
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f5f6f2;
  --border: rgba(10,10,10,.11);
  --border-strong: rgba(10,10,10,.24);

  /* near-black neutrals: only used for dark photo/placeholder panels */
  --navy-950: #0b0d08;
  --navy-900: #12150d;
  --navy-800: #1a1e13;
  --navy-700: #252a1b;
  --navy-600: #3a4128;

  /* brand highlight = logo lime. 500 is the fill colour (use with black text);
     400 is a darker green of the same hue for text/icons on white. */
  --gold-500: #c4fe1c;
  --gold-400: #4f7a00;
  --gold-glow: rgba(196,254,28,.55);
  --gold-050: rgba(196,254,28,.28);

  --text: #0a0a0a;
  --text-soft: #4b4f45;
  --text-faint: #7b8072;

  --ok: #2a9d5c;
  --warn: #c98a12;
  --danger: #c8443a;
  --info: #2f7fa8;

  --paper: var(--bg);
  --paper-soft: var(--bg-alt);
  --paper-line: var(--border);
  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --ink-faint: var(--text-faint);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.06), 0 1px 1px rgba(10,10,10,.04);
  --shadow-md: 0 12px 32px rgba(10,10,10,.10);
  --shadow-lg: 0 30px 70px rgba(10,10,10,.14);
  --glow-gold: 0 0 0 1px var(--gold-glow), 0 14px 40px rgba(196,254,28,.25);
  --container: 1180px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
/* Scoped horizontal-overflow containment for sections with edge-bleeding
   content (e.g. a full-bleed scroll row). Deliberately NOT applied to
   html/body: overflow-x there breaks position:sticky on descendants
   (the header, filter sidebar, etc.) in most browsers. */
.x-contain { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding-bottom: 64px; /* room for mobile sticky bar */
}
img { max-width: 100%; display: block; }
svg { display: block; width: 100%; height: auto; flex: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }
  .section-tight { padding: 28px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold-400); display: inline-block; }

h1.display { font-size: clamp(32px, 5.4vw, 58px); }
h2.headline { font-size: clamp(25px, 3.4vw, 38px); }
.lede { font-size: 17.5px; color: var(--text-soft); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 480px) { .lede { font-size: 16px; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #26301a; }
.btn-gold { background: var(--gold-500); color: #0a0a0a; }
.btn-gold:hover { background: #d4ff4d; box-shadow: 0 8px 24px rgba(196,254,28,.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); background: var(--gold-500); color: #0a0a0a; }
.btn-ghost-light { background: rgba(255,255,255,.7); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; border-color: var(--text); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   Top navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header.scrolled { background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-soft); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: transparent; border: 1px solid var(--border-strong); color: var(--text); width: 42px; height: 42px; border-radius: 999px; padding: 0; }
.nav-burger svg { width: 18px; height: 18px; margin: 0 auto; }

.nav-more { position: relative; }
.nav-more-btn {
  display: flex; align-items: center; gap: 5px; background: none; border: none; padding: 0;
  font-size: 14.5px; font-weight: 600; color: var(--text-soft); font-family: inherit;
}
.nav-more-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-more:hover .nav-more-btn, .nav-more:focus-within .nav-more-btn { color: var(--text); }
.nav-more:hover .nav-more-btn svg, .nav-more:focus-within .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px; min-width: 170px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
  display: flex; flex-direction: column; margin-top: 14px;
}
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-more-menu a { padding: 9px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.nav-more-menu a:hover { background: var(--surface-2); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}

.mobile-menu { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); z-index: 190; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu ul { padding: 12px 24px 40px; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu ul a { display: block; padding: 16px 4px; font-weight: 600; font-size: 17px; color: var(--text); }
.mobile-menu .mm-actions { padding: 20px 4px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   Home hero — media banner (image / video managed in the admin,
   with separate phone versions) and an overlapping
   Buy / Part Exchange / Sell search card.
   Phone breakpoint: 767px (keep in sync with site-inc/hero.php).
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.home-hero { padding: 28px 0 8px; }
.hh-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  height: clamp(260px, 30vw, 400px); background: var(--navy-900);
  container-type: size;
}
.hh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hh-slide.is-active { opacity: 1; }
.hh-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 16:9 iframe scaled to always cover the banner, whatever its shape */
.hh-embed {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
}
/* Desktop / phone video variants: only the one for this screen is shown (and loaded, see site.js) */
@media (max-width: 767px) { .hh-v-desktop { display: none; } }
@media (min-width: 768px) { .hh-v-mobile { display: none; } }

.hh-banner.has-copy::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,var(--hh-shade)) 0%, rgba(0,0,0,calc(var(--hh-shade) * .6)) 40%, rgba(0,0,0,0) 75%);
}
.hh-copy { position: absolute; z-index: 2; left: clamp(22px, 4vw, 52px); top: 50%; transform: translateY(-62%); max-width: min(560px, 70%); color: #fff; }
.hh-title { color: #fff; font-size: clamp(24px, 3.6vw, 44px); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hh-sub { margin-top: 10px; font-size: clamp(14px, 1.4vw, 17px); color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.3); }

.hh-controls { position: absolute; z-index: 3; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; }
.hh-dots { display: flex; padding: 2px 4px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.hh-dot { width: 24px; height: 28px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.hh-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.hh-dot.is-active::before { background: var(--gold-500); transform: scale(1.3); }
.hh-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(6px);
}
.hh-toggle:hover { background: rgba(0,0,0,.55); }
.hh-toggle svg { width: 15px; height: 15px; }
.hh-toggle .hh-ic-play { display: none; }
.hh-banner.is-paused .hh-toggle .hh-ic-play { display: block; }
.hh-banner.is-paused .hh-toggle .hh-ic-pause { display: none; }

/* ---- Search card ---- */
.hh-search {
  position: relative; z-index: 5; max-width: 880px; margin: -44px auto 0;
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  padding: 4px 18px 18px;
}
.hh-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.hh-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px 12px; border: 0; background: none; color: var(--text-soft);
  font-weight: 600; font-size: 15px; position: relative; -webkit-tap-highlight-color: transparent;
}
.hh-tab svg { width: 18px; height: 18px; }
.hh-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .2s; }
.hh-tab:hover, .hh-tab.is-active { color: var(--text); }
.hh-tab.is-active::after { background: var(--gold-400); }
.hh-tab:focus-visible { outline: 2px solid var(--gold-400); outline-offset: -2px; border-radius: 6px; }

.hh-panel { display: flex; align-items: stretch; padding-top: 16px; }
.hh-panel[hidden] { display: none; }
.hh-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 2px 16px; border-left: 1px solid var(--border); }
.hh-field:first-child { border-left: 0; padding-left: 14px; }
.hh-field-wide { flex-grow: 1.4; }
.hh-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.hh-field select, .hh-field input {
  border: 0; background-color: transparent; padding: 4px 0; border-radius: 4px; font-size: 15px; color: var(--text-soft);
}
.hh-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 18px;
}
.hh-field select:disabled { cursor: not-allowed; opacity: .45; }
.hh-field select:focus, .hh-field input:focus { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.hh-field input.hh-plate {
  background: #f7d90a; color: #0a0a0a; border: 1.5px solid #0a0a0a; border-radius: 6px;
  padding: 6px 10px; font-weight: 800; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; text-align: center; max-width: 220px;
}
.hh-field input.hh-plate::placeholder { color: rgba(10,10,10,.4); }
.hh-actions { display: flex; align-items: center; gap: 10px; padding-left: 12px; flex: none; }
.hh-icon-btn {
  width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); color: var(--text); transition: border-color .15s, background .15s;
}
.hh-icon-btn:hover { border-color: var(--text); background: var(--bg-alt); }
.hh-icon-btn svg { width: 20px; height: 20px; }
.hh-submit { background: var(--text); color: #fff; padding: 15px 26px; }
.hh-submit:hover { background: #26301a; box-shadow: 0 8px 22px rgba(10,10,10,.18); }
.hh-submit:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* ---- Trust strip ---- */
.hh-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin: 22px auto 0; max-width: 880px; }
.hh-trust li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); white-space: nowrap; }
.hh-trust li b { color: var(--text); }
.hh-trust svg { width: 17px; height: 17px; color: var(--gold-400); }

/* Tablet: fields wrap, button goes full width */
@media (max-width: 900px) and (min-width: 768px) {
  .hh-search { margin-left: 12px; margin-right: 12px; }
  .hh-panel { flex-wrap: wrap; row-gap: 14px; }
  .hh-actions { flex-basis: 100%; padding-left: 0; }
  .hh-submit { flex: 1; }
}

/* Phone: full-bleed tall banner (its own phone image/video), app-style search card */
@media (max-width: 767px) {
  .home-hero { padding: 0 0 4px; }
  .hh-banner {
    margin: 0 -24px; border-radius: 0 0 28px 28px;
    height: min(125vw, 64vh); height: min(125vw, 64svh); min-height: 380px;
  }
  .hh-banner.has-copy::after {
    background: linear-gradient(0deg, rgba(0,0,0,min(1, calc(var(--hh-shade) + .2))) 0%, rgba(0,0,0,calc(var(--hh-shade) * .55)) 38%, rgba(0,0,0,0) 68%);
  }
  .hh-copy { top: auto; bottom: 78px; left: 22px; right: 22px; max-width: none; transform: none; }
  .hh-title { font-size: clamp(26px, 8vw, 34px); line-height: 1.1; }
  .hh-sub { font-size: 15px; margin-top: 8px; }
  .hh-controls { top: 12px; right: 12px; }

  .hh-search { margin: -54px 0 0; padding: 10px 12px 14px; border-radius: 22px; box-shadow: 0 18px 40px rgba(10,10,10,.16), 0 0 0 1px var(--border); }
  .hh-tabs { gap: 4px; padding: 4px; border: 0; border-radius: 16px; background: var(--bg-alt); }
  .hh-tab { flex-direction: column; gap: 3px; min-height: 58px; padding: 8px 4px; border-radius: 12px; font-size: 12.5px; transition: background .2s, box-shadow .2s, color .2s; }
  .hh-tab svg { width: 20px; height: 20px; }
  .hh-tab::after { display: none; }
  .hh-tab.is-active { background: var(--surface); box-shadow: 0 2px 8px rgba(10,10,10,.10); }
  .hh-tab.is-active svg { color: var(--gold-400); }

  .hh-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
  .hh-panel[hidden] { display: none; }
  .hh-field, .hh-field:first-child { border: 1px solid var(--border-strong); border-radius: 14px; padding: 8px 12px 6px; gap: 0; }
  .hh-field:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px var(--gold-050); }
  .hh-field label { font-size: 12px; color: var(--text-faint); }
  /* 16px+ stops iOS zooming in when a field is tapped */
  .hh-field select, .hh-field input { font-size: 16px; color: var(--text); padding: 4px 0 6px; min-height: 30px; }
  .hh-field select:focus, .hh-field input:focus { outline: none; }
  .hh-panel[data-hero-buy] .hh-field:nth-child(3),
  .hh-panel:not([data-hero-buy]) .hh-field { grid-column: 1 / -1; }
  .hh-field input.hh-plate { max-width: none; font-size: 22px; padding: 10px; margin: 4px 0 4px; }
  .hh-field-wide { border: 0 !important; padding: 0 !important; }
  .hh-field-wide label { padding: 0 2px 2px; }
  .hh-actions { grid-column: 1 / -1; padding: 0; gap: 10px; }
  .hh-icon-btn { width: 54px; height: 54px; }
  .hh-submit { flex: 1; min-height: 54px; font-size: 16px; padding: 14px 18px; }

  .hh-trust {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px;
    margin: 16px -24px 0; padding: 2px 24px 6px; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .hh-trust::-webkit-scrollbar { display: none; }
  .hh-trust li { scroll-snap-align: start; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .hh-banner { margin: 0 -18px; }
  .hh-trust { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-slide { transition: none; }
}

/* Generic hero-visual (used on other pages) kept as its own component */
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy-600), var(--navy-800));
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-visual svg { width: 62%; height: auto; opacity: .92; }
.hero-visual .tag { position: absolute; left: 22px; bottom: 22px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; }

/* ============================================================
   Body-type pill strip
   ============================================================ */
.bodytype-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bt-card {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); transition: all .2s ease; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
}
.bt-card:hover { border-color: var(--gold-500); background: var(--gold-500); color: #0a0a0a; transform: translateY(-2px); box-shadow: var(--glow-gold); }
@media (max-width: 560px) { .bt-card { padding: 11px 18px; font-size: 13px; } .bodytype-strip { gap: 10px; } }

/* ============================================================
   Vehicle cards
   ============================================================ */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vehicle-grid { grid-template-columns: 1fr; } }

/* Horizontal scroll-snap variant (homepage featured strip) */
.vehicle-scroll-row {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 14px; margin: 0 -24px; padding-left: 24px; padding-right: 24px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.vehicle-scroll-row::-webkit-scrollbar { height: 6px; }
.vehicle-scroll-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.vehicle-scroll-row .vcard, .vehicle-scroll-row .vcard-photo { flex: 0 0 270px; scroll-snap-align: start; }
@media (max-width: 640px) { .vehicle-scroll-row .vcard, .vehicle-scroll-row .vcard-photo { flex-basis: 68vw; } }
@media (max-width: 480px) { .vehicle-scroll-row { margin: 0 -18px; padding-left: 18px; padding-right: 18px; } }

.vcard {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.vcard:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border-strong); }
.vcard-media {
  position: relative; aspect-ratio: 16/10;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.vcard-media svg { width: 46%; opacity: .85; color: rgba(255,255,255,.9); }
.vcard-status {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; color: #fff; letter-spacing: .02em;
}
.status-Available { background: var(--ok); }
.status-Reserved { background: var(--warn); }
.status-Sold { background: var(--danger); }
.status-In.Transit, .status-In-Transit { background: var(--info); }
.status-Coming.Soon, .status-Coming-Soon { background: var(--navy-600); }
.vcard-import { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--navy-900); padding: 5px 10px; border-radius: 999px; }
.vcard-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard-title { font-size: 18px; font-weight: 700; }
.vcard-variant { font-size: 13.5px; color: var(--text-faint); }
.vcard-price { font-size: 21px; font-weight: 800; color: var(--gold-400); }
.vcard-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--text-soft); margin: 4px 0 6px; }
.vcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vcard-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11.5px; font-weight: 600; background: var(--gold-050); color: var(--gold-400); padding: 4px 10px; border-radius: 999px; }
.vcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.vcard-actions .btn { flex: 1; padding: 11px 10px; font-size: 13.5px; }

/* Photo-overlay card (homepage "Explore Our Collections" style):
   the whole card is the image, text sits on a bottom gradient scrim. */
.vcard-photo {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--border);
}
.vcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.vcard-photo:hover img { transform: scale(1.07); }
.vcard-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.88) 100%);
}
.vcard-photo .vp-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff;
}
.vcard-photo .vp-action {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s ease;
}
.vcard-photo .vp-action:hover { background: #25d366; }
.vcard-photo .vp-action svg { width: 16px; height: 16px; }
.vcard-photo .vp-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; }
.vcard-photo .vp-title { color: #fff; font-weight: 700; font-size: 16.5px; }
.vcard-photo .vp-price { color: rgba(255,255,255,.7); font-size: 13.5px; margin-top: 4px; }

/* ============================================================
   Filters (stocklist)
   ============================================================ */
.stock-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .stock-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .filters { position: static; } }
.filter-group label.title { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 8px; }
.filter-group select, .filter-group input[type=text], .filter-group input[type=number] {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 14px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-soft); }
.chip.active { background: var(--gold-500); color: #0a0a0a; border-color: var(--gold-500); }
.range-row { display: flex; gap: 10px; }

.stock-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.stock-count { font-size: 14px; color: var(--text-soft); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-faint); border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* ============================================================
   Vehicle detail
   ============================================================ */
.vd-gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(150deg, var(--navy-700), var(--navy-950)); display: flex; align-items: center; justify-content: center; }
.vd-gallery-main svg { width: 42%; color: rgba(255,255,255,.9); }
.vd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.vd-thumbs div { flex: 1; aspect-ratio: 4/3; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.vd-thumbs svg { width: 40%; color: var(--text-soft); }
.vd-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 28px; }
@media (max-width: 420px) { .vd-specs { grid-template-columns: 1fr; } }
.spec-item { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 14.5px; }
.spec-item b { color: var(--text); }
.spec-item span:first-child { color: var(--text-faint); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.feature-pill { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }

.import-fact { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed var(--border); }

/* Layout: desktop = media/video/summary/details on the left, sticky price + contact panel on the right.
   Single column (≤980px) puts price + contact buttons straight after the title, details after them. */
.vd-back { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.vd-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; column-gap: 48px; align-items: start;
  grid-template-areas: "media panel" "video panel" "summary panel" "details panel";
}
.vd-media { grid-area: media; min-width: 0; }
.vd-video { grid-area: video; min-width: 0; }
.vd-summary { grid-area: summary; margin-top: 38px; }
.vd-details { grid-area: details; }
.vd-panel {
  grid-area: panel; position: sticky; top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); background: var(--surface);
}
.vd-variant { margin-top: 6px; }
.vd-keyfacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 15px; color: var(--text-soft); }
.vd-keyfacts li { display: flex; align-items: center; gap: 7px; }
.vd-keyfacts svg { width: 18px; height: 18px; color: var(--text); }
.vd-desc { margin-top: 20px; color: var(--ink-soft); line-height: 1.7; }
.vd-more-btn { display: none; }

.vd-pricebox { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 16px 6px; text-align: center; }
.vd-pricebox > div + div { border-left: 1px solid var(--border); }
.vd-price { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1.1; }
.vd-price-note { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.vd-pricebox-status { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--text-soft); }
.vd-pricebox-status b { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--text); }
.vd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Contact buttons: Call (full) · WhatsApp | Text · Enquire | Download · Reserve (full) */
.vd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.vd-actions .btn { padding: 13px 10px; border-width: 1.5px; border-color: var(--text); font-weight: 700; }
.vd-actions .btn-gold { border-color: transparent; }
.vd-actions .vd-act-wide { grid-column: 1 / -1; font-size: 16px; padding: 15px 14px; }
.vd-actions .vd-act-wa svg { color: #25d366; }
.vd-actions .vd-act-wa:hover svg { color: inherit; }
.vd-notice { margin-top: 18px; }

/* Gallery arrows + "1 of N" counter */
.vd-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 42px; height: 54px; border: 0; padding: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.55); color: #0a0a0a; backdrop-filter: blur(4px); transition: background .2s;
}
.vd-nav:hover { background: rgba(255,255,255,.85); }
.vd-nav svg { width: 22px; height: 22px; }
.vd-prev { left: 0; border-radius: 0 10px 10px 0; }
.vd-next { right: 0; border-radius: 10px 0 0 10px; }
.vd-count { position: absolute; right: 14px; bottom: 14px; z-index: 3; background: rgba(10,10,10,.82); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.vd-gallery-main { touch-action: pan-y; }

@media (max-width: 980px) {
  .vd-grid { grid-template-columns: 1fr; grid-template-areas: "media" "summary" "panel" "details" "video"; }
  .vd-panel { position: static; margin-top: 22px; }
  .vd-summary { margin-top: 22px; }
  .vd-details { margin-top: 10px; }
}

/* Phones: edge-to-edge swipeable photo, compact header, contact buttons on the first screen,
   everything else folded under "More details". */
@media (max-width: 767px) {
  .vd-section { padding-top: 12px; }
  .vd-back { margin-bottom: 12px; font-size: 13.5px; }
  .vd-gallery-main { margin: 0 -24px; border-radius: 0; aspect-ratio: 3 / 2; }
  .vd-gallery-main .vcard-status, .vd-gallery-main .vcard-import { top: 12px !important; }
  .vd-gallery-main .vcard-status { left: 12px !important; }
  .vd-gallery-main .vcard-import { right: 12px !important; }
  .vd-thumbs { display: none; }
  .vd-nav { width: 36px; height: 48px; }
  .vd-count { right: 12px; bottom: 12px; }

  .vd-summary { margin-top: 18px; }
  .vd-title { font-size: 22px; line-height: 1.2; }
  .vd-variant { font-size: 14.5px; }
  .vd-keyfacts { margin-top: 10px; gap: 6px 18px; font-size: 14.5px; }

  .vd-panel { margin-top: 16px; padding: 0; border: 0; box-shadow: none; background: none; }
  .vd-price { font-size: 26px; }
  .vd-pricebox { padding: 14px 4px; border-radius: 18px; }
  .vd-actions { margin-top: 16px; }
  .vd-actions .btn { min-height: 52px; font-size: 15px; }
  .vd-actions .vd-act-wide { font-size: 16px; }
  .vd-notice { font-size: 12.5px; padding: 10px 14px; }

  .vd-details { margin-top: 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .vd-more-btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    padding: 16px 2px; border: 0; background: none; font-size: 16px; font-weight: 700; color: var(--text);
  }
  .vd-more-btn svg { width: 20px; height: 20px; transition: transform .25s ease; }
  .vd-details.is-open .vd-more-btn svg { transform: rotate(180deg); }
  .vd-more { display: none; padding-bottom: 20px; }
  .vd-details.is-open .vd-more { display: block; }
  .vd-desc { margin-top: 0; font-size: 15px; }
  .vd-specs { margin-top: 18px; }
}
@media (max-width: 480px) {
  .vd-gallery-main { margin: 0 -18px; }
}

/* ============================================================
   Icon step cards (Japanese import journey)
   ============================================================ */
.step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-grid { grid-template-columns: 1fr; } }
.step-card { padding: 26px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 800; color: var(--gold-400); }
.step-card .ic { width: 40px; height: 40px; color: var(--gold-400); margin-bottom: 16px; }
.step-card h4 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-soft); }

/* ============================================================
   Forms
   ============================================================ */
.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
form[data-lead-form] { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 640px) { .card-form { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: 12px; color: var(--text-faint); }
input, select, textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); width: 100%; color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-400); }
textarea { resize: vertical; min-height: 110px; }
.file-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 26px; text-align: center;
  color: var(--text-faint); font-size: 13.5px; background: var(--surface-2);
}
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(42,157,92,.12); color: #1b6b3e; }
.form-msg.err { background: rgba(200,68,58,.10); color: #a12d24; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-soft); }
.checkline input { width: auto; margin-top: 3px; }

/* ============================================================
   Generic content sections
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel-visual { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4/3; background: linear-gradient(155deg, var(--navy-700), var(--navy-900)); display: flex; align-items: center; justify-content: center; }
.panel-visual svg { position: relative; z-index: 1; width: 40%; color: rgba(255,255,255,.9); }
.dark-band { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark-band .lede { color: var(--text-soft); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.stars { color: var(--gold-400); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.review-name { margin-top: 16px; font-weight: 700; font-size: 14px; }
.review-role { font-size: 12.5px; color: var(--text-faint); }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h3 { font-size: 26px; }
@media (max-width: 640px) { .cta-band { padding: 34px 26px; } }

/* Closing CTA: plain text block, THEN a separate full-bleed photo below it */
.cta-text { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.cta-text h2 { color: var(--text); }
.cta-text p { color: var(--text-soft); margin-top: 14px; }
.cta-text .btn { margin-top: 28px; }

.cta-photo {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 2/1; min-height: 260px;
}
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 60%);
}
@media (max-width: 640px) { .cta-photo { aspect-ratio: 4/5; } }

/* ============================================================
   Brand marquee — continuous infinite scroll of logos
   ============================================================ */
.brand-marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brand-track { display: flex; width: max-content; gap: 20px; animation: brand-scroll 32s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-item {
  display: flex; align-items: center; justify-content: center; height: 88px; width: 160px; flex: none;
  padding: 12px 24px;
}
.brand-item img {
  width: auto; max-width: 100%; height: auto; max-height: 42px;
  filter: brightness(0); opacity: .5; transition: opacity .2s ease;
}
.brand-item:hover img { opacity: .9; }
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .brand-track { gap: 12px; }
  .brand-item { width: 118px; height: 64px; padding: 8px 14px; }
  .brand-item img { max-height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; } }

/* ============================================================
   Why-choose checklist section
   ============================================================ */
.why-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.why-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,.75) 0%, rgba(8,9,11,.15) 38%, rgba(8,9,11,.05) 60%); }
.why-media-copy { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 30px; }
.why-media-copy h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.why-media-copy p { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 10px; max-width: 320px; }
.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-row { display: flex; gap: 16px; align-items: flex-start; }
.why-row .why-ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-500); color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.why-row .why-ic svg { width: 16px; height: 16px; }
.why-row .why-copy p.lead { font-size: 15px; line-height: 1.6; color: var(--text); }
.why-row .why-copy p.lead b { font-weight: 700; }
.why-row .why-copy p.sub { font-size: 13px; color: var(--text-faint); margin-top: 6px; }

/* ============================================================
   Testimonial coverflow carousel — glassmorphism cards, center
   card large/highlighted, side cards small and blurred (act as
   visible "scroll" affordances), auto-loops continuously.
   ============================================================ */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; flex: none;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.tcarousel { position: relative; }
.tcarousel-track { position: relative; height: 300px; overflow: hidden; touch-action: pan-y; /* vertical scroll stays native; horizontal swipes go to site.js */ }
.tcard {
  position: absolute; top: 50%; left: 50%; width: min(540px, 88vw);
  padding: 36px 40px; border-radius: 26px; text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(10,10,10,.12);
  transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .6s ease, filter .6s ease;
  will-change: transform, opacity, filter;
}
.tcard.is-active { border-color: var(--gold-500); box-shadow: 0 30px 70px rgba(10,10,10,.16), 0 0 0 2px var(--gold-500); }
.tcard-text { font-size: 16px; line-height: 1.6; color: var(--text); }
.tcard-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcarousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
/* 24px tap target; the visible dot is drawn by ::before */
.tdot { width: 24px; height: 24px; background: none; border: none; padding: 0; display: grid; place-items: center; }
.tdot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background .2s ease, transform .2s ease; }
.tdot.is-active::before { background: var(--gold-400); transform: scale(1.3); }
@media (max-width: 640px) {
  .tcarousel-track { height: 360px; }
  .tcard { padding: 28px 26px; }
}
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list.narrow { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron { width: 18px; height: 18px; flex: none; color: var(--gold-400); transition: transform .25s ease; }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 24px 20px; color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 480px) { .faq-item summary { padding: 16px 18px; font-size: 14.5px; } .faq-item .faq-answer { padding: 0 18px 16px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-alt); color: var(--text-soft); padding: 70px 0 34px; border-top: 3px solid var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h5 { color: var(--text); font-size: 14px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 3px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.footer-brand img { width: 88px; height: 88px; border-radius: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   Sticky mobile bottom bar
   ============================================================ */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(10,10,10,.08);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
@media (max-width: 860px) { .mobile-bar { display: flex; } }
.mobile-bar { justify-content: space-around; }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text-soft); flex: 1; }
.mobile-bar svg { width: 20px; height: 20px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.tag-pill { display: inline-block; background: var(--gold-050); color: var(--gold-400); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.divider-pill { display: flex; align-items: center; gap: 10px; width: 160px; margin: 0 auto; }
.divider-pill span { flex: 1; height: 1px; background: var(--border-strong); }
.divider-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 2px var(--text); flex: none; }
.notice-strip { background: var(--gold-050); border: 1px solid rgba(79,122,0,.35); color: #3b5c00; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13.5px; }

/* ============================================================
   Real vehicle photography (replaces icon-only media panels
   wherever a photo is available; icon stays as graceful fallback)
   ============================================================ */
.vcard-media, .vd-gallery-main, .hero-visual, .panel-visual {
  background-size: cover; background-position: center; overflow: hidden;
}
.vcard-media img, .vd-gallery-main img, .hero-visual img, .vd-thumbs img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.vcard-media { position: relative; }
.vcard:hover .vcard-media img { transform: scale(1.06); }
.vd-gallery-main { position: relative; }
.vd-gallery-main:hover img { transform: scale(1.035); }
.vcard-media svg, .vd-gallery-main svg { position: relative; z-index: 1; }
.vcard-media.has-photo svg, .vd-gallery-main.has-photo svg { display: none; }
.vcard-media::before, .vd-gallery-main.has-photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 1;
}
.vd-thumbs div { position: relative; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.vd-thumbs div.has-photo svg { display: none; }
.vd-thumbs div.has-photo:hover { transform: translateY(-2px); }
.vd-thumbs div.active { border-color: var(--gold-400); box-shadow: 0 0 0 2px var(--gold-500) inset; }
#vdMainImg { transition: opacity .15s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.photo-credit { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: rgba(255,255,255,.55); z-index: 2; letter-spacing: .02em; }

/* ============================================================
   3D depth system: perspective card tilt + glow, driven by
   --rx / --ry / --mx / --my custom properties set from JS.
   Falls back gracefully (flat, no tilt) if JS never sets them.
   ============================================================ */
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
  will-change: transform;
}
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,255,255,.10), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.tilt:hover::after { opacity: 1; }
.tilt:hover { box-shadow: var(--shadow-lg); }
.vcard.tilt { position: relative; }

/* Hero visual parallax layers */
.hero-visual .float-layer {
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.hero-orb-1 { width: 300px; height: 300px; background: var(--gold-500); top: -80px; right: 6%; opacity: .16; }
.hero-orb-2 { width: 260px; height: 260px; background: var(--navy-600); bottom: -60px; left: 4%; opacity: .3; }

/* Ambient floating glow orbs — continuous slow bob, used to add a soft
   "alive" 3D-object feel to dark sections (lightweight alternative to a
   Lottie/3D render). Purely decorative, aria-hidden. */
.glow-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(50px); animation: orb-float 7s ease-in-out infinite;
}
.glow-orb-gold { background: var(--gold-500); opacity: .18; }
.glow-orb-navy { background: var(--navy-600); opacity: .3; }
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}

/* Scroll-triggered "draw-in" icon animation — an SVG icon animates its
   stroke path into existence the moment it scrolls into view, similar in
   spirit to an on-scroll Lottie play, without needing a Lottie asset. */
.icon-draw path, .icon-draw circle, .icon-draw rect {
  stroke-dasharray: 140; stroke-dashoffset: 140;
  transition: stroke-dashoffset 1s cubic-bezier(.16,1,.3,1);
}
.icon-draw.in-view path, .icon-draw.in-view circle, .icon-draw.in-view rect { stroke-dashoffset: 0; }
.icon-draw-pop {
  opacity: 0; transform: scale(.6) rotate(-8deg);
  transition: opacity .5s cubic-bezier(.34,1.56,.64,1) .55s, transform .6s cubic-bezier(.34,1.56,.64,1) .55s;
}
.icon-draw-pop.in-view { opacity: 1; transform: scale(1) rotate(0deg); }

@media (prefers-reduced-motion: reduce) {
  .glow-orb { animation: none; }
  .icon-draw path, .icon-draw circle, .icon-draw rect { stroke-dashoffset: 0 !important; transition: none !important; }
  .icon-draw-pop { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: translateY(18px) scale(.97); }
[data-reveal="scale"].in-view { transform: translateY(0) scale(1); }
[data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
[data-reveal-group].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].in-view > *:nth-child(1) { transition-delay: .03s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: .09s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: .15s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: .21s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: .27s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: .33s; }
[data-reveal-group].in-view > *:nth-child(7) { transition-delay: .39s; }
[data-reveal-group].in-view > *:nth-child(8) { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tilt { transform: none !important; transition: none !important; }
  .hero-visual .float-layer, .hero-orb { transition: none !important; }
}

/* Button lift (subtle depth on hover, complements the tilt system) */
.btn { transition: transform .15s ease, box-shadow .2s ease, background .15s ease, color .15s ease; }
.btn-primary:hover, .btn-gold:hover, .btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Nav shrink-on-scroll depth cue */
.site-header { transition: box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* UK reg lookup */
.reg-row { display: flex; gap: 10px; }
.reg-row input { flex: 1; min-width: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 18px; background: #f7d90a; color: #0a0a0a; border-color: #0a0a0a; text-align: center; }
.reg-row input::placeholder { color: rgba(10,10,10,.45); font-weight: 600; letter-spacing: .06em; }
.reg-row .btn { flex: none; }
.reg-result { margin-top: 10px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; }
.reg-result.ok { background: var(--gold-050); border: 1px solid rgba(79,122,0,.35); color: var(--text); }
.reg-result.err { background: rgba(200,68,58,.10); color: #a12d24; font-weight: 600; }
@media (max-width: 480px) { .reg-row { flex-direction: column; } }

/* ============================================================
   Header, footer & mobile action bar: black background,
   white text, lime (#c4fe1c) for links/highlights.
   ============================================================ */
:root { --brand-lime: #c4fe1c; --brand-black: #0a0a0a; }
.site-header, .site-header.scrolled { background: var(--brand-black); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: none; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.brand, .brand span { color: #fff; }
.nav-links a, .nav-more-btn { color: #fff; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-lime); box-shadow: inset 0 -3px 0 var(--brand-lime); }
.nav-more:hover .nav-more-btn, .nav-more:focus-within .nav-more-btn { color: var(--brand-lime); }
.nav-burger { border-color: #fff; color: #fff; }

.site-footer { background: var(--brand-black); color: #fff; border-top: 0; }
.footer-brand, .footer-grid ul li, .footer-grid p, .footer-bottom { color: #fff; }
.footer-grid h5 { color: var(--brand-lime); }
.footer-grid ul a { color: #fff; }
.footer-grid ul a:hover { color: var(--brand-lime); text-decoration: underline; text-decoration-color: var(--brand-lime); text-underline-offset: 3px; }
.footer-bottom { border-top-color: rgba(255,255,255,.18); }

.mobile-bar { background: var(--brand-black); backdrop-filter: none; border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 -6px 20px rgba(0,0,0,.35); }
.mobile-bar a, .mobile-bar a svg { color: var(--brand-lime); }
.footer-bottom a { color: var(--brand-lime); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .dev-mark { font-family: 'League Spartan', 'Inter', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-transform: lowercase; color: #fff; }
.footer-bottom .dev-mark i { font-style: normal; color: #ff6a00; }
.footer-bottom a:has(.dev-mark) { text-decoration: none; }

/* No blank strip under the footer: reserve room for the mobile bar inside the footer itself. */
body { padding-bottom: 0; }
@media (max-width: 860px) { .site-footer { padding-bottom: calc(34px + 72px + env(safe-area-inset-bottom)); } }

/* Larger header logo (nav height grows with it; mobile menu offset follows --nav-h). */
:root { --nav-h: 88px; }
.brand img { width: 68px; height: 68px; }
@media (max-width: 560px) { :root { --nav-h: 76px; } .brand img { width: 56px; height: 56px; } .brand span { font-size: 17px; } }

/* Showroom locations + map */
.loc-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .loc-layout { grid-template-columns: 1fr; } }
.loc-list { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 900px) { .loc-list { max-height: none; order: 2; } }
.loc-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.loc-card:hover, .loc-card:focus-visible, .loc-card.is-active { border-color: #0a0a0a; box-shadow: var(--shadow-md); outline: none; }
.loc-card.is-active { box-shadow: 0 0 0 2px var(--gold-500), var(--shadow-md); }
.loc-pin { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); color: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.loc-pin svg { width: 20px; height: 20px; }
.loc-body h3 { font-size: 17px; margin-bottom: 4px; }
.loc-addr { font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.loc-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); margin-top: 6px; }
.loc-meta svg { width: 15px; height: 15px; color: #0a0a0a; }
.loc-meta a:hover { text-decoration: underline; }
.loc-dir { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--gold-400); }
.loc-dir svg { width: 15px; height: 15px; }
.loc-dir:hover { text-decoration: underline; }
.loc-map { min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); z-index: 1; }
@media (max-width: 900px) { .loc-map { min-height: 340px; order: 1; } }
.loc-marker span { display: block; width: 46px; height: 46px; background: #0a0a0a; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.4); position: relative; }
.loc-marker span img { position: absolute; top: 4px; left: 4px; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; transform: rotate(45deg); background: var(--gold-500); }
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 13.5px; line-height: 1.4; }
.leaflet-popup-content a { color: var(--gold-400); font-weight: 700; }

/* Vehicle video (YouTube/Vimeo embed or a direct uploaded file) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Uploaded phone videos are often portrait: show the whole frame (black bars) rather than cropping it */
.video-embed video { object-fit: contain; }

/* ============================================================
   Homepage sections — base styles for the restructured blocks,
   then the phone layout (most visitors are on phones).
   ============================================================ */
.row-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.faq-head { align-items: end; margin-bottom: 44px; }
.faq-head .lede { font-size: 15px; }


.own-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.own-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.own-card .own-ic { width: 52px; height: 52px; margin-bottom: 18px; color: var(--gold-400); }
.own-card h3 { font-size: 20px; margin-bottom: 10px; }
.own-card p { font-size: 14.5px; color: var(--text-soft); max-width: 420px; margin-bottom: 20px; }
.own-card .btn { margin-top: auto; }

/* Body-type tiles: a real car photo (from current stock) with the type underneath */
.bt-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.bt-tile {
  display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bt-photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); overflow: hidden; }
.bt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.bt-photo svg { width: 46%; color: rgba(255,255,255,.85); }
.bt-label { padding: 10px 8px 11px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .bt-tile:hover { border-color: var(--gold-500); box-shadow: var(--glow-gold); transform: translateY(-3px); }
  .bt-tile:hover .bt-photo img { transform: scale(1.08); }
}
.bt-tile:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
@media (max-width: 1100px) { .bt-tiles { grid-template-columns: repeat(4, 1fr); } }
/* Phones: one swipeable row, next tile peeking */
@media (max-width: 767px) {
  .bt-tiles {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -24px; padding: 2px 24px 6px; scroll-padding-left: 24px;
  }
  .bt-tiles::-webkit-scrollbar { display: none; }
  .bt-tile { flex: 0 0 38vw; max-width: 170px; scroll-snap-align: start; }
  .bt-label { font-size: 13.5px; padding: 9px 6px 10px; }
}
@media (max-width: 480px) {
  .bt-tiles { margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-padding-left: 18px; }
}

/* Touch screens: no tilt/zoom effects that get "stuck" after a tap, and no GPU layers held for them */
@media (hover: none) {
  .tilt { will-change: auto; }
  .tilt::after { display: none; }
  .tilt:hover { box-shadow: none; }
  .vcard-photo:hover img { transform: none; }
  .bt-card:hover { transform: none; box-shadow: none; }
}

@media (max-width: 767px) {
  .hide-phone { display: none !important; }
  .btn-mobile-block { width: 100%; max-width: 420px; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .section-head { margin-bottom: 26px; }
  .split { gap: 30px; }
  .row-cta { margin-top: 26px; gap: 18px; }
  .row-cta .btn { width: 100%; max-width: 420px; }

  /* Featured cars: swipeable row, next card peeking, no scrollbar */
  .vehicle-scroll-row { gap: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; scroll-padding-left: 24px; }
  .vehicle-scroll-row::-webkit-scrollbar { display: none; }
  .vehicle-scroll-row .vcard-photo { flex-basis: 72vw; max-width: 300px; }
  .vcard-photo .vp-action { width: 42px; height: 42px; }
  .vcard-photo .vp-action svg { width: 19px; height: 19px; }
  .vcard-photo .vp-body { padding: 16px; }


  /* Why choose us: shorter photo, tighter list */
  .why-media { aspect-ratio: 1 / 1; }
  .why-media-copy { padding: 22px; }
  .why-list { gap: 18px; }
  .why-row { gap: 14px; }
  .why-row .why-copy p.lead { font-size: 14.5px; }

  /* Sell / part exchange: compact rows — icon, text, full-width button */
  .own-grid { grid-template-columns: 1fr; gap: 14px; }
  .own-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; text-align: left; padding: 20px; }
  .own-card .own-ic { width: 46px; height: 46px; margin: 0; padding: 10px; border-radius: 14px; background: var(--gold-050); }
  .own-card h3 { font-size: 17px; margin-bottom: 4px; }
  .own-card p { font-size: 14px; margin-bottom: 0; }
  .own-card .btn { grid-column: 1 / -1; margin-top: 16px; }

  /* Testimonials: one card, neighbours peeking at the sides, swipeable */
  .tcarousel-track { height: 330px; margin: 0 -24px; } /* full-bleed so the side cards can peek in */
  .tcard { width: 84vw; padding: 26px 22px; border-radius: 22px; }
  .tcard-text { font-size: 15px; }

  /* FAQ heading: stacked, small gap */
  .faq-head { gap: 10px; margin-bottom: 24px; }

  /* Closing photo: less scroll for a decorative image */
  .cta-text { margin-bottom: 28px; }
  .cta-photo { aspect-ratio: 4 / 3; min-height: 0; }

  /* Locations: shorter map */
  .loc-map { min-height: 260px; }
  .loc-card { padding: 16px; }
}
@media (max-width: 480px) {
  .vehicle-scroll-row { scroll-padding-left: 18px; }
  .tcarousel-track { margin: 0 -18px; }
}
