/* ==========================================================================
   Grip Tyre & Auto Care — design system
   ========================================================================== */

:root {
  /* Colour */
  --ink: #0b0d11;
  --ink-2: #12151b;
  --ink-3: #1b1f27;
  --ink-4: #262b35;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --white: #ffffff;
  --line: #e2ded4;
  --line-dark: rgba(255, 255, 255, 0.09);
  --text: #111317;
  --muted: #565c66;
  --text-on-dark: #eceef1;
  --muted-on-dark: #9ba2ad;
  --accent: #d63a2c;
  --accent-600: #b92e22;
  --accent-soft: rgba(214, 58, 44, 0.1);
  --rag-red: #e5484d;
  --rag-amber: #f2a93b;
  --rag-green: #30a46c;
  --plate: #f7c933;
  --plate-band: #123b8f;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.25rem);
  --step-4-caps: clamp(2.1rem, 1.5rem + 2.85vw, 3.8rem);
  --step-5: clamp(2.75rem, 1.8rem + 4.6vw, 5.5rem);
  --step-5-caps: clamp(2.4rem, 1.55rem + 4.1vw, 4.9rem);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 17, 0.05), 0 2px 10px rgba(11, 13, 17, 0.04);
  --shadow: 0 18px 40px -18px rgba(11, 13, 17, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(11, 13, 17, 0.45);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* A slightly taller header on bigger screens so the emblem's lettering reads clearly */
@media (min-width: 900px) { :root { --header-h: 100px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--muted-on-dark); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.section-head h2 { font-size: var(--step-4-caps); }
/* Section headings in capitals, like the page headlines */
.section-head h2, .split__body h2, .cta-band h2 { text-transform: uppercase; line-height: 0.98; letter-spacing: -0.01em; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #ff7a6b; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
.hero .accent-text, .page-hero .accent-text, .section--dark .accent-text { color: #ff6a59; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 1.15fr 0.85fr; } .split--reverse > :first-child { order: 2; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--ink-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--landscape { aspect-ratio: 4 / 3; }
.split__body { display: grid; gap: 22px; }
.split__body h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3.1rem); }
.split__body .features { grid-template-columns: 1fr; gap: 22px; margin-top: 6px; }
@media (min-width: 640px) and (max-width: 959px) { .split__body .features { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); box-shadow: 0 10px 24px -12px rgba(214, 58, 44, 0.75); }
.btn--primary:hover { --btn-bg: var(--accent-600); box-shadow: 0 14px 30px -12px rgba(214, 58, 44, 0.85); }
.btn--dark:hover { --btn-bg: var(--ink-4); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--paper-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { --btn-border: rgba(255, 255, 255, 0.7); --btn-bg: rgba(255, 255, 255, 0.06); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: rgba(11, 13, 17, 0.2); }
.btn--outline:hover { --btn-border: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: inherit; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
/* The frosted bar lives on a layer that only fades, so scrolling past the top stays smooth */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 13, 17, 0.84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { position: relative; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
/* Chrome "GRIP TYRE BICESTER" logo (transparent PNG, black removed). The alloy wheel is a separate layer:
   a round wheel that spins, squashed back to the logo's perspective oval and clipped to its top half,
   so at rest it lines up exactly with the original artwork. Built by brand/build-logo-wheel.ps1. */
.logo-anim { position: relative; display: block; aspect-ratio: 1787 / 598; }
.logo-anim__base { display: block; width: 100%; height: 100%; }
.logo-anim__wheel { position: absolute; left: 38.948%; top: 17.224%; width: 21.824%; height: 65.217%; clip-path: inset(0 0 50% 0); }
.logo-anim__squash { position: absolute; inset: 0; transform: scaleY(0.7846); }
.logo-anim__boost { position: absolute; inset: 0; }
.logo-anim__spin { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  /* Cruising: turns anticlockwise, the way the red speed lines say it's travelling */
  .logo-anim__spin { animation: wheel-cruise 5s linear infinite; }
}
@keyframes wheel-cruise { to { transform: rotate(-360deg); } }
@keyframes wheel-rev { to { transform: rotate(-1080deg); } }
@keyframes wheel-spinup { from { transform: rotate(2160deg); } to { transform: rotate(0deg); } }
.brand__logo { height: 66px; width: auto; }
@media (min-width: 900px) { .site-header .brand__logo { height: 90px; } }
@media (max-width: 420px) { .site-header .brand__logo { height: 62px; } }
.brand__logo--footer { width: 300px; max-width: 100%; height: auto; }
/* A light sweeps across the chrome on hover/focus. The sweep is masked by the logo itself, so it only
   lights the metal. main.js adds .is-shining and removes it when the sweep ends, so it always plays through. */
.brand__shine, .intro__shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/logo-griptyre-960.png") center / contain no-repeat; mask: url("../img/logo-griptyre-960.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* Hover, focus and page arrival: the wheel revs (three quick extra turns) while a light sweeps the chrome */
  .brand.is-shining .brand__shine { animation: logo-shine 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
  .brand.is-shining .logo-anim__boost { animation: wheel-rev 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .brand { transition: transform 0.35s var(--ease-out); }
  .brand:hover { transform: translateY(-1px) scale(1.02); }
}
@keyframes logo-shine { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }

/* ---------- Intro screen (first page of a visit; head script adds .intro-on) ----------
   Pure CSS timeline that ends hidden on its own, so it can never get stuck over the page. */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #0b0d11; cursor: pointer; animation: intro-out 0.6s var(--ease) 2.6s forwards; }
.intro__inner { display: grid; justify-items: center; gap: 30px; width: min(540px, 86vw); animation: intro-zoom 0.6s var(--ease) 2.6s forwards; }
/* Logo powers up: fades in from a blur with the wheel spinning flat out, the wheel winds down to a cruise,
   then a light sweeps across the chrome */
.intro__logo { position: relative; width: 100%; animation: intro-logo-in 1.2s var(--ease-out) 0.1s both; }
.intro .logo-anim__boost { animation: wheel-spinup 2.3s cubic-bezier(0.12, 0.6, 0.25, 1) 0.05s both; }
.intro__shine { animation: logo-shine 1.1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s both; }
.intro__bar { position: relative; width: 44%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.intro__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #d63a2c, #ff5a47); transform-origin: left; animation: intro-bar 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.intro-on .intro.is-leaving { animation: intro-skip 0.35s var(--ease) forwards; }
@keyframes intro-logo-in { from { opacity: 0; transform: scale(0.9); filter: blur(10px) brightness(0.4); } to { opacity: 1; transform: none; filter: none; } }
@keyframes intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-skip { to { opacity: 0; visibility: hidden; } }
@keyframes intro-zoom { to { transform: scale(1.08); } }
.intro-on .hero__media img { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .intro-on .intro { display: none; } }
.footer-brand .brand { max-width: 100%; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; }
.primary-nav a { position: relative; display: block; padding: 10px 14px; font-size: 0.94rem; font-weight: 500; text-decoration: none; opacity: 0.86; transition: opacity 0.2s; }
.primary-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { opacity: 1; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 600; font-size: 0.94rem; text-decoration: none; opacity: 0.92; }
.header-phone:hover { opacity: 1; }
.header-actions .btn--sm { display: none; }

.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: inherit; }
.nav-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity 0.25s var(--ease), transform 0.45s var(--ease-out); }
.nav-toggle .icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.nav-open .nav-toggle .icon--menu { opacity: 0; transform: rotate(90deg) scale(0.6); }
.nav-open .nav-toggle .icon--close { opacity: 1; transform: none; }

@media (min-width: 640px) { .header-actions .btn--sm { display: inline-flex; } }
@media (min-width: 1080px) {
  .primary-nav { display: block; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--ink); color: var(--white); padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow-y: auto; opacity: 0; transform: translate3d(0, -14px, 0); transition: opacity 0.32s var(--ease), transform 0.5s var(--ease-out); }
.mobile-nav[hidden] { display: none; }
.nav-open .mobile-nav { opacity: 1; transform: none; }
.mobile-nav__links li, .mobile-nav__foot { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-out); }
.nav-open .mobile-nav__links li, .nav-open .mobile-nav__foot { opacity: 1; transform: none; }
.nav-open .mobile-nav__links li:nth-child(2) { transition-delay: 40ms; }
.nav-open .mobile-nav__links li:nth-child(3) { transition-delay: 80ms; }
.nav-open .mobile-nav__links li:nth-child(4) { transition-delay: 120ms; }
.nav-open .mobile-nav__links li:nth-child(5) { transition-delay: 160ms; }
.nav-open .mobile-nav__links li:nth-child(6) { transition-delay: 200ms; }
.nav-open .mobile-nav__links li:nth-child(n+7) { transition-delay: 240ms; }
.nav-open .mobile-nav__foot { transition-delay: 260ms; }
.nav-open .site-header { background: var(--ink); }
.mobile-nav__links { list-style: none; display: grid; }
.mobile-nav__links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.6rem; text-decoration: none; }
.mobile-nav__links a[aria-current="page"] { color: #ff6a59; }
.mobile-nav__links .icon { width: 22px; height: 22px; opacity: 0.5; }
.mobile-nav__foot { display: grid; gap: 12px; }
.mobile-nav__foot .muted { color: var(--muted-on-dark); font-size: 0.92rem; }
@media (min-width: 1080px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.hero { min-height: max(680px, min(100svh, 940px)); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 72px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (prefers-reduced-motion: no-preference) { .hero__media img { animation: hero-zoom 2.8s var(--ease-out) both; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11, 13, 17, 0.94) 0%, rgba(11, 13, 17, 0.78) 42%, rgba(11, 13, 17, 0.28) 100%),
  linear-gradient(0deg, rgba(11, 13, 17, 0.9) 0%, rgba(11, 13, 17, 0) 45%); }
.hero__grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: end; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero__content { display: grid; gap: 24px; max-width: 760px; }
/* Big headlines in capitals. Capitals run wider, so they're set a touch smaller and less tightly tracked */
.hero__title { font-size: var(--step-5-caps); line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; }
.hero__lead { font-size: var(--step-1); color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.86rem; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.status-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-on-dark); }
.is-open .status-pill__dot, .status-pill__dot.is-open { background: var(--rag-green); }
.is-open .status-pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rag-green); opacity: 0; animation: ping 2s ease-out infinite; }
.is-closed .status-pill__dot { background: var(--rag-amber); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.hero__location { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.hero__location .icon { width: 16px; height: 16px; }

.hero__trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 860px) { .hero__trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: rgba(11, 13, 17, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.trust-item .icon { width: 26px; height: 26px; color: #ff6a59; }
.trust-item strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.05rem; line-height: 1.2; }
.trust-item span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); line-height: 1.35; }
@media (max-width: 639px) {
  .trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .trust-item .icon { width: 22px; height: 22px; }
  .trust-item strong { font-size: 0.98rem; }
}

/* Split hero: photo on the right, fading into the dark background */
.hero--split { background: radial-gradient(120% 90% at 85% 40%, #1a1d24 0%, var(--ink) 60%); }
.hero--split .hero__grid { grid-template-columns: 1fr; }
.hero--split .hero__content { max-width: 640px; }
@media (max-width: 1039px) {
  /* Phones and tablets: the whole photo runs across the top so the car (and its plate) is in view,
     instead of a tall, zoomed-in crop of the workshop wall. The text sits underneath on the dark background. */
  .hero--split { min-height: 0; padding-top: calc(min(100vw / 1.15, 72svh) + 8px); }
  .hero--split .hero__media { inset: 0 0 auto 0; height: min(calc(100vw / 1.15), 72svh);
    -webkit-mask-image: linear-gradient(180deg, #000 93%, transparent 100%); mask-image: linear-gradient(180deg, #000 93%, transparent 100%); }
  .hero--split .hero__media img { object-position: 50% 100% !important; }
  .hero--split .hero__overlay { background: none; }
}
@media (max-width: 719px) {
  /* Phones: the car sits behind the headline as a dark, see-through background that fades into black */
  .hero--split { padding-top: calc(var(--header-h) + 40px); }
  .hero--split .hero__media { height: min(118vw, 78svh); opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero--split .hero__media img { object-position: 50% 80% !important; }
}
@media (min-width: 1040px) {
  /* Photo fills the first screen (so the whole car is above the fold) and fades out left and at the bottom */
  .hero--split .hero__media { left: auto; bottom: auto; width: 62%; height: 100vh; height: min(100%, 100svh);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 50%), linear-gradient(180deg, #000 86%, transparent 100%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 50%), linear-gradient(180deg, #000 86%, transparent 100%); mask-composite: intersect; }
  .hero--split .hero__media img { object-position: 50% 82% !important; }
  /* Shade only behind the text (left) and the trust strip (very bottom), so the car stays bright */
  .hero--split .hero__overlay { background:
    linear-gradient(90deg, rgba(11, 13, 17, 0.7) 0%, rgba(11, 13, 17, 0.2) 45%, rgba(11, 13, 17, 0) 60%),
    linear-gradient(0deg, rgba(11, 13, 17, 0.85) 0%, rgba(11, 13, 17, 0) 20%); }
  .hero--split .hero__overlay::before { height: 170px; background: linear-gradient(180deg, rgba(11, 13, 17, 0.6), rgba(11, 13, 17, 0)); }
}
.hero__sub { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }
.hero__sub a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); }
.hero__sub a:hover { color: var(--white); text-decoration-color: currentColor; }

/* Quick book card */
.quick-book--inline { padding: 10px; border-radius: 20px; gap: 10px; }
@media (min-width: 720px) {
  .quick-book--inline { grid-template-columns: 1.15fr 1fr auto; align-items: center; }
  .quick-book--inline .plate { height: 56px; }
  .quick-book--inline .select { min-height: 56px; }
  .quick-book--inline .btn { min-height: 56px; }
  .quick-book--actions { grid-template-columns: 1.3fr 1fr 1fr; }
}
.quick-book--actions .btn { min-height: 54px; }
.quick-book { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.96); color: var(--text); box-shadow: var(--shadow-lg); }
.quick-book__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.quick-book__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.quick-book__note { font-size: 0.82rem; color: var(--muted); }
.quick-book form { display: grid; gap: 12px; }

/* UK number plate input */
.plate { display: flex; align-items: stretch; height: 60px; border-radius: 10px; overflow: hidden; background: var(--plate); border: 2px solid var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); transition: box-shadow 0.2s; }
.plate:focus-within { box-shadow: 0 0 0 4px rgba(214, 58, 44, 0.25); }
.plate__band { display: grid; place-items: center; align-content: center; gap: 3px; width: 44px; background: var(--plate-band); color: var(--white); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; }
.plate__band svg { width: 18px; height: 18px; }
.plate__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; text-align: center; font-family: var(--font-display); font-stretch: 100%; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.plate__input::placeholder { color: rgba(11, 13, 17, 0.38); }
.plate__input:focus { outline: none; }
.plate--sm { height: 52px; }
.plate--sm .plate__input { font-size: 1.3rem; }
/* Reg lookup animations: a light scans the plate while the DVLA is checked, a green flash when the car
   is found, a shake when it isn't. Prices then count up and the suggestion cards deal in one by one. */
.plate { position: relative; }
.plate.is-scanning::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); animation: plate-scan 0.85s ease-in-out infinite; }
.plate.is-scanning .plate__input { color: rgba(11, 13, 17, 0.55); }
.plate.is-found { animation: plate-found 0.9s ease-out; }
.plate.is-error { animation: plate-shake 0.45s ease-in-out; }
@keyframes plate-scan { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
@keyframes plate-found { 0% { box-shadow: 0 0 0 0 rgba(48, 164, 108, 0.75); } 60% { box-shadow: 0 0 0 10px rgba(48, 164, 108, 0); } 100% { box-shadow: none; } }
@keyframes plate-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.is-new-text { animation: text-in 0.5s var(--ease-out) both; }
@keyframes text-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-flash { animation: price-flash 1.1s ease-out; }
@keyframes price-flash { 0% { box-shadow: 0 0 0 0 rgba(214, 58, 44, 0.55); } 40% { box-shadow: 0 0 0 8px rgba(214, 58, 44, 0.12); } 100% { box-shadow: 0 0 0 0 rgba(214, 58, 44, 0); } }
.car-tips.is-dealing { animation: text-in 0.45s var(--ease-out) both; }
.car-tips.is-dealing .car-tip { animation: tip-in 0.55s var(--ease-out) both; animation-delay: calc(0.12s + var(--i, 0) * 0.09s); }
@keyframes tip-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .plate.is-scanning::after, .plate.is-found, .plate.is-error, .is-new-text, .price-flash, .car-tips.is-dealing, .car-tips.is-dealing .car-tip { animation: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .hero__overlay { background:
  linear-gradient(90deg, rgba(11, 13, 17, 0.95) 0%, rgba(11, 13, 17, 0.8) 50%, rgba(11, 13, 17, 0.4) 100%),
  linear-gradient(0deg, rgba(11, 13, 17, 0.7) 0%, rgba(11, 13, 17, 0) 50%); }
.page-hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1040px) { .page-hero__grid { grid-template-columns: 1.15fr 0.85fr; } .page-hero__grid > .price-badge { justify-self: end; } }
.page-hero__content { display: grid; gap: 22px; max-width: 720px; }
.page-hero h1 { font-size: var(--step-5-caps); line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; }
.page-hero .lead { color: rgba(255, 255, 255, 0.76); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; font-weight: 500; }
.fact .icon { width: 16px; height: 16px; color: #ff6a59; }

.price-badge { display: inline-grid; justify-self: start; min-width: 260px; justify-items: start; gap: 4px; padding: 22px 30px; border-radius: 0; clip-path: var(--race-cut); background: rgba(11, 13, 17, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); border-top: 4px solid var(--accent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.price-badge__label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.price-badge__value { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.price-badge__note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--ink-2); color: var(--muted-on-dark); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 56px; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.marquee__item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Service tiles (bento) ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 272px; }
  .bento .tile { min-height: 0; }
  .tile--a { grid-column: span 7; grid-row: span 2; }
  .tile--b { grid-column: span 5; grid-row: span 1; }
  .tile--c { grid-column: span 5; grid-row: span 1; }
  .tile--d { grid-column: span 4; }
  .tile--e { grid-column: span 4; }
  .tile--f { grid-column: span 4; }
}
.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); color: var(--white); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease-out); }
.tile:hover { transform: translate3d(0, -4px, 0); }
.tile__media { position: absolute; inset: 0; z-index: -2; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 17, 0.05) 0%, rgba(11, 13, 17, 0.55) 45%, rgba(11, 13, 17, 0.92) 100%); }
.tile--plain { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.tile--plain::before { display: none; }
.tile--accent { background: var(--accent); }
.tile--accent::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%); }
.tile__top { position: absolute; top: clamp(22px, 2.4vw, 32px); left: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px); display: flex; justify-content: space-between; align-items: flex-start; }
.tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile--plain .tile__icon { background: var(--accent-soft); color: var(--accent); }
.tile__icon .icon { width: 26px; height: 26px; }
.tile__price { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.84rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile--plain .tile__price { background: var(--paper); }
.tile h3 { font-size: var(--step-2); margin-bottom: 8px; }
.tile--a h3 { font-size: var(--step-3); }
.tile p { color: rgba(255, 255, 255, 0.76); max-width: 46ch; font-size: 0.97rem; }
.tile--plain p { color: var(--muted); }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 0.94rem; }
.tile__cta .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.tile:hover .tile__cta .icon { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); isolation: isolate; transition: transform 0.55s var(--ease-out), border-color 0.4s var(--ease); }
a.card { text-decoration: none; color: inherit; }
.card--hover:hover, a.card:hover { transform: translate3d(0, -4px, 0); border-color: transparent; }
.card--dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.card--dark p { color: var(--muted-on-dark); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.card--dark .card__icon { background: rgba(255, 106, 89, 0.12); color: #ff6a59; }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-2); }
.card p { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; }
.card__price small { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-right: 4px; }
.card__price--note { font-family: var(--font-body); font-stretch: 100%; font-weight: 600; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); }

/* Price cards */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; isolation: isolate; transition: transform 0.55s var(--ease-out), border-color 0.4s var(--ease); }
.price-card:hover { transform: translate3d(0, -4px, 0); border-color: transparent; }
.price-card__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.price-card__label .icon { color: var(--accent); width: 24px; height: 24px; }
.price-card__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.price-card__price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 6px; vertical-align: 0.9em; }
.price-card p { color: var(--muted); font-size: 0.95rem; }
.price-card__cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.price-card__cta .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.price-card:hover .price-card__cta .icon { transform: translateX(4px); }
.price-card--feature { background: var(--ink); color: var(--white); border-color: var(--ink); }
.price-card--feature p, .price-card--feature .price-card__price small { color: var(--muted-on-dark); }
.price-card--feature .price-card__cta, .price-card--feature .price-card__label .icon { color: #ff6a59; }
.fine-print { margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.section--dark .fine-print { color: var(--muted-on-dark); }

/* Tiers (servicing / tyres) */
.tiers { display: grid; gap: 16px; }
@media (min-width: 960px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.tier { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.tier--feature { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.tier__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tier--feature .tier__tag { background: var(--accent); color: var(--white); }
.tier h3 { font-size: var(--step-3); }
.tier__interval { color: var(--muted); font-size: 0.95rem; }
.tier--feature .tier__interval, .tier--feature .checklist li { color: rgba(255, 255, 255, 0.78); }
.tier .btn { margin-top: auto; }

/* ---------- Services & prices page ---------- */
.price-picker { display: grid; gap: 14px; align-items: end; padding: 18px 20px; margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); }
@media (min-width: 860px) {
  .price-picker { position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; grid-template-columns: 1fr auto auto; }
}
.price-picker__intro { align-self: center; }
.price-picker__intro strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; }
.price-picker__intro span { font-size: 0.9rem; color: var(--muted-on-dark); }
.price-picker.is-set .price-picker__intro span { color: #7ee2a8; }
.price-picker label { display: grid; gap: 6px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); }
.price-picker .select { min-width: 230px; min-height: 50px; background-color: var(--white); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.menu-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 8px; scrollbar-width: none; }
.menu-jump::-webkit-scrollbar { display: none; }
.menu-jump a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.menu-jump a:hover { border-color: var(--accent); color: var(--accent); }
.menu { display: grid; gap: 24px; }
.menu-group { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 860px) { .menu-group { scroll-margin-top: calc(var(--header-h) + 120px); } }
.menu-group__head { display: flex; gap: 16px; align-items: center; padding: 20px clamp(18px, 2.4vw, 28px); background: var(--paper-2); }
.menu-group__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--white); color: var(--accent); }
.menu-group__icon .icon { width: 26px; height: 26px; }
.menu-group__head h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); text-transform: uppercase; line-height: 1.1; }
.menu-group__head p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.menu-group__body { padding: clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.tiers--menu .tier { padding: clamp(22px, 2.2vw, 30px); gap: 14px; }
.tiers--menu .tier h3 { font-size: var(--step-2); }
.tier__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.tier__price small, .menu-item__price small { font-family: var(--font-body); font-stretch: 100%; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 6px; vertical-align: 0.4em; }
.tier--feature .tier__price small { color: var(--muted-on-dark); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; padding: 18px clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.menu-item:first-child { border-top: 0; }
.menu-item h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.menu-item p { margin-top: 3px; color: var(--muted); font-size: 0.9rem; }
.menu-item__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; white-space: nowrap; text-align: right; }
.menu-item__price--note { font-family: var(--font-body); font-stretch: 100%; font-weight: 600; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: normal; text-align: center; }
.menu-item__price--free { color: var(--rag-green); text-transform: uppercase; }
.menu-item .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) {
  .menu-item { grid-template-columns: 1fr auto 104px; }
  .menu-item .btn { grid-column: auto; justify-self: stretch; }
  .menu-item > :last-child:not(.btn) { grid-column: 2 / -1; }
}
.section--book .book-panel { max-width: 820px; margin-inline: auto; }
/* Reg lookup in the price picker (shown once the DVLA lookup is on) */
.price-picker__reg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.price-picker__reg .plate { height: 50px; min-width: 0; }
.price-picker__reg .btn { min-height: 50px; }
@media (max-width: 559px) { .price-picker__reg { grid-template-columns: 1fr; } }
.price-picker__switch { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; background: none; color: var(--muted-on-dark); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.price-picker__switch:hover { color: var(--white); }
.price-picker__manual { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .price-picker__manual { grid-template-columns: auto auto; } }
@media (min-width: 860px) {
  .price-picker { grid-template-columns: 1fr auto; }
  .price-picker.has-reg .price-picker__reg { min-width: 380px; }
  .price-picker.has-reg .price-picker__manual { grid-column: 1 / -1; justify-content: end; }
}
/* Suggestions for the looked-up car */
.car-tips { margin: 6px 0 26px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.car-tips__head { display: grid; gap: 4px; margin-bottom: 18px; }
.car-tips__head h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); text-transform: uppercase; line-height: 1.1; }
.car-tips__head p { color: var(--muted); font-size: 0.92rem; }
.car-tips__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .car-tips__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .car-tips__grid { grid-template-columns: repeat(4, 1fr); } }
.car-tip { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.car-tip h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.car-tip p { color: var(--muted); font-size: 0.88rem; }
.car-tip__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.car-tip__price { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; }
.car-tip--urgent { background: var(--accent-soft); border-color: rgba(214, 58, 44, 0.35); }
.car-tip--urgent h3 { color: var(--accent); }
.car-tip--feature { background: var(--ink); border-color: var(--ink); color: var(--white); }
.car-tip--feature p { color: var(--muted-on-dark); }
/* Homepage hero reg box */
.hero-reg { display: grid; gap: 10px; max-width: 560px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.96); color: var(--text); box-shadow: var(--shadow-lg); }
.hero-reg__label { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1rem; text-transform: uppercase; padding-left: 4px; }
.hero-reg__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.hero-reg .plate { height: 56px; min-width: 0; }
.hero-reg .btn { min-height: 56px; }
@media (max-width: 479px) { .hero-reg__row { grid-template-columns: 1fr; } }
.quote-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-layout__intro { display: grid; gap: 18px; }
.quote-layout__intro h2 { font-size: var(--step-4-caps); text-transform: uppercase; line-height: 0.98; letter-spacing: -0.01em; }
@media (min-width: 960px) {
  .quote-layout { grid-template-columns: 0.8fr 1.2fr; }
  .quote-layout__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 0.92rem; font-weight: 600; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(11, 13, 17, 0.3); background: var(--white) center / 10px no-repeat; }
