/* ============================================================
   HJ MOTORS — DESIGN SYSTEM
   Dark luxury automotive theme · champagne gold accent
   Typography: Playfair Display (display) / Manrope (UI & body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0e13;
  --bg-2: #0e1219;
  --surface: #12161f;
  --surface-2: #171c27;
  --surface-3: #1d2330;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f5;
  --text-soft: #b9c0cc;
  --muted: #8b93a1;
  --gold: #c9a163;
  --gold-bright: #e3c083;
  --gold-deep: #a37c3f;
  --gold-grad: linear-gradient(135deg, #e8c98c 0%, #c9a163 45%, #a97e42 100%);
  --green: #4ade80;
  --red: #f87171;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 12px 40px -8px rgba(201, 161, 99, 0.35);
  --container: 1200px;
  --header-h: 76px;
  --topbar-h: 38px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* author display rules (e.g. .hs-field { display:flex }) must never beat [hidden] */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
abbr { text-decoration: none; }
s { opacity: 0.55; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 600; line-height: 1.18; }

::selection { background: var(--gold); color: #14100a; }

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

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 2000;
  background: var(--gold); color: #14100a; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Section headings ---------- */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: "— "; }
.section-head.center .eyebrow::after { content: " —"; }

.section-title { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.01em; }
.section-title em { font-style: italic; color: var(--gold-bright); }
.section-sub { margin-top: 16px; font-size: 17px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-gold { background: var(--gold-grad); color: #171208; box-shadow: 0 6px 22px -6px rgba(201, 161, 99, 0.45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); filter: brightness(1.06); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { color: var(--text-soft); }
.btn-ghost:hover { color: var(--gold-bright); }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Icons & stars ---------- */
.icon { flex: none; vertical-align: -0.18em; }

.rating-stars { display: inline-flex; gap: 3px; color: var(--gold); }
.star:not(.filled) { opacity: 0.35; }

/* ============================================================
   HEADER
   ============================================================ */
#app-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  transition: transform 0.35s var(--ease);
}

.topbar {
  height: var(--topbar-h); background: #080a0e; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
  transition: margin-top 0.35s var(--ease);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; gap: 16px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-bright); }
.topbar .icon { color: var(--gold); }
.topbar-announce { color: var(--gold-bright); font-weight: 700; }

#app-header.scrolled .topbar { margin-top: calc(-1 * var(--topbar-h)); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  height: var(--header-h);
}
#app-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(9, 11, 16, 0.68); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  opacity: 0; transition: opacity 0.35s;
}
#app-header.scrolled::after { opacity: 1; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { display: grid; place-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.24em; color: var(--text); font-weight: 700;
}
.logo-text small { font-size: 9.5px; letter-spacing: 0.46em; color: var(--gold); font-weight: 700; }

/* Nav */
.nav-links { display: flex; gap: 6px; }
.nav-link {
  position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--text-soft);
  transition: color 0.25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.header-phone span { display: flex; flex-direction: column; line-height: 1.25; }
