/* =========================================================
   APEX PRIME MOTORS — DESIGN SYSTEM (v4)
   Deep navy + British racing red, white and cool grey.
   Type: Barlow Condensed (headings, prices) / Barlow (text).

   CHANGING THE ACCENT COLOUR
   Edit --red, --red-hover and --red-hi below. If you change
   it, also update the red in images/placeholder-car.svg
   (#E00413). The logo itself is an image (images/logo.png),
   so its colours don't change from here.
   ========================================================= */

:root {
  --navy: #0F1B2D;
  --navy-2: #16263D;
  --navy-3: #22385A;
  --red: #E00413;          /* buttons, icons, highlights — matches the logo red */
  --red-hover: #BC0310;
  --red-hi: #FF4D57;       /* lighter logo red for small text/icons on navy */
  --red-tint: #FDE7E8;
  --paper: #FFFFFF;
  --mist: #F2F4F7;
  --line: #DDE2EA;
  --line-strong: #C3CBD8;
  --text: #0F1B2D;
  --slate: #566175;
  --on-dark: #CDD5E1;
  --on-dark-dim: #93A0B4;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-lg: 0 30px 60px -24px rgba(15, 27, 45, 0.38);
  --shadow: 0 14px 34px -14px rgba(15, 27, 45, 0.24);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 76px;
  --focus: var(--red);
}
@media (max-width: 600px) {
  :root { --gutter: 18px; --header-h: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
/* Big headings echo the slanted wordmark in the logo */
h1, h2 { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); line-height: 0.95; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); line-height: 0.98; }
h3 { font-size: 1.5rem; line-height: 1.12; }
h4 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1;
  white-space: nowrap; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-color: currentColor; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: var(--on-dark-dim); font-size: 0.875rem; border-bottom: 1px solid var(--line-dark); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar-group { display: flex; align-items: center; gap: 28px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--red-hi); }
.topbar a.topbar-item:hover { color: #fff; }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line-dark); --focus: var(--red-hi); }
.navbar { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
/* The logo scales down on its own if the header gets tight (small phones) */
.logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.logo-img { width: 330px; max-width: 100%; height: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--on-dark); font-weight: 500; font-size: 1.0625rem; border-radius: var(--radius-sm);
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--red); transform: skewX(-24deg);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: transparent; color: #fff; border: 1.5px solid var(--line-dark); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 960px) {
  .navbar { gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--navy);
    border-top: 1px solid var(--line-dark); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; font-size: 1.25rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav-links a[aria-current="page"] { color: var(--red-hi); }
  .nav-links a[aria-current="page"]::after { display: none; }
}
@media (max-width: 600px) {
  .site-header .logo-img { width: 210px; }
  .nav-call { min-height: 46px; padding: 0 14px; }
  .nav-call .nav-call-number { display: none; }
}
/* very small phones: call button becomes a square phone icon so the logo keeps its size */
@media (max-width: 380px) {
  .nav-call { width: 46px; padding: 0; }
  .nav-call .nav-call-short {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 601px) { .nav-call .nav-call-short { display: none; } }

/* ---------- home hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy) url("https://images.unsplash.com/photo-1685091955352-4bb8796aef12?auto=format&fit=crop&w=1900&q=75") center 60% / cover no-repeat;
  padding: clamp(64px, 9vw, 120px) 0 clamp(124px, 12vw, 168px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 27, 45, 0.97) 0%, rgba(15, 27, 45, 0.86) 36%, rgba(15, 27, 45, 0.4) 72%, rgba(15, 27, 45, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 27, 45, 0.55) 0%, rgba(15, 27, 45, 0) 45%);
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--on-dark); font-weight: 500; }
.hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); transform: skewX(-24deg); }
.hero h1 { font-size: clamp(3.25rem, 8.4vw, 6.5rem); line-height: 0.88; max-width: 9ch; margin-bottom: 24px; color: #fff; }
.hero .lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-dark); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .hero { background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 27, 45, 0.8) 0%, rgba(15, 27, 45, 0.94) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- forms: shared field styles ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { padding: 12px 14px; min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B2D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: #8892A3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA5B6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(224, 4, 19, 0.2);
}

/* ---------- quick search card (overlaps hero) ---------- */
.search-wrap { position: relative; z-index: 5; margin-top: -76px; }
.search-card {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
}
.search-card .btn { min-width: 160px; }
@media (max-width: 1000px) {
  .search-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .search-wrap { margin-top: -64px; }
  .search-card { padding: 18px; gap: 14px 12px; }
}

/* ---------- USP strip ---------- */
.usp-strip { padding: 48px 0 clamp(48px, 6vw, 72px); }
.usp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.usp-item { display: flex; align-items: flex-start; gap: 14px; }
.usp-item h3 { font-size: 1.3125rem; margin: 1px 0 2px; }
.usp-item p { margin: 0; font-size: 0.9375rem; color: var(--slate); }
@media (max-width: 900px) { .usp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .usp-item { flex-direction: column; gap: 10px; } }

.icon-badge {
  display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--red-tint); color: var(--red);
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge--dark { background: rgba(255, 77, 87, 0.13); color: var(--red-hi); }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--on-dark); --focus: var(--red-hi); }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: var(--on-dark); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 12px 0 0; color: var(--slate); max-width: 56ch; }
.section-intro { max-width: 46ch; }
.section-intro p { margin-bottom: 28px; }

