/* ==========================================================================
   Cheshire Car Care — site styles
   Brand: near-black / off-white / signal red (#EE2F2E, sampled from the logo's triple slash)
   ========================================================================== */

:root {
  /* Colour tokens */
  --bg: #08090a;
  --bg-raised: #111214;
  --bg-card: #17181b;
  --line: #26282c;
  --line-strong: #3a3d42;
  --text: #f4f2ef;
  --text-muted: #b3b1ad;      /* 8.9:1 on --bg */
  --text-dim: #8b8984;        /* 5.4:1 on --bg — small print only */
  --accent: #ff4d47;          /* logo red, lifted for text on dark: 5.9:1 on --bg */
  --accent-brand: #ee2f2e;    /* exact logo red (graphics, dividers) */
  --accent-strong: #ff6a64;
  --accent-deep: #c81e1d;
  --btn: #d42120;             /* button fill: white text passes 5.3:1 */
  --btn-hover: #e52a28;
  --on-accent: #ffffff;
  --danger: #ff8a7a;
  --success: #9fdcaa;

  /* Type */
  --font-display: "Archivo", "Arial", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-stretch: 112%;

  /* Spacing (8pt rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --radius-lg: 8px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* Layers */
  --z-header: 100;
  --z-drawer: 200;
  --z-lightbox: 1000;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--btn); color: var(--on-accent); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 9999;
  background: var(--btn); color: var(--on-accent); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--display-stretch);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
.display {
  text-transform: uppercase;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 var(--s-4); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 12px; flex: none;
  background: repeating-linear-gradient(115deg, var(--accent-brand) 0 3px, transparent 3px 7px);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--raised { background: var(--bg-raised); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 5vw, 72px); max-width: 820px; }
.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 .9fr; gap: var(--s-7); }
}
.grid-2 { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--btn); color: var(--on-accent); }
.btn--accent:hover { background: var(--btn-hover); }
.btn--ghost { border-color: rgba(244, 242, 239, .45); color: var(--text); background: rgba(7,7,7,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid transparent; padding-block: 6px;
  transition: border-color var(--dur) var(--ease-out);
}
.link-arrow:hover { border-color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
  transition: opacity var(--dur) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(7,7,7,.88); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 1.6vw, 28px); }
.nav a {
  position: relative; display: inline-block; padding-block: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  opacity: .82; transition: opacity var(--dur-fast);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--text);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (min-width: 1200px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) var(--s-6);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 420ms var(--ease-out), visibility 0s linear 420ms;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-out), visibility 0s; }
.drawer-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.drawer nav { flex: 1; display: flex; align-items: center; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.drawer nav a {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 7.4vw, 2.6rem); line-height: 1.12; font-stretch: var(--display-stretch);
}
.drawer nav a[aria-current="page"] { color: var(--accent); }
.drawer-foot { display: grid; gap: var(--s-3); color: var(--text-muted); font-size: .95rem; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 8vw, 104px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease-out) forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7,7,7,1) 0%, rgba(7,7,7,.72) 32%, rgba(7,7,7,.15) 70%, rgba(7,7,7,.45) 100%),
    linear-gradient(to right, rgba(7,7,7,.7), rgba(7,7,7,0) 65%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero h1 { max-width: 16ch; margin-bottom: var(--s-5); }
.hero .lead { color: #dad8d4; margin-bottom: var(--s-6); }

.hero--page { min-height: 72svh; }
.hero--page h1 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); max-width: 18ch; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  margin-top: clamp(40px, 6vw, 72px); padding-top: var(--s-5);
  border-top: 1px solid rgba(245,243,239,.16);
  font-size: .85rem; color: #dad8d4;
}
.trust-strip li { display: flex; align-items: center; gap: var(--s-2); }
.trust-strip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.clean { list-style: none; padding: 0; }

/* ---------- Service feature cards (reference-style stacked image cards) ---------- */
.feature-stack { display: grid; gap: var(--s-4); }
.feature-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  border-radius: var(--radius-lg);
  display: flex; align-items: flex-end;
  padding: clamp(24px, 4vw, 56px);
  background: var(--bg-card);
}
.feature-card > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.feature-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(7,7,7,.94) 0%, rgba(7,7,7,.55) 45%, rgba(7,7,7,.05) 100%);
}
.feature-card:hover > img { transform: scale(1.04); }
.feature-body { max-width: 640px; margin-left: auto; }
.feature-card--left .feature-body { margin-left: 0; }
.feature-body .tag {
  display: inline-block; margin-bottom: var(--s-3);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.feature-body h3 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); text-transform: uppercase; font-weight: 800; }