.header-phone small { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.header-phone strong { font-size: 15px; color: var(--text); font-family: var(--font-body); }
.header-phone:hover strong { color: var(--gold-bright); }

.nav-toggle { display: none; color: var(--text); padding: 6px; }

/* Mobile drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1200;
  background: var(--bg-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 26px 30px;
  transform: translateX(105%); transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer-close { color: var(--text); padding: 6px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: auto; }
.drawer-nav .nav-link { font-size: 18px; padding: 13px 4px; border-bottom: 1px solid var(--border); }
.drawer-nav .nav-link::after { display: none; }
.drawer-nav .nav-link.active { color: var(--gold-bright); }
.drawer-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1100; background: rgba(4, 6, 9, 0.7);
  backdrop-filter: blur(3px);
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 40px); padding-bottom: 70px;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8, 10, 15, 0.94) 0%, rgba(8, 10, 15, 0.72) 45%, rgba(8, 10, 15, 0.38) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 32%);
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid rgba(201, 161, 99, 0.4); background: rgba(201, 161, 99, 0.08);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 72px); font-weight: 600; letter-spacing: -0.015em; color: var(--text);
}
.hero-title em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); max-width: 560px; color: var(--text-soft); }
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.hero-trust .icon { color: var(--gold); }

/* Hero search panel */
.hero-search {
  position: relative; z-index: 2; margin-top: 52px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end;
}
/* when no make is chosen the Model field is hidden — collapse to make/year/button */
.hero-search.no-model { grid-template-columns: 1fr 1fr auto; }
.hero-search {
  background: rgba(14, 17, 24, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 22px; max-width: 900px; box-shadow: var(--shadow-lg);
}
.hs-field { display: flex; flex-direction: column; gap: 7px; }
.hs-field label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 16px; font: inherit; font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 161, 99, 0.14); }
.input::placeholder { color: var(--muted); }
select.input { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a163' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
select.input option { background: var(--surface-2); color: var(--text); }
.textarea { resize: vertical; min-height: 110px; }
input[type="date"].input::-webkit-calendar-picker-indicator { filter: invert(0.75) sepia(0.4) saturate(3) hue-rotate(-15deg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-span { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-soft); }

.form-success {
  text-align: center; padding: 44px 26px; background: var(--surface);
  border: 1px solid rgba(74, 222, 128, 0.35); border-radius: var(--radius);
}
.form-success-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.14); color: var(--green); margin-bottom: 16px;
}
.form-success h4 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); max-width: 420px; margin-inline: auto; }

/* form abuse protection */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-alert {
  font-size: 14px; font-weight: 600; color: var(--red);
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Checkbox */
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.check-row input { accent-color: var(--gold); width: 17px; height: 17px; cursor: pointer; }

/* ============================================================
   VEHICLE CARD
   ============================================================ */
.vehicle-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.vehicle-card:hover {
  transform: translateY(-7px); border-color: rgba(201, 161, 99, 0.45);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 161, 99, 0.12);
}

.vc-media { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; display: block; background: var(--surface-2); }
.vc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.vehicle-card:hover .vc-media img { transform: scale(1.07); }
.vc-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.42), transparent 42%);
}

