/* =====================================================================
   Template 24: "Redline"
   A bright, conversion-led used car site: dark header and footer, a big photo
   hero with a search panel, white cards on a light grey page. Black, silver and
   red, from the Aval Autos logo. The slant of the logo (swoosh, italic letters)
   runs through the headings, buttons and price tags.
   ===================================================================== */

:root {
  --ink: #0b0b0d;
  --ink-2: #15161a;
  --ink-3: #1f2127;
  --ink-line: #2b2e36;
  --red: #e1121b;
  --red-dark: #b30b12;
  --red-soft: #fdeceb;
  --silver: #c9cdd4;
  --silver-2: #9aa0a9;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #15171c;
  --text-2: #464b55;
  --muted: #6b717c;
  --border: #e2e4e9;
  --border-2: #cfd3da;
  --ok: #157a3c;
  --danger: #c0141b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(11, 11, 13, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 11, 13, 0.18);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1280px;
  /* names the shared legal text uses */
  --primary: var(--red);
  --bg-light: var(--red-soft);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; color: var(--text); letter-spacing: 0.005em; }
:focus-visible { outline: 3px solid rgba(225, 18, 27, 0.45); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.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; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--red); color: #fff; padding: 0.6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: var(--radius-sm); border: 2px solid transparent; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; line-height: 1.1; }
.btn svg { flex-shrink: 0; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225, 18, 27, 0.28); }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-line { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: #000; color: var(--silver); font-size: 0.85rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: var(--silver); display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.topbar-hours { color: #fff; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.topbar-hours .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(225, 18, 27, 0.25); }
.topbar-social { display: flex; gap: 0.8rem; }

.header { background: var(--ink); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--red); }
.header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; color: #fff; }
.brand img { height: 68px; width: auto; }
.brand-text { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; list-style: none; }
.nav a { display: block; padding: 0.55rem 0.85rem; color: #e7e9ee; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; position: relative; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; }
.nav a.active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem; height: 3px; background: var(--red); transform: skewX(-20deg); }
.nav .nav-cta-item { margin-left: 0.6rem; }
.nav a.nav-cta { background: var(--red); color: #fff; padding: 0.6rem 1.1rem; }
.nav a.nav-cta:hover { background: var(--red-dark); }
.nav-phone { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ink-line); border-radius: 8px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Flash messages ---------- */
.flash-messages { max-width: var(--wrap); margin: 1.25rem auto 0; padding: 0 1.5rem; display: grid; gap: 0.6rem; }
.flash { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); }
.flash-success { color: var(--ok); }
.flash-error, .flash-danger, .flash-warning { color: var(--danger); border-left-color: var(--danger); }

/* ---------- Section scaffolding ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-white { background: var(--surface); }
.section-dark { background: var(--ink); color: #e7e9ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; }
.kicker::before { content: ""; width: 26px; height: 4px; background: var(--red); transform: skewX(-25deg); }
.sec-head { margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin-top: 0.5rem; max-width: 640px; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-dark .sec-head p { color: var(--silver-2); }

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-photos { position: absolute; inset: 0; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center 60%; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-photo.is-active { opacity: 1; transform: scale(1); }
/* stock photos: blurred enough that number plates can't be read */
.hero-photo.is-car { inset: -24px; filter: blur(8px) saturate(0.9); }
.hero-tint { position: absolute; inset: 0; background:
    linear-gradient(100deg, rgba(11, 11, 13, 0.86) 0%, rgba(11, 11, 13, 0.6) 40%, rgba(11, 11, 13, 0.12) 72%, rgba(11, 11, 13, 0.22) 100%),
    linear-gradient(0deg, rgba(11, 11, 13, 0.8) 0%, rgba(11, 11, 13, 0) 38%); }
.hero:has(.hero-photo.is-car) .hero-tint { background:
    linear-gradient(100deg, rgba(11, 11, 13, 0.94) 0%, rgba(11, 11, 13, 0.78) 42%, rgba(11, 11, 13, 0.35) 75%, rgba(11, 11, 13, 0.55) 100%),
    linear-gradient(0deg, rgba(11, 11, 13, 0.85) 0%, rgba(11, 11, 13, 0) 40%); }
.hero-swoosh { position: absolute; right: -6%; bottom: 14%; width: 70%; max-width: 980px; opacity: 0.9; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-top: 5.5rem; padding-bottom: 9.5rem; }
.hero-chip { display: inline-flex; align-items: center; gap: 0.55rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.4rem; backdrop-filter: blur(6px); }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd46b; box-shadow: 0 0 0 3px rgba(43, 212, 107, 0.25); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7.2vw, 5.6rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.95; max-width: 820px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); }
.hero h1 .red { color: var(--red); }
.hero h1 .silver { background: linear-gradient(180deg, #ffffff 0%, #c9cdd4 55%, #8d939c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #d5d8de; max-width: 560px; margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* the search panel overlaps the bottom of the hero */
.finder { position: relative; z-index: 5; margin-top: -5.5rem; }
.finder-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem 1.5rem; border-top: 4px solid var(--red); }
.finder-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.finder-title h2 { font-size: 1.6rem; font-weight: 800; font-style: italic; text-transform: uppercase; }
.finder-title a { font-weight: 600; font-size: 0.95rem; }
.finder-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end; }
.field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.field select, .field input { width: 100%; height: 50px; padding: 0 0.9rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; color: var(--text); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b717c' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.field select:focus, .field input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(225, 18, 27, 0.15); }
.field select:disabled { background-color: var(--bg); color: var(--muted); }
.finder-grid .btn { height: 50px; padding: 0 1.8rem; }
.finder-bodies { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; align-items: center; }
.finder-bodies span { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-right: 0.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-size: 0.88rem; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--red); color: var(--red); }

/* ---------- Home: number strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.number { background: var(--surface); padding: 1.3rem 1rem; text-align: center; }
.number strong { display: block; font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--text); }
.number strong.word { font-size: 1.9rem; }
.number span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ---------- Vehicle cards ---------- */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.car-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.car-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9ebef; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.car-card:hover .car-photo img { transform: scale(1.05); }
.car-photo .no-photo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.car-photo .no-photo svg { width: 54px; height: 54px; opacity: 0.4; }
.car-year { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(11, 11, 13, 0.82); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; padding: 0.2rem 0.65rem; border-radius: 5px; letter-spacing: 0.04em; }
.car-count { position: absolute; bottom: 0.8rem; right: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(11, 11, 13, 0.7); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 5px; }
.car-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.car-title { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.car-title a { color: var(--text); }
.car-title a:hover { color: var(--red); }
.car-sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; min-height: 1.4em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.car-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 1rem 0 1.1rem; padding: 0.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.car-facts span { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 0.82rem; color: var(--text-2); font-weight: 600; text-align: center; line-height: 1.2; }
.car-facts svg { width: 18px; height: 18px; color: var(--red); }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.price-tag { display: inline-block; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; line-height: 1; padding: 0.45rem 0.9rem 0.4rem; transform: skewX(-10deg); border-radius: 4px; }
.price-tag > span { display: inline-block; transform: skewX(10deg); }
.price-tag.poa { font-size: 1.05rem; padding: 0.55rem 0.8rem; }
.was { display: block; font-size: 0.82rem; color: var(--muted); text-decoration: line-through; margin-top: 0.3rem; }
.car-link { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--red); }