.chip:hover span { border-color: rgba(214, 58, 44, 0.5); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip input:checked + span::before { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-flash span { animation: chip-flash 0.9s var(--ease); }
@keyframes chip-flash { 30% { transform: scale(1.06); box-shadow: 0 0 0 6px var(--accent-soft); } }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d63a2c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checklist strong { color: var(--text); font-weight: 600; }
.section--dark .checklist li, .tier--feature .checklist li { color: rgba(255, 255, 255, 0.76); }
.section--dark .checklist strong, .tier--feature .checklist strong { color: var(--white); }
.checklist--cols { gap: 14px 32px; }
@media (min-width: 720px) { .checklist--cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .checklist--cols.checklist--3 { grid-template-columns: repeat(3, 1fr); } }

/* Features (icon list) */
.features { display: grid; gap: 28px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; font-stretch: 112%; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.section--dark .feature p { color: var(--muted-on-dark); }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(var(--steps, 3), 1fr); } }
.step { position: relative; display: grid; gap: 12px; padding: 30px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.section--dark .step { background: var(--ink-2); border-color: var(--line-dark); }
.step__num { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--accent); }
.section--dark .step__num { color: #ff6a59; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); font-size: 0.97rem; }
.section--dark .step p { color: var(--muted-on-dark); }

/* RAG explainer */
.rag { display: grid; gap: 12px; }
.rag__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); }
.rag__light { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04); }
.rag__light--red { background: var(--rag-red); box-shadow: 0 0 18px rgba(229, 72, 77, 0.6); }
.rag__light--amber { background: var(--rag-amber); box-shadow: 0 0 18px rgba(242, 169, 59, 0.5); }
.rag__light--green { background: var(--rag-green); box-shadow: 0 0 18px rgba(48, 164, 108, 0.5); }
.rag__item strong { display: block; color: var(--white); }
.rag__item span { color: var(--muted-on-dark); font-size: 0.94rem; }