.vc-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  background: var(--gold-grad); color: #171208;
}
.vc-badge-red { background: linear-gradient(135deg, #f89b9b, #e04848); color: #fff; }
.vc-badge-green { background: linear-gradient(135deg, #86efac, #22a352); color: #0b2213; }
.vc-badge-hot { background: linear-gradient(135deg, #ffb36b, #e04848); color: #fff; }
.vc-badge-sold { background: rgba(14, 17, 24, 0.9); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.55); }
.vc-badge-reserved { background: rgba(14, 17, 24, 0.9); color: var(--gold-bright); border: 1px solid rgba(201, 161, 99, 0.6); }

.vc-year {
  position: absolute; bottom: 12px; right: 14px; z-index: 1;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text);
  background: rgba(10, 12, 17, 0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); padding: 5px 12px; border-radius: 999px;
}

.vc-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.vc-title { font-size: 21px; }
.vc-title a { transition: color 0.25s; }
.vc-title a:hover { color: var(--gold-bright); }
.vc-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.vc-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.vc-specs li { display: flex; align-items: center; gap: 8px; }
.vc-specs .icon { color: var(--gold); }

.vc-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.vc-pricing { display: flex; flex-direction: column; line-height: 1.35; }
.vc-was { font-size: 13px; color: var(--muted); }
.vc-price { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.vc-monthly { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.vc-arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); color: var(--text-soft);
  transition: all 0.35s var(--ease);
}
.vehicle-card:hover .vc-arrow { background: var(--gold-grad); color: #171208; border-color: transparent; transform: rotate(-38deg); }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-media { aspect-ratio: 16 / 10.4; border-radius: 0; }
.sk-line { height: 14px; margin-bottom: 12px; }
.sk-tall { height: 26px; margin-top: 10px; }
.w-35 { width: 35%; } .w-45 { width: 45%; } .w-70 { width: 70%; } .w-90 { width: 90%; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 70px 24px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
}
.empty-state > span { color: var(--gold); display: inline-block; margin-bottom: 14px; }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 440px; margin-inline: auto; }
.empty-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   HOME SECTIONS
   ============================================================ */

/* Category cards */
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.7;
  border: 1px solid var(--border); display: block;
}
/* controllable slideshow of real cars per category (each slide links to its car) */
.cat-slideshow { position: absolute; inset: 0; transition: bottom 0.45s var(--ease); overflow: hidden; }
.cat-slide {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), transform 6s var(--ease); transform: scale(1.02);
}
.cat-slide img { width: 100%; height: 100%; object-fit: cover; }
.cat-slide.active { opacity: 1; visibility: visible; transform: scale(1.08); }
.cat-card:hover .cat-slide.active { transform: scale(1.12); }

/* prev/next arrows */
.cat-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 4;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10, 12, 17, 0.6); backdrop-filter: blur(6px); color: var(--text);
  border: 1px solid var(--border-strong); opacity: 0; transition: opacity 0.3s var(--ease), background 0.3s, color 0.3s, top 0.45s var(--ease);
}
.cat-card:hover .cat-nav { opacity: 1; }
.cat-nav:hover { background: var(--gold-grad); color: #171208; border-color: transparent; }
.cat-prev { left: 14px; } .cat-next { right: 14px; }
/* touch devices have no hover — keep the arrows visible */
@media (hover: none) { .cat-nav { opacity: 1; } }

/* slide dots */
.cat-dots { position: absolute; top: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.cat-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.cat-dot.active { background: var(--gold-bright); width: 18px; border-radius: 3px; }

/* overlay must not block clicks to the car slides behind it */
.cat-overlay { pointer-events: none; transition: opacity 0.35s var(--ease); }
.cat-link { pointer-events: auto; }

/* ---- BROWSE MODE: first arrow click turns the card into a mini listing ----
   The photo shrinks to the top; an Our-Vehicles-style detail panel slides in
   below and follows the arrows through the category's cars. */
.cat-card.browsing .cat-slideshow { bottom: 41%; }
.cat-card.browsing .cat-nav { top: 29%; }
.cat-card.browsing .cat-overlay { opacity: 0; }
.cat-card.browsing .cat-slide.active,
.cat-card.browsing:hover .cat-slide.active { transform: none; transition: opacity 0.5s var(--ease); }

/* small category chip (top-left) so the category link stays available */
.cat-chip {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(10, 12, 17, 0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 161, 99, 0.4); border-radius: 999px; padding: 7px 13px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all 0.35s var(--ease);
}
.cat-card.browsing .cat-chip { opacity: 1; pointer-events: auto; transform: none; }
.cat-chip:hover { background: var(--gold-grad); color: #171208; border-color: transparent; }

/* the detail panel (mirrors the Our Vehicles card body) */
.cat-carinfo {
  position: absolute; left: 0; right: 0; bottom: 0; height: 41%; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 16px 20px 14px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: all 0.45s var(--ease);
}
.cat-card.browsing .cat-carinfo { opacity: 1; transform: none; pointer-events: auto; }
.cci-title { font-size: 19px; line-height: 1.2; }
.cci-title a:hover { color: var(--gold-bright); }
.cci-sub {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cci-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.cci-specs li { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }
.cci-specs li + li::before { content: "·"; color: var(--gold); margin-right: 14px; }
.cci-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.cci-price { font-family: var(--font-display); font-size: 23px; color: var(--text); }
.cci-view {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright);
  transition: gap 0.3s var(--ease);
}
.cci-view:hover { gap: 11px; }
/* legacy single-image fallback */
.cat-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cat-card:hover > img { transform: scale(1.08); }
.cat-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(to top, rgba(7, 9, 13, 0.92) 8%, rgba(7, 9, 13, 0.28) 55%, transparent);
}
.cat-overlay h3 { font-size: 23px; }
.cat-overlay p { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }
.cat-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright);
  transition: gap 0.3s var(--ease);
}
.cat-link:hover { gap: 12px; }