.feature-body p { color: #dad8d4; }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.price-pill {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em;
}
.price-pill small { font-family: var(--font-body); font-size: .75rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

/* ---------- Before / After slider ---------- */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.ba--wide { aspect-ratio: 16 / 9; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--accent); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.ba-handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center;
  background: var(--btn); color: var(--on-accent); border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  pointer-events: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.ba-handle svg { width: 26px; height: 26px; }
.ba.is-dragging .ba-handle { transform: scale(1.08); }
.ba-label {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 2px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(7,7,7,.72); color: var(--text); backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-label--before { left: 16px; }
.ba-label--after { right: 16px; background: var(--btn); color: var(--on-accent); }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.ba-caption { margin-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.ba-caption h3 { font-size: 1.2rem; margin: 0; }
.ba-caption p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.ba-grid { display: grid; gap: clamp(40px, 5vw, 64px) var(--s-6); }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: var(--display-stretch); font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: var(--s-2); color: var(--text-muted); font-size: .9rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: var(--s-5); counter-reset: step; margin: 0; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li {
  counter-increment: step;
  padding: var(--s-6) var(--s-5); border-top: 1px solid var(--line-strong);
  transition: border-color var(--dur) var(--ease-out);
}
.process li:hover { border-color: var(--accent); }
.process li::before {
  content: "0" counter(step);
  display: block; margin-bottom: var(--s-5);
  font-family: var(--font-display); font-weight: 800; font-stretch: var(--display-stretch); font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.process h3 { font-size: 1.3rem; text-transform: uppercase; }
.process p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- Image + text split ---------- */
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5);
  background: linear-gradient(to top, rgba(7,7,7,.92), rgba(7,7,7,0));
  font-size: .85rem; color: #dad8d4;
}
.split-media figcaption strong { display: block; color: var(--accent); font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; }

.check-list { list-style: none; margin: var(--s-5) 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Partner logos ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6) var(--s-8); }
.partners img { width: auto; opacity: .7; transition: opacity var(--dur); }
.partners img:hover { opacity: 1; }
.partner-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); opacity: .85;
}