/* Tread depth gauge */
.tread-gauge { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-dark); }
.tread-gauge__bar { position: relative; height: 18px; border-radius: 999px; background: linear-gradient(90deg, var(--rag-red) 0 20%, var(--rag-amber) 20% 37.5%, var(--rag-green) 37.5% 100%); }
.tread-gauge__marks { position: relative; height: 54px; font-size: 0.82rem; color: var(--muted-on-dark); }
.tread-gauge__mark { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; text-align: center; white-space: nowrap; }
.tread-gauge__mark::before { content: ""; width: 2px; height: 10px; background: rgba(255, 255, 255, 0.4); }
.tread-gauge__mark strong { color: var(--white); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111317' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.35s var(--ease), background-color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
/* Answers glide open where the browser supports it; elsewhere they open instantly as before */
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 0.5s var(--ease-out), opacity 0.4s var(--ease), content-visibility 0.5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}
.faq__body { padding: 0 26px 24px; color: var(--muted); max-width: 70ch; }
.faq__body p + p { margin-top: 10px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .reviews { grid-template-columns: 0.85fr 1.15fr; } }
.reviews__score { display: grid; gap: 20px; justify-items: start; }
.rating { display: flex; align-items: center; gap: 18px; }
.rating__num { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(4.5rem, 8vw, 6.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.stars { width: 150px; height: 28px; display: block; overflow: visible; }
.stars use { width: 22px; height: 22px; }
.reviews__summary { font-size: var(--step-1); color: var(--muted); max-width: 36ch; }
.reviews__summary strong { color: var(--text); }
.reviews__also { font-size: 0.9rem; color: var(--muted); }
.reviews__label { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.theme-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
.theme { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); position: relative; isolation: isolate; transition: transform 0.55s var(--ease-out), background-color 0.4s var(--ease); }
.theme:hover { transform: translate3d(0, -3px, 0); background: var(--white); }
/* Hover shadows fade in on their own layer instead of repainting the shadow every frame */
.card::before, .price-card::before, .theme::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--shadow); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.card--hover:hover::before, a.card:hover::before, .price-card:hover::before, .theme:hover::before { opacity: 1; }
.theme__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.theme__icon .icon { width: 22px; height: 22px; }
.theme h3 { font-size: 1.08rem; font-stretch: 112%; margin-bottom: 6px; }
.theme p { color: var(--muted); font-size: 0.94rem; }
a.trust-item { color: inherit; text-decoration: none; transition: background-color 0.3s var(--ease); }
a.trust-item:hover { background: rgba(11, 13, 17, 0.35); }
#reviews + .section--white { border-top: 1px solid var(--line); }
a.fact { color: inherit; text-decoration: none; }
a.fact:hover { border-color: rgba(255, 255, 255, 0.35); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); background: var(--accent); color: var(--white); display: grid; gap: 28px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
  repeating-linear-gradient(118deg, rgba(0, 0, 0, 0.07) 0 14px, transparent 14px 34px); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr auto; } }