/* USP cards */
.usp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.usp-card:hover { transform: translateY(-5px); border-color: rgba(201, 161, 99, 0.4); }
.usp-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: rgba(201, 161, 99, 0.1); border: 1px solid rgba(201, 161, 99, 0.3); color: var(--gold-bright);
  margin-bottom: 20px;
}
.usp-card h3 { font-size: 20px; margin-bottom: 10px; }
.usp-card p { font-size: 14.5px; color: var(--muted); }

/* Journey steps */
.step-item { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.step-num {
  font-family: var(--font-display); font-size: 58px; font-weight: 700; font-style: italic; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9; display: block; margin-bottom: 14px;
}
.step-item h3 { font-size: 20px; margin-bottom: 8px; }
.step-item p { font-size: 14.5px; color: var(--muted); }
.step-item::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.step-item:hover::after { transform: scaleX(1); }

/* Offers */
.offer-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.offer-card:hover { transform: translateY(-6px); border-color: rgba(201, 161, 99, 0.45); box-shadow: var(--shadow-lg); }
.offer-highlight { background: linear-gradient(160deg, rgba(201, 161, 99, 0.14), rgba(201, 161, 99, 0.03) 55%), var(--surface); border-color: rgba(201, 161, 99, 0.4); }
.offer-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-grad); color: #171208; margin-bottom: 18px;
}
.offer-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.offer-card h3 { font-size: 23px; margin-bottom: 10px; }
.offer-text { font-size: 14.5px; color: var(--muted); flex: 1; }
.offer-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 14px; font-weight: 700; color: var(--gold-bright);
}
.offer-cta:hover { gap: 12px; }
.offer-cta { transition: gap 0.3s var(--ease); }