/* ---------- car cards ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 961px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid, .card-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.card-grid > .loading { grid-column: 1 / -1; color: var(--slate); margin: 0; }
/* Featured cars swipe sideways on phones instead of one long column */
@media (max-width: 620px) {
  .card-grid--swipe {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .card-grid--swipe::-webkit-scrollbar { display: none; }
  .card-grid--swipe > * { scroll-snap-align: start; }
}

.car-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.car-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.car-card:focus-within { border-color: var(--navy); }
.car-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-2); overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.car-card:hover .car-media img { transform: scale(1.035); }
.car-card.is-sold .car-media img { filter: grayscale(0.7) brightness(0.8); }

.car-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(15, 27, 45, 0.84); color: #fff; font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
}
.car-tag--sold { background: var(--red); }

.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--navy); cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.18);
  transition: color 0.15s ease, transform 0.15s ease;
}
.fav-btn svg { width: 19px; height: 19px; }
.fav-btn:hover { color: var(--red); }
.fav-btn:active { transform: scale(0.92); }
.fav-btn[aria-pressed="true"] { color: var(--red); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

.car-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.car-title { font-size: 1.5rem; margin: 0; }
.car-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.car-title a:focus-visible { outline: none; }
.car-variant { margin: 3px 0 0; font-size: 0.9375rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs {
  list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 0.9375rem;
}
.car-specs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.car-specs li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-specs svg { width: 16px; height: 16px; color: var(--slate); }
.car-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-price { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: 0.005em; }
.car-foot .btn { position: relative; z-index: 2; }

/* ---------- services (navy band, one photo per service) ---------- */
.bg-navy .section-head p { color: var(--on-dark); }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.service-media { aspect-ratio: 3 / 2; background: var(--navy-3); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 20px 22px 24px; }
.service-body h3 { font-size: 1.5rem; margin: 0 0 6px; }
.bg-navy .service-body p { margin: 0; color: var(--on-dark-dim); font-size: 0.9375rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Services swipe sideways on phones (must come after the rules above) */
@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-grid > * { scroll-snap-align: start; }
}

/* ---------- promo panels (finance / part-exchange) ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: 320px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  color: #fff; background: var(--navy-2) center / cover no-repeat;
  --focus: var(--red-hi);
}
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(15, 27, 45, 0.96) 0%, rgba(15, 27, 45, 0.72) 55%, rgba(15, 27, 45, 0.35) 100%);
}
.promo h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); color: #fff; margin-bottom: 10px; }
.promo p { color: var(--on-dark); max-width: 42ch; margin-bottom: 24px; }
.promo--finance { background-image: url("https://images.unsplash.com/photo-1643792801605-1f8081811439?auto=format&fit=crop&w=1200&q=75"); }
.promo--sell { background-image: url("https://images.unsplash.com/photo-1652454420939-c4a80fe071c5?auto=format&fit=crop&w=1200&q=75"); }
@media (max-width: 760px) { .promo-grid { grid-template-columns: minmax(0, 1fr); } .promo { min-height: 280px; } }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--slate); max-width: 58ch; }

.check-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.4; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 0; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 520px) { .check-list { grid-template-columns: minmax(0, 1fr); } }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-actions .btn-outline svg { color: var(--red); }
@media (max-width: 520px) { .about-actions .btn { flex: 1 1 100%; padding: 0 16px; white-space: normal; overflow-wrap: anywhere; } }

/* ---------- trust cards ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-card h3 { margin: 20px 0 8px; }
.trust-card p { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- visit band (red) ---------- */
.visit-band { background: var(--red); color: #fff; --focus: #fff; }
.visit-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 56px); }
.visit-band h2 { color: #fff; margin: 0 0 8px; }
.visit-band p { margin: 0; color: #fff; max-width: 52ch; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .visit-actions, .visit-actions .btn { width: 100%; } }

/* ---------- callout (inventory, car pages) ---------- */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark);
  --focus: var(--red-hi);
}
.callout h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.callout p { margin: 0; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-dim); font-size: 0.9375rem; padding-top: 64px; --focus: var(--red-hi); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1.3fr 1.05fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-img { width: 320px; }
.footer-brand p { margin: 18px 0 0; max-width: 30ch; }
.footer-title { font-family: var(--font-display); font-style: normal; text-transform: none; font-weight: 700; font-size: 1.25rem; color: #fff; margin: 0 0 16px; letter-spacing: 0.01em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a:hover { color: #fff; }
.footer-list--icons li { display: flex; align-items: flex-start; gap: 10px; }
.footer-list--icons svg { width: 17px; height: 17px; margin-top: 4px; color: var(--red-hi); }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-hours li span:last-child { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.footer-hours li.is-today span { color: #fff; font-weight: 600; }

.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark);
}
.social-row a:hover { border-color: #fff; color: #fff; }
.social-row svg { width: 17px; height: 17px; }

.footer-legal {
  display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  padding: 22px 0 30px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; line-height: 1.6;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .site-footer { padding-top: 48px; } }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--navy); color: var(--on-dark); padding: 36px 0 56px; --focus: var(--red-hi); }
.page-hero--overlap { padding-bottom: 112px; }
.page-hero h1 { color: #fff; margin: 0 0 12px; font-size: clamp(2.6rem, 5.4vw, 4rem); }
.page-hero p { margin: 0; max-width: 58ch; font-size: 1.125rem; }

.breadcrumb { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.9375rem; color: var(--on-dark-dim); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumb li + li::before { content: "/"; opacity: 0.6; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--on-dark); }
.breadcrumb--light { color: var(--slate); }
.breadcrumb--light a:hover { color: var(--navy); }
.breadcrumb--light [aria-current] { color: var(--navy); font-weight: 500; }

/* ---------- inventory ---------- */
.filter-panel {
  position: relative; z-index: 5; margin-top: -80px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px;
}
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.filter-bar .btn { min-width: 120px; }
.filter-toggle { display: none; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 0.8125rem; font-weight: 700;
}
@media (max-width: 1000px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .filter-panel { padding: 14px; margin-top: -84px; }
  .filter-toggle { display: flex; width: 100%; justify-content: space-between; }
  .filter-bar { display: none; margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
  .filter-panel.open .filter-bar { display: grid; }
}

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 40px 0 24px; }
.results-count { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; line-height: 1.1; margin: 0; }
.results-tools { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.sort { flex-direction: row; align-items: center; gap: 10px; }
.sort label { font-weight: 500; color: var(--slate); white-space: nowrap; }
.sort select { width: auto; min-width: 210px; }
.saved-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.saved-toggle svg { width: 18px; height: 18px; }
.saved-toggle:hover { border-color: var(--navy); }
.saved-toggle[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.saved-toggle[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 520px) {
  .results-tools, .sort { width: 100%; }
  .sort select { flex: 1; min-width: 0; }
  .saved-toggle { width: 100%; justify-content: center; }
}

.empty-state {
  text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg); background: var(--mist);
}
.empty-state h2, .empty-state h3 { font-size: 1.75rem; font-style: normal; text-transform: none; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--slate); max-width: 46ch; margin: 0 auto 22px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- car detail ---------- */
.detail-page { padding: 28px 0 var(--section-y); }
.detail-head { margin: 4px 0 28px; }
.detail-head h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 3.75rem); }
.detail-sub { margin: 8px 0 0; font-size: 1.1875rem; color: var(--slate); }

.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "media aside" "info aside";
  gap: 40px 48px; align-items: start;
}
.detail-media { grid-area: media; min-width: 0; }
.detail-info { grid-area: info; min-width: 0; }
.buy-box { grid-area: aside; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1060px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "aside" "info"; }
  .buy-box { position: static; }
}