.cta-band h2 { font-size: var(--step-4-caps); }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, 0.86); font-size: var(--step-1); max-width: 52ch; }
.cta-band .btn--light { --btn-fg: var(--accent-600); }

/* ---------- Visit / hours / map ---------- */
.visit { display: grid; gap: 16px; }
@media (min-width: 960px) { .visit { grid-template-columns: 0.9fr 1.1fr; } }
.visit__panel { display: grid; gap: 28px; align-content: start; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-dark); }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .card__icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .card__icon .icon { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; text-decoration: none; color: var(--white); }
.contact-list a:hover { color: #ff6a59; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours caption { text-align: left; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; color: var(--white); }
.hours caption .status-pill { display: flex; width: fit-content; margin-top: 10px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line-dark); text-align: left; font-weight: 500; color: var(--muted-on-dark); white-space: nowrap; }
.hours td { text-align: right; padding-left: 16px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--white); font-weight: 600; }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 106, 89, 0.16); color: #ff8a7c; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }
.map-card { position: relative; isolation: isolate; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); display: grid; place-items: center; text-align: center; }
.map-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 50% 46%, rgba(214, 58, 44, 0.25), transparent 30%),
  linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__inner { display: grid; gap: 16px; justify-items: center; padding: 32px; }
.map-card__pin { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--white); box-shadow: 0 0 0 12px rgba(214, 58, 44, 0.18); }
.map-card__pin .icon { width: 28px; height: 28px; }
.map-card__inner p { color: var(--muted-on-dark); max-width: 34ch; }
.map-card__inner strong { color: var(--white); font-family: var(--font-display); font-stretch: 112%; font-size: 1.4rem; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 28px; }
.form-section { display: grid; gap: 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; }
.form-section legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 0.8rem; vertical-align: 2px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font-weight: 600; font-size: 0.92rem; }
.field__label .optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 0.84rem; color: var(--muted); }
.field__error { display: none; font-size: 0.84rem; color: var(--accent-600); font-weight: 500; }
.field.has-error .field__error { display: block; }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid #d5d1c6; background: #fcfbf8; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b4a7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background-color: var(--white); box-shadow: 0 0 0 4px rgba(11, 13, 17, 0.08); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error .plate { border-color: var(--accent); }
.select:disabled { opacity: 0.55; cursor: not-allowed; }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: grid; gap: 10px; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid #d5d1c6; background: #fcfbf8; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.choice__box .icon { width: 24px; height: 24px; color: var(--muted); transition: color 0.2s; }
.choice__box strong { font-size: 0.95rem; line-height: 1.25; }
.choice__box small { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.choice input:hover + .choice__box { border-color: #b9b4a7; }
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 4px rgba(214, 58, 44, 0.25); }
.choice input:checked + .choice__box { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + .choice__box .icon { color: var(--accent); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--text); }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.form-actions p { font-size: 0.86rem; color: var(--muted); max-width: 46ch; }
.form-status { font-size: 0.92rem; font-weight: 500; }
.form-status--error { color: var(--accent-600); }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .icon--arrow { animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.form-success { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.form-success[hidden] { display: none; }
.form-success__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--rag-green); }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h2 { font-size: var(--step-3); }
.form-success p { color: var(--muted-on-dark); max-width: 58ch; }

/* Tyre finder */
.tyre-finder { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.97); color: var(--text); box-shadow: var(--shadow-lg); }
.tyre-finder__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; }
.tyre-finder__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tyre-finder .select { min-height: 52px; padding: 12px 36px 12px 14px; background-position: right 12px center; font-weight: 600; }
.tyre-finder__hint { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.tyre-finder__hint code { font-family: var(--font-display); font-weight: 700; color: var(--text); background: var(--paper); padding: 2px 8px; border-radius: 6px; }
.or-divider { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* LaunchBay embed */
.embed-shell { position: relative; min-height: 220px; }
.embed-shell [data-launchbay-embed] { min-height: 160px; }
.embed-shell.is-fallback [data-launchbay-embed] { display: none; }
.embed-fallback[hidden] { display: none; }
.embed-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; padding: 24px 0; }
.embed-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.embed-shell.is-ready .embed-loading, .embed-shell.is-fallback .embed-loading { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding-top: clamp(64px, 8vw, 104px); font-size: 0.95rem; }
.footer-top { display: grid; gap: 48px; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; } }
.footer-brand { display: grid; gap: 20px; align-content: start; color: var(--white); }
.footer-brand p { color: var(--muted-on-dark); max-width: 36ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.footer-hours dt { color: var(--white); font-weight: 500; }
.footer-hours dd { margin: 0; text-align: right; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 28px; font-size: 0.84rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { display: grid; gap: 18px; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: var(--step-2); color: var(--text); margin-top: 18px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--text); }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.8s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }

/* Smooth cross-fade between pages (Chrome, Edge, Safari 18.2+); other browsers load pages as normal */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: page-out 0.22s var(--ease) both; }
  ::view-transition-new(root) { animation: page-in 0.5s var(--ease-out) both; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.price-card__price--text { font-size: clamp(2rem, 3vw, 2.6rem); }
.split--top { align-items: start; }
@media (min-width: 960px) { .split--top > .split__body { position: sticky; top: calc(var(--header-h) + 32px); } }
.btn-row--center { justify-content: center; }
.list-gap { margin-top: 14px; }

/* ==========================================================================
   Motorsport photo treatment
   ========================================================================== */
:root {
  --cut: 28px;
  --race-cut: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --livery: linear-gradient(90deg, var(--accent) 0 56%, transparent 56% 61%, #fff 61% 70%, transparent 70% 75%, var(--accent) 75% 100%);
  --checker: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 11px 11px;
}

/* Fine film grain on every photo (the colour grade itself is baked into the images) */
.hero__media::after, .tile__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.55;
  background: var(--grain); background-size: 180px 180px;
}

/* Race-cut photo frames */
.split__media { overflow: visible; border-radius: 0; box-shadow: none; background: none; isolation: isolate; filter: drop-shadow(0 28px 40px rgba(11, 13, 17, 0.35)); }
.split__media img { clip-path: var(--race-cut); background: var(--ink-3); border-radius: 0; }
.split__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; clip-path: var(--race-cut); mix-blend-mode: overlay; opacity: 0.55;
  background: var(--grain); background-size: 180px 180px;
}
.split__media::after {
  content: ""; position: absolute; z-index: 2; left: -22px; bottom: 38px; width: 48%; height: 12px;
  background: var(--livery); transform: skewX(-32deg); pointer-events: none;
}
.tile { border-radius: 0; clip-path: var(--race-cut); }
.tile:hover { box-shadow: none; }

