/* ==========================================================================
   Smartex Automotive
   Palette anchored to the client's logo: blue #2281D5, red #F03139, ink #211B2A
   ========================================================================== */

:root {
  /* color */
  --blue: oklch(0.60 0.14 251);            /* logo blue */
  --blue-hover: oklch(0.54 0.14 251);
  --blue-text: oklch(0.48 0.13 251);       /* small blue text on light washes, AA */
  --blue-deep: oklch(0.34 0.075 255);      /* contact band */
  --blue-wash: oklch(0.965 0.012 245);     /* hero / tinted sections */
  --blue-wash-edge: oklch(0.93 0.022 245);
  --red: oklch(0.60 0.21 24);              /* logo red: urgency + stars */
  --red-deep: oklch(0.44 0.16 26);         /* emergency band bg */
  --ink: oklch(0.245 0.02 295);            /* logo ink */
  --ink-soft: oklch(0.38 0.015 285);
  --body: oklch(0.32 0.015 285);
  --muted: oklch(0.48 0.012 285);
  --bg: #fff;
  --line: oklch(0.90 0.008 250);
  --line-strong: oklch(0.80 0.012 250);
  --card: #fff;
  --star-empty: oklch(0.88 0.01 250);
  --error: oklch(0.52 0.19 27);
  --error-bg: oklch(0.96 0.03 27);
  --ok: oklch(0.35 0.09 155);
  --ok-bg: oklch(0.95 0.03 155);

  /* type */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  /* radius, shadow, spacing */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 1px 2px oklch(0.3 0.02 260 / 0.05), 0 8px 24px -12px oklch(0.3 0.05 260 / 0.18);
  --shadow-pop: 0 2px 4px oklch(0.3 0.02 260 / 0.08), 0 20px 44px -16px oklch(0.3 0.06 260 / 0.3);
  --space-section: clamp(4.5rem, 4rem + 4vw, 8rem);
  --tap: 44px;

  /* z scale */
  --z-sticky: 10;
  --z-menu: 20;
  --z-callbar: 30;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* The UA stylesheet scopes [hidden] to the HTML namespace, so an inline SVG
   with `hidden` (the icon sprite) would still reserve its default 300x150 box. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }

p { margin: 0; max-width: 68ch; }

.shell {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Inline icons drawn once in the <svg hidden> sprite */
svg:has(> use) {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- focus ---------- */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.btn-call:focus-visible,
.mobile-bar-call:focus-visible { outline-color: var(--ink); }
.service-featured :focus-visible,
.emergency :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }
.callback-form :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0; outline-color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  min-height: var(--tap);
  padding: 0.9rem 1.5rem;
  border-radius: var(--r-sm);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), color 0.2s;
}

.btn svg { width: 1.15em; height: 1.15em; }

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }

.btn-lg { padding: 1.1rem 1.75rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-call { background: var(--blue); color: #fff; padding: 0.7rem 1.15rem; font-size: 0.95rem; }
.btn-call:hover { background: var(--blue-hover); }

.btn-emergency {
  background: #fff;
  color: var(--red-deep);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem);
  padding: 1.2rem 2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
}
.btn-emergency:hover { transform: translateY(-2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--tap);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.text-link svg { width: 1.1em; height: 1.1em; transition: translate 0.25s var(--ease-out); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover svg { translate: 4px 0; }

/* ---------- stars ---------- */

.stars {
  display: inline-flex;
  gap: 0.15em;
  color: var(--red);
}
.stars svg { width: 1.05em; height: 1.05em; fill: currentColor; stroke: none; }

/* Partial rating: grey base row with a red row clipped to --rating/5 on top */
.rating-stars {
  position: relative;
  display: inline-grid;
  line-height: 0;
}
.rating-stars-base,
.rating-stars-fill {
  grid-area: 1 / 1;
  display: inline-flex;
  gap: 0.15em;
  white-space: nowrap;
}
.rating-stars-base { color: var(--star-empty); }
.rating-stars-fill {
  color: var(--red);
  overflow: hidden;
  width: calc(var(--rating, 5) / 5 * 100%);
}
.rating-stars svg { width: 1.05em; height: 1.05em; fill: currentColor; stroke: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px oklch(0.3 0.03 260 / 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
  transition: min-height 0.3s var(--ease-out);
}

.brand { flex: none; display: flex; align-items: center; min-height: var(--tap); }
.brand img { width: 152px; height: auto; transition: width 0.3s var(--ease-out); }

.main-nav {
  display: flex;
  gap: 1.9rem;
  margin-inline: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.99rem;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap); height: var(--tap);
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--blue-wash), var(--blue-wash-edge));
  padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.trust-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  min-height: var(--tap);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px oklch(0.3 0.02 260 / 0.06), 0 0 0 1px var(--blue-wash-edge);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.trust-rating strong { color: var(--ink); font-weight: 800; }
.trust-rating:hover { box-shadow: 0 1px 2px oklch(0.3 0.02 260 / 0.06), 0 0 0 1.5px var(--blue); }

.hero-lede {
  margin-top: 1.2rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.6;
}
.hero-lede strong { color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Plate-first entry */
.plate-form { margin-top: 1.75rem; }
.plate-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.plate-row { display: flex; gap: 0.6rem; align-items: stretch; }
.plate-input {
  flex: 1 1 9rem;
  min-width: 0;
  min-height: var(--tap);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-left: 0.9rem solid var(--blue);          /* nod to the UK plate's blue band */
  border-radius: var(--r-sm);
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plate-input::placeholder { color: oklch(0.72 0.01 285); text-transform: uppercase; }
.plate-input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.6 0.14 251 / 0.2);
}
.plate-row .btn { flex: none; }

.cta-note {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.btn-hero-call { margin-top: 1.5rem; }
.btn-hero-call + .cta-note { margin-top: 0.5rem; }

/* Open / closed indicator, driven by script.js */
.open-status { font-weight: 600; }
.open-status::before {
  content: "";
  display: inline-block;
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.4em;
  vertical-align: 0.05em;
}
.open-status.is-open { color: oklch(0.46 0.14 150); }
.open-status.is-closed { color: var(--ink-soft); }
.open-status-light.is-open { color: oklch(0.82 0.16 150); }
.open-status-light.is-closed { color: oklch(0.85 0.03 250); }

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 7 / 5;
}

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 66% 42%;   /* keep the mechanic + van in frame */
}

/* Logo sting: plays once over the photo on load (desktop only), then crossfades away.
   Without JS (or with reduced motion) only the photo shows. */
.hero-sting {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s 0.9s;
}

.hero-media.stinging .hero-sting {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .hero-sting { display: none; }
}

/* ---------- sections ---------- */

section { padding-block: var(--space-section); }

/* ---------- guarantee strip ---------- */

.guarantees {
  padding-block: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.guarantee-strip {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guarantee-strip li {
  display: grid;
  gap: 0.15rem;
  padding: 1.35rem 1.25rem;
  border-left: 1px solid var(--line);
}
.guarantee-strip li:first-child { border-left: 0; padding-left: 0; }

.guarantee-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.guarantee-strip strong .stars { font-size: 0.8em; }
.guarantee-strip span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- slim breakdown line ---------- */

.emergency-line {
  display: block;
  background: var(--red-deep);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}
.emergency-line:hover { background: oklch(0.40 0.16 26); }
.emergency-line .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding-block: 0.5rem;
  text-align: center;
}
.emergency-line svg { width: 1.1em; height: 1.1em; }
.emergency-line-text { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.5rem; }
.emergency-line strong { font-weight: 800; }
.emergency-line:focus-visible { outline-color: #fff; outline-offset: -4px; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { margin-top: 1rem; font-size: 1.1rem; }

/* ---------- services ---------- */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: start;
}

.service-featured {
  background: var(--blue-deep);
  color: oklch(0.9 0.015 250);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}

.service-featured h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.service-featured > p { margin-top: 0.9rem; font-size: 1rem; }

.tier-list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.tier-list li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1.4rem;
  position: relative;
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: oklch(0.72 0.11 250);
}

.tier-list strong { color: #fff; font-size: 1.05rem; }
.tier-list span { font-size: 0.95rem; line-height: 1.5; }

.service-featured .text-link { color: oklch(0.85 0.07 250); }

/* Six services as a two-column list: icon · text · price slot */
.service-tiles {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon body";
  column-gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  background: var(--card);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.tile:hover {
  border-color: oklch(0.78 0.08 250);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.tile-icon {
  grid-area: icon;
  width: 2.1rem; height: 2.1rem;
  fill: none; stroke: var(--blue);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.tile-body { grid-area: body; }
.tile h3 { font-size: 1.1rem; }
.tile p { margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.5; }

.tile-proof {
  margin-top: 0.7rem !important;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem !important;
  color: var(--ink-soft);
  font-style: italic;
}
.tile-proof cite {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}

/* With an odd number of services, the last one spans the two-column grid */
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- how it works ---------- */

.how {
  background: var(--blue-wash);
  padding-block: calc(var(--space-section) * 0.8);
  --steps-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.how .section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
}

.steps li { position: relative; }

/* dashed connector from each number to the next */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 3.75rem;
  right: calc(-1 * var(--steps-gap) + 0.75rem);
  border-top: 2px dashed var(--line-strong);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}

.steps h3 { margin-top: 1.1rem; }
.steps p { margin-top: 0.5rem; font-size: 0.98rem; }

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}

.why-statement { position: sticky; top: 6.5rem; }
.why-statement p { margin-top: 1.25rem; font-size: 1.1rem; }
.why-statement .btn { margin-top: 1.75rem; }

.why-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
}

.why-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h3 { font-size: 1.15rem; }
.why-list p { margin-top: 0.4rem; font-size: 0.98rem; }
.why-list a { color: var(--blue); font-weight: 600; }

/* Meet your mechanic */
/* Sits outside .why-grid so the sticky statement can't slide over it */
.mechanic {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--blue-wash);
  align-items: center;
}

.mechanic-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 30% 20%, oklch(0.95 0.02 250) 0%, transparent 60%),
    linear-gradient(160deg, var(--blue-wash-edge), oklch(0.86 0.05 250));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mechanic-photo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 4rem + 5vw, 9rem);
  color: #fff;
  line-height: 1;
}
.mechanic-photo img { width: 100%; height: 100%; object-fit: cover; }