/* Stats band */
.stats-band {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(201, 161, 99, 0.1), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; text-align: center; }
.stat-item { padding: 12px 8px; }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Testimonials — "review wall" of quote cards (no photos) */
#reviews { scroll-margin-top: calc(var(--header-h) + 24px); }
.review-wall { max-width: 1120px; margin-inline: auto; }
.review-badge {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 40px;
}
.review-badge .rating-stars .star { width: 22px; height: 22px; color: var(--gold-bright); }
.review-badge p { font-size: 15px; color: var(--muted); font-weight: 600; }
.review-badge strong { font-family: var(--font-display); font-size: 24px; color: var(--text); margin-right: 2px; }
.review-badge span { color: var(--text-soft); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(160deg, var(--surface) 40%, var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px 26px; overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.review-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--gold-grad); transition: height 0.4s var(--ease);
}
.review-card:hover {
  border-color: rgba(201, 161, 99, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.review-card:hover::before { height: 100%; }
.review-quote {
  position: absolute; top: 8px; right: 20px; z-index: 0;
  font-family: var(--font-display); font-size: 90px; line-height: 1; color: var(--gold);
  opacity: 0.16; pointer-events: none;
}
.review-card .rating-stars { position: relative; z-index: 1; }
.review-card .rating-stars .star { color: var(--gold-bright); }
.review-card blockquote {
  position: relative; z-index: 1; flex: 1;
  font-family: var(--font-display); font-size: 16.5px; font-style: italic; line-height: 1.65; color: var(--text-soft);
}
.review-reply {
  position: relative; z-index: 1; margin-top: 2px;
  border-left: 2px solid var(--gold); padding: 8px 0 8px 14px;
  background: rgba(201, 161, 99, 0.05); border-radius: 0 8px 8px 0;
}
.review-reply-head {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 5px;
}
.review-reply p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.review-card figcaption { position: relative; z-index: 1; padding-top: 6px; border-top: 1px solid var(--border); }
.review-name { display: block; font-weight: 800; color: var(--text); font-size: 15.5px; }
.review-role { display: block; font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.review-more { text-align: center; margin-top: 40px; }

/* "write a review" star picker */
.rf-stars { display: flex; gap: 6px; }
.rf-star {
  font-size: 30px; line-height: 1; padding: 2px 4px;
  color: var(--surface-3); transition: color 0.2s, transform 0.2s var(--ease);
}
.rf-star:hover { transform: scale(1.15); }
.rf-star.on { color: var(--gold-bright); }

/* Split sections (finance/about on home & inner pages) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid var(--border); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 15, 0.35), transparent 50%); }
.split-media-tag {
  position: absolute; bottom: 20px; left: 20px; z-index: 1;
  background: rgba(10, 12, 17, 0.72); backdrop-filter: blur(8px); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 14px 20px;
}
.split-media-tag strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold-bright); }
.split-media-tag span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.split-content .section-head { margin-bottom: 24px; }
.split-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 30px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.split-list .icon { color: var(--gold); margin-top: 4px; }
.split-list strong { color: var(--text); }

/* Finance product mini-cards */

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band-inner {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  padding: clamp(44px, 6vw, 80px) clamp(26px, 5vw, 80px);
  background:
    linear-gradient(115deg, rgba(8, 10, 15, 0.95) 30%, rgba(8, 10, 15, 0.55)),
    var(--surface-2);
  border: 1px solid rgba(201, 161, 99, 0.35);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: center;
}
.cta-band-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 140% at 100% 0%, rgba(201, 161, 99, 0.22), transparent 60%);
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band h2 em { font-style: italic; color: var(--gold-bright); }
.cta-band p { margin-top: 12px; color: var(--text-soft); max-width: 520px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 0.3s;
}
.acc-item:has(.acc-head[aria-expanded="true"]) { border-color: rgba(201, 161, 99, 0.4); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  text-align: left; padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--text);
  font-family: var(--font-body);
}
.acc-head:hover { color: var(--gold-bright); }
.acc-chevron { color: var(--gold); transition: transform 0.35s var(--ease); }
.acc-head[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.acc-body p { padding: 0 24px 22px; font-size: 15px; color: var(--muted); }

.faq-group { margin-bottom: 46px; }
.faq-group-title { font-size: 24px; margin-bottom: 18px; color: var(--gold-bright); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative; padding: calc(var(--header-h) + var(--topbar-h) + clamp(48px, 7vw, 84px)) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(201, 161, 99, 0.1), transparent 65%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .eyebrow::after { content: " —"; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.01em; }
.page-hero h1 em { font-style: italic; color: var(--gold-bright); }
.page-hero p { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }

/* Breadcrumbs */
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); padding-block: 20px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs span[aria-current] { color: var(--text-soft); }

/* ============================================================
   LISTING PAGE
   ============================================================ */
.filters-bar {
  position: sticky; top: var(--header-h); z-index: 500;
  background: rgba(11, 14, 19, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.filters-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; align-items: center; }
.filters-inner .f-field-search { grid-column: span 2; }
.filters-row-2 { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.listing-count { font-size: 14px; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.04em; }
.filters-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.f-sort-wrap .input { padding: 9px 38px 9px 14px; font-size: 14px; width: auto; }
.btn-reset { font-size: 13.5px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.btn-reset:hover { color: var(--red); }

/* ============================================================
   VEHICLE DETAILS PAGE
   ============================================================ */
.detail-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.detail-main { min-width: 0; }

.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9.6; border: 1px solid var(--border); background: var(--surface-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; cursor: zoom-in; }
/* hero nav arrows + photo counter */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10, 12, 17, 0.6); backdrop-filter: blur(6px); color: var(--text);
  border: 1px solid var(--border-strong); opacity: 0; transition: all 0.3s var(--ease);
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: var(--gold-grad); color: #171208; border-color: transparent; }
.gallery-prev { left: 14px; } .gallery-next { right: 14px; }
.gallery-count {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  font-size: 12.5px; font-weight: 700; color: var(--text);
  background: rgba(10, 12, 17, 0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); padding: 5px 12px; border-radius: 999px;
}
.gallery-count span { color: var(--gold-bright); }
/* thumbnails: horizontal scroll strip (handles 20-40 photos) */
.gallery-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px; margin-top: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
  scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar { height: 7px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
.gallery-thumb {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; padding: 0; scroll-snap-align: center;
  border: 2px solid transparent; opacity: 0.5; transition: all 0.3s; background: var(--surface-2);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }

.detail-section { margin-top: clamp(34px, 4.5vw, 52px); }
.detail-section h2 {
  font-size: 26px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.detail-section h2::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--gold-grad); }
.detail-desc { font-size: 16.5px; line-height: 1.85; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-strip span {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px;
  color: var(--text-soft);
}
.trust-strip .icon { color: var(--gold); }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 18px; display: flex; flex-direction: column; gap: 3px;
}
.spec-item span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec-item strong { font-size: 15px; color: var(--text); font-weight: 700; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.feature-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--text-soft); }
.feature-list .icon { color: var(--green); flex: none; }

/* Categorised feature groups (spec accordion) */
.fg-intro { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.feature-groups { display: flex; flex-direction: column; gap: 12px; }
.feature-group-item .acc-head { font-size: 16px; }
.feature-group-item .acc-head span { display: inline-flex; align-items: center; gap: 12px; }
.fg-count {
  font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 800;
  color: var(--gold-bright); background: rgba(201, 161, 99, 0.12); border: 1px solid rgba(201, 161, 99, 0.3);
  border-radius: 999px; min-width: 26px; text-align: center; padding: 2px 9px;
}
.fg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; padding: 4px 24px 22px; }
.fg-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.fg-list .icon { color: var(--green); flex: none; margin-top: 3px; }

.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.history-item {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
}
.history-item .icon { color: var(--gold); margin-top: 3px; }
.history-item h4 { font-size: 16px; margin-bottom: 5px; font-family: var(--font-body); font-weight: 800; }
.history-item p { font-size: 13.5px; color: var(--muted); }

/* Summary card (sticky aside) */
.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-lg);
}
.summary-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.summary-title { font-size: 30px; line-height: 1.15; }
.summary-trim { font-size: 14px; color: var(--muted); margin-top: 5px; }
.summary-price { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.summary-price s { font-size: 17px; color: var(--muted); }
.summary-price strong { font-family: var(--font-display); font-size: 40px; color: var(--text); }
.summary-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.summary-email { font-size: 14px; gap: 8px; }
.summary-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.summary-assurance { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.summary-assurance li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.summary-assurance .icon { color: var(--green); flex: none; margin-top: 2px; }
.summary-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.summary-how {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright);
  transition: gap 0.3s var(--ease);
}
.summary-how:hover { gap: 11px; }

/* buyer-protection: standards callout */
.standards-note {
  max-width: 760px; margin: 34px auto 0; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.7;
  color: var(--gold-bright);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-card:hover { border-color: rgba(201, 161, 99, 0.4); transform: translateY(-3px); }
.contact-card-icon {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(201, 161, 99, 0.1); border: 1px solid rgba(201, 161, 99, 0.3); color: var(--gold-bright);
}
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--muted); }
.contact-card a:hover { color: var(--gold-bright); }
.contact-card strong { color: var(--text); font-size: 16px; }

.hours-list { width: 100%; }
.hours-list li { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--muted); }
.hours-list li strong { color: var(--text-soft); font-weight: 700; }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px;
}
.contact-form-card h2 { font-size: 26px; margin-bottom: 6px; }
.contact-form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  margin-top: clamp(40px, 6vw, 60px); position: relative;
}
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(0.85) invert(0.9) contrast(0.9) hue-rotate(180deg); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 820px; margin-inline: auto; }
.legal-content h2 { font-size: 24px; margin: 38px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 15.5px; color: var(--text-soft); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #080a0e; border-top: 1px solid var(--border);
  padding-top: clamp(52px, 7vw, 80px); margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.5fr; gap: 38px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 14.5px; color: var(--muted); transition: color 0.25s, padding-left 0.25s; }
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 5px; }
.footer-about p { font-size: 14px; color: var(--muted); margin: 18px 0 22px; max-width: 300px; }