/* Livery stripes + chequered flag across the bottom of every header */
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: 0; right: -40px; bottom: 14px; width: min(560px, 52vw); height: 13px;
  background: var(--livery); transform: skewX(-35deg); pointer-events: none;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; z-index: 0; right: min(600px, 56vw); bottom: 14px; width: 132px; height: 13px;
  background: var(--checker); transform: skewX(-35deg); opacity: 0.55; pointer-events: none;
}
/* Keep the menu readable over bright photos */
.hero__overlay::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 240px; background: linear-gradient(180deg, rgba(11, 13, 17, 0.82), rgba(11, 13, 17, 0)); }

/* Race hang tags */
.hang-tag { position: absolute; z-index: 3; top: var(--hang, 26px); right: 28px; width: 132px; transform-origin: 50% calc(var(--hang, 26px) * -1); rotate: var(--tilt, -4deg); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .hang-tag { animation: tag-swing 4.2s ease-in-out infinite alternate; } }
@keyframes tag-swing { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.hang-tag__string { position: absolute; left: 50%; bottom: 100%; width: 2px; height: var(--hang, 26px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.85)); transform: translateX(-50%); }
.hang-tag__card {
  position: relative; display: grid; gap: 3px; padding: 26px 14px 12px; background: #f6f4ee; color: var(--ink); text-align: center;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}
.hang-tag__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.hang-tag__hole { position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); box-shadow: inset 0 0 0 2px #c9c4b8; transform: translateX(-50%); }
.hang-tag__label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hang-tag__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em; }
.hang-tag__meta { font-size: 0.68rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.hang-tag__checker { display: block; height: 9px; margin-top: 6px; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 9px 9px; }
.hang-tag--hero { display: none; }
@media (min-width: 1040px) { .hang-tag--hero { display: block; --hang: calc(var(--header-h) + 64px); right: 22%; width: 164px; } .hang-tag--hero .hang-tag__title { font-size: 1.7rem; } }
.tile .hang-tag { --hang: 22px; right: 30px; }
@media (max-width: 639px) { .hang-tag { width: 112px; right: 18px; } .hang-tag__title { font-size: 1.2rem; } }

/* ==========================================================================
   Booking page: booking panel beside the intro
   ========================================================================== */
.page-hero--booking { padding: calc(var(--header-h) + 32px) 0 clamp(56px, 6vw, 88px); }
.booking-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1040px) {
  .booking-layout { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 56px; }
  .booking-layout__intro { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 10px; }
}
.booking-layout__intro { display: grid; gap: 18px; justify-items: start; }
.page-hero--booking h1 { font-size: var(--step-4); }
.page-hero .checklist li { color: rgba(255, 255, 255, 0.78); }
.page-hero .checklist strong { color: var(--white); }
.booking-layout__call { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.95rem; }
.booking-layout__call strong { color: var(--white); }
.booking-layout__call:hover strong { color: #ff8a7c; }
.booking-layout__panel { position: relative; padding: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); clip-path: var(--race-cut); }
.booking-layout__panel .embed-shell { min-height: 420px; }
.booking-layout__panel .embed-loading { color: rgba(255, 255, 255, 0.72); padding: 40px 24px; }
.booking-layout__panel .form-card { box-shadow: none; color: var(--text); text-align: left; }
.booking-layout__panel .form-success { color: var(--white); }
.booking-layout__panel .embed-shell.is-ready { min-height: 0; }
/* Live widget trimmed to its own dark card on its start screen, and shown whole as a
   white card on its other screens (see cropEmbed / showWhole in main.js): no surrounding panel */
.booking-layout__panel.has-cropped-embed { padding: 0; background: none; border: 0; clip-path: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.booking-layout__panel.has-cropped-embed .embed-shell { animation: embed-in 0.7s var(--ease) both; }
.embed-shell.is-cropped, .embed-shell.is-cropped [data-launchbay-embed],
.embed-shell.is-whole, .embed-shell.is-whole [data-launchbay-embed] { display: flow-root; min-height: 0; }
.embed-shell.is-cropped, .embed-shell.is-whole { border-radius: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.85); }
@keyframes embed-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1039px) { .page-hero--booking .lead, .page-hero--booking .booking-layout__list { display: none; } }

/* Utility */
.mt-0 { margin-top: 0; }
.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
.full-bleed-line { height: 1px; background: var(--line); }
