/* Petrol Automatic Cars LDN — white pages, dark green accent, Teko headings, Manjari text, Lato menu */
:root {
  --bg: #fff;
  --paper: #fff;
  --soft: #f3f3f3;
  --frame: #eceeef; /* behind photos */
  --ink: #333;
  --text: #666;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #0c3022;
  --accent-2: #155a3f;
  --accent-wash: #e7efeb;
  --dark: #1b1f25;
  --ok: #1f7a45;
  --amber: #9a5b06;
  --red: #b3261e;
  /* older names still used by the admin styles */
  --cobalt: var(--accent);
  --cobalt-wash: var(--accent-wash);
  --green: var(--ok);
  --g: clamp(16px, 3.2vw, 44px); /* page gutter, same on both sides */
  --r: 0px;
  --display: "Teko", "Arial Narrow", Helvetica, Arial, sans-serif;
  --body: "Manjari", Helvetica, Arial, sans-serif;
  --menu: "Lato", Helvetica, Arial, sans-serif;
  --title: "Cormorant Garamond", Georgia, serif; /* the logo's lettering: every title on the site */
  --shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  --hh: 68px; /* header height: the pinned hero sits just under it */
  --tb: 0px;  /* call bar height, when there is one */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: calc(var(--hh) + var(--tb) + 16px); }
:root:has(body > .topbar) { --tb: 25px; }
:root:has(body > .topbar--two) { --tb: 45px; } /* phone line, then the email line under it */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; line-height: 1.08; letter-spacing: 0.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--g); }
.section { padding-block: clamp(48px, 7vw, 100px); }
.eyebrow { font-family: var(--menu); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--text); max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); }

/* ---------- buttons: square, Teko capitals, wide tracking ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 5px 28px 0; /* Teko sits high: nudge down */
  border: 2px solid var(--accent); border-radius: 0;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: 0.19em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn--ink { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--accent); }