.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button {
  flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--mist); opacity: 0.7;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }

.key-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.key-fact { background: #fff; padding: 14px 18px; min-width: 0; }
.key-fact dt { display: flex; align-items: center; gap: 7px; font-size: 0.875rem; color: var(--slate); }
.key-fact dt svg { width: 15px; height: 15px; }
.key-fact dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.detail-section + .detail-section { margin-top: 40px; }
.h-sub { font-size: 1.75rem; font-style: normal; text-transform: none; font-weight: 700; line-height: 1.1; margin: 0 0 14px; }
.detail-section p { max-width: 68ch; }

.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--slate); }
.spec-row dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 600px) { .spec-list { grid-template-columns: minmax(0, 1fr); } }
.detail-section .check-list { margin: 0; }

.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.buy-box .car-tag { position: static; display: inline-block; margin-bottom: 12px; }
.buy-label { margin: 0 0 4px; color: var(--slate); font-size: 0.9375rem; }
.buy-price { font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1; margin: 0; }
.buy-note { color: var(--slate); font-size: 0.9375rem; margin: 10px 0 22px; }
.buy-actions { display: grid; gap: 10px; }
.reassure { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 0.9375rem; font-weight: 500; }
.reassure li { display: flex; align-items: center; gap: 10px; }
.reassure svg { width: 18px; height: 18px; color: var(--red); }
.buy-hours { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 0.875rem; color: var(--slate); }
.buy-hours svg { width: 16px; height: 16px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.contact-stack { display: grid; gap: 24px; align-content: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.info-card h2 { font-size: 1.75rem; font-style: normal; text-transform: none; font-weight: 700; margin: 0 0 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.contact-list .k { display: block; font-size: 0.875rem; color: var(--slate); }
.contact-list .v { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a.v:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.is-today td { color: var(--red); font-weight: 700; }
.today-pill {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--red-tint); color: var(--red); font-size: 0.75rem; font-weight: 700; vertical-align: 2px;
}

.map-frame { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .map-frame { min-height: 340px; } }

.enquiry-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.enquiry-grid .section-intro p { color: var(--slate); }
.enquiry-alt { display: grid; gap: 12px; margin-top: 8px; }
.enquiry-alt a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.enquiry-alt a:hover { color: var(--red); }
.enquiry-alt svg { width: 18px; height: 18px; color: var(--red); }
@media (max-width: 900px) { .enquiry-grid { grid-template-columns: minmax(0, 1fr); } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.form-note { flex: 1 1 260px; margin: 0; font-size: 0.875rem; color: var(--slate); }
.form-status { margin: 0; font-weight: 600; color: var(--navy); }
.form-status:empty { display: none; }
@media (max-width: 600px) { .form-actions .btn { width: 100%; } }

/* ---------- small utilities ---------- */
.section--flush-top { padding-top: 0; }
.filter-toggle-label { display: inline-flex; align-items: center; gap: 10px; }
.label-hint { font-weight: 400; color: var(--slate); }
@media (max-width: 640px) { .filter-panel { box-shadow: var(--shadow); } }