/* ---------- Pricing ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.tabs a {
  padding: 14px 4px; margin-right: var(--s-5); margin-bottom: -1px;
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur);
}
.tabs a:hover { color: var(--text); border-color: var(--accent); }

.price-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.price-card:hover { border-color: var(--accent-deep); transform: translateY(-3px); }
.price-card--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(238,47,46,.08), rgba(238,47,46,0) 60%), var(--bg-card); }
.price-card .badge {
  position: absolute; top: -12px; left: 24px;
  padding: 4px 10px; background: var(--btn); color: var(--on-accent);
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px;
}
.price-card h3 { font-size: 1.45rem; text-transform: uppercase; font-weight: 800; margin-bottom: var(--s-2); }
.price-card .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; color: var(--accent); margin: var(--s-3) 0 var(--s-1); font-variant-numeric: tabular-nums; }
.price-card .price small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; }
.price-from { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.price-card p { color: var(--text-muted); font-size: .95rem; }
.price-card .check-list { margin: var(--s-3) 0 var(--s-5); font-size: .93rem; }
.price-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-4); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .78rem; color: var(--text-muted);
}
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.price-card .btn { margin-top: var(--s-5); align-self: flex-start; }
.note { font-size: .85rem; color: var(--text-dim); border-left: 2px solid var(--accent-deep); padding-left: var(--s-3); }

.coating-table { width: 100%; border-collapse: collapse; margin-top: var(--s-5); }
.coating-table th, .coating-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.coating-table th { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.coating-table td:first-child { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.coating-table td:last-child { text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.coating-table th:last-child { text-align: right; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; min-height: 48px;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; color: var(--accent); flex: none; transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq-body { padding-bottom: var(--s-5); color: var(--text-muted); max-width: 72ch; }

/* ---------- Gallery ---------- */
.gallery { columns: 1; column-gap: var(--s-4); }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery button {
  display: block; width: 100%; margin: 0 0 var(--s-4); padding: 0; border: 0; background: var(--bg-card);
  border-radius: var(--radius-lg); overflow: hidden; break-inside: avoid; cursor: zoom-in;
}
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease-out), opacity var(--dur); }
.gallery button:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center; padding: 64px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: var(--radius); }
.lightbox button {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--text);
  transition: background-color var(--dur-fast);
}
.lightbox button:hover { background: rgba(238,47,46,.2); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews CTA ---------- */
.review-cta {
  display: grid; gap: var(--s-5); align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(238,47,46,.12), transparent 55%), var(--bg-card);
}
@media (min-width: 900px) { .review-cta { grid-template-columns: 1.4fr 1fr; } }
.stars { display: flex; gap: 4px; color: var(--accent); margin-bottom: var(--s-4); }
.stars svg { width: 22px; height: 22px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.cta-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,7,7,.78); }
.cta-band h2 { max-width: 16ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; margin-bottom: var(--s-6); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: var(--s-8); } }
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a52' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,47,46,.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .85rem; min-height: 0; }
.field .error:empty { display: none; }
.field .hint { color: var(--text-dim); font-size: .85rem; }
.form-status { padding: var(--s-4); border-radius: var(--radius); font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(159,220,170,.1); border: 1px solid rgba(159,220,170,.4); color: var(--success); }
.form-status.is-error { background: rgba(255,138,122,.08); border: 1px solid rgba(255,138,122,.4); color: var(--danger); }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.info-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: var(--s-5); }
.info-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-item svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.info-item strong { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 2px; }
.info-item a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.hours tr.is-today td { color: var(--accent); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-card); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); background: #050506; }
.footer-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); } }
.footer-brand img { height: 48px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { color: var(--text-muted); max-width: 34ch; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: .95rem; }
.footer-links a { color: var(--text-muted); display: inline-block; padding-block: 3px; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; }
.footer-base { border-top: 1px solid var(--line); padding-block: var(--s-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: .82rem; color: var(--text-dim); }

/* Mobile sticky call bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) - 1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform var(--dur) var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 56px; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: var(--bg); }
.mobile-bar a:last-child { background: var(--btn); color: var(--on-accent); }
.mobile-bar svg { width: 18px; height: 18px; }
@media (min-width: 1200px) { .mobile-bar { display: none; } }
@media (max-width: 1199px) { .site-footer { padding-bottom: 56px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

/* ---------- Chat assistant ---------- */
.chat { --chat-z: 150; }
.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--chat-z);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px;
  background: var(--btn); color: var(--on-accent); border: 0; border-radius: 999px;
  font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.chat-launcher:hover { background: var(--btn-hover); transform: translateY(-2px); }
.chat-launcher svg { width: 22px; height: 22px; }
.chat.is-open .chat-launcher { transform: scale(.9); opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: calc(var(--chat-z) + 1);
  width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn 260ms var(--ease-out);
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 10px 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238,47,46,.08), transparent), var(--bg);
}
.chat-head img { width: 96px; height: auto; flex: none; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.3; }
.chat-head p { margin: 0; font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(159,220,170,.18); }
.chat-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: none; border: 0; border-radius: 8px; color: var(--text-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.chat-icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.chat-icon-btn svg { width: 20px; height: 20px; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg p { margin: 0 0 6px; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.chat-msg li { margin: 2px 0; }
.chat-msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg--bot { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--btn); color: var(--on-accent); border-bottom-right-radius: 4px; white-space: pre-wrap; }

.chat-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: chatDot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-suggest[hidden] { display: none; }
.chat-chip {
  min-height: 36px; padding: 6px 12px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .82rem; color: var(--text);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.chat-form textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 1rem; line-height: 1.4; color: var(--text);
}
.chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238,47,46,.18); }
.chat-send {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--btn); color: var(--on-accent); border: 0; border-radius: 12px;
  transition: background-color var(--dur-fast), opacity var(--dur-fast);
}
.chat-send:hover { background: var(--btn-hover); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; }
.chat-send svg { width: 20px; height: 20px; }
.chat-foot { margin: 0; padding: 0 12px 10px; background: var(--bg); font-size: .72rem; color: var(--text-dim); text-align: center; }
.chat-foot a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 1199px) {
  .chat-launcher { bottom: calc(56px + 16px + env(safe-area-inset-bottom)); right: 16px; padding: 0; width: 56px; justify-content: center; }
  .chat-launcher-label { display: none; }
}
@media (max-width: 600px) {
  .chat-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 88px; z-index: 150;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-float-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  padding: 7px 12px; border-radius: 6px; white-space: nowrap;
  background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--text);
  font-size: .8rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast), transform var(--dur) var(--ease-out);
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: translateY(-50%); }
body.chat-open .wa-float { opacity: 0; transform: scale(.85); pointer-events: none; }
.info-item--wa svg { color: #25d366; }
@media (max-width: 1199px) {
  .wa-float { right: 16px; bottom: calc(56px + 16px + 56px + 12px + env(safe-area-inset-bottom)); }
  .wa-float-label { display: none; }
}

/* ---------- Cheshire Car Care additions ---------- */
/* Triple-slash brand motif (echoes the logo) */
.slashes { display: inline-block; width: 40px; height: 22px; background: repeating-linear-gradient(115deg, var(--accent-brand) 0 5px, transparent 5px 12px); }
.hero .slashes { margin-bottom: var(--s-5); }

/* Size-tier price table (PPF, detailing) */
.tier-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0; font-size: .95rem; }
.tier-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid var(--line); }
.tier-list li span:last-child { font-family: var(--font-display); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tier-list li:first-child span:last-child { color: var(--accent); }

/* Add-on rows */
.addon { margin-top: var(--s-4); padding: var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: .9rem; color: var(--text-muted); }
.addon strong { color: var(--text); }

/* Testimonials */
.quote-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .quote-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.quote-card { margin: 0; padding: clamp(24px, 3vw, 32px); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--s-4); }
.quote-card blockquote { margin: 0; color: #dad8d4; font-size: .98rem; }
.quote-card blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--accent-brand); margin-bottom: var(--s-2); }
.quote-card figcaption { margin-top: auto; font-size: .85rem; color: var(--text-muted); }
.quote-card figcaption strong { display: block; color: var(--text); font-size: .95rem; }
.quote-card .stars { margin-bottom: 0; }
.quote-card .stars svg { width: 16px; height: 16px; }

/* Client name strip */
.client-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: .9rem; }
.client-list li::before { content: "/"; color: var(--accent-brand); margin-right: var(--s-3); font-weight: 700; }

.partners img { filter: none; }
.facts { display: grid; gap: var(--s-2); }