.btn--small { min-height: 42px; padding: 4px 16px 0; font-size: 18px; letter-spacing: 0.14em; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.arrow-link::after { content: "→"; transition: transform 0.2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-family: var(--menu); font-size: 14px; font-weight: 700; color: var(--ink); }
.field small { color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 14px 16px 10px;
  background: var(--soft); border: 0; border-radius: 0;
  color: #444; font-size: 17px; line-height: 1.3; /* 16px+ stops iPhone zooming the page */
}
textarea.input { min-height: 130px; resize: vertical; }
select.input {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder { color: #8a8a8a; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ---------- top bar + header ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  position: sticky; top: 0; z-index: 31; /* stays on screen with the header, so the call number is always there */
  min-height: var(--tb); padding: 4px var(--g); background: #000; color: #fff;
  font-family: var(--menu); font-size: 13px; font-weight: 700; line-height: 17px;
}
.topbar p { font-weight: 400; opacity: 0.9; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.topbar--call { justify-content: center; gap: 4px 28px; text-align: center; }
.topbar--call p { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; opacity: 1; font-weight: 400; }
.topbar--call p a { font-weight: 700; letter-spacing: 0.02em; }
.topbar--two { flex-direction: column; gap: 3px; } /* the email sits under the phone line, in the same style */
.topbar__mail a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
/* the number opens a small choice: call, or message on WhatsApp */
.callpick { position: relative; display: inline-flex; }
.callpick__num { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.callpick__menu {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 40; display: grid; gap: 8px; width: max-content; min-width: 200px;
  padding: 10px; border-radius: 6px; background: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
}
.callpick.is-open .callpick__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.18s ease, transform 0.18s ease; }
.topbar .callpick__menu a {
  justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 4px;
  font-family: "Albert Sans", var(--menu); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
}
.topbar .callpick__menu svg { width: 18px; height: 18px; }
.topbar .callpick__call { background: #08452a; }
.topbar .callpick__wa { background: #25d366; color: #06301a; }
.topbar .callpick__menu a:hover { text-decoration: none; filter: brightness(1.08); }
@media (max-width: 700px) {
  .topbar { justify-content: center; text-align: center; }
  .topbar__links { margin: 0; justify-content: center; }
}

.header {
  position: sticky; top: var(--tb); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 6px var(--g);
  background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__emblem { width: auto; height: 54px; }
.brand__words { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
/* menu in the logo's lettering: classic serif capitals (Cormorant Garamond is the closest match to the logo) */
.nav a { color: #222; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 12px 0 10px; transition: color 0.2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a { white-space: nowrap; }
@media (max-width: 1360px) { .nav { gap: 16px; } .nav a { font-size: 15px; letter-spacing: 0.08em; } } /* six links still fit on one line on smaller laptops */
/* Menu button: two fine lines (the lower one shorter, to the right). Opening, they slide together and then
   turn into an ✕; closing plays the same steps backwards. Transform and width only. */
.menu-btn { place-content: center; gap: 7px; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.menu-btn span {
  display: block; width: 28px; height: 2px; border-radius: 2px; background: currentColor;
  transition: rotate 0.32s cubic-bezier(0.8, 0, 0.7, 1), translate 0.24s cubic-bezier(0.6, 0, 0.8, 1) 0.3s, width 0.24s cubic-bezier(0.6, 0, 0.8, 1) 0.3s;
}
.menu-btn span:last-child { width: 18px; justify-self: end; }
.menu-btn[aria-expanded="true"] span {
  transition: translate 0.24s cubic-bezier(0.4, 0, 0.2, 1), width 0.24s cubic-bezier(0.4, 0, 0.2, 1), rotate 0.32s cubic-bezier(0.3, 0, 0.2, 1) 0.2s;
}
.menu-btn[aria-expanded="true"] span:first-child { translate: 0 4.5px; rotate: 45deg; }
.menu-btn[aria-expanded="true"] span:last-child { width: 28px; translate: 0 -4.5px; rotate: -45deg; }

/* Menu (every screen size): a white sheet slides down from the top, then the contents fade in one after
   another. Closing plays it backwards: the contents sink away, then the sheet slides back up. Only transform
   and opacity move, so it stays smooth. */
.menu-btn { display: grid; order: 3; position: relative; z-index: 1; transition: color 0.25s ease; }
.nav { margin-left: auto; transition: opacity 0.35s ease 0.15s; }
.nav { display: none; } /* every screen size: just the logo and the menu button; the links live in the menu */
.mpanel__bg {
  position: fixed; inset: 0; z-index: 29; pointer-events: none;
  background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-101%); visibility: hidden; will-change: transform;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.3s, visibility 0s linear 1.1s;
}
html.menu-open .mpanel__bg { transform: none; visibility: visible; transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s; }
.mpanel {
  position: fixed; inset: 0; z-index: 29;
  display: grid; grid-template-columns: min(560px, 100%); justify-content: center; align-content: start; gap: 30px;
  padding: calc(var(--tb) + var(--hh) + 24px) var(--g) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; color: #111;
  visibility: hidden; transition: visibility 0s linear 1.1s;
}
html.menu-open .mpanel { visibility: visible; transition: visibility 0s; }
/* phones: the list starts right under the header, the contact buttons sit at the bottom */
@media (max-width: 700px) {
  .mpanel { padding-top: calc(var(--tb) + var(--hh) + 6px); display: flex; flex-direction: column; } /* the list starts just under the header line */
  .mpanel > nav + * { margin-top: auto; } /* Call now, WhatsApp and Stocklist sit at the bottom of the screen */
}
html.menu-open, html.menu-closing { overflow: hidden; }
/* contents: fade in one after another once the sheet is down; on close they all sink away first */
.mpanel nav > *, .mpanel > :not(nav) {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.8, 0, 0.8, 0.2), color 0.2s ease;
}
html.menu-open .mpanel nav > *, html.menu-open .mpanel > :not(nav) {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease calc(var(--d, 0.3s) + 0.25s), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0.3s) + 0.25s), color 0.2s ease;
}
.mpanel nav > :nth-child(1) { --d: 0.26s; } .mpanel nav > :nth-child(2) { --d: 0.3s; } .mpanel nav > :nth-child(3) { --d: 0.36s; }
.mpanel nav > :nth-child(4) { --d: 0.42s; } .mpanel nav > :nth-child(5) { --d: 0.48s; } .mpanel nav > :nth-child(6) { --d: 0.54s; }
.mpanel nav > :nth-child(7) { --d: 0.6s; } .mpanel > :nth-child(2) { --d: 0.68s; } .mpanel > :nth-child(3) { --d: 0.74s; } .mpanel > :nth-child(4) { --d: 0.8s; }
/* the header steps aside while the menu is open: its logo fades, only the ✕ stays. Its white bar stays solid
   while the sheet slides down from behind it, so the sheet comes out of the header's bottom line; once the sheet
   is down the bar fades (white on white, unseen). On close the bar is solid again before the sheet slides back up
   into it. */
.header { background: transparent; box-shadow: none; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transition: opacity 0.15s ease; }
html.menu-open .header::before { opacity: 0; transition: opacity 0.15s ease 0.68s; }
.brand { transition: opacity 0.35s ease 0.15s; }
html.menu-open .header .brand, html.menu-closing .header .brand,
html.menu-open .header .nav, html.menu-closing .header .nav { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
html.menu-open .menu-btn, html.menu-closing .menu-btn { color: #111; }
.mpanel nav { display: grid; }
.mpanel__label { margin-bottom: 10px; font-family: var(--menu); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #777; }
.mpanel nav a {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 17px 4px 15px;
  color: #111; text-decoration: none;
  font-family: var(--title); font-weight: 700; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; letter-spacing: 0.07em; text-transform: uppercase;
}
.mpanel nav a::after { content: ""; width: 8px; height: 8px; margin-left: auto; margin-right: 4px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0.45; }
.mpanel nav a:hover { color: var(--accent); }
.mpanel__touch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mpanel__row {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.22); border-radius: 6px; color: #111; text-decoration: none;
  font-family: "Albert Sans", var(--menu); font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
}
.mpanel__row:hover { border-color: #111; color: #111; }
.mpanel__row svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.mpanel__row--wa { background: #111; border-color: #111; color: #fff; }
.mpanel__row--wa:hover { color: #fff; border-color: #111; background: #333; }
.mpanel__social { grid-template-columns: 1fr; }
.mpanel__cta {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px;
  border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 4px;
}
.mpanel__cta:hover { background: var(--accent-2); color: #fff; }
.mpanel__cta svg { width: 22px; height: 22px; fill: currentColor; margin-top: -4px; }
@media (max-width: 980px) {
  :root { --hh: 60px; }
  .header { min-height: 60px; }
  .brand { gap: 7px; }
  .brand__emblem { height: 46px; }
  .brand__words { height: 38px; }
}


/* ---------- hero: full-width photo with a dark fade ----------
   The photo is its own layer, pinned (sticky) from the very top of the page, so it never moves;
   the header sits over its top edge. The headline and button scroll normally on top of it,
   and the sections after them slide up and cover it. Sticky rather than background-attachment:
   fixed, so it stays smooth on iPhone too. */
:root { --hero-h: min(960px, 100vh); }
@supports (height: 100svh) { :root { --hero-h: min(960px, 100svh); } }
.hero-photo {
  position: relative; z-index: 0; /* scrolls with the page natively: no script moves it, so it never shakes */
  height: var(--hero-h); margin-top: calc(-1 * (var(--hh) + var(--tb)));
  overflow: hidden; background: #171717; /* the same dark as About Us below, so the two never clash */
}
/* the picture is its own layer, so on phones it can slide up inside the frame as the page scrolls (home.js) */
.hero-photo__img { position: absolute; inset: 0; background: url("../img/hero-wide.webp?v=1") 62% center / cover no-repeat; }
/* tall screens (phones, upright tablets) get the upright version of the photo */
@media (max-aspect-ratio: 4/5) {
  .hero-photo__img { background-image: url("../img/hero-tall.webp?v=1"); background-position: center 62%; }
}
.hero-photo__shade { position: absolute; inset: 0; z-index: 2; background: #171717; opacity: 0; will-change: opacity; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0) 58%, rgba(23, 23, 23, 0.75) 82%, #171717 93%, #171717 100%), /* on top: the foot is exactly the About Us dark, no line where they meet */
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 60%, rgba(0, 0, 0, 0.12) 100%);
}
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: calc(var(--hero-h) - var(--hh) - var(--tb));
  margin-top: calc(-1 * (var(--hero-h) - var(--hh) - var(--tb)));
  padding-block: clamp(28px, 4vh, 52px) clamp(56px, 11vh, 120px);
  color: #fff;
}
/* The headline sits in the top-left corner of the photo (on the page gutter); the button near the bottom. */
.hero__inner { flex: 1; display: flex; flex-direction: column; align-self: flex-start; width: fit-content; max-width: 100%; }
.hero__inner .hero__cta { margin-top: auto; padding-top: 28px; }
.hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; max-width: 11.5em; }
.hero__sub { margin-top: 18px; max-width: 42ch; font-family: var(--menu); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #fff; }
.hero__cta { margin-top: 28px; }
/* phones: headline near the top of the photo rather than in the middle */
@media (max-width: 700px) {
  .hero { padding-top: clamp(32px, 7vh, 64px); padding-bottom: clamp(48px, 12vh, 110px); }
  .hero__inner { align-self: stretch; width: auto; }
}

/* Phones, home page: the full logo (circle over the words) sits big at the top of the photo; the first scroll
   plays it gliding into the header (home.js).
   Fixed, so its path is measured once; it sits above the header (same z-index, later in the page) but
   under the call bar. Pieces are placed exactly as in the artwork, the same way the intro builds them. */
.hlogo { display: none; }
@media (max-width: 700px) {
  :root { --hl-w: min(50vw, 26vh, 220px); }
  .hlogo {
    display: block; position: fixed; z-index: 30; top: calc(var(--hh) + var(--tb) + 18px); left: 50%;
    width: var(--hl-w); margin-left: calc(var(--hl-w) / -2); aspect-ratio: 780 / 796; pointer-events: none;
  }
  .hlogo img { position: absolute; display: block; transform-origin: 0 0; will-change: transform, opacity; }
  .hlogo__emblem { left: 21.282%; top: 0; width: 55.128%; height: 54.774%; }
  .hlogo__words { left: 0; top: 55.025%; width: 100%; height: 44.975%; }
  .hlogo__words--light { filter: invert(1); } /* white words on the photo; static, never animated */
  .hlogo__words--dark { opacity: 0; } /* takes over as the words reach the white header */
  .hero { padding-top: 18px; padding-bottom: calc(var(--hero-h) * 0.2); } /* lifts the button to just under the car */
  /* as big as fits: "PURCHASE YOUR" is about 8.4em wide at this spacing, so it fills the line and stays on two */
  .hero h1 { letter-spacing: 0.02em; font-size: min(48px, calc((100vw - 2 * var(--g)) / 8.5)); }
  /* the headline sits centred exactly where the big logo is (the middle of the logo's box); it stays hidden while
     the logo is there and fades in as the logo glides away into the header (home.js sets html.hlogo-big) */
  .hero h1 { margin-top: calc(var(--hl-w) * 796 / 780 / 2 - min(48px, (100vw - 2 * var(--g)) / 8.5) - min(4vh, 32px)); text-align: center; } /* a little above the logo's middle */
  .hero h1 span { transition: opacity 0.8s ease 0.2s; }
  html.hlogo-big .hero h1 span, html:not(.hlogo-ready) .hero h1 span { opacity: 0; transition: opacity 0.35s ease; }
  .hero { z-index: 3; } /* the headline stays above the About photo as that fades in behind the page */
  .hero__inner .hero__cta { margin-top: auto; padding-top: 26px; }
  /* while the big logo is out, the header's own logo waits for it (visibility, so the 14s logo loop can't show it) */
  html:not(.hlogo-docked) body[data-page="home"] .brand img { visibility: hidden; }
  html.hlogo-docked .hlogo, html.menu-open .hlogo, html.menu-closing .hlogo { visibility: hidden; }
  html:not(.hlogo-ready) .hlogo, html.intro-on .hlogo { opacity: 0; }
}
/* everything after the hero slides up over it, so each part needs its own solid background */
.hero ~ * { position: relative; z-index: 2; }
.hero ~ #latest { background: linear-gradient(180deg, rgba(23, 23, 23, 0) 0, #171717 300px); } /* clear at the top: the About photo above melts into it */
#latest .grid { margin-top: clamp(28px, 5vw, 90px); } /* the cars start a little lower, so more of the photo shows above them */
/* Every list of cars sits on dark, the listings themselves white inside (home Available Now, Stocklist, Available Cars) */
#latest .section__head h2 { color: #fff; }
main.stock, main.available { background: #171717; }
.stock .page-title, .stock .count, .stock .sort, .available .page-title, .stock .empty h2 { color: #fff; }
.available .lede, .stock .empty .lede { color: rgba(255, 255, 255, 0.8); }
.stock .chip, .stock #openFilters { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.stock .chips .link { color: #fff; }
.hero__cta .btn { border-width: 12px; padding: 8px 20px 2px; font-size: 20px; letter-spacing: 0.2em; min-height: 0; }
.hero__cta .btn { background: #fff; border-color: #fff; color: #111; }
.hero__cta .btn:hover { background: transparent; border-color: #fff; color: #fff; }

/* ---------- section titles ---------- */
.section__head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head h2, .page-title { font-size: clamp(40px, 4.6vw, 66px); color: var(--ink); }
.section__head p { max-width: 60ch; }
.more { margin-top: clamp(32px, 4vw, 52px); text-align: center; }

/* ---------- three-point band ---------- */
.band { background: linear-gradient(250deg, rgba(0, 0, 0, 0.65) 0%, var(--accent) 100%), var(--dark); color: rgba(255, 255, 255, 0.85); text-align: center; }
.band .section__head h2 { color: #fff; font-size: clamp(36px, 4vw, 58px); }
.points { display: grid; gap: 36px var(--g); margin: 0; padding: 0; list-style: none; }
.points li { display: grid; justify-items: center; gap: 6px; }
.points svg { width: 52px; height: 52px; fill: #03802f; margin-bottom: 4px; } /* same size and spacing as the ULEZ badge above the first point */
.points h3 { color: #fff; font-size: 26px; line-height: 1.2; }
.points p { max-width: 34ch; font-size: 17px; }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* home: the green band starts in the dark of Available Now above and eases into its own colour (no hard edge) */
#latest + .choose::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: 0; height: clamp(160px, 22vw, 260px); pointer-events: none;
  background: linear-gradient(180deg, #171717 0%, rgba(23, 23, 23, 0.85) 22%, rgba(23, 23, 23, 0.55) 50%, rgba(23, 23, 23, 0.22) 76%, rgba(23, 23, 23, 0) 100%);
}
#latest + .choose > * { position: relative; z-index: 1; }
/* the full logo above the "Why Choose Us?" title: circle over the words, the words drawn white on the dark band */
.points__logo { display: grid; justify-items: center; gap: 10px; width: min(170px, 46vw); margin: 0 auto clamp(20px, 2.6vw, 30px); }
.points__logo img { display: block; width: 58%; height: auto; }
.points__logo .points__words { width: 100%; filter: invert(1); }
/* ULEZ badge: always in its place above "ULEZ-Compliant Vehicles", still */
.points__ulez { display: block; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; }

/* ---------- Sell Your Car on the home page: the short version, on the site green; the full text and the
   reg box are on the Sell Your Car page. On phones it takes about half the screen. ---------- */
.sellhome {
  display: grid; justify-items: center; align-content: center; gap: 14px; padding: clamp(48px, 7vw, 96px) var(--g);
  background: linear-gradient(250deg, rgba(0, 0, 0, 0.65) 0%, var(--accent) 100%), var(--dark); color: #fff; text-align: center;
}
.sellhome h2 { color: #fff; font-size: clamp(40px, 4.6vw, 66px); }
.sellhome p { max-width: 46ch; color: rgba(255, 255, 255, 0.88); font-size: clamp(17px, 1.4vw, 20px); }
.sellhome .sellhome__go { margin-top: 10px; background: #fff; border-color: #fff; color: #111; }
@media (max-width: 700px) { .sellhome { min-height: 50svh; padding-block: 40px; gap: 12px; } }

/* ---------- Why Us: photo beside the text, on grey ---------- */
.why { display: grid; justify-items: center; padding: clamp(48px, 7vw, 100px) var(--g); background: var(--soft); text-align: center; }
.why__text { display: grid; gap: 16px; justify-items: center; }
.why__text h2 { font-size: clamp(40px, 4.6vw, 66px); }
.why__text p { font-size: 18px; max-width: 68ch; }
.why__cta .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 480px) { .why__cta .btn { letter-spacing: 0.12em; padding-inline: 18px; } }
.why__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* home "About Us": the owner's own words, centred on the dark band */
.about__text { display: grid; gap: 14px; justify-items: center; }
.about .section__head h2, .about__text p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5); } /* keeps the words crisp on the lighter photo */
.about__text p { max-width: 74ch; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; color: rgba(255, 255, 255, 0.94); }
.about__text > p:first-child { margin-bottom: 4px; font-size: clamp(16px, 1.25vw, 18px); color: #fff; }
.about__more { display: grid; gap: 14px; justify-items: inherit; }
.about__more.is-in { animation: fade 0.45s ease both; }
@media (min-width: 701px) { .about__more--early.is-closed { display: none; } } /* phones always show it: Read more comes after the fourth paragraph */
.about__toggle {
  margin-top: 10px; min-height: 44px; padding: 4px 26px 0; border: 2px solid #fff; border-radius: 0; background: transparent; color: #fff;
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.about__toggle:hover { background: #fff; color: #000; }
/* About Us sits on its own photo (the hero has faded to black by then); the photo fades in as the section
   scrolls into view (home.js sets its opacity), with a dark wash so the text stays readable */
.band.about { background: #171717; } /* same dark as Available Now below, so they meet without a line */
.about__photo {
  position: absolute; inset: 0 0 auto; height: calc(var(--about-photo-h, 100%) + 300px); z-index: -1; opacity: 0; will-change: opacity, transform; /* reaches 300px into Available Now, fading out there */
  background: #000 url("../img/about-wide.webp?v=1") 70% 70% / cover no-repeat;
}
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #171717 0, rgba(23, 23, 23, 0.55) 220px, rgba(0, 0, 0, 0.34) 50%, rgba(0, 0, 0, 0.3) 74%, #171717 100%); } /* the top starts in the same dark the hero photo ends in and melts into the picture (no line where they meet); the foot fades into the section below */
@media (max-aspect-ratio: 4/5) {
  .about__photo { background-image: url("../img/about-tall.webp?v=1"); background-position: center 80%; }
}
.about > :not(.about__stage) { position: relative; }
.about__stage { position: absolute; inset: 0; z-index: -1; } /* holds the photo; on phones it sets where the photo stops staying still */
/* a solid dark layer behind the photo for its whole length (it reaches into Available Now), so while the photo
   fades in it always sits on the same dark and never shows a lighter band where the sections meet */
.about__stage::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -2; height: calc(var(--about-photo-h, 100%) + 300px); background: #171717; }
/* Phones: the About photo stays still behind the page instead of scrolling up with the section; it fades in over
   the (by then black) hero photo, and only the About text scrolls over it. Read more just adds more text on top. */
@media (max-width: 700px) {
  .band.about { background: #171717; overflow: visible; }
  /* the photo stays still (sticky) while its stage passes, then lifts away with the page at the stage's end:
     the browser does this itself, so it is perfectly smooth. home.js sets the stage's top and height once. */
  .about__stage { top: var(--stage-top, -100vh); bottom: auto; height: var(--stage-h, 200vh); }
  .about__photo { position: sticky; inset: 0 auto auto; height: 100vh; height: 100lvh; } /* inset sets top: 0, the rest auto */
  .about__photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.34) 50%, rgba(0, 0, 0, 0.36) 74%, #171717 92%, #171717 100%); } /* foot is fully dark before the photo ends */
  .hero ~ #latest { background: #171717; } /* Available Now stays solid dark all the way, nothing shows through */
}

/* ---------- vehicle cards ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .grid--stock { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* stock card in a dealer stocklist style (Albert Sans, dark card, quick-fact chips) */
.lcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #1a1a1a; border: 4px solid var(--accent); border-radius: 0; font-family: "Albert Sans", var(--menu); } /* outline round every listing, in the site green, square corners */
.lcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ececec; } /* overflow: keeps portrait photos from stretching the 4:3 box */
.lcard__media > a, .lcard__media img { display: block; width: 100%; height: 100%; }
.lcard__media img { object-fit: cover; }
.lcard__media > a { position: relative; }
.lcard__fade { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; will-change: opacity; }
.lcard__fade.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lcard__fade { transition: none; } }
.lcard__next {
  position: absolute; right: 10px; top: 50%; width: 38px; height: 38px; margin-top: -19px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer; transition: background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.lcard__next:hover { background: var(--accent-2); }
.lcard__next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lcard__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.lcard__thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ececec; }
.lcard__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lcard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 16px 18px; }
.lcard__title { font-family: var(--title); font-size: 24px; font-weight: 700; line-height: 1.15; color: #111; }
.lcard__title a { color: inherit; text-decoration: none; }
.lcard__title a:hover { text-decoration: underline; }
.lcard__desc { font-size: 14px; line-height: 1.45; color: #5f5f5f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__price { margin-top: 4px; font-size: 26px; font-weight: 800; line-height: 1.1; color: #111; }
.lcard__chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; margin: 4px 0 0; padding: 0; list-style: none; min-height: 53px; } /* room for two rows of tags in every card, so rows stay level when one card wraps */
/* every row is the same height in every card, so names, prices, tags and buttons line up across a row of cards */
.lcard__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard__desc { min-height: calc(2 * 1.45em); }
.lcard__chips li { flex: none; white-space: nowrap; padding: 5px 7px 4px; border-radius: 5px; background: #eeeeee; color: #222; font-size: 12px; font-weight: 600; line-height: 1.3; }
.lcard__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.lcard__spec, .lcard__call, .lcard__wa, .lcard__mail {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 3px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 0.2s ease;
}
.lcard__spec { flex: 1; min-width: 0; padding: 0 14px; }
.lcard__call, .lcard__wa, .lcard__mail { flex: none; width: 44px; }
.lcard__wa { background: #25d366; } /* WhatsApp's own green */
.lcard__call svg, .lcard__wa svg, .lcard__mail svg { width: 18px; height: 18px; fill: currentColor; }
.lcard__wa svg { width: 22px; height: 22px; }
.lcard__spec:hover, .lcard__call:hover, .lcard__wa:hover, .lcard__mail:hover { background: var(--accent-2); color: #fff; }
.lcard--sold .lcard__media img, .lcard--sold .lcard__thumbs img { filter: grayscale(1); opacity: 0.75; }
.tag--reserved { background: var(--amber); }
.tag--sold { background: #555; }
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 15px; }

.tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 10px 4px 12px; }
.tag--inline { position: static; display: inline-block; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ok); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.status--reserved { color: var(--amber); }
.status--sold { color: var(--muted); }

/* ---------- get in touch: dark band, form on grey ---------- */
.touch { display: grid; background: linear-gradient(180deg, rgba(24, 30, 36, 0.96) 50%, rgba(12, 48, 34, 0.96) 100%), var(--dark); }
.touch__info { padding: clamp(48px, 7vw, 100px) var(--g); color: #fff; display: grid; align-content: start; gap: 18px; }
.touch__info h2 { color: #fff; font-size: clamp(40px, 4.6vw, 66px); }
.touch__info .lede { color: rgba(255, 255, 255, 0.85); }
.touch__call { font-family: var(--menu); font-weight: 700; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: 0.02em; line-height: 1.3; color: #fff; text-decoration: none; } /* the same lettering as the number in the top bar */
.touch__call:hover { color: #fff; text-decoration: underline; }
.touch__grid { display: grid; gap: 22px 40px; margin-top: 10px; }
.touch__grid h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.touch__grid p, .touch__grid a { color: rgba(255, 255, 255, 0.9); font-size: 16px; white-space: pre-line; }
.touch__form { background: var(--soft); padding: clamp(36px, 5vw, 72px) var(--g); }
.touch__form .enquire { padding: 0; background: none; }
/* without the message form (Stocklist): the details on their own, centred */
.touch--solo .touch__info { justify-items: center; text-align: center; }
@media (min-width: 1000px) {
  .touch:not(.touch--solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .touch .touch__form { order: -1; } /* side by side: the grey message form on the left, the dark details on the right */
  .touch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- stock page ---------- */
.stock { display: grid; gap: 28px var(--g); padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 100px); }
.stock > * { min-width: 0; }
.stock__top { display: grid; justify-items: center; gap: 18px; text-align: center; }
.tabs { display: inline-flex; gap: 0; border: 2px solid var(--accent); }
.tabs button { min-height: 44px; padding: 5px 22px 0; border: 0; background: transparent; color: var(--accent); font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.count { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1; color: var(--ink); }
.toolbar__right { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.sort { display: flex; align-items: center; gap: 8px; font-family: var(--menu); font-size: 15px; font-weight: 700; color: var(--ink); flex: 1 1 auto; min-width: 0; }
.sort select { min-height: 44px; width: auto; min-width: 0; flex: 1 1 auto; font-size: 16px; padding-block: 10px 8px; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 12px 0 14px; border: 2px solid var(--accent); background: transparent; color: var(--accent); font-size: 15px; font-weight: 700; cursor: pointer; }
.chip::after { content: "×"; font-size: 20px; line-height: 1; margin-top: -3px; }
.chip:hover { background: var(--accent); color: #fff; }
.filters__fields { display: grid; gap: 14px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters__head h2 { font-size: 28px; }
.filters__foot { display: none; }
.filters .input { background: #fff; }
.empty { padding: 48px 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.empty h2 { font-size: 34px; }

@media (min-width: 1000px) {
  .stock { grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
  .stock__top { grid-column: 1 / -1; }
  .filters { position: sticky; top: calc(var(--hh) + var(--tb) + 20px); padding: 24px; background: var(--soft); }
  #openFilters, #closeFilters { display: none; }
}
@media (max-width: 999px) {
  .filters {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column;
    background: var(--soft); padding: 16px var(--g) 0;
    transform: translateY(100%); visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.28s;
  }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__fields { overflow-y: auto; padding-bottom: 20px; flex: 1; align-content: start; }
  .filters__foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters__head .link { display: none; }
}

/* ---------- vehicle page: dealer-advert layout ---------- */
#car { font-family: "Albert Sans", var(--menu); padding-bottom: clamp(56px, 7vw, 100px); }
#car > * + * { margin-top: 2px; }
#car > .vgal, #car > .vblock, #car > .vcols, #car > .enquire { margin-top: clamp(22px, 2.6vw, 34px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 16px 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.vhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; padding: clamp(18px, 2.4vw, 28px); background: #171717; color: #fff; border-radius: 3px 3px 0 0; }
.vhead__text { display: grid; gap: 6px; justify-items: start; }
.vhead h1 { font-family: var(--title); font-size: clamp(32px, 3vw, 42px); font-weight: 700; line-height: 1.1; color: #fff; }
.vhead__sub { font-size: 16px; font-weight: 700; color: #a3a3a3; }
.vhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; }
.vhead__meta .status { color: #4fd08a; }
.vhead__meta .status--reserved { color: #f2b552; }
.vhead__meta .status--sold { color: #a3a3a3; }
.vhead__meta .ref { color: #a3a3a3; font-size: 14px; }
.vhead__back { margin-top: 6px; padding: 6px 12px; border-radius: 3px; background: #2b2b2b; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.vhead__back:hover { background: #3a3a3a; color: #fff; }
.vhead__price { padding: 12px 20px; border: 1px solid #3a3a3a; border-radius: 3px; font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1; white-space: nowrap; }

.vbar { display: flex; align-items: center; gap: 8px; padding: 12px clamp(18px, 2.4vw, 28px); background: #1f1f1f; border-radius: 0 0 3px 3px; }
.vbar__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3a3a3a; border-radius: 3px; color: #fff; }
.vbar__icon:hover { background: #2b2b2b; color: #fff; }
.vbar__icon svg { width: 18px; height: 18px; fill: currentColor; }
.vbar__enquire { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.vbar__enquire:hover { background: var(--accent-2); color: #fff; }

.vgal { display: grid; gap: 4px; }
.vgal__main { position: relative; min-width: 0; }
.vgal__main--empty { aspect-ratio: 4 / 3; background: var(--frame); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #171717; overscroll-behavior-x: contain; border-radius: 3px; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; overflow: hidden; }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; } /* phone photos are portrait: show them whole */
.gal__slide figcaption { position: absolute; left: 12px; bottom: 12px; right: 80px; display: flex; }
.gal__slide figcaption span { background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 3px; }
.gal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.gal__nav:hover { background: var(--accent-2); }
.gal__nav--prev { left: 12px; } .gal__nav--next { right: 12px; }
.gal__nav[disabled] { opacity: 0; pointer-events: none; }
.gal__count { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 3px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.vgal__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.vgal__side button { position: relative; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #171717; cursor: pointer; }
.vgal__side img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.vgal__side button:hover img { opacity: 0.8; }
.vgal__side button[aria-current="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.vgal__side span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 24px; font-weight: 700; }
.gal__kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gal__kinds button { min-height: 38px; padding: 0 14px; border: 1px solid #d5d5d5; border-radius: 3px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.gal__kinds button:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1000px) {
  .vgal { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .gal__kinds { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  .vgal__main { margin-inline: calc(var(--g) * -1); }
  .gal__track { border-radius: 0; }
  .gal__nav, .vgal__side { display: none; }
  .gal__slide { aspect-ratio: 4 / 5; } /* phones: taller frame, so portrait photos fill it */
}

.vblock h2 { font-family: var(--title); font-size: 28px; font-weight: 700; color: #111; margin-bottom: 12px; }
.vfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vfacts div { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-align: center; }
.vfacts dt { padding: 9px 8px 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.vfacts dd { margin: 0; padding: 12px 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
@media (min-width: 640px) { .vfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vfacts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.vcols { display: grid; gap: clamp(22px, 2.6vw, 34px) clamp(24px, 3vw, 48px); align-items: start; }
.vcols__main { display: grid; gap: clamp(22px, 2.6vw, 34px); min-width: 0; }
@media (min-width: 1000px) { .vcols { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); } }
.vdesc { white-space: pre-line; font-size: 16px; line-height: 1.65; color: #333; max-width: 75ch; }
.vlist { display: grid; gap: 6px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: #333; }
.vlist li { position: relative; padding-left: 18px; }
.vlist li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (min-width: 640px) { .vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vtable { margin: 0; border-top: 3px solid var(--accent); }
.vtable div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; font-size: 15px; }
.vtable div:nth-child(even) { background: #f6f6f6; }
.vtable dt { color: var(--muted); }
.vtable dd { margin: 0; font-weight: 600; color: #222; text-align: right; }

/* enquiry form (car page panel, contact band) */
.enquire { padding: clamp(24px, 3vw, 40px); background: var(--soft); }
.enquire h2 { font-size: clamp(32px, 2.8vw, 40px); color: #3a3a3a; }
.enquire > p { color: var(--text); margin-top: 6px; }
@media (max-width: 700px) { .enquire > h2, .enquire > p { text-align: center; } }
.enquire .input { background: #fff; }

.nowrap { white-space: nowrap; }
/* the email address shown in place of a message form */
.mailto { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 22px; color: var(--accent); font-size: clamp(19px, 2vw, 24px); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color 0.2s ease; }
.mailto svg { flex: none; width: 1.3em; height: 1.3em; fill: currentColor; }
.mailto span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .mailto { gap: 8px; font-size: min(19px, 4.4vw); text-underline-offset: 4px; } }
@media (hover: hover) { .mailto:hover { color: var(--hover-fill); } }
@media (max-width: 700px) { .enquire { text-align: center; } }
:is(body[data-page="car"], body[data-page="sell"]) .mailto { color: #fff; }
@media (hover: hover) { :is(body[data-page="car"], body[data-page="sell"]) .mailto:hover { color: rgba(255, 255, 255, 0.8); } }
.form { display: grid; gap: 14px; margin-top: 20px; }
.form .btn { justify-self: end; border-radius: 5px; letter-spacing: 0.15em; }
.form__grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.ticks { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.9); font-size: 17px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 8px; border-left: 2px solid #7fd1a4; border-bottom: 2px solid #7fd1a4; transform: rotate(-45deg); }
.form__about { padding: 14px 16px 10px; background: #fff; border-left: 4px solid var(--accent); font-weight: 700; color: var(--ink); }
.form__about small { display: block; font-weight: 400; color: var(--muted); }
.form__error { color: var(--red); font-weight: 700; }
/* car pages: the Request A Viewing box in the site green, white words, white fields and button */
/* the Sell page form sits on the page's green the same way */
body[data-page="car"] .enquire { background: var(--accent); color: #fff; }
body[data-page="sell"] .touch__form, body[data-page="sell"] .enquire { background: none; color: #fff; }
:is(body[data-page="car"], body[data-page="sell"]) .enquire h2, :is(body[data-page="car"], body[data-page="sell"]) .enquire .field > span { color: #fff; }
:is(body[data-page="car"], body[data-page="sell"]) .enquire > p, body[data-page="sell"] .enquire .sent p { color: rgba(255, 255, 255, 0.85); }
:is(body[data-page="car"], body[data-page="sell"]) .enquire .field small { color: rgba(255, 255, 255, 0.7); }
:is(body[data-page="car"], body[data-page="sell"]) .enquire .btn { background: #fff; border-color: #fff; color: var(--accent); }
@media (hover: hover) { :is(body[data-page="car"], body[data-page="sell"]) .enquire .btn:hover { background: var(--hover-fill); border-color: var(--hover-fill); color: #fff; } }
:is(body[data-page="car"], body[data-page="sell"]) .enquire .form__error { color: #ffc9c9; }
:is(body[data-page="car"], body[data-page="sell"]) .enquire .sent h2::before { background: #fff; color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.sent { display: grid; gap: 10px; }
.sent h2 { display: flex; align-items: center; gap: 14px; }
.sent h2::before { content: "✓"; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--body); font-size: 22px; }
@media (min-width: 700px) { .form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 699px) {
  .form__pair { display: grid; gap: 14px; }
  .form .btn { justify-self: stretch; }
}

/* sticky call / viewing bar on phones */
.sticky { display: none; }
@media (max-width: 999px) {
  .sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 10px;
    padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.14);
    transition: transform 0.25s ease;
  }
  .sticky.is-away { transform: translateY(110%); }
  .sticky .btn { flex: 1; padding: 5px 10px 0; font-size: 19px; letter-spacing: 0.12em; }
  .sticky .btn--ghost { flex: 0 0 32%; }
  body.has-sticky { padding-bottom: 84px; }
}

/* ---------- page heading band (inner pages) ---------- */
.page-band { padding: clamp(40px, 6vw, 80px) var(--g); background: linear-gradient(250deg, rgba(0, 0, 0, 0.65) 0%, var(--accent) 100%), var(--dark); text-align: center; }
.page-band h1 { color: #fff; font-size: clamp(42px, 5vw, 72px); }
.page-band p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; }

/* Sell page: registration and mileage in the band, in the site's own form style, with the white call-to-action */
.sellband p { font-size: clamp(17px, 1.4vw, 20px); }
.regbox {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end;
  width: min(900px, 100%); margin: clamp(26px, 3vw, 38px) auto 0; text-align: left;
}
.regbox .field > span { color: #fff; }
.regbox .input { height: 56px; min-height: 0; padding: 0 16px; background: #fff; color: #111; }
.regbox .input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.regbox__reg { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 5px; } /* Teko sits high: nudge down */
.regbox__reg::placeholder { letter-spacing: 0.1em; }
.regbox__go { height: 56px; background: #fff; border-color: #fff; color: #111; }
.regbox__error { grid-column: 1 / -1; margin: 0; color: #fff; font-weight: 700; }
.regbox__error:empty { display: none; }
@media (max-width: 700px) { .regbox { grid-template-columns: 1fr; } .regbox__go { width: 100%; } }
/* the instant offer, under the box: fades in once the server has priced the car */
.offer { display: none; width: min(900px, 100%); margin: 22px auto 0; padding: clamp(22px, 3vw, 32px); background: #fff; color: #111; text-align: center; }
.offer.is-shown { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: center; animation: offerIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes offerIn { from { opacity: 0; transform: translateY(12px); } }
.page-band .offer p { margin: 0; color: #111; }
.page-band .offer .offer__label { font-family: var(--menu); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #03802f; }
.page-band .offer .offer__price { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 7vw, 80px); line-height: 1; padding-top: 6px; }
.page-band .offer .offer__price--car { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
.page-band .offer .offer__car { font-weight: 700; }
.page-band .offer .offer__note { color: #555; font-size: 15px; }
.offer__go { margin-top: 12px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.1; }
@media (max-width: 700px) { .offer__go { width: 100%; padding-inline: 16px; } }
/* the details form glows briefly when the box sends you to it */
#request .touch__form { position: relative; }
/* the whole Sell page sits on the same green as its top band: one background behind both sections, no seam */
body[data-page="sell"] main { background: linear-gradient(250deg, rgba(0, 0, 0, 0.65) 0%, var(--accent) 100%), var(--dark); }
body[data-page="sell"] .page-band, body[data-page="sell"] .touch { background: none; }
#request .touch__form::after { content: ""; position: absolute; inset: 0; border: 4px solid #03802f; opacity: 0; pointer-events: none; }
#request.is-lit .touch__form::after { animation: sellLit 1.6s ease 0.4s; }
@keyframes sellLit { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }

/* ---------- footer ---------- */
/* ---------- footer: logo and a line about the business, two link columns, contact, then a slim legal bar ---------- */
.footer { background: #fff; color: #111; } /* white all the way down to the green base, no line above it */
.footer__main {
  display: grid; gap: 36px 40px; grid-template-columns: minmax(0, 1fr);
  padding: clamp(44px, 6vw, 76px) var(--g) clamp(36px, 5vw, 56px);
}
@media (max-width: 639px) {
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } /* the two link lists sit side by side */
  .footer__intro, .footer__contact { grid-column: 1 / -1; }
  .footer .footer__col h3 { font-size: 16px; letter-spacing: 0.1em; }
  .footer .footer__ulez span { font-size: 15.5px; letter-spacing: 0.03em; white-space: nowrap; }
  .footer .footer__ulez .ulez-pulse { width: 54px; }
  .footer .footer__ulez { gap: 12px; }
}
@media (min-width: 640px) { .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__main { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.85fr)) minmax(0, 1.05fr); } }
.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__col h3 {
  margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--title); font-size: 19px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #111;
}
.footer__col a { width: fit-content; color: #4a4a4a; font-family: "Albert Sans", var(--menu); font-weight: 600; font-size: 15px; text-decoration: none; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__brand { display: flex; align-items: center; gap: 12px; } /* the logo as it is: black on the white footer */
.footer__brand img { width: auto; height: 66px; }
.footer__brand img + img { height: 54px; }
.footer__intro p { max-width: 36ch; color: #555; font-size: 15px; line-height: 1.65; }
/* ULEZ: its own clear strip across the bottom of every page, just above the copyright line */
.footer__ulez {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 22px);
  padding: clamp(26px, 3.4vw, 38px) var(--g);
}
/* the ULEZ strip and the copyright bar under it share one green, like the page bands */
.footer__base { background: linear-gradient(250deg, rgba(0, 0, 0, 0.65) 0%, var(--accent) 100%), var(--dark); }
.footer__ulez .ulez-pulse { width: clamp(60px, 6vw, 78px); }
.footer__ulez span { font-family: var(--title); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer__ulez .ulez-pulse img { box-shadow: 0 0 0 3px #fff; } /* a white edge so the green badge reads on the green strip */
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 16px var(--g) calc(16px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.75); font-size: 13px;
}
@media (max-width: 639px) { .footer__bottom { flex-direction: column; justify-content: center; text-align: center; } } /* phones: copyright and Sales login centred */
.footer__login { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 50%; color: #fff; transition: color 0.2s ease, border-color 0.2s ease; }
.footer__login svg { width: 22px; height: 22px; fill: currentColor; }
.footer__login:hover { color: #fff; border-color: #fff; background: #03802f; }
/* Guy K Web credit (same as every Guy K Web site): round logo turning slowly clockwise + two-line text, bottom right */
.credit { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.8); font-family: "Albert Sans", var(--menu); text-decoration: none; font-size: 14px; font-weight: 600; text-align: left; transition: color 0.2s ease; }
.credit:hover { color: #fff; }
.credit img { width: 28px; height: 28px; animation: gkSpin 9s linear infinite; transform-origin: 50% 50%; will-change: transform; }
.credit span { display: grid; line-height: 1.3; }
.credit small { font-size: 0.78em; font-weight: 500; opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; }
@keyframes gkSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .credit img { animation: none; } }
@media (max-width: 639px) { .footer__bottom .credit { margin-left: 0; } } /* phones: centred under the copyright line, like the rest of the bar */

.loading { min-height: 50vh; }
.fade { animation: fade 0.4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- home intro (js/intro.js): logo builds on white, then flies into the header ---------- */
html.intro-on { overflow: hidden; }
html.intro-on .brand img { opacity: 0; }
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; }
.intro__bg { position: absolute; inset: 0; background: #fff; }
.intro__logo { position: relative; width: min(76vw, 58vh, 500px); aspect-ratio: 780 / 796; }
/* phones: the logo builds near the top of the screen, centred, close to where it lands in the header */
@media (max-width: 700px) {
  .intro { place-items: start center; padding-top: clamp(100px, 15vh, 150px); } /* fixed value: the header loads mid-intro and must not shift it */
}
.intro__piece, .intro__words { position: absolute; display: block; }
.intro__piece { opacity: 0; will-change: transform, opacity; } /* hidden until its fade starts: the intro opens on plain white */
.intro__words { will-change: transform; }
.intro__fly { position: fixed; will-change: transform; }
.intro [data-k="rule-left"] { transform-origin: 100% 50%; }
.intro__car { position: absolute; opacity: 0; will-change: transform, opacity; } /* laid over the emblem, above it; hidden until it fades in on the left */
.intro__car .intro__piece { opacity: 1; } /* the car is visible as it drives in; only the other pieces wait for their fade */
.intro__wheel { transform-origin: 50% 50%; }
.intro__letters--light { filter: invert(1); } /* black letters drawn white; static, never animated */
.intro [data-k="rule-right"] { transform-origin: 0 50%; }

/* Hover (mouse and trackpad only, so a tap on a phone never leaves a button stuck coloured): every button turns
   fully ULEZ green, fill and outline, with white text and icons. */
:root { --hover-fill: #03802f; } /* the green of the ULEZ badge */
@media (hover: hover) {
  .btn:hover, .btn--ghost:hover, .btn--light:hover, .hero__cta .btn:hover, .about__toggle:hover,
  .lcard__next:hover, .lcard__spec:hover, .lcard__call:hover, .lcard__wa:hover, .lcard__mail:hover, .chip:hover, .vhead__back:hover,
  .vbar__icon:hover, .vbar__enquire:hover, .gal__nav:hover, .gal__kinds button:hover,
  .mpanel__row:hover, .mpanel__row--wa:hover, .mpanel__cta:hover, .topbar .callpick__menu a:hover {
    background: var(--hover-fill); border-color: var(--hover-fill); color: #fff; filter: none;
  }
}

/* ULEZ badges float like a certificate: the one on the home photo zooms in once the page has opened (after the
   intro), then they stay still and sharp while a soft green glow pulses out from behind them. */
/* it stays still in the bottom-right corner of the screen while the page scrolls */
.hero__ulez {
  position: fixed; right: var(--g); bottom: calc(clamp(20px, 3vw, 36px) + env(safe-area-inset-bottom)); z-index: 28;
  display: block; width: clamp(84px, 8vw, 118px); border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px #fff; /* a crisp white edge so it reads clearly on any background */
  opacity: 0; pointer-events: none; /* kept still and drawn at its real size, so it is pin-sharp; only the green glow moves */
}
html:not(.intro-on) .hero__ulez { animation: ulezIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
/* the footer has its own ULEZ strip: the corner badge slides down out of the way while the footer is on screen */
.hero__ulez { transition: translate 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
html.ulez-footer .hero__ulez { translate: 0 calc(100% + 120px); }
@media (max-width: 700px) {
  /* phones: bottom right too, on the same line as a slightly slimmer "Browse available cars" button */
  .hero__ulez { width: 64px; }
  .hero__cta { text-align: center; } /* "Browse available cars" centred just under the car (see the hero's bottom padding) */
}
/* the glow: a ring in the badge's own green keeps growing out from behind it and fading away (transform + opacity) */
.hero__ulez img, .ulez-pulse img { position: relative; display: block; width: 100%; height: auto; border-radius: 50%; }
.ulez-pulse { position: relative; display: block; flex: none; border-radius: 50%; isolation: isolate; }
.hero__ulez::before, .ulez-pulse::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #03802f;
  animation: ulezGlow 3s cubic-bezier(0.25, 0.6, 0.3, 1) infinite; will-change: transform, opacity;
}
@keyframes ulezGlow { 0% { transform: scale(1); opacity: 0.5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ulezIn { 0% { opacity: 0; scale: 0.6; } 70% { opacity: 1; scale: 1.08; } 100% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__ulez { opacity: 1; } }