.footer-news p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .input { flex: 1; }
.newsletter-form .btn { padding: 12px 18px; border-radius: var(--radius-sm); }
.footer-contact-mini { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.footer-contact-mini a { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-soft); font-weight: 600; }
.footer-contact-mini a:hover { color: var(--gold-bright); }
.footer-contact-mini .icon { color: var(--gold); }

.footer-bottom { padding: 26px 0 32px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-legal-links { margin-top: 8px; display: flex; gap: 12px; justify-content: center; }
.footer-legal-links a:hover { color: var(--gold-bright); }
.footer-fca { margin-top: 14px; font-size: 11.5px !important; opacity: 0.75; max-width: 760px; margin-inline: auto; }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 54px; height: 54px; border-radius: 999px;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  transition: all 0.35s var(--ease);
}
.float-phone { background: var(--gold-grad); color: #171208; width: auto; padding: 0 22px; font-weight: 800; font-size: 14.5px; }
.float-phone:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.float-top { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); width: 46px; height: 46px; }
.float-top:hover { color: var(--gold-bright); transform: translateY(-3px); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 9, 0.78); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98); transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h3 { font-size: 22px; }
.modal-close { color: var(--muted); padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 26px 28px 30px; }
.modal-intro { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.modal-intro strong { color: var(--gold-bright); }

/* ============================================================
   LIGHTBOX (vehicle photo viewer with zoom)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 6, 9, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lb-stage {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lb-img {
  max-width: 93vw; max-height: 88vh;
  border-radius: 8px; box-shadow: var(--shadow-lg);
  cursor: zoom-in; user-select: none; -webkit-user-drag: none;
  transition: transform 0.3s var(--ease);
}
.lb-img.zoomed { transform: scale(2.4); cursor: zoom-out; border-radius: 0; }
.lb-close {
  position: fixed; top: 18px; right: 18px; z-index: 2;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(14, 17, 24, 0.75); color: var(--text);
  border: 1px solid var(--border-strong); transition: all 0.3s var(--ease);
}
.lb-close:hover { background: var(--red); color: #fff; border-color: transparent; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(14, 17, 24, 0.75); color: var(--text);
  border: 1px solid var(--border-strong); transition: all 0.3s var(--ease);
}
.lb-nav:hover { background: var(--gold-grad); color: #171208; border-color: transparent; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-count {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 13px; font-weight: 700; color: var(--text);
  background: rgba(14, 17, 24, 0.75); border: 1px solid var(--border-strong);
  padding: 7px 16px; border-radius: 999px;
}
.lb-count .lb-idx { color: var(--gold-bright); }
@media (max-width: 580px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb-img { max-width: 100vw; border-radius: 0; }
}

/* ============================================================
   HOW IT WORKS PAGE
   ============================================================ */
/* trust pills under the hero */
.hiw-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hiw-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--text-soft);
  background: rgba(201, 161, 99, 0.08); border: 1px solid rgba(201, 161, 99, 0.35);
  border-radius: 999px; padding: 10px 18px;
}
.hiw-pill .icon { color: var(--gold-bright); }