.mechanic-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.mechanic h3 { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.mechanic-body > p:not(.mechanic-eyebrow) { margin-top: 0.8rem; font-size: 1rem; }

.mechanic-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
}
.mechanic-stats div { border-left: 2px solid var(--blue); padding-left: 0.85rem; }
.mechanic-stats dt { font-size: 0.82rem; color: var(--muted); }
.mechanic-stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- emergency ---------- */

.emergency {
  background: var(--red-deep);
  padding-block: clamp(3.5rem, 3rem + 2.5vw, 5.5rem);
}

.emergency-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.emergency h2 { color: #fff; }

.emergency-copy > p { margin-top: 0.9rem; color: oklch(0.92 0.03 25); font-size: 1.1rem; }

.emergency-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.emergency-services li {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid oklch(0.75 0.1 25 / 0.7);
  border-radius: 999px;
}

.emergency-copy > .emergency-after {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: oklch(0.88 0.04 25);
}

.emergency-action { display: grid; justify-items: start; gap: 0.9rem; }
.emergency-action p { color: oklch(0.9 0.04 25); font-size: 0.95rem; }

/* ---------- reviews ---------- */

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.reviews-head .section-head { margin-bottom: 0; flex: 1 1 28rem; }

.rating-badges { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.rating-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num stars" "num label";
  column-gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rating-badge:hover { border-color: oklch(0.78 0.08 250); box-shadow: var(--shadow-card); }
.rating-badge strong {
  grid-area: num;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.rating-badge .rating-stars { grid-area: stars; font-size: 0.95rem; }
.rating-badge small { grid-area: label; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

.review-track {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}

.review .stars { font-size: 0.95rem; margin-bottom: 0.9rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { color: var(--ink); font-weight: 500; font-size: 1rem; line-height: 1.55; }

.review footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.review footer strong { color: var(--ink); font-weight: 700; }
.review footer span { grid-column: 1 / -1; }
.review footer time { grid-row: 1; grid-column: 2; color: var(--muted); font-variant-numeric: tabular-nums; }

.reviews-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin-top: 1.5rem;
}
.reviews-foot .text-link svg { width: 1em; height: 1em; }

/* ---------- contact ---------- */

.contact { background: var(--blue-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}

.contact h2 { color: #fff; }
.contact-info > p { margin-top: 1.1rem; color: oklch(0.88 0.02 250); font-size: 1.05rem; }

.contact-status { margin-top: 1rem; font-size: 0.95rem; }

.hours { margin: 1.5rem 0 0; max-width: 24rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid oklch(0.45 0.06 255);
}
.hours dt { color: oklch(0.85 0.03 250); }
.hours dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

.contact-lines { display: grid; gap: 0.25rem; margin-top: 1.5rem; justify-items: start; }
.contact-lines a {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: var(--tap);
  color: #fff; font-weight: 700; text-decoration: none;
  font-size: 1.05rem;
}
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-lines svg { width: 1.2em; height: 1.2em; color: oklch(0.78 0.09 250); }

.next-steps-title {
  margin-top: 2.25rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.next-steps {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
  display: grid;
  gap: 0.7rem;
  max-width: 26rem;
}
.next-steps li {
  counter-increment: next;
  position: relative;
  padding-left: 2.5rem;
  color: oklch(0.85 0.03 250);
  font-size: 0.95rem;
  line-height: 1.5;
}
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: oklch(0.72 0.11 250);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}
.next-steps strong { color: #fff; }

.callback-form {
  scroll-margin-top: 5.5rem;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  box-shadow: var(--shadow-pop);
  display: grid;
  gap: 1.2rem;
}

.callback-form h3 { font-size: 1.35rem; font-weight: 800; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--muted); }

.callback-form input,
.callback-form textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  width: 100%;
  min-height: var(--tap);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder { color: oklch(0.55 0.01 285); opacity: 1; text-transform: none; }

.callback-form input:focus-visible,
.callback-form textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.6 0.14 251 / 0.2);
}

.reg-input { max-width: 14rem; }
.reg-input:not(:placeholder-shown) { text-transform: uppercase; }
.callback-form textarea { resize: vertical; min-height: 6rem; }

.field-error { display: none; font-size: 0.88rem; font-weight: 600; color: var(--error); }
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus-visible { box-shadow: 0 0 0 3px oklch(0.52 0.19 27 / 0.2); }

/* Vehicle matched from the registration */
.vehicle-found {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ok);
  line-height: 1.45;
}
.vehicle-found[hidden] { display: none; }
.vehicle-found svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
  margin-top: 0.15em;
}
.vehicle-found .vehicle-extra { display: block; font-weight: 500; color: var(--muted); }
.vehicle-found.is-checking { color: var(--muted); }
/* Hero version: sits between the plate box and the callback note */
.vehicle-found-hero {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.vehicle-found-hero .vehicle-extra { font-size: 0.88rem; }

.form-privacy { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status svg {
  width: 1.35em; height: 1.35em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
  margin-top: 0.1em;
}
.form-success { background: var(--ok-bg); color: var(--ok); }
.form-error { background: var(--error-bg); color: var(--error); }
.form-error a { color: inherit; font-weight: 700; }

/* ---------- copy toast (tel: / mailto: on desktop) ---------- */

.has-copy-toast { position: relative; }

.copy-toast {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: var(--z-menu);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.site-header .copy-toast { bottom: auto; top: calc(100% + 0.5rem); left: auto; right: 0; transform: translateY(-4px); }
.copy-toast.show { opacity: 1; transform: none; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: oklch(0.78 0.01 285);
  padding-block: 3.5rem 5.5rem;   /* extra bottom room for the mobile call bar */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.footer-wordmark span { color: oklch(0.72 0.11 250); }

.footer-tag { margin-top: 0.4rem; font-size: 0.95rem; }

.footer-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid oklch(0.35 0.015 290);
  border-radius: var(--r-sm);
  color: oklch(0.82 0.01 285);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s;
}
.footer-rating:hover { border-color: oklch(0.55 0.02 290); color: #fff; }
.footer-rating strong { color: #fff; }
.footer-rating .rating-stars { font-size: 0.95rem; }
.footer-rating .rating-stars-base { color: oklch(0.4 0.015 290); }

.footer-nav { display: grid; justify-items: start; }
.footer-nav a, .footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: oklch(0.82 0.01 285);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-contact { display: grid; justify-items: start; }
.footer-hours { margin-top: 0.5rem; font-size: 0.9rem; color: oklch(0.65 0.01 285); }

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.35 0.015 290);
  font-size: 0.85rem;
  color: oklch(0.68 0.01 285);
}

/* ---------- mobile bar: Call · Request callback ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  z-index: var(--z-callbar);
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.mobile-bar a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 0.6rem;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-bar svg { width: 1.15em; height: 1.15em; }
.mobile-bar-call { background: var(--blue); color: #fff; }
.mobile-bar-callback { background: var(--blue-wash); color: var(--blue-text); }

/* With JS the bar stays tucked away until the hero has scrolled out of view */
html.js .mobile-bar { transform: translateY(130%); opacity: 0; }
html.js .mobile-bar.show { transform: none; opacity: 1; }

/* ==========================================================================
   Reveal motion: additive only, content is fully visible without JS.
   ========================================================================== */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

html.js [data-reveal].in { opacity: 1; transform: none; }

/* gentle stagger inside grids */
html.js .service-tiles .tile:nth-child(2),
html.js .steps li:nth-child(2),
html.js .review-track .review:nth-child(2),
html.js .why-list li:nth-child(2) { transition-delay: 0.08s; }

html.js .service-tiles .tile:nth-child(3),
html.js .steps li:nth-child(3),
html.js .review-track .review:nth-child(3),
html.js .why-list li:nth-child(3) { transition-delay: 0.16s; }

html.js .service-tiles .tile:nth-child(4),
html.js .review-track .review:nth-child(4),
html.js .why-list li:nth-child(4) { transition-delay: 0.24s; }

html.js .service-tiles .tile:nth-child(5),
html.js .review-track .review:nth-child(5),
html.js .why-list li:nth-child(5) { transition-delay: 0.32s; }

html.js .service-tiles .tile:nth-child(6),
html.js .review-track .review:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .text-link svg, .copy-toast, .mobile-bar, .brand img, .header-row { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .service-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px oklch(0.3 0.03 260 / 0.3);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:last-child { border-bottom: 0; }

  .nav-toggle { display: flex; }

  .hero-grid,
  .why-grid,
  .emergency-grid,
  .contact-grid,
  .mechanic { grid-template-columns: 1fr; }

  .guarantee-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantee-strip li { padding: 1rem 0.9rem; }
  .guarantee-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .guarantee-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .guarantee-strip strong { font-size: 1.25rem; }
  .guarantee-strip span { font-size: 0.85rem; }

  .services-layout { grid-template-columns: 1fr; }
  .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-statement { position: static; }

  .hero-media { aspect-ratio: 16 / 10; }

  /* steps: number beside the title, no connectors */
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
  .steps li::after { display: none; }
  .step-num { grid-row: 1 / 3; width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
  .steps h3 { margin-top: 0; }
  .steps p { margin-top: 0.25rem; }

  .mechanic-photo { max-width: 22rem; aspect-ratio: 5 / 4; }

  .review-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 4.5rem; }
  :root { --space-section: 3.5rem; }
  .section-head { margin-bottom: 2rem; }

  /* header shrinks once scrolling so it takes less of a small screen */
  .header-row { min-height: 4.25rem; }
  .site-header.scrolled .header-row { min-height: 3.5rem; }
  .site-header.scrolled .brand img { width: 112px; }

  .btn-call span { display: none; }        /* icon-only in header */
  .btn-call { padding: 0.7rem; width: var(--tap); }

  .btn-hero-call { width: 100%; }
  .plate-row { flex-wrap: wrap; }
  .plate-row .btn { flex: 1 1 100%; }
  .plate-input { flex: 1 1 100%; font-size: 1.5rem; text-align: center; padding-left: 0; }
  .hero-media { aspect-ratio: 16 / 9; }
  .emergency-line { font-size: 0.92rem; }
  .emergency-line .shell { justify-content: flex-start; text-align: left; gap: 0.8rem; }
  .emergency-line-text { justify-content: flex-start; line-height: 1.35; }

  .field-row { grid-template-columns: 1fr; }

  .mobile-bar { display: flex; }

  /* services: compact rows, price pill beside the title */
  .service-tiles { grid-template-columns: 1fr; gap: 0.75rem; }
  .tile {
    padding: 0.9rem 1rem;
  }
  .tile-icon { width: 1.7rem; height: 1.7rem; margin-top: 0.1rem; }
  .tile h3 { font-size: 1.02rem; }
  .tile p { font-size: 0.88rem; margin-top: 0.2rem; }
  .service-featured > p { font-size: 0.95rem; }

  .tier-list { gap: 0.8rem; }
  .tier-list span { font-size: 0.9rem; }

  .emergency-action { justify-items: stretch; }
  .btn-emergency { width: 100%; }

  /* reviews: one swipeable row with edge peek */
  .review-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 20rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.5rem;
    margin-inline: calc(-1 * (100vw - 100%) / 2);
    scrollbar-width: none;
  }
  .review-track::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }

  .rating-badges { width: 100%; }
  .rating-badge { flex: 1 1 0; padding: 0.75rem 0.85rem; column-gap: 0.6rem; }
  .rating-badge strong { font-size: 1.7rem; }
  .rating-badge small { white-space: normal; line-height: 1.3; }
  .rating-badge .rating-stars { font-size: 0.8rem; }

  .mechanic { padding: 1.5rem; gap: 1.25rem; }
  .mechanic-photo { max-width: none; aspect-ratio: 16 / 9; }
  .mechanic-photo span { font-size: 4.5rem; }
  .mechanic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
  .mechanic-stats dd { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .site-footer { padding-block: 2.5rem 5.5rem; }
  .footer-legal { margin-top: 2rem; }
}

/* ---------- standalone pages: privacy notice, 404 ---------- */

.page-main { padding-block: clamp(3rem, 2.5rem + 3vw, 5.5rem) var(--space-section); }
.page-main .shell { max-width: 46rem; }
.page-main h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem); line-height: 1.1; }
.page-lede { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); }
.page-meta { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

.prose h2 { font-size: 1.4rem; line-height: 1.25; margin-top: 2.5rem; }
.prose p, .prose ul { margin-top: 0.85rem; }
.prose ul { padding-left: 1.2rem; max-width: 68ch; }
.prose li + li { margin-top: 0.35rem; }
.prose a { color: var(--blue-text); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.form-privacy a, .footer-legal a { color: inherit; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }
