/* ==========================================================================
   PureCar Show Site — master dealer template (demo: Oakfield Motors NI)
   Colours, fonts and radius are injected from templates/settings.json as
   CSS variables in <head>; the values below are only fallbacks.
   ========================================================================== */
:root {
  --primary: #FF1616; --primary-d: #D60F0F; --on-primary: #fff;
  --dark: #111113; --dark-2: #1C1C20; --darker: #09090A; --tint: #F5F4F2; --accent: #FF1616;
  --white: #fff; --ink: #141416; --muted: #66666d; --muted-d: #a6a6ad; --line: #e8e6e3; --line-d: rgb(255 255 255 / .12);
  --green: #13804b; --star: #FFB400;
  --f-head: "Sora", system-ui, sans-serif; --f-body: "DM Sans", system-ui, sans-serif;
  --r: 18px; --r-sm: 12px;
  --wrap: 1360px; --gutter: clamp(16px, 4vw, 40px); --hdr-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgb(20 20 22 / .05), 0 16px 40px -20px rgb(20 20 22 / .3);
  --primary-ink: var(--primary);
  --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; font: 400 16.5px/1.6 var(--f-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; }
.bodyico { width: 64px; height: 28px; }

/* ---------- Buttons & links ---------- */
.btn { --bg: var(--white); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px;
  border-radius: var(--r-sm); border: 2px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 15px/1.1 var(--f-head); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { --bg: var(--primary); --fg: var(--on-primary); --bd: var(--primary); }
.btn--primary:hover { --bg: var(--primary-d); --bd: var(--primary-d); box-shadow: 0 12px 24px -12px var(--primary); }
.btn--dark { --bg: var(--dark); --fg: #fff; --bd: var(--dark); }
.btn--dark:hover { --bg: var(--primary); --bd: var(--primary); --fg: var(--on-primary); }
.btn--line:hover { --bd: var(--ink); }
.btn--ghost, .btn--line-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .3); }
.btn--ghost:hover, .btn--line-light:hover { --bd: #fff; --bg: rgb(255 255 255 / .08); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--f-head); color: var(--primary-ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--white); cursor: pointer; transition: .2s; }
.round:hover { border-color: var(--ink); }
.demo-label { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 20px; background: var(--tint); color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo--light { color: #fff; }
.logo__mark { width: 40px; height: 40px; color: inherit; }
.logo__text { display: grid; line-height: 1; transform: skewX(-8deg); }
.logo__word { font: 800 25px/1 var(--f-head); text-transform: uppercase; letter-spacing: -.02em; }
.logo__sub { font: 700 11px/1.3 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--primary-ink); margin-top: 3px; }
.logo__img { width: auto; display: block; }
.logo__img--header { height: 50px; }
.logo__img--footer { height: 78px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--dark); color: var(--muted-d); font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar__item b { color: #fff; font-weight: 600; }
.topbar__item .ico { color: var(--primary-ink); }
a.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.topbar__icon:hover { background: var(--primary); color: var(--on-primary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd075; box-shadow: 0 0 0 3px rgb(47 208 117 / .25); }
.dot--off { background: var(--primary); box-shadow: none; }

.hdr { position: sticky; top: 0; z-index: 60; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.is-scrolled .hdr { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .35); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.hdr__logo { text-decoration: none; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__drop { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; border-radius: 10px; font: 600 15px var(--f-head); text-decoration: none; color: #3c3c42; transition: color .2s, background-color .2s; }
.nav__link:hover { color: var(--ink); background: var(--tint); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--primary); }
.drop { position: absolute; top: calc(100% + 12px); left: 0; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -24px rgb(0 0 0 / .35); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.drop::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__drop:hover .drop, .nav__drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop--mega { width: 720px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 24px; }
.drop__h { font: 700 12px var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.drop__makes, .drop__bodies { list-style: none; margin: 0; padding: 0; }
.drop__makes { columns: 2; column-gap: 12px; }
.drop__makes a, .drop__bodies a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; break-inside: avoid; }
.drop__makes a:hover, .drop__bodies a:hover { background: var(--tint); color: var(--primary-ink); }
.drop small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.drop__bodies .bodyico { width: 44px; height: 20px; color: var(--muted); }
.drop__all { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--dark); color: #fff; font: 600 14px var(--f-head); text-decoration: none; }
.drop__all:hover { background: var(--primary); color: var(--on-primary); }
.drop--list { width: 320px; display: grid; gap: 2px; padding: 10px; }
.drop--list a { display: grid; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.drop--list a:hover { background: var(--tint); }
.drop--list b { font: 600 15px var(--f-head); }
.drop--list span { font-size: 13.5px; color: var(--muted); }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.hdr__icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); text-decoration: none; }
.hdr__icon:hover { border-color: var(--ink); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: 700 11px/20px var(--f-head); text-align: center; }
.hdr__call { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: 600 15px var(--f-head); text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.hdr__call:hover { background: var(--primary-d); }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); cursor: pointer; place-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; padding-top: clamp(44px, 6vw, 84px); overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 420px at 85% 30%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 30px; background: var(--dark-2); color: #e4e4e8; font-weight: 600; font-size: 14px; margin-bottom: 22px; }
.hero__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.hero__title { font: 800 clamp(42px, 5.6vw, 78px)/1.02 var(--f-head); letter-spacing: -.035em; margin-bottom: 22px; }
.hero__title em { font-style: italic; color: var(--primary-ink); display: inline-block; }
.hero__lead { color: #c9c9cf; font-size: clamp(16px, 1.3vw, 18.5px); max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts { list-style: none; display: flex; gap: 32px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-d); }
.hero__facts li { display: grid; }
.hero__facts b { display: inline-flex; align-items: center; gap: 4px; font: 700 26px/1.1 var(--f-head); }
.hero__facts b .ico { color: var(--star); }
.hero__facts span { color: var(--muted-d); font-size: 14px; }
.hero__stage { position: relative; aspect-ratio: 5 / 4; width: 100%; }
.hero__stage::after { content: ""; position: absolute; top: -14px; right: -14px; width: 38%; height: 38%; border-top: 6px solid var(--primary); border-right: 6px solid var(--primary); border-radius: 0 calc(var(--r) + 10px) 0 0; pointer-events: none; }
.stage { position: absolute; inset: 0; display: block; border-radius: calc(var(--r) + 6px); overflow: hidden; opacity: 0; transition: opacity .9s var(--ease); background: var(--dark-2); }
.stage.is-on { opacity: 1; z-index: 1; }
.stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.stage.is-on img { transform: scale(1); }
.stage__tag { position: absolute; left: 16px; bottom: 16px; display: grid; padding: 14px 18px; border-radius: 14px; background: rgb(255 255 255 / .96); color: var(--ink); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); }
.stage__tag small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stage__tag b { font: 700 19px/1.2 var(--f-head); }
.stage__price { font: 800 22px/1.2 var(--f-head); color: var(--primary-ink); }
.stage__dots { position: absolute; right: 18px; bottom: 22px; display: flex; gap: 8px; z-index: 2; }
.stage__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgb(255 255 255 / .6); cursor: pointer; transition: width .3s var(--ease), background-color .2s; }
.stage__dots button.is-on { width: 28px; background: var(--primary); }

.finder { position: relative; z-index: 3; margin-top: clamp(40px, 5vw, 64px); transform: translateY(50%); }
.finder__tabs { display: flex; gap: 6px; }
.finder__tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 14px 14px 0 0; background: var(--dark-2); color: #d8d8dd; font: 600 15px var(--f-head); cursor: pointer; }
.finder__tabs button.is-on { background: var(--white); color: var(--ink); }
.finder__tabs button.is-on .ico { color: var(--primary-ink); }
.finder [data-panel] { background: var(--white); color: var(--ink); border-radius: 0 var(--r) var(--r) var(--r); padding: 18px; box-shadow: 0 30px 60px -28px rgb(0 0 0 / .5); border: 1px solid var(--line); }
.hero + .sec { padding-top: calc(clamp(64px, 8vw, 104px) + 64px); }
.qsearch { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.qsearch .field { margin: 0; }
.qsearch__go { min-height: 54px; }
.budget { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center; padding: 22px 24px !important; }
.budget__label { font: 600 19px/1.3 var(--f-head); }
.budget__label output { color: var(--primary-ink); }
.budget__range { width: 100%; accent-color: var(--primary); height: 32px; }
.budget .btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec--tint { background: var(--tint); }
.sec--dark { background: var(--dark); color: #fff; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sec__head-actions { display: flex; gap: 10px; align-items: center; }
.sec__kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px var(--f-head); color: var(--primary-ink); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.sec__kicker::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.sec__kicker--light { color: var(--primary-ink); }
.sec__title { font: 700 clamp(30px, 3.6vw, 48px)/1.08 var(--f-head); letter-spacing: -.03em; }
.sec__title--sm { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 18px; }

/* Browse */
.bodies { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.bodies a { display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; text-align: center; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.bodies a:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.bodies .bodyico { width: 78px; height: 34px; color: var(--ink); margin-bottom: 6px; }
.bodies a:hover .bodyico { color: var(--primary-ink); }
.bodies b { font: 600 16px var(--f-head); }
.bodies small { color: var(--muted); font-size: 13px; }
.makes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.makes a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 30px; background: var(--tint); text-decoration: none; font: 600 14.5px var(--f-head); transition: background-color .2s, color .2s; }
.makes small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.makes a:hover { background: var(--dark); color: #fff; }
.makes a:hover small { color: var(--muted-d); }

/* ---------- Car cards: clean photo, stretched link, compare in the info area ---------- */
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.car { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.car:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.car__media { aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car:hover .car__media img { transform: scale(1.04); }
.car__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.car__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.car__make { font: 600 12.5px var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--primary-ink); }
.car__name { font: 700 22px/1.2 var(--f-head); letter-spacing: -.02em; margin-bottom: 4px; }
.car__link { text-decoration: none; }
.car__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.car__link:focus-visible { outline: none; }
.car:has(.car__link:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.car__variant { font-size: 14px; color: var(--muted); line-height: 1.45; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.car__specs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.car__specs li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; background: var(--tint); font-size: 13px; font-weight: 600; }
.car__specs .ico { color: var(--muted); }
.car__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.car__price { font: 800 26px/1 var(--f-head); letter-spacing: -.02em; }
.car__monthly { font-size: 14px; color: var(--muted); }
.car__monthly b { color: var(--ink); font-size: 16px; }
/* Compare sits above the stretched link so it stays clickable */
.car__cmp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border: 1.5px solid var(--line); border-radius: 30px; font: 600 12.5px var(--f-head); color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.car__cmp:hover { border-color: var(--ink); color: var(--ink); }
.car__cmp input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }
.car__cmp:has(input:checked) { background: var(--dark); border-color: var(--dark); color: #fff; }

.rail .cars { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 48px) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px 0; }
.rail .cars::-webkit-scrollbar { display: none; }
.rail .car { scroll-snap-align: start; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
.why__intro .sec__title { margin-bottom: 18px; }
.why__intro p:not(.sec__kicker) { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.why__list { list-style: none; margin: 0; padding: 0; counter-reset: why; }
.why__list li { display: grid; grid-template-columns: 56px 1fr 52px; gap: 18px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__n { font: 700 15px/1.9 var(--f-head); color: var(--primary-ink); }
.why__list h3 { font: 700 21px/1.25 var(--f-head); letter-spacing: -.02em; margin-bottom: 4px; }
.why__list p { color: var(--muted); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--ink); }

/* ---------- Finance band ---------- */
.money { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.money__copy .sec__title { margin-bottom: 18px; }
.money__copy p { color: #c9c9cf; max-width: 46ch; margin-bottom: 28px; }
.money__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.money__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mtile { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding: 22px; border-radius: var(--r); background: var(--dark-2); border: 1px solid var(--line-d); text-decoration: none; transition: background-color .25s, transform .25s var(--ease), border-color .25s; }
.mtile:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-4px); }
.mtile small { grid-column: 1 / -1; color: var(--muted-d); font-weight: 600; }
.mtile b { font: 800 44px/1.05 var(--f-head); letter-spacing: -.03em; }
.mtile span { color: var(--muted-d); font-weight: 600; }
.mtile em { grid-column: 1 / -1; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--f-head); font-style: normal; }
.mtile:hover small, .mtile:hover span { color: var(--on-primary); }
.money__note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted-d); }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.services a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 22px; border-radius: var(--r); background: var(--tint); text-decoration: none; transition: transform .25s var(--ease), background-color .25s; }
.services a:hover { transform: translateY(-4px); background: var(--dark); color: #fff; }
.services a:hover p { color: var(--muted-d); }
.services__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: var(--on-primary); margin-bottom: 10px; }
.services h3 { font: 700 20px var(--f-head); letter-spacing: -.02em; }
.services p { color: var(--muted); flex: 1; }

/* ---------- Reviews ---------- */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.reviews li { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.reviews__stars { display: inline-flex; gap: 2px; color: var(--star); }
.reviews blockquote { font-size: 16px; line-height: 1.6; flex: 1; }
.reviews__who { display: grid; font-size: 14px; }
.reviews__who b { font: 600 15px var(--f-head); }
.reviews__who span { color: var(--muted); }
.rating-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 32px; }
.rating-hero > b { font: 800 72px/1 var(--f-head); letter-spacing: -.04em; }
.rating-hero p { color: var(--muted); }
.rating-hero .demo-label { margin: 0 0 0 auto; }

/* ---------- Posts ---------- */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts a { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none; }
.posts__art { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r); margin-bottom: 8px; color: #fff; }
.posts__art .bodyico { width: 45%; height: auto; }
.posts__art--0 { background: var(--dark); }
.posts__art--1 { background: var(--primary); }
.posts__art--2 { background: var(--tint); color: var(--ink); }
.posts a:hover .posts__art { filter: brightness(1.08); }
.posts time { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.posts h3 { font: 700 20px/1.3 var(--f-head); letter-spacing: -.02em; }
.posts a:hover h3 { color: var(--primary-ink); }
.posts p { color: var(--muted); flex: 1; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit__copy .sec__title { margin-bottom: 16px; }
.visit__copy > p:not(.sec__kicker) { color: var(--muted); font-size: 17px; }
.visit__cards { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; margin-top: 26px; }
.vcard { padding: 20px; border-radius: var(--r); background: var(--tint); }
.vcard__h { display: flex; align-items: center; gap: 8px; font: 600 16px var(--f-head); margin-bottom: 10px; }
.vcard__h .ico { color: var(--primary-ink); }
.vcard address { color: var(--muted); margin-bottom: 12px; }
.visit__map { min-height: 420px; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.4); }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border: 0; }
.hours dt { font-weight: 600; }
.hours dd { color: var(--muted); }
.hours .is-today dt, .hours .is-today dd { color: var(--primary-ink); font-weight: 700; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--primary); color: var(--on-primary); }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(44px, 6vw, 64px); }
.cta__title { font: 700 clamp(28px, 3.4vw, 44px)/1.1 var(--f-head); letter-spacing: -.03em; }
.cta__text { opacity: .9; margin-top: 6px; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn--primary { --bg: var(--dark); --bd: var(--dark); --fg: #fff; }
.cta .btn--primary:hover { --bg: var(--darker); box-shadow: none; }
.cta .btn--ghost { --bd: rgb(255 255 255 / .55); }

.ftr { background: var(--darker); color: var(--muted-d); padding-block: 64px 28px; font-size: 15px; }
.ftr a { text-decoration: none; }
.ftr__h { font: 600 15px var(--f-head); color: #fff; margin-bottom: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 36px; }
.ftr__brand p { max-width: 34ch; margin-top: 16px; }
.ftr__social { display: flex; gap: 8px; margin-top: 18px; }
.ftr__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--dark-2); color: #fff; }
.ftr__social a:hover { background: var(--primary); color: var(--on-primary); }
.ftr address { line-height: 1.6; margin-bottom: 10px; }
.ftr__strong { display: block; font: 700 20px var(--f-head); color: #fff; margin-bottom: 4px; }
.ftr__link { display: block; padding: 3px 0; width: fit-content; }
.ftr__link:hover, .ftr__makes a:hover, .ftr__legal-links a:hover { color: #fff; }
.ftr__hours div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.ftr__hours .is-today { color: #fff; font-weight: 600; }
.ftr__makes { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line-d); }
.ftr__makes ul { list-style: none; margin: 0; padding: 0; columns: 5 160px; column-gap: 20px; }
.ftr__makes li { padding: 3px 0; break-inside: avoid; font-size: 14px; }
.ftr__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 13px; }
.ftr__fca { max-width: 120ch; margin-bottom: 14px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.ftr__legal-links { display: flex; gap: 18px; }
.ftr__demo { margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: var(--dark-2); color: var(--muted-d); font-size: 12.5px; }
.ftr__demo b { color: var(--primary-ink); }

/* ---------- Floating UI ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .5); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 28px; height: 28px; }
.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: var(--dark); color: #fff; box-shadow: 0 -16px 40px -20px rgb(0 0 0 / .5); }
.cmp-tray__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.cmp-tray b { color: var(--primary-ink); font-size: 18px; }
.cmp-tray__actions { display: flex; gap: 10px; }
.has-tray .wa-float { bottom: 96px; }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(440px, calc(100% - 40px)); padding: 20px; border-radius: var(--r); background: var(--white); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); border: 1px solid var(--line); font-size: 14.5px; }
.cookie p { margin-bottom: 14px; color: var(--muted); }
.cookie a { color: var(--ink); font-weight: 600; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__actions .btn { flex: 1; min-height: 44px; padding: 0 14px; font-size: 14px; }
.tabbar { display: none; }

/* ---------- Inner pages ---------- */
.pagehead { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding-block: 36px 46px; }
.pagehead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.pagehead__title { position: relative; font: 700 clamp(34px, 4.6vw, 60px)/1.06 var(--f-head); letter-spacing: -.035em; }
.pagehead__title sup { font-size: .4em; color: var(--primary-ink); vertical-align: super; }
.pagehead__sub { position: relative; margin-top: 10px; color: #c9c9cf; font-size: 17px; max-width: 62ch; }
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted-d); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: #fff; }
.sheet .crumbs { color: var(--muted); }
.sheet .crumbs span:last-child { color: var(--ink); }
.sheet .crumbs a:hover { color: var(--primary-ink); }
.section { padding: 56px 0 96px; }
.section--tight-top { padding-top: 40px; }
.section--flush { padding-bottom: 0; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* Forms */
.field { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field__label { display: flex; justify-content: space-between; padding: 0; font: 600 13.5px var(--f-head); color: #45454b; }
.field__label output { color: var(--ink); }
.field input:not([type=radio]):not([type=checkbox]):not([type=range]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2.4' 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; background-size: 15px; }
.field select:disabled { opacity: .5; cursor: not-allowed; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(20 20 22 / .07); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__money { position: relative; display: block; }
.field__money > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 700; color: var(--muted); }
.field__money input { padding-left: 30px !important; font-weight: 700; }
.field input[readonly] { background: var(--tint); }
input[type=range] { width: 100%; accent-color: var(--primary); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.seg--wrap { display: flex; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); font: 600 14px var(--f-head); cursor: pointer; transition: .15s; }
.seg input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 20px; cursor: pointer; }
.check a { color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reg { font-weight: 800 !important; text-transform: uppercase; letter-spacing: .1em; background: #ffd400 !important; border-color: #e3bd00 !important; }

/* Stock */
.stock { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-block: 36px 96px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr-h) + 16px); }
.filters form { padding: 22px; border-radius: var(--r); background: var(--tint); }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filters__title { display: flex; align-items: center; gap: 8px; font: 700 20px var(--f-head); }
.filters__close { display: none; }
.filters .field { margin-bottom: 12px; }
.filters .field input, .filters .field select { min-height: 46px !important; padding-block: 9px !important; font-size: 14.5px; }
.filters__actions { display: grid; gap: 8px; margin-top: 18px; }
.results__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.results__filter-btn { display: none; }
.active-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 30px; background: var(--dark); color: #fff; font: 600 13.5px var(--f-head); text-decoration: none; }
.active-filters a:hover { background: var(--primary); color: var(--on-primary); }
.viewtoggle { display: flex; margin-left: auto; padding: 4px; border-radius: 12px; background: var(--tint); }
.viewtoggle button { padding: 8px 14px; border: 0; border-radius: 9px; background: none; font: 600 14px var(--f-head); color: var(--muted); cursor: pointer; }
.viewtoggle button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.sort label { display: flex; align-items: center; gap: 8px; }
.sort__label { font: 600 14px var(--f-head); color: var(--muted); }
.sort select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 8px 38px 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font: 600 14px var(--f-head); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; }
.results .cars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cars.is-list { grid-template-columns: 1fr !important; }
.cars.is-list .car { flex-direction: row; }
.cars.is-list .car__media { width: 360px; flex: none; aspect-ratio: auto; }
.cars.is-list .car__body { padding: 20px 24px; justify-content: center; }
.cars.is-list .car__name { font-size: 26px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); font: 600 15px var(--f-head); text-decoration: none; }
.pager a:hover { border-color: var(--ink); }
.pager a.is-current { background: var(--dark); border-color: var(--dark); color: #fff; }
.empty { padding: 56px 32px; text-align: center; border-radius: var(--r); background: var(--tint); }
.empty--page { text-align: left; background: none; padding: 0; max-width: 760px; }
.empty--page .sec__title { margin: 4px 0 14px; }
.empty__title { font: 700 24px var(--f-head); margin-bottom: 8px; }
.empty p { color: var(--muted); }
.empty__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.empty--page .empty__actions { justify-content: flex-start; }
.notice { margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--primary-soft); font-weight: 600; }

/* Vehicle */
.sheet { padding-top: 26px; }
.sheet__head { margin-bottom: 26px; }
.sheet__lot { font: 600 13px var(--f-head); color: var(--primary-ink); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.sheet__title { font: 800 clamp(34px, 4.4vw, 58px)/1.05 var(--f-head); letter-spacing: -.035em; }
.sheet__title span { color: var(--primary-ink); }
.sheet__variant { margin-top: 8px; color: var(--muted); font-size: 17px; max-width: 70ch; }
.sheet__grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 36px; align-items: start; }
.sheet__photo { position: relative; aspect-ratio: 1280 / 741; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sheet__strip div { padding: 14px; border-radius: 14px; background: var(--tint); }
.sheet__strip dt { font: 600 12.5px var(--f-head); color: var(--muted); }
.sheet__strip dd { font: 700 17px/1.25 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__sec { margin-top: 52px; }
.sheet__h2 { font: 700 28px/1.1 var(--f-head); letter-spacing: -.03em; margin-bottom: 14px; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.ledger div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--muted); flex: none; }
.ledger dd { font-weight: 700; text-align: right; }
.sheet__side { position: sticky; top: calc(var(--hdr-h) + 16px); }
.buy { padding: 28px; border-radius: var(--r); background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.buy__label { font: 600 13px var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-d); }
.buy__price { font: 800 54px/1 var(--f-head); letter-spacing: -.04em; margin: 8px 0; }
.buy__monthly { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-d); text-decoration: none; }
.buy__monthly b { color: #fff; font-size: 18px; }
.buy__actions { display: grid; gap: 10px; margin-top: 22px; }
.buy__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.buy__tool { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-d); background: none; color: #fff; font: 600 13px var(--f-head); text-decoration: none; cursor: pointer; }
.buy__tool:hover { border-color: #fff; }
.buy__tool input { position: absolute; opacity: 0; pointer-events: none; }
.buy__tool:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.buy__trust { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-d); display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.buy__trust li { display: flex; align-items: center; gap: 8px; }
.buy__trust .ico { color: var(--primary-ink); }
.buy__note { margin-top: 14px; font-size: 12px; color: var(--muted-d); }
.sheet .sec { padding-top: 80px; }
.pricebar { display: none; }

/* Finance calc */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.calc__inputs { padding: 26px; background: var(--white); }
.calc__result { padding: 26px; background: var(--dark); color: #fff; }
.calc__label { font: 600 14px var(--f-head); color: var(--muted-d); }
.calc__monthly { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 18px; }
.calc__monthly span { font: 800 clamp(44px, 4.6vw, 60px)/1 var(--f-head); letter-spacing: -.04em; color: #fff; }
.calc__monthly small { color: var(--muted-d); }
.calc__rows { margin-bottom: 22px; }
.calc__rows div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.calc__rows dt { color: var(--muted-d); }
.calc__rows dd { font-weight: 700; }
.calc__note { margin-top: 14px; font-size: 12px; color: var(--muted-d); }
.calc__note--dark { color: var(--muted); margin-top: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step { padding: 24px; border-radius: var(--r); background: var(--tint); }
.step span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: 700 17px var(--f-head); }
.step h3 { font: 700 21px var(--f-head); margin: 14px 0 6px; }
.step p { color: var(--muted); }

/* About */
.about-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose p { font-size: 18.5px; margin-bottom: 16px; }
.prose--narrow { max-width: 780px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.stats div { padding: 20px; border-radius: var(--r); background: var(--dark); color: #fff; }
.stats strong { display: block; font: 800 36px/1 var(--f-head); letter-spacing: -.03em; color: var(--primary-ink); }
.stats span { font-size: 14px; color: var(--muted-d); }
.usps--stack { display: grid; gap: 10px; }
.usp--row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--tint); }
.usp__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--dark); color: var(--primary-ink); }
.usp--row h3 { font: 700 18px var(--f-head); margin-bottom: 2px; }
.usp--row p { color: var(--muted); font-size: 15px; }

/* Contact & forms pages */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.enquiry { padding: clamp(22px, 3vw, 34px); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.enquiry__car { display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 22px; border-radius: 14px; background: var(--tint); }
.enquiry__car img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.enquiry__car div { display: grid; }
.enquiry__car small { color: var(--muted); font-weight: 600; }
.enquiry__car strong { font: 700 19px var(--f-head); }
.enquiry__car span { font-weight: 700; color: var(--primary-ink); }
.px { padding: 16px 16px 2px; margin-bottom: 16px; border: 2px dashed var(--line); border-radius: 14px; }
.px__title { display: flex; align-items: center; gap: 8px; font: 600 15px var(--f-head); margin-bottom: 10px; }
.enquiry__status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; background: #e2f5ea; color: var(--green); }
.enquiry__status.is-error { background: var(--primary-soft); color: var(--ink); }
.contact__side { display: grid; gap: 12px; position: sticky; top: calc(var(--hdr-h) + 16px); }
.contact-tile { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.contact-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-tile > .ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--dark); color: var(--primary-ink); }
.contact-tile span { display: grid; min-width: 0; }
.contact-tile small { color: var(--muted); font-weight: 600; font-size: 13px; }
.contact-tile strong { font: 700 18px var(--f-head); overflow-wrap: anywhere; }
.visit-card { padding: 22px; border-radius: var(--r); background: var(--tint); }
.visit-card__title { display: flex; align-items: center; gap: 8px; font: 700 19px var(--f-head); margin-bottom: 10px; }
.visit-card__title .ico { color: var(--primary-ink); }
.visit-card address { color: var(--muted); margin-bottom: 14px; }
.visit-card .btn { margin-top: 16px; }
.howto { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto li { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--tint); }
.howto span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: 700 15px var(--f-head); }
.howto b { font: 600 15px var(--f-head); }
.howto p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Finance application */
.apply__car { padding: 12px 14px; border-radius: 12px; background: var(--tint); margin-bottom: 18px; }
.apply__progress { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: st; }
.apply__progress li { counter-increment: st; padding-top: 10px; border-top: 4px solid var(--line); font: 600 13px var(--f-head); color: var(--muted); }
.apply__progress li::before { content: counter(st) ". "; }
.apply__progress li.is-on, .apply__progress li.is-done { border-color: var(--primary); color: var(--ink); }
.apply__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply__legend { font: 700 24px var(--f-head); letter-spacing: -.02em; margin-bottom: 16px; padding: 0; }
.apply__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.apply__nav [data-step-next], .apply__nav [data-step-submit] { margin-left: auto; }

/* Article / sitemap / compare */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article__date { color: var(--muted); font-weight: 600; font-size: 14px !important; }
.side-cta { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--tint); }
.side-cta h3 { font: 700 21px var(--f-head); }
.side-cta p { color: var(--muted); }
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sitemap__h { font: 700 19px var(--f-head); margin: 0 0 12px; }
.sitemap ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.sitemap a { text-decoration: none; }
.sitemap a:hover { color: var(--primary-ink); text-decoration: underline; }
.cmp-table { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 180px repeat(var(--cols), minmax(0, 1fr)); }
.cmp-row > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmp-row > div + div { border-left: 1px solid var(--line); }
.cmp-row:nth-child(even) > div { background: var(--tint); }
.cmp-row:last-child > div { border-bottom: 0; }
.cmp-label { font: 600 14px var(--f-head); color: var(--muted); }
.cmp-row--head > div { background: var(--white) !important; }
.cmp-car a { display: grid; gap: 2px; text-decoration: none; }
.cmp-car img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.cmp-car small { font: 600 12.5px var(--f-head); color: var(--primary-ink); text-transform: uppercase; letter-spacing: .08em; }
.cmp-car b { font: 700 19px var(--f-head); }
.cmp-car .link { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__link { padding: 10px 9px; font-size: 14.5px; }
  .hdr__call span { display: none; }
  .hdr__call { width: 46px; padding: 0; justify-content: center; }
  .cars, .results .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail .cars { grid-auto-columns: calc((100% - 24px) / 2); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .sheet__grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .sheet__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  :root { --hdr-h: 68px; }
  .hdr__burger { display: grid; }
  .hdr__tools { margin-left: auto; }
  .nav { position: fixed; inset: calc(var(--hdr-h) + 38px) 0 0; z-index: 55; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gutter) 120px; background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .menu-open { overflow: hidden; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav__link { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 700 22px var(--f-head); justify-content: space-between; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--primary-ink); }
  .nav__link .ico { display: none; }
  .drop { position: static; width: auto !important; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 10px 0; }
  .drop--mega { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { max-width: 600px; }
  .qsearch { grid-template-columns: 1fr 1fr; }
  .qsearch__go { grid-column: 1 / -1; }
  .why, .money, .visit, .about-split, .contact, .article { grid-template-columns: 1fr; }
  .why__intro, .contact__side, .side-cta { position: static; }
  .posts { grid-template-columns: 1fr 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .stock { grid-template-columns: 1fr; padding-top: 20px; }
  .results__filter-btn { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 70; background: rgb(9 9 10 / .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .filters form { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); border-radius: 0; background: var(--white); overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  .filters-open { overflow: hidden; }
  .filters-open .filters { opacity: 1; visibility: visible; }
  .filters-open .filters form { transform: none; }
  .filters__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
  .filters__actions { position: sticky; bottom: -22px; background: var(--white); padding-block: 14px 22px; margin-bottom: -22px; }
  .sheet__grid { display: flex; flex-direction: column; gap: 0; }
  .sheet__main { display: contents; }
  .sheet__photo { order: 1; width: 100%; }
  .sheet__strip { order: 2; width: 100%; }
  .sheet__side { order: 3; position: static; margin-top: 18px; }
  .sheet__sec { order: 4; width: 100%; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { padding-bottom: 70px; }
  .topbar__hide-sm { display: none; }
  .logo__word { font-size: 21px; }
  .logo__mark { width: 34px; height: 34px; }
  .hdr__icon { display: none; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__facts { gap: 20px; }
  .hero__stage::after { top: -8px; right: -8px; border-width: 4px; }
  .finder { transform: none; padding-bottom: 32px; }
  .hero + .sec { padding-top: 56px; }
  .finder__tabs button { flex: 1; justify-content: center; padding: 12px 8px; font-size: 14px; }
  .finder [data-panel] { border-radius: 0 0 var(--r) var(--r); }
  .qsearch, .budget { grid-template-columns: 1fr; }
  .budget .btn { grid-column: 1; grid-row: auto; }
  .cars, .results .cars { grid-template-columns: 1fr; }
  .rail .cars { grid-auto-columns: 84%; }
  .sec__head-actions .round { display: none; }
  .why__list li { grid-template-columns: 40px 1fr; }
  .why__icon { display: none; }
  .money__tiles, .services, .posts, .sitemap, .stats, .visit__cards { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .filters .field-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .viewtoggle { display: none; }
  .cars.is-list .car { flex-direction: column; }
  .cars.is-list .car__media { width: 100%; aspect-ratio: 3 / 2; }
  .sheet__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { grid-template-columns: 1fr; }
  .buy__price { font-size: 44px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .ftr__makes ul { columns: 2; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .apply__progress li { font-size: 0; }
  .apply__progress li::before { font-size: 13px; }
  .cmp-table { overflow-x: auto; }
  .cmp-row { grid-template-columns: 110px repeat(var(--cols), minmax(150px, 1fr)); }
  .wa-float { display: none; }
  .has-tray .wa-float { bottom: 150px; }
  .cmp-tray { bottom: 66px; }
  .cookie { left: 10px; right: 10px; bottom: 80px; width: auto; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 57; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--dark); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: #fff; text-decoration: none; font: 600 11.5px var(--f-head); }
  .tabbar .ico { color: var(--primary-ink); }
  .tabbar__main { background: var(--primary); color: var(--on-primary) !important; }
  .tabbar__main .ico { color: var(--on-primary); }
  .view-vehicle .tabbar { display: none; }
  .view-vehicle .wa-float { bottom: 90px; }
  .pricebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 57; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--dark); color: #fff; transform: translateY(100%); transition: transform .3s var(--ease); }
  .pricebar.is-visible { transform: none; }
  .pricebar div { display: grid; min-width: 0; }
  .pricebar strong { font: 800 24px/1.1 var(--f-head); }
  .pricebar small { color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Dark contexts: brand colour is bright enough for text here ---------- */
.hero, .sec--dark, .ftr, .pagehead, .buy, .calc__result, .tabbar, .topbar, .hdr--dark, .cmp-tray, .stats, .usp__icon, .contact-tile > .ico, .cta { --primary-ink: var(--primary); }
.cta { color: var(--on-primary); }

/* ---------- Dark header (for logos made for dark backgrounds) ---------- */
.hdr--dark { background: color-mix(in srgb, var(--dark) 94%, transparent); border-bottom-color: var(--line-d); color: #fff; }
.hdr--dark .nav__link { color: #c9d2dc; }
.hdr--dark .nav__link:hover { color: #fff; background: var(--dark-2); }
.hdr--dark .nav__link.is-active { color: #fff; }
.hdr--dark .hdr__icon, .hdr--dark .hdr__burger { border-color: var(--line-d); background: transparent; color: #fff; }
.hdr--dark .hdr__icon:hover { border-color: #fff; }
.hdr--dark + main .hero { border-top: 1px solid var(--line-d); }
@media (max-width: 980px) {
  .hdr--dark .nav { background: var(--dark); }
  .hdr--dark .nav__link { color: #fff; border-bottom-color: var(--line-d); }
  .hdr--dark .nav__link.is-active { color: var(--primary); }
  .hdr--dark .drop { background: transparent; color: #fff; }
  .hdr--dark .drop small, .hdr--dark .drop--list span, .hdr--dark .drop__h { color: var(--muted-d); }
  .hdr--dark .drop__makes a:hover, .hdr--dark .drop__bodies a:hover, .hdr--dark .drop--list a:hover { background: var(--dark-2); color: #fff; }
  .hdr--dark .drop__bodies .bodyico { color: var(--muted-d); }
  .hdr--dark .drop__all { background: var(--primary); color: var(--on-primary); }
  .logo__img--header { height: 40px; }
}
@media (max-width: 680px) { .logo__img--header { height: 34px; } }

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

/* Logo is wider than a wordmark: keep nav on one line, tighten spacing on mid widths */
.nav__link { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 981px) {
  .hdr__in { gap: 14px; }
  .nav__link { padding: 10px 8px; font-size: 14px; }
  .logo__img--header { height: 42px; }
}
/* Outline buttons on the bright CTA band use dark text for contrast */
.cta .btn--ghost { --fg: var(--on-primary); --bd: color-mix(in srgb, var(--on-primary) 40%, transparent); }
.cta .btn--ghost:hover { --bg: color-mix(in srgb, var(--on-primary) 8%, transparent); --bd: var(--on-primary); }

/* Mega menu: anchor to the header's right edge so it never extends past the viewport */
@media (min-width: 981px) {
  .hdr__in { position: relative; }
  .nav__drop:has(.drop--mega) { position: static; }
  .drop--mega { left: auto; right: var(--gutter); width: min(720px, calc(100% - var(--gutter) * 2)); top: calc(100% - 4px); }
}

/* Page-head stepper ("how it works" in one clean line) */
.stepper { position: relative; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 26px 0 0; padding: 0; }
.stepper li { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--f-head); color: #fff; white-space: nowrap; }
.stepper li + li::before { content: ""; width: 44px; height: 2px; margin: 0 16px; background: color-mix(in srgb, var(--primary) 55%, transparent); border-radius: 2px; }
.stepper span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 14px var(--f-head); flex: none; }
@media (max-width: 680px) {
  .stepper { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stepper li { position: relative; white-space: normal; }
  .stepper li + li::before { content: none; }
  .stepper li:not(:last-child) span::after { content: ""; position: absolute; left: 14px; top: 32px; width: 2px; height: 12px; background: color-mix(in srgb, var(--primary) 55%, transparent); }
}


/* ---------- Fix: dropdown panels are white, so their text must be dark (header may be dark) ---------- */
@media (min-width: 981px) {
  .drop { color: var(--ink); }
  .drop--list a:hover b, .drop__makes a:hover, .drop__bodies a:hover { color: var(--primary-ink); }
  .drop--list a { gap: 2px; }
}

/* ---------- Find us (compact, grouped hours) ---------- */
.findus { display: grid; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--tint); }
.findus__row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.findus__row + .findus__row { padding-top: 18px; border-top: 1px solid var(--line); }
.findus__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--primary-ink); }
.findus__h { font: 600 16px var(--f-head); margin-bottom: 4px; }
.findus address { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.findus .link { font-size: 14px; }
.hours--compact div { padding: 4px 0; font-size: 14.5px; border-bottom: 0; }
.contact-tile__email { font-size: 16px !important; }

/* ---------- Browse: photo tiles from live stock + popular makes ---------- */
.types { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.types a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--dark); text-decoration: none; isolation: isolate; }
.types img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -1; }
.types a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, color-mix(in srgb, var(--dark) 92%, transparent) 100%); }
.types a:hover img { transform: scale(1.06); }
.types__label { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; color: #fff; }
.types__label b { font: 700 22px/1.2 var(--f-head); letter-spacing: -.02em; }
.types__label small { display: inline-flex; align-items: center; gap: 6px; color: #d7dde4; font-weight: 600; font-size: 14px; }
.types a:hover .types__label small { color: var(--primary); }
.popular { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.popular__h { font: 600 15px var(--f-head); color: var(--muted); white-space: nowrap; }
.popular .makes { flex: 1; }
.makes__all { background: var(--dark) !important; color: #fff !important; }
.makes__all:hover { background: var(--primary) !important; color: var(--on-primary) !important; }

/* ---------- Blog cards: photos ---------- */
.posts__art { position: relative; overflow: hidden; background: var(--tint); }
.posts__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.posts a:hover .posts__art img { transform: scale(1.05); }

@media (max-width: 980px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .types { gap: 10px; }
  .types__label { left: 12px; bottom: 10px; }
  .types__label b { font-size: 17px; }
  .popular { flex-direction: column; align-items: flex-start; }
}

/* ---------- "Website powered by PureCar" footer credit (on every dealer site) ---------- */
.ftr__bottom { align-items: center; }
.ftr__bottom > div { display: grid; gap: 8px; }
.ftr__legal-links { flex-wrap: wrap; }
.poweredby { display: grid; justify-items: end; gap: 6px; padding: 12px 0 4px 24px; text-decoration: none; color: var(--muted-d); transition: opacity .2s; }
.poweredby:hover { opacity: .85; }
.poweredby img { height: 30px; width: auto; display: block; }
.poweredby__label, .poweredby__tag { font: 600 10.5px/1 var(--f-head); text-transform: uppercase; letter-spacing: .16em; }
.poweredby__tag { color: #7d8794; letter-spacing: .12em; }
@media (max-width: 680px) {
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
  .poweredby { justify-items: start; padding: 18px 0 0; margin-top: 6px; border-top: 1px solid var(--line-d); width: 100%; }
}

/* Heart icon states (used when features.favourites is on) */
.ico-on { display: none; }
[aria-pressed="true"] .ico-on { display: block; color: var(--primary); }
[aria-pressed="true"] .ico-off { display: none; }

/* ==========================================================================
   Footer v3 — compact: one row of 4 columns + slim bottom bar. Solid background.
   ========================================================================== */
.ftr--v3 { padding: 56px 0 0; background: var(--darker); border-top: 1px solid var(--line-d); color: #aeb8c4; font-size: 14.5px; }
.ftr--v3 a { text-decoration: none; }
.f3-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.f3-grid:has(.f3-news) { grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.3fr; }
.f3-brand .logo__img--footer { height: 64px; }
.f3-brand p { margin: 16px 0 18px; max-width: 34ch; line-height: 1.55; }
.f3-social { display: flex; gap: 8px; }
.f3-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--dark-2); color: #fff; transition: background-color .2s, color .2s; }
.f3-social a:hover { background: var(--primary); color: var(--on-primary); }
.f3-col { display: flex; flex-direction: column; gap: 9px; }
.f3-h { font: 600 15px var(--f-head); color: #fff; margin-bottom: 6px; }
.f3-col a { width: fit-content; color: #aeb8c4; transition: color .2s; }
.f3-col a:hover { color: #fff; }
.f3-col address { line-height: 1.5; }
.f3-phone { font: 700 17px var(--f-head); color: #fff !important; }
.f3-hours { display: grid; gap: 2px; margin-top: 4px; font-size: 13.5px; }
.f3-hours div { display: flex; justify-content: space-between; gap: 12px; }
.f3-hours dd { color: #7f8a98; }
.f3-hours .is-today, .f3-hours .is-today dd { color: #fff; font-weight: 600; }
.f-news__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.f-news__form input[type=email] { min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-d); background: rgb(255 255 255 / .04); color: #fff; min-width: 0; }
.f-news__form input[type=email]:focus { outline: none; border-color: var(--primary); }
.f-news__form .btn { min-height: 46px; }
.f-news__status { grid-column: 1 / -1; font-size: 13.5px; }
.f3-small { padding: 18px 0; border-top: 1px solid var(--line-d); font-size: 12px; line-height: 1.6; color: #6f7a88; }
.f3-demo { margin-left: 6px; color: #8d98a6; }
.f3-bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0 20px; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.f3-legal { display: flex; gap: 18px; }
.f3-legal a { color: #aeb8c4; }
.f3-legal a:hover { color: #fff; }
.f3-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-d); border-radius: 10px; color: #8d98a6; font: 600 10.5px var(--f-head); text-transform: uppercase; letter-spacing: .12em; transition: border-color .2s; }
.f3-pill:hover { border-color: rgb(255 255 255 / .35); }
.f3-pill img { height: 20px; width: auto; display: block; }

/* Slimmer call-to-action band above the footer */
.cta__in { padding-block: 36px; }
.cta__title { font-size: clamp(24px, 2.6vw, 34px); }

@media (max-width: 1100px) {
  .f3-grid, .f3-grid:has(.f3-news) { grid-template-columns: 1fr 1fr 1fr; }
  .f3-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .f3-brand p { margin: 0; }
}
@media (max-width: 680px) {
  .ftr--v3 { padding-top: 40px; }
  .f3-grid, .f3-grid:has(.f3-news) { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .f3-brand { grid-template-columns: 1fr; gap: 14px; }
  .f3-brand .logo__img--footer { height: 54px; }
  .f3-col:last-child { grid-column: 1 / -1; }
  .f3-pill { margin-left: 0; }
}

/* Visually hidden, still read by screen readers */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phones: footer fits one screen — link lists are already in the menu + bottom tab bar */
@media (max-width: 680px) {
  .ftr--v3 { padding-top: 32px; }
  .f3-grid, .f3-grid:has(.f3-news) { grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }
  .f3-grid > nav.f3-col { display: none; }
  .f3-brand { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px; }
  .f3-brand > a { grid-column: 1; }
  .f3-brand p { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .f3-social { grid-column: 2; grid-row: 1; }
  .f3-small { padding: 14px 0; font-size: 11.5px; }
  .f3-bar { gap: 10px 18px; padding-bottom: 16px; }
}

/* ---------- Footer v3: newsletter column + slim trust row ---------- */
.f3-grid:has(.f3-news) { grid-template-columns: 1.35fr 1fr 1fr 1.6fr; }
.f3-news .f3-h { display: flex; align-items: center; gap: 8px; }
.f3-news .f3-h .ico { color: var(--primary); }
.f3-news__text { margin-bottom: 8px; line-height: 1.5; }
.f3-trust { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.f3-trust li { display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.f3-trust li:first-child { padding-left: 0; }
.f3-trust li + li { border-left: 1px solid var(--line-d); }
.f3-trust__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--primary) 55%, transparent); color: var(--primary); flex: none; }
.f3-trust b { display: block; font: 600 14.5px var(--f-head); color: #fff; }
.f3-trust small { font-size: 13px; color: #7f8a98; }

@media (max-width: 1100px) {
  .f3-grid:has(.f3-news) { grid-template-columns: 1fr 1fr; }
  .f3-trust { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .f3-trust li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .f3-grid:has(.f3-news) { grid-template-columns: 1fr; }
  .f3-trust { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 0; }
  .f3-trust li { padding: 0 !important; border: 0 !important; gap: 10px; align-items: flex-start; }
  .f3-trust__icon { width: 34px; height: 34px; }
  .f3-trust small { display: none; }
  .f3-trust b { font-size: 13.5px; line-height: 1.3; }
}

/* Tablet: brand row on top, then 3 columns; trust row stays one line */
@media (max-width: 1100px) and (min-width: 681px) {
  .f3-grid:has(.f3-news) { grid-template-columns: 1fr 1fr 1.4fr; gap: 28px 32px; }
  .f3-trust { grid-template-columns: repeat(4, 1fr); }
  .f3-trust li { padding: 0 12px; }
  .f3-trust li:nth-child(3) { border-left: 1px solid var(--line-d); padding-left: 12px; }
  .f3-trust li:first-child { padding-left: 0; }
  .f3-trust small { display: none; }
  .ftr--v3 { padding-top: 40px; }
  .f3-grid { padding-bottom: 26px; }
}

/* ==========================================================================
   Footer v4 — matches the PureCar reference: brand band, icon columns +
   newsletter, trust row, scenic image strip (settings: footer.image), bottom bar
   ========================================================================== */
.ftr--v4 { position: relative; padding: 60px 0 0; background: radial-gradient(1100px 420px at 50% 0%, var(--dark-2) 0%, var(--darker) 75%); border-top: 1px solid var(--line-d); color: #b7c0cb; font-size: 15px; overflow: hidden; }
.ftr--v4 a { text-decoration: none; }
.f4-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line-d); }
.f4-top__logo { padding-right: 44px; border-right: 1px solid var(--line-d); }
.f4-top__logo .logo__img--footer { height: 96px; }
.f4-top__copy h2 { font: 700 clamp(21px, 2vw, 26px)/1.25 var(--f-head); color: #fff; letter-spacing: -.02em; margin-bottom: 8px; }
.f4-top__copy p { color: #aab4c0; max-width: 62ch; }
.f4-social { display: flex; gap: 12px; }
.f4-social a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid var(--line-d); color: #fff; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.f4-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: translateY(-2px); }

.f4-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line-d); }
.f4-col { display: flex; flex-direction: column; gap: 12px; }
.f4-h { display: flex; align-items: center; gap: 10px; font: 600 17px var(--f-head); color: #fff; margin-bottom: 6px; }
.f4-h .ico { width: 24px; height: 24px; color: #fff; }
.f4-col a { width: fit-content; color: #aab4c0; transition: color .2s; }
.f4-col a:hover { color: #fff; }
.f4-news { padding-left: 32px; border-left: 1px solid var(--line-d); }
.f4-news__h { display: flex; align-items: center; gap: 12px; font: 600 19px var(--f-head); color: #fff; margin-bottom: 10px; }
.f4-news__h .ico { width: 26px; height: 26px; }
.f4-news__text { color: #aab4c0; margin-bottom: 18px; line-height: 1.5; }
.f4-news .f-news__form input[type=email] { min-height: 50px; background: rgb(255 255 255 / .05); }
.f4-news .f-news__form .btn { min-height: 50px; padding: 0 22px; }

.f4-trust { list-style: none; margin: 0; padding: 30px 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); }
.f4-trust li { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.f4-trust li:first-child { padding-left: 0; }
.f4-trust li + li { border-left: 1px solid var(--line-d); }
.f4-trust__icon { display: grid; place-items: center; width: 50px; height: 50px; color: #fff; flex: none; }
.f4-trust__icon .ico { width: 34px; height: 34px; }
.f4-trust b { display: block; font: 600 16px var(--f-head); color: #fff; }
.f4-trust small { color: #93a0ae; font-size: 14px; }

/* Scenic strip: uses footer.image from settings; subtle gradient until an image is supplied */
.f4-scene { position: relative; height: 210px; margin-top: -10px; pointer-events: none;
  background: radial-gradient(70% 90% at 70% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); }
.f4-scene.has-image { height: 260px; background: var(--scene) center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 78%, transparent 100%); opacity: .9; }

.f4-bottom { position: relative; border-top: 1px solid var(--line-d); background: rgb(0 0 0 / .25); }
.f4-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 20px 0 14px; font-size: 14px; }
.f4-bar__left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; }
.f4-bar__logo img { height: 30px; width: auto; display: block; }
.f4-bar__logo { padding-right: 26px; border-right: 1px solid var(--line-d); font: 800 16px var(--f-head); color: #fff; }
.f4-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.f4-legal a { color: #aab4c0; }
.f4-legal a:hover { color: #fff; }
.f4-pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border: 1px solid rgb(255 255 255 / .22); border-radius: 12px; background: rgb(255 255 255 / .04); color: #d5dbe2; font: 600 11px var(--f-head); text-transform: uppercase; letter-spacing: .12em; transition: border-color .2s, background-color .2s; }
.f4-pill:hover { border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .08); }
.f4-pill img { height: 24px; width: auto; display: block; }
.f4-small { padding-bottom: 18px; font-size: 12px; line-height: 1.6; color: #6f7a88; }
.f4-small span { color: #8d98a6; }

@media (max-width: 1180px) {
  .f4-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f4-news { grid-column: 1 / -1; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; align-items: center; }
  .f4-news__h, .f4-news__text { grid-column: 1; margin: 0; }
  .f4-news .f-news__form { grid-column: 2; grid-row: 1 / span 2; }
  .f4-trust { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .f4-trust li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .f4-top { grid-template-columns: 1fr; gap: 20px; }
  .f4-top__logo { padding: 0; border: 0; }
  .f4-cols { grid-template-columns: 1fr 1fr; }
  .f4-news { grid-template-columns: 1fr; }
  .f4-news .f-news__form { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .ftr--v4 { padding-top: 40px; }
  .f4-top__logo .logo__img--footer { height: 70px; }
  .f4-social a { width: 44px; height: 44px; }
  .f4-cols { gap: 28px 18px; padding: 30px 0; }
  .f4-trust { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .f4-trust li { padding: 0 !important; border: 0 !important; gap: 10px; align-items: flex-start; }
  .f4-trust__icon { width: 30px; height: 30px; }
  .f4-trust__icon .ico { width: 26px; height: 26px; }
  .f4-trust small { display: none; }
  .f4-trust b { font-size: 14px; }
  .f4-scene { height: 120px; }
  .f4-scene.has-image { height: 150px; }
  .f4-bar { flex-direction: column; align-items: flex-start; }
  .f4-bar__logo { border: 0; padding: 0; }
}

/* ==========================================================================
   "Powered by PureCar" band — the same on every dealer website.
   Uses PureCar's own colours (black / white / PureCar red), NOT the dealer theme.
   ========================================================================== */
.pcband {
  --pc-red: #FF1616; --pc-red-btn: #D90F0F; --pc-black: #0A0A0B; --pc-grey: #9A9AA2;
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(520px 240px at 8% 100%, rgb(255 22 22 / .16), transparent 70%),
    linear-gradient(180deg, #111113, var(--pc-black));
  border-top: 1px solid rgb(255 255 255 / .08);
}
.pcband::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--pc-red), rgb(255 22 22 / .35) 45%, transparent 80%); }
/* italic "speed" slashes echoing the PureCar wordmark */
.pcband::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 360px; pointer-events: none;
  background: repeating-linear-gradient(-62deg, transparent 0 26px, rgb(255 22 22 / .07) 26px 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.pcband__in { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; min-height: 200px; padding-block: 36px; }
.pcband__brand { padding-right: 48px; border-right: 1px solid rgb(255 255 255 / .12); }
.pcband__label { font: 600 11px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--pc-grey); margin-bottom: 12px; }
.pcband__logo { display: block; width: fit-content; }
.pcband__logo img { height: 46px; width: auto; display: block; transition: transform .25s var(--ease); }
.pcband__logo:hover img { transform: translateX(3px); }
.pcband__tag { margin-top: 12px; font: 600 11px/1.4 var(--f-head); letter-spacing: .26em; text-transform: uppercase; color: #fff; }
.pcband__copy p { max-width: 58ch; color: #c9c9cf; font-size: 15.5px; line-height: 1.55; margin-bottom: 14px; }
.pcband__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pcband__links a { position: relative; color: #fff; text-decoration: none; font: 600 14px var(--f-head); padding-left: 14px; }
.pcband__links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--pc-red); transform: translateY(-50%); }
.pcband__links a:hover { color: var(--pc-red); }
.pcband__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 12px; background: var(--pc-red-btn); color: #fff; font: 700 15.5px var(--f-head); text-decoration: none; white-space: nowrap; box-shadow: 0 14px 30px -14px rgb(255 22 22 / .8); transition: background-color .2s, transform .2s var(--ease); }
.pcband__cta:hover { background: var(--pc-red); transform: translateY(-2px); }
.pcband__cta .ico { transition: transform .2s var(--ease); }
.pcband__cta:hover .ico { transform: translateX(3px); }

/* dealer bar sits just above the band */
.ftr--v3 .f3-small { padding-bottom: 26px; }
.ftr--v3 .f3-bar { justify-content: space-between; }

@media (max-width: 1100px) {
  .pcband__in { grid-template-columns: auto 1fr; gap: 28px 40px; }
  .pcband__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 680px) {
  .pcband__in { grid-template-columns: 1fr; gap: 20px; padding-block: 30px 34px; min-height: 0; }
  .pcband__brand { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
  .pcband__logo img { height: 38px; }
  .pcband__cta { width: 100%; justify-content: center; }
  .pcband::after { width: 200px; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-cat { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; background: var(--primary-soft); color: var(--primary-ink); font: 600 12px var(--f-head); }
.post-card { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; }
.post-card__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--tint); margin-bottom: 6px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.post-card h3 { font: 700 21px/1.3 var(--f-head); letter-spacing: -.02em; }
.post-card:hover h3 { color: var(--primary-ink); }
.post-card p { color: var(--muted); flex: 1; }
.posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; border: 1.5px solid var(--line); text-decoration: none; font: 600 14.5px var(--f-head); transition: border-color .2s, background-color .2s, color .2s; }
.blog-cats a small { color: var(--muted); font-size: 12.5px; }
.blog-cats a:hover { border-color: var(--ink); }
.blog-cats a.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }
.blog-cats a.is-on small { color: var(--muted-d); }

.post-featured { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; margin-bottom: 56px; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.post-featured__img { min-height: 360px; background: var(--dark-2); overflow: hidden; }
.post-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-featured:hover .post-featured__img img { transform: scale(1.04); }
.post-featured__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 48px); --primary-ink: var(--primary); }
.post-featured .post-card__meta { color: var(--muted-d); }
.post-featured .post-cat { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.post-featured h2 { font: 700 clamp(26px, 2.6vw, 36px)/1.2 var(--f-head); letter-spacing: -.03em; }
.post-featured p { color: #c9d0d8; font-size: 17px; }
.post-featured .btn { align-self: flex-start; margin-top: 6px; }
.blog-more { margin-bottom: 22px; }

/* Article page */
.article-head { background: var(--dark); color: #fff; padding-block: 36px 48px; --primary-ink: var(--primary); }
.article-head__in { max-width: 980px; }
.article-head__title { font: 700 clamp(30px, 4vw, 52px)/1.12 var(--f-head); letter-spacing: -.035em; margin-bottom: 18px; }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--muted-d); font-size: 14.5px; font-weight: 600; }
.article-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-head .post-cat { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.article-page .article { padding-block: 40px 72px; }
.article__hero { margin: 0 0 32px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body { max-width: 72ch; }
.article__body p { font-size: 18px; line-height: 1.75; margin-bottom: 20px; }
.article__lead { font-size: 21px !important; line-height: 1.6 !important; color: var(--ink); font-weight: 500; }
.article__back { margin-top: 12px; }

@media (max-width: 980px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .posts { grid-template-columns: 1fr; }
  .article__body p { font-size: 17px; }
  .article__lead { font-size: 19px !important; }
}

/* ---------- Smaller page headers (client feedback) ---------- */
.pagehead { padding-block: 26px 32px; }
.pagehead::after { width: 220px; height: 220px; border-width: 30px; right: -50px; top: -50px; }
.pagehead__title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.pagehead__sub { font-size: 16px; margin-top: 8px; }
.crumbs { margin-bottom: 10px; font-size: 13px; }
.article-head { padding-block: 28px 36px; }
.article-head__title { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.sheet__title { font-size: clamp(28px, 3.2vw, 44px); }
.hero__title { font-size: clamp(36px, 4.4vw, 62px); }
.view-stock .pagehead__title sup { font-size: .45em; }

/* ---------- Top strip removed: mobile menu sits directly under the header ---------- */
@media (max-width: 980px) {
  .nav { inset: var(--hdr-h) 0 0; }
  .has-topbar .nav { inset: calc(var(--hdr-h) + 38px) 0 0; }
}
.nav__ext { margin-left: 3px; font-size: .8em; opacity: .7; }

/* Mobile menu fix: a backdrop-filter on the header makes it the containing block for the
   fixed menu panel (so the panel was clipped to the header). No blur on small screens. */
@media (max-width: 980px) {
  .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hdr--dark { background: var(--dark); }
  .nav { bottom: 0; height: auto; }
}

/* Mobile menu: short and scannable — the stock page has the full make/body filters */
@media (max-width: 980px) {
  .nav__link { display: flex; width: 100%; }
  .nav .drop--mega { display: none; }
  .nav .drop--list { padding: 0 0 8px 0; gap: 0; }
  .nav .drop--list a { padding: 8px 4px; }
  .nav .drop--list span { display: none; }
}

/* ==========================================================================
   Powered by PureCar — v2: centred logo band (logo = backlink)
   ========================================================================== */
.pcband {
  background:
    radial-gradient(900px 300px at 50% 0%, rgb(255 255 255 / .035), transparent 70%),
    radial-gradient(600px 220px at 92% 100%, rgb(255 22 22 / .10), transparent 70%),
    linear-gradient(180deg, #0f1013 0%, #0a0a0b 100%);
}
.pcband::before { content: none; }
.pcband::after { content: none; }
.pcband__curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .4s ease; opacity: .85; }
.pcband:has(.pcband__logo:hover) .pcband__curve { opacity: 1; }
.pcband__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 0; padding-block: 56px 60px; text-align: center; }
.pcband__label { display: flex; align-items: center; gap: 22px; margin: 0 0 22px; font: 500 13px/1 var(--f-head); letter-spacing: .34em; text-transform: uppercase; color: #c9c9cf; }
.pcband__label::before, .pcband__label::after { content: ""; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45)); }
.pcband__label::after { background: linear-gradient(90deg, rgb(255 255 255 / .45), transparent); }
.pcband__label span { padding-left: .34em; } /* optical centring for letter-spacing */
.pcband__logo { display: block; border-radius: 8px; }
.pcband__logo img { height: 64px; width: auto; display: block; filter: drop-shadow(0 6px 24px rgb(0 0 0 / .45)); transition: transform .3s var(--ease), filter .3s; }
.pcband__logo:hover img { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 8px 28px rgb(255 22 22 / .25)); }
.pcband__logo:focus-visible { outline: 2px solid #FF1616; outline-offset: 8px; }
.pcband__tag { margin: 20px 0 0; padding-left: .38em; font: 500 12.5px/1.4 var(--f-head); letter-spacing: .38em; text-transform: uppercase; color: #9a9aa2; }

@media (max-width: 680px) {
  .pcband__in { padding-block: 40px 46px; }
  .pcband__label { gap: 14px; font-size: 11px; letter-spacing: .28em; margin-bottom: 16px; }
  .pcband__label::before, .pcband__label::after { width: 44px; }
  .pcband__logo img { height: 44px; }
  .pcband__tag { font-size: 10.5px; letter-spacing: .24em; line-height: 1.7; max-width: 260px; }
  .pcband__curve { opacity: .7; }
}

/* ==========================================================================
   Mobile fixes v2: closed menu/drawer must never catch taps; full-screen pickers;
   one-row similar cars; finance terms on one line.
   ========================================================================== */
@media (max-width: 980px) {
  /* The closed menu is invisible but its Services list was forced visible, so it
     sat over the page and swallowed taps on Sort, Filters and form dropdowns. */
  .nav, .filters { pointer-events: none; }
  .menu-open .nav, .filters-open .filters { pointer-events: auto; }
  .drop { visibility: inherit; }
  /* Selects open the full-screen picker (app.js) instead of the native list */
  select { pointer-events: none; }
}
.msheet { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--white); color: var(--ink); animation: msheet-in .22s var(--ease); }
.msheet[hidden] { display: none; }
@keyframes msheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.msheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px var(--gutter, 20px); border-bottom: 1px solid var(--line); padding-top: max(14px, env(safe-area-inset-top)); }
.msheet__title { font: 700 20px var(--f-head); letter-spacing: -.01em; }
.msheet__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.msheet__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 max(24px, env(safe-area-inset-bottom)); }
.msheet__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px var(--gutter, 20px); border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: 500 17px var(--f-body); text-align: left; cursor: pointer; }
.msheet__opt:active { background: var(--tint); }
.msheet__opt:disabled { opacity: .4; }
.msheet__txt { flex: 1; }
.msheet__n { min-width: 34px; padding: 3px 9px; border-radius: 20px; background: var(--tint); color: var(--muted); font: 600 13px var(--f-head); text-align: center; }
.msheet__tick { width: 22px; height: 22px; flex: none; color: var(--primary-ink); visibility: hidden; }
.msheet__opt[aria-selected="true"] { font-weight: 700; color: var(--primary-ink); }
.msheet__opt[aria-selected="true"] .msheet__tick { visibility: visible; }
.msheet-open, .msheet-open body { overflow: hidden; }

/* Similar cars on the car page: exactly one row of 3 (swipe row on smaller screens) */
.cars.cars--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .cars.cars--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; }
  .cars.cars--row::-webkit-scrollbar { display: none; }
  .cars.cars--row .car { scroll-snap-align: start; }
}
@media (max-width: 680px) { .cars.cars--row { grid-auto-columns: 84%; } }

/* Finance term buttons: always a single line */
.seg.seg--terms { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.seg--terms span { padding-inline: 4px; white-space: nowrap; }

/* ==========================================================================
   Footer v4 colour: whole footer uses the PureCar band grey (no dealer logo)
   ========================================================================== */
.ftr--v3 { --line-d: rgb(255 255 255 / .08); background: #0f1013; border-top: 0; }
.ftr--v3 .f3-brand .f3-h { margin: 0; font-size: 17px; }
.ftr--v3 .f3-brand p:not(.f3-h) { margin-top: 10px; }
.ftr--v3 .f3-social a { background: rgb(255 255 255 / .07); }
.ftr--v3 .f3-social a:hover { background: var(--primary); }
.ftr--v3 .pcband { border-top: 1px solid rgb(255 255 255 / .06); background:
    radial-gradient(600px 220px at 92% 100%, rgb(255 22 22 / .10), transparent 70%),
    linear-gradient(180deg, #0f1013 0%, #0a0a0b 100%); }
@media (max-width: 980px) {
  /* Footer colour runs behind the fixed phone bar: no white strip under the band */
  body:has(.ftr--v3) { padding-bottom: 0; }
  .ftr--v3 .pcband { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.ftr--v3 .pcband__logo img, .ftr--v3 .pcband__logo:hover img { filter: none; }
@media (max-width: 680px) {
  /* Brand block on phones: name + socials on one row, text underneath */
  .ftr--v3 .f3-brand .f3-h { grid-column: 1; grid-row: 1; align-self: center; }
  .ftr--v3 .f3-brand .f3-social { grid-column: 2; grid-row: 1; }
  .ftr--v3 .f3-brand p:not(.f3-h) { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
}