/* ---------- Home: trust split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--ink) center / cover no-repeat; box-shadow: var(--shadow-lg); }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, 0) 50%, rgba(11, 11, 13, 0.75) 100%); }
.split-media.is-logo { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #24262d 0%, var(--ink) 70%); }
.split-media.is-logo::after { display: none; }
.split-media.is-logo img { width: 78%; max-width: 520px; }
.split-badge { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 1; background: var(--red); color: #fff; padding: 0.8rem 1.1rem; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; }
.split-badge strong { display: block; font-size: 2rem; font-style: italic; }
.split h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.split p { color: var(--text-2); margin-top: 1rem; font-size: 1.05rem; }
.ticks { list-style: none; display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; color: var(--text); }
.ticks li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Home: why cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem; position: relative; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.why:hover { border-color: var(--red); transform: translateY(-3px); }
.why::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--red-soft); }
.why-icon { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.why-icon svg { width: 24px; height: 24px; }
.why h3 { font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem; }
.why p { color: var(--text-2); font-size: 0.95rem; }
.why a { display: inline-flex; margin-top: 0.8rem; font-weight: 700; font-size: 0.92rem; }

/* ---------- Home: makes ---------- */
.makes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.85rem; }
.make-tile { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 1rem 1.15rem; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius-sm); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.03em; transition: background 0.2s, border-color 0.2s; }
.make-tile small { font-family: var(--font); font-size: 0.8rem; font-weight: 700; color: var(--silver); background: var(--ink-3); border-radius: 999px; padding: 0.1rem 0.55rem; }
.make-tile:hover { background: var(--red); border-color: var(--red); color: #fff; }
.make-tile:hover small { background: rgba(0, 0, 0, 0.2); color: #fff; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.review-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.stars { color: #f5a623; letter-spacing: 0.12em; font-size: 1.1rem; }
.stars .off { color: var(--border-2); }
.review blockquote { color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.review figcaption { margin-top: auto; font-size: 0.9rem; color: var(--muted); }
.review figcaption strong { color: var(--text); }
.review figcaption span { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font); font-size: 1.3rem; font-weight: 600; transition: transform 0.2s, background 0.2s; }
.faq details[open] summary::after { content: "–"; background: var(--red); color: #fff; }
.faq details[open] { border-color: var(--border-2); }
.faq .faq-a { padding: 0 1.3rem 1.2rem; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--red) 0%, var(--red-dark) 45%, var(--ink) 45.2%, var(--ink) 100%); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 3rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 0.35rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; background: var(--ink); color: #fff; padding: 3rem 0 2.75rem; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -8%; top: -40%; width: 55%; height: 180%; background: linear-gradient(90deg, rgba(225, 18, 27, 0) 0%, rgba(225, 18, 27, 0.22) 100%); transform: skewX(-24deg); }
.page-head::after { content: ""; position: absolute; right: 12%; top: -40%; width: 6px; height: 180%; background: var(--red); transform: skewX(-24deg); opacity: 0.85; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.page-head p { color: var(--silver); margin-top: 0.5rem; font-size: 1.05rem; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--silver-2); margin-bottom: 0.9rem; }
.crumbs a { color: var(--silver); }
.crumbs a:hover { color: #fff; }

/* ---------- Cards, forms ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.card-title { font-size: 1.6rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 1.1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(225, 18, 27, 0.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-small { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.reg-input { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; background: #ffd400 !important; border-color: #d9b400 !important; color: #111 !important; font-family: var(--font-head); font-size: 1.25rem !important; text-align: center; }

.contact-list { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-item .ci-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.contact-item .ci-icon svg { width: 19px; height: 19px; }
.contact-item strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-item span, .contact-item a { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--red); }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.75rem; align-items: start; }
.stack { display: grid; gap: 1.5rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table th { text-align: left; font-weight: 600; padding: 0.55rem 0; }
.hours-table td { text-align: right; color: var(--text-2); padding: 0.55rem 0; }
.hours-table tr + tr { border-top: 1px solid var(--border); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--red); font-weight: 700; }
.hours-note { margin-top: 0.85rem; font-size: 0.88rem; color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 320px; background: #e9ebef; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 1.2rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; color: var(--text-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; background: var(--red); color: #fff; font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transform: skewX(-10deg); border-radius: 5px; }
.steps strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; }

/* ---------- Stock page ---------- */
.stock-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 2rem; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.filters > summary { display: none; }
.filters form { padding: 1.4rem; }
.filters h2 { font-size: 1.45rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 1rem; }
.filters .field { margin-bottom: 0.9rem; }
.filters .field select, .filters .field input { height: 46px; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.filters hr { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.filters .btn { margin-top: 0.4rem; }
.filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; margin-left: 0.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font); font-size: 0.75rem; font-weight: 800; font-style: normal; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.75rem 0.75rem 1.1rem; }
.results-bar p { color: var(--text-2); font-weight: 600; }
.results-bar p strong { color: var(--text); }
.results-bar select { height: 44px; padding: 0 2.2rem 0 0.9rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b717c' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 0.85rem center; appearance: none; -webkit-appearance: none; font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.active-filters a { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 999px; }
.active-filters a:hover { background: var(--red); color: #fff; }
.empty { text-align: center; padding: 4rem 1rem; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--muted); }
.empty svg { width: 60px; height: 60px; margin: 0 auto 1rem; opacity: 0.35; }
.empty h2 { font-size: 1.8rem; text-transform: uppercase; font-style: italic; margin-bottom: 0.4rem; color: var(--text); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.25rem; }
.page-btn { min-width: 44px; height: 44px; padding: 0 0.6rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 700; }
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Car page ---------- */
.car-head { background: var(--ink); color: #fff; padding: 1.75rem 0 1.6rem; border-bottom: 1px solid var(--ink-line); }
.car-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.car-head h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; }
.car-head h1 .yr { color: var(--red); }
.car-head .derivative { color: var(--silver); margin-top: 0.45rem; font-size: 1.05rem; }
.car-head-price { text-align: right; }
.car-head-price .price-tag { font-size: 2.1rem; background: var(--red); }
.car-head-price .was { color: var(--silver-2); }
.car-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gallery side" "specs side"; gap: 2rem 2.25rem; align-items: start; }
.car-gallery { grid-area: gallery; }
.car-specs { grid-area: specs; display: grid; gap: 1.5rem; }
.car-side { grid-area: side; position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #e2e4e9; aspect-ratio: 4 / 3; }
.gallery-main a { display: block; height: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .zoom-hint { position: absolute; right: 0.8rem; bottom: 0.8rem; background: rgba(11, 11, 13, 0.75); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 0.35rem; pointer-events: none; }
.gallery-main .no-photo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--muted); }
.gallery-main .no-photo svg { width: 64px; height: 64px; opacity: 0.35; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 104px; height: 78px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; scroll-snap-align: start; opacity: 0.75; transition: opacity 0.2s, border-color 0.2s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--red); opacity: 1; }
.gallery-thumb a, .gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.keyfact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 0.75rem; text-align: center; }
.keyfact svg { width: 22px; height: 22px; color: var(--red); margin: 0 auto 0.4rem; }
.keyfact strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.keyfact span { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.highlights span { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f6c9c7; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.block-title { font-size: 1.7rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.block-title::before { content: ""; width: 6px; height: 1.3rem; background: var(--red); transform: skewX(-18deg); }
.vehicle-description { color: var(--text-2); line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.spec-section { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.spec-section-title { background: var(--bg); padding: 0.7rem 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spec-table td { padding: 0.55rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 48%; }
.spec-table td:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
details.feature-group { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.65rem; background: var(--surface); }
details.feature-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
details.feature-group > summary::-webkit-details-marker { display: none; }
details.feature-group > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.2s; }
details.feature-group[open] > summary::after { transform: rotate(-135deg); }
.feature-count { background: var(--ink); color: #fff; border-radius: 999px; padding: 0.05rem 0.55rem; font-family: var(--font); font-size: 0.75rem; font-weight: 700; }
.feature-list { list-style: none; columns: 2 230px; column-gap: 1.5rem; padding: 0 1rem 1rem; }
.feature-item { break-inside: avoid; display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.25rem 0; font-size: 0.93rem; color: var(--text-2); overflow-wrap: anywhere; }
.feature-item svg { flex-shrink: 0; margin-top: 0.25rem; color: var(--red); }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.buy-card-top { background: var(--ink); color: #fff; padding: 1.3rem 1.4rem; position: relative; overflow: hidden; }
.buy-card-top::after { content: ""; position: absolute; right: -20px; top: -10px; width: 90px; height: 140%; background: var(--red); transform: skewX(-22deg); opacity: 0.9; }
.buy-card-top > * { position: relative; z-index: 1; }
.buy-label { font-size: 0.78rem; font-weight: 700; color: var(--silver); text-transform: uppercase; letter-spacing: 0.1em; }
.buy-price { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 2.8rem; line-height: 1; margin-top: 0.2rem; }
.buy-price.poa { font-size: 1.8rem; }
.buy-was { color: var(--silver-2); text-decoration: line-through; font-size: 0.9rem; margin-top: 0.25rem; }
.buy-card-body { padding: 1.3rem 1.4rem 1.4rem; display: grid; gap: 0.7rem; }
.buy-card-body .btn { width: 100%; }
.buy-note { font-size: 0.85rem; color: var(--muted); text-align: center; }
.enquiry { scroll-margin-top: 110px; }
.enquiry h2 { font-size: 1.5rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 0.25rem; }
.enquiry > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ---------- Test-drive dialog ---------- */
.td-dialog { width: min(560px, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.td-dialog::backdrop { background: rgba(11, 11, 13, 0.72); }
.td-dialog form { padding: 1.5rem; }
.td-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.td-head h2 { font-size: 1.8rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 0; }
.td-car { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--muted); }
.td-close { background: var(--bg); border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text-2); flex-shrink: 0; }
.td-close:hover { background: var(--red); color: #fff; }
.td-step:not([hidden]) { display: flex; flex-direction: column; gap: 0.9rem; }
.td-step .form-group { margin-bottom: 0; }
.td-label { margin: 0; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.td-days, .td-times { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.td-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; }
.td-chip { border: 1px solid var(--border-2); background: #fff; color: var(--text); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.td-chip:hover { border-color: var(--red); }
.td-chip.td-day { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 0.45rem 0.5rem; line-height: 1.25; }
.td-chip.td-day small { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.td-chip.td-day strong { font-family: var(--font-head); font-size: 1.35rem; }
.td-chip[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.td-chip[aria-checked="true"] small { color: rgba(255, 255, 255, 0.85); }
.td-error { margin: 0; color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.td-chosen { margin: 0; font-weight: 700; color: var(--red); font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; }
.td-check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; cursor: pointer; }
.td-check input { width: 18px; height: 18px; accent-color: var(--red); }
.td-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.td-foot .btn-red { margin-left: auto; }
.td-small { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
body.td-open { overflow: hidden; }

/* ---------- About ---------- */
.about-text { white-space: pre-line; color: var(--text-2); font-size: 1.05rem; line-height: 1.8; }
.help-list { list-style: none; display: grid; gap: 0.8rem; }
.help-list li { display: flex; gap: 0.7rem; color: var(--text-2); }
.help-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.15rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; color: var(--text-2); line-height: 1.8; }
.legal h2 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin: 2rem 0 0.6rem; padding-left: 0.75rem; border-left: 4px solid var(--red); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 1.4rem 0 0.4rem; }
.legal p { margin: 0.6rem 0; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0.6rem 0; }
.legal li { margin-bottom: 0.35rem; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
.legal th { text-align: left; color: var(--text); padding: 0.6rem; border-bottom: 2px solid var(--border-2); }
.legal td { padding: 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal .table-scroll { overflow-x: auto; }
.legal .legal-address { padding-left: 1rem; border-left: 3px solid var(--border-2); }
.legal .legal-custom { white-space: pre-wrap; }
.legal .contact-box { background: var(--bg); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 1.4rem; margin-top: 1rem; }
.legal .contact-box h3 { margin-top: 0; }

/* ---------- Errors ---------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-code { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--red); }
.error-page h1 { font-size: 2.4rem; text-transform: uppercase; font-style: italic; }
.error-page p { color: var(--text-2); margin: 0.75rem auto 2rem; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--silver-2); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 1rem; }
.footer-brand .brand-text { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.93rem; line-height: 1.7; max-width: 380px; }
.footer h3 { color: #fff; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer a { color: var(--silver); font-size: 0.93rem; }
.footer a:hover { color: #fff; }
.footer-hours { width: 100%; font-size: 0.88rem; border-collapse: collapse; }
.footer-hours th { text-align: left; font-weight: 500; color: var(--silver); padding: 0.18rem 0; }
.footer-hours td { text-align: right; color: var(--silver-2); padding: 0.18rem 0; }
.footer-hours tr.is-today th, .footer-hours tr.is-today td { color: #fff; font-weight: 700; }
.social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; color: var(--silver); }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 1.25rem 0 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { font-size: 0.85rem; }
.footer-address { font-size: 0.93rem; }

/* ---------- UK number plate (reg lookup + car page) ---------- */
.plate { display: inline-flex; align-items: stretch; height: 50px; border-radius: 6px; overflow: hidden; background: #ffd400; border: 2px solid #111; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.plate-gb { display: flex; align-items: flex-end; justify-content: center; width: 32px; padding-bottom: 6px; background: #1f4fa8; color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.plate input, .plate .plate-text { border: 0; background: transparent; color: #111; font-family: "Barlow Condensed", var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 0 0.75rem; width: 190px; min-width: 0; }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: 0 0 0 3px rgba(225, 18, 27, 0.35); }
.plate input::placeholder { color: rgba(17, 17, 17, 0.45); letter-spacing: 0.06em; }
.plate .plate-text { display: flex; align-items: center; width: auto; }
.plate-sm { height: 38px; margin-top: 0.75rem; border-width: 1.5px; }
.plate-sm .plate-gb { width: 24px; font-size: 9px; padding-bottom: 4px; }
.plate-sm .plate-text { font-size: 1.3rem; padding: 0 0.65rem; }
.reg-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.reg-finder label { font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 1.25rem; text-transform: uppercase; }
.reg-finder .btn { height: 50px; }

/* ---------- Phone quick-action dock (Podium's pattern) ---------- */
.mobile-dock { display: none; }
@media (max-width: 991px) {
  :root { --dock-h: 64px; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: stretch; height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ink); border-top: 3px solid var(--red); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45); }
  .dock-item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--silver); font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  .dock-item:hover, .dock-item:focus-visible, .dock-item[aria-current="page"] { color: #fff; }
  .dock-item[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; background: #fff; transform: skewX(-20deg); }
  .dock-item.dock-hot { background: var(--red); color: #fff; }
  .dock-item.dock-wa svg { color: #25d366; }
  #dg-launcher { bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  #dg-prompt { bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 520px) {
  .reg-finder label { width: 100%; }
  .reg-finder .plate { flex: 1 1 auto; }
  .reg-finder .plate input { width: 100%; }
}

/* reCAPTCHA badge hidden: every form shows Google's notice text instead (_recaptcha_note.html) */
.grecaptcha-badge { visibility: hidden !important; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .nav a { padding: 0.5rem 0.6rem; font-size: 1rem; }
  .finder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finder-grid .btn { grid-column: span 3; }
  .car-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .topbar .topbar-email { display: none; }
  .header .wrap { min-height: 68px; gap: 1rem; }
  .brand img { height: 54px; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1.25rem; border-bottom: 3px solid var(--red); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
  .nav.open { display: flex; }
  .nav li { border-bottom: 1px solid var(--ink-line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { padding: 0.95rem 0.25rem; font-size: 1.2rem; }
  .nav a.active::after { left: 0.25rem; right: auto; width: 40px; bottom: 0.5rem; }
  .nav .nav-cta-item { margin: 0.8rem 0 0; }
  .nav a.nav-cta { text-align: center; padding: 0.9rem; border-radius: var(--radius-sm); }
  .nav-phone { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; background: var(--red); color: #fff; }
  .nav-phone:hover { color: #fff; background: var(--red-dark); }
  .nav-phone + .nav-toggle { margin-left: 0; }

  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-media { min-height: 300px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }

  .stock-layout { grid-template-columns: 1fr; gap: 1rem; }
  .filters { position: static; max-height: none; }
  .filters > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; font-style: italic; text-transform: uppercase; }
  .filters > summary::-webkit-details-marker { display: none; }
  .filters > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform 0.2s; }
  .filters[open] > summary::after { transform: rotate(-135deg); }
  .filters form { padding: 0 1.2rem 1.2rem; }
  .filters h2 { display: none; }

  .car-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "specs"; gap: 1.5rem; }
  .car-side { position: static; }
  .car-head-price { display: none; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 1rem; }
  .topbar { font-size: 0.8rem; }
  .topbar-social, .topbar-phone-label { display: none; }
  .topbar .wrap { min-height: 34px; }
  .section { padding: 3rem 0; }
  .section-tight { padding: 2.25rem 0; }
  .sec-head { margin-bottom: 1.5rem; }
  .hero-inner { padding-top: 3rem; padding-bottom: 6.5rem; }
  .hero-lead { margin: 1rem 0 1.5rem; }
  .hero-swoosh { width: 120%; right: -30%; bottom: 8%; opacity: 0.55; }
  .finder { margin-top: -4rem; }
  .finder-card { padding: 1.1rem 1rem 1.2rem; }
  .finder-title h2 { font-size: 1.35rem; }
  .finder-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .finder-grid .btn { grid-column: 1 / -1; }
  .field select, .field input { height: 48px; font-size: 16px; }
  .number strong { font-size: 1.9rem; }
  .number strong.word { font-size: 1.55rem; }
  .cars-grid { grid-template-columns: 1fr; gap: 1rem; }
  .car-title { font-size: 1.35rem; }
  .why-grid { grid-template-columns: 1fr; }
  .makes-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .make-tile { font-size: 1.05rem; padding: 0.85rem 0.9rem; }
  .cta-band { background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 38%, var(--ink) 38.2%); }
  .cta-band .wrap { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .page-head { padding: 2.1rem 0 1.9rem; }
  .card { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-table td:first-child { width: 50%; }
  .gallery-thumb { flex-basis: 84px; height: 63px; }
  .legal { padding: 1.4rem 1.1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; padding: 2.5rem 0 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .td-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; }
  .td-dialog form { padding: 1.25rem 1rem 1.5rem; }
  .td-head h2 { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .brand img { height: 46px; }
  .hero h1 { font-size: 2.55rem; }
  .finder-grid { grid-template-columns: 1fr; }
  .car-facts span { font-size: 0.78rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

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