/* ---------- cookie consent bar ---------- */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 4000;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 760px; margin-inline: auto;
  background: rgba(13, 17, 23, 0.97); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.consent-bar p { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-soft); }
.consent-bar a { color: var(--gold-bright); }
.consent-actions { display: flex; gap: 10px; }

/* private seller vs HJ Motors comparison */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin-inline: auto; }
.vs-col { border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--border); }
.vs-col h3 { font-size: 20px; margin-bottom: 18px; }
.vs-col ul { display: flex; flex-direction: column; gap: 13px; }
.vs-col li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--text-soft); }
.vs-col .icon { flex: none; margin-top: 2px; }
.vs-private { background: var(--surface); }
.vs-private h3 { color: var(--muted); }
.vs-private .icon { color: var(--red); }
.vs-abbey {
  background: linear-gradient(160deg, var(--surface) 30%, rgba(201, 161, 99, 0.07));
  border-color: rgba(201, 161, 99, 0.45); box-shadow: var(--shadow-lg);
}
.vs-abbey h3 { color: var(--gold-bright); }
.vs-abbey .icon { color: var(--green); }

/* numbered process timeline */
.process { max-width: 880px; margin-inline: auto; position: relative; }
.process::before {
  content: ""; position: absolute; left: 35px; top: 40px; bottom: 40px; width: 2px;
  background: linear-gradient(to bottom, rgba(201, 161, 99, 0.6), rgba(201, 161, 99, 0.08));
}
.process-step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 20px 0; }
.process-num {
  position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; align-self: start;
  font-family: var(--font-display); font-size: 24px; color: var(--gold-bright);
  background: var(--bg-2); border: 1.5px solid rgba(201, 161, 99, 0.55);
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-lg);
}
.process-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.process-step:hover .process-card { border-color: rgba(201, 161, 99, 0.4); transform: translateX(4px); }
.process-card h3 { font-size: 22px; margin-bottom: 10px; }
.process-card > p { font-size: 15px; color: var(--text-soft); line-height: 1.7; }
.process-card strong { color: var(--gold-bright); font-weight: 700; }
.process-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.process-list li {
  position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); line-height: 1.55;
}
.process-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold-grad);
}

/* benefits reuse .history-grid; slightly wider gap on this page */
.hiw-benefits { max-width: 1000px; margin-inline: auto; }

/* ============================================================
   ANIMATIONS / MICRO-INTERACTIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; order: -1; }
  .topbar-mail { display: none !important; }
}

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-search, .hero-search.no-model { grid-template-columns: 1fr 1fr; }
  .hero-search .btn { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-actions { justify-content: flex-start; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .process::before { left: 27px; }
  .process-step { grid-template-columns: 56px 1fr; gap: 16px; }
  .process-num { width: 54px; height: 54px; font-size: 19px; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .topbar-hours { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  /* Vehicle LISTING: filters scroll away (not pinned) so cars get the full screen,
     and cars show TWO per row in a compact card so more are visible at once. */
  .filters-bar { position: static; }
  #listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #listing-grid .vc-body { padding: 12px 12px 13px; }
  #listing-grid .vc-title { font-size: 15px; line-height: 1.2; }
  #listing-grid .vc-sub { font-size: 11.5px; margin-top: 2px; }
  #listing-grid .vc-specs { gap: 5px 8px; margin-top: 10px; padding-top: 10px; font-size: 11px; }
  #listing-grid .vc-specs li { gap: 5px; }
  #listing-grid .vc-specs .icon { width: 13px; height: 13px; }
  #listing-grid .vc-foot { margin-top: 11px; padding-top: 11px; align-items: center; }
  #listing-grid .vc-price { font-size: 18px; }
  #listing-grid .vc-was { font-size: 11px; }
  #listing-grid .vc-arrow { width: 30px; height: 30px; }
  #listing-grid .vc-arrow .icon { width: 15px; height: 15px; }
  #listing-grid .vc-badge { font-size: 9px; padding: 4px 9px; top: 9px; left: 9px; letter-spacing: 0.08em; }
  #listing-grid .vc-year { font-size: 10px; padding: 3px 8px; bottom: 8px; right: 9px; }
  .review-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:last-child { grid-column: 1 / -1; }
  .hero-search, .hero-search.no-model { grid-template-columns: 1fr; padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .fg-list { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .filters-inner { grid-template-columns: 1fr 1fr; }
  .filters-inner .f-field-search { grid-column: 1 / -1; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-thumbs { grid-auto-columns: 84px; gap: 8px; }
  .header-cta { display: none; }
  .float-phone .float-label { display: none; }
  .float-phone { width: 54px; padding: 0; }
  .topbar-left span:first-child { display: none; }
  .btn-lg { padding: 15px 26px; }
  .hero-ctas .btn { flex: 1; }
}
