/* ==========================================================================
   Milners Automotive Repairs — slate design system
   Palette per milners-design-spec.md. One colour family, no accents.
   ========================================================================== */

:root {
  /* Slate palette — do not introduce colours outside the spec */
  --page-base: #191D27;
  --hero-centre: #454F5E;
  --hero-edge: #343D4A;
  --nav: #55606F;
  --band-services: #4A5563;
  --band-light: #69737F;
  --footer: #5C6572;
  --stroke: #AAB2BD;
  --heading: #EEF1F4;
  --subheading: #D3D8E0;
  --muted: #AAB2BD;
  --btn-fill: #EEF1F4;
  --btn-text: #333B47;

  /* Derived tints (same family, alpha only) */
  --panel: rgba(25, 29, 39, 0.28);
  --panel-strong: rgba(25, 29, 39, 0.45);
  --line: rgba(170, 178, 189, 0.35);
  --line-soft: rgba(170, 178, 189, 0.2);

  --radius: 5px;
  --radius-lg: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* overflow-x: clip (never hidden) — hidden creates a nested scroll
     container on mobile and wrecks scrolling. See CLAUDE.md §2. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page-base);
  color: var(--subheading);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-fill);
  color: var(--btn-text);
  padding: 10px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Keeps a phrase on one line so a hyphen/dash can never land at the start or
   end of a wrapped line (used on date/time ranges and dash-joined phrases). */
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--stroke);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.section-lead { max-width: 46rem; color: var(--subheading); }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
/* CL-01 — one shared hover for every clickable control: a slight pop-out
   (lift + scale) with a soft highlight shadow. Reused via .hover-pop below. */
.btn:hover,
.hover-pop:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(25, 29, 39, 0.3); }
.btn:active,
.hover-pop:active { transform: translateY(0) scale(1); }

.btn--solid { background: var(--btn-fill); color: var(--btn-text); }
.btn--solid:hover { background: #ffffff; }

.btn--outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--stroke);
}
.btn--outline:hover { border-color: var(--heading); }

.btn--small { padding: 9px 18px; font-size: 0.95rem; }
.btn .btn-icon { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Header / navigation — solid slate, no backdrop-filter (mobile paint cost)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  border-bottom: 1px solid var(--line-soft);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

/* Nav logo: the full horizontal lockup — M-wrench emblem + wordmark
   (milners-logo.svg, ratio ~5.04), sized by height with auto width. It sits
   directly on the nav colour — transparent SVG, no panel/box behind it. */
.brand { flex: none; display: inline-flex; align-items: center; transition: transform 0.15s ease; }
.brand img { width: auto; height: 54px; object-fit: contain; display: block; }
.brand:hover { transform: translateY(-2px) scale(1.02); } /* CL-02 logo pop */

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 13px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
}
.nav-links a:hover { background: rgba(238, 241, 244, 0.12); }
/* the CTA button inside the menu must keep its dark-on-pale colours —
   .nav-links a (0,1,1) otherwise outranks .btn--solid (0,1,0) */
.nav-links a.btn--solid { color: var(--btn-text); background: var(--btn-fill); text-align: center; }
.nav-links a.btn--solid:hover { background: #ffffff; }
.nav-links a[aria-current="page"] {
  background: rgba(25, 29, 39, 0.3);
}

.nav-cta { flex: none; margin-left: 6px; }

.nav-whatsapp {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366; /* WhatsApp brand green — social icons are coloured per brief */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-whatsapp:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(25, 29, 39, 0.3); }
.nav-whatsapp svg { width: 24px; height: 24px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  content: "";
  width: 22px;
  height: 2px;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--nav);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { display: none; } /* CTA lives inside the open menu on mobile */
  .nav-links .nav-links-cta { margin-top: 8px; }
  .nav-links .nav-links-cta .btn { width: 100%; }
  .brand img { height: 38px; }
}
@media (min-width: 961px) {
  .nav-links .nav-links-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    /* slate overlay so the pale headline stays crisp over the photo */
    radial-gradient(ellipse at 50% 35%, rgba(69, 79, 94, 0.82), rgba(52, 61, 74, 0.94) 75%),
    url("../images/hero-diagnostics.jpg") center 30% / cover no-repeat;
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 1.125rem;
  color: var(--subheading);
  max-width: 34rem;
  margin-bottom: 26px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--subheading);
  font-weight: 600;
  font-size: 0.98rem;
}
.trust-points li { display: inline-flex; align-items: center; gap: 9px; }
.trust-points svg { width: 17px; height: 17px; flex: none; }

/* Right column: garage photo on top, reviews card beneath (per brief).
   CL-04 — photo and reviews box share the full column width so all edges
   line up flush (stretch, not end-aligned to different widths). */
.hero-side { display: grid; gap: 16px; justify-items: stretch; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
}
.hero-photo img { width: 100%; height: 300px; object-fit: cover; }

.hero-reviews { width: 100%; }

/* --------------------------------------------------------------------------
   Rotating Google reviews card
   -------------------------------------------------------------------------- */

.review-card {
  background: var(--hero-edge);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card-head .g-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--subheading);
  font-size: 0.88rem;
  font-weight: 700;
}
.review-card-head .g-badge svg { width: 18px; height: 18px; }

.review-summary { color: var(--subheading); font-size: 0.88rem; font-weight: 600; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

.review-quote {
  min-height: 116px;
  transition: opacity 0.45s ease;
}
.review-quote.is-fading { opacity: 0; }

.review-quote blockquote {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 0.98rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.review-attribution img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
}
.review-attribution .who { color: var(--subheading); font-weight: 700; }

.review-empty { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Reviews page grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.reviews-grid .review-card { background: var(--panel-strong); }
.reviews-grid .review-quote { min-height: 0; }
.reviews-grid .review-quote blockquote { -webkit-line-clamp: 8; }

.rating-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 8px;
}
.rating-hero .big-score { font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; }
.rating-hero .stars svg { width: 24px; height: 24px; }

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

.band { padding: clamp(52px, 7vw, 88px) 0; }
.band--services { background: var(--band-services); }
.band--light { background: var(--band-light); }
.band--light .section-lead,
.band--light p { color: #F3F5F8; }
.band--deep { background: var(--hero-edge); }
.band--base { background: var(--page-base); }

/* --------------------------------------------------------------------------
   Service cards — M emblem tucked bottom-right of every card
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  align-items: stretch; /* cards fill their row's height */
  gap: 18px;
  margin-top: 36px;
}

.service-card {
  position: relative;
  /* vertical column so the request link can be pushed to the bottom, keeping
     every link on the same baseline across a row despite 2–4 line descriptions */
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px 34px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
/* Cards highlight on hover — visual only, they don't navigate (icons unlinked;
   the "Request this service" link is the only way through). */
.service-card:hover { border-color: var(--stroke); transform: translateY(-2px); }

.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--subheading); font-size: 0.97rem; margin: 0; }

/* PNG service icons on a light-grey disc — per milners-icons-integration.md §2.
   The icons are mid-grey and were disappearing straight on the #4A5563 card
   (~1–2:1 contrast). The #D3D8E0 disc lifts every one to 3:1 or better. */
.service-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #EEF1F4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  /* The icon is decorative and no longer a link — no hover/focus of its own. */
}
/* <picture> wrapping the WebP/PNG icon should not affect flex centring */
.service-badge picture, .why-item__badge picture { display: contents; }
.service-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
/* The Service + MOT icon ships noticeably lighter (pale silver) than the rest
   of the set, which are naturally dark gunmetal — measured ~160 mean-grey vs
   ~90–130 across the other icons. Darken just this one, scoped by the card's
   #service-mot id, so it matches its row-mates (the wrench + MOT icons); the
   filter lands it at ~107, mid-set. No other icon is affected. */
#service-mot .service-badge img { filter: brightness(0.68) contrast(1.12); }

.service-card .request-link {
  display: inline-block;
  margin-top: auto;       /* pin to the bottom of the card */
  padding-top: 12px;      /* preserve the old minimum gap under the description */
  align-self: flex-start; /* keep the link hugging its text, not the full card width */
  color: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
}

/* the quiet M emblem — a faint tone-on-tone watermark in the card's OWN colour.
   The new mark is transparent white; soft-light + low opacity lifts the card's
   existing hue a touch rather than adding a distinct lighter tone or a box. */
.card-emblem {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 44px;
  height: 32px;
  object-fit: contain;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Why choose / commitment — hexagon outline icons
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 18px;
  margin-top: 38px;
}

.why-item { text-align: center; padding: 0 8px; }
.why-item .hex {
  display: block;
  width: 64px;
  height: 70px;
  margin: 0 auto 14px;
  color: #E7EBF0;
}
.why-item .hex svg { width: 100%; height: 100%; }
.why-item h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.why-item p { color: #F3F5F8; font-size: 0.96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Why choose Milners — PNG badge icons on dark discs.
   Ported from milners-why-choose.html. Rules are scoped under .why because the
   reference's `.why-item` class name collides with the older hexagon
   "Our commitment" block still used on the About page.
   -------------------------------------------------------------------------- */

.why { background: var(--band-light); padding: 56px 28px 44px; }
.why__inner { max-width: var(--container); margin: 0 auto; }
.why__title { text-align: center; color: var(--heading); font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.why__intro {
  text-align: center;
  color: var(--subheading);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.why .why__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.why .why-item { text-align: center; padding: 6px 18px; }
.why .why-item + .why-item { border-left: 1px solid var(--nav); }
.why .why-item__badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--page-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.why .why-item__badge img { width: 44px; height: 44px; object-fit: contain; display: block; }
/* CL-05 — "Our commitment" reuses this dark-disc treatment with SVG icons */
.why .why-item__badge svg { width: 38px; height: 38px; color: var(--stroke); }
.why--commitment .why__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) {
  .why--commitment .why__grid { grid-template-columns: 1fr; gap: 28px 0; }
  .why--commitment .why-item + .why-item { border-left: none; }
}
.why .why-item__title {
  color: var(--heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 12px 0 7px;
  line-height: 1.3;
}
.why .why-item__desc { color: var(--subheading); font-size: 13px; line-height: 1.55; margin: 0; }

.why__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--band-services);
  border-radius: 8px;
  padding: 16px 24px;
  margin-top: 36px;
}
.why__bar span {
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
}
.why__serve {
  text-align: center;
  margin: 18px 0 0;
  color: var(--subheading);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.why__serve span { color: var(--muted); margin: 0 9px; font-weight: 400; }

/* --------------------------------------------------------------------------
   Quick-contact cards (used above the booking form as useful content that also
   gives the embedded form a head start to load). Slate palette — no accents.
   -------------------------------------------------------------------------- */

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* all four on one row at full width */
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
/* Only go 4-across when the cards are wide enough to hold the email on one
   line; drop to 2 columns below that, and 1 on phones. */
@media (max-width: 1100px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .info-cards { grid-template-columns: 1fr; } }
/* Guarantee the email address never breaks onto a second line. The displayed
   address is set a touch smaller so it fits comfortably in the narrowest
   4-across card; the "Send an email" action keeps the standard size so it stays
   consistent with the other aligned action links. */
.info-card a[href^="mailto:"] { white-space: nowrap; }
.info-card p:not(.info-card__action) a[href^="mailto:"] { font-size: 0.82rem; }

.info-card {
  position: relative; /* for the M emblem watermark */
  overflow: hidden;
  display: flex;
  flex-direction: column; /* lets the action link pin to the bottom */
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
}
.info-card p, .info-card a { overflow-wrap: anywhere; } /* long email / address won't spill */
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--page-base);
  color: var(--stroke);
  margin-bottom: 14px;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.info-card p { margin: 0 0 4px; color: var(--subheading); font-size: 0.9rem; }
.info-card a { color: var(--heading); font-weight: 600; }
/* Push the action link to the bottom so "Tap to call", "Send an email" and
   "Get directions" line up across the row (cards are equal height). */
.info-card .info-card__action { margin-top: auto; padding-top: 14px; }
.info-card .info-card__action a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .why .why__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .why .why-item + .why-item { border-left: none; }
  .why .why-item:nth-child(even) { border-left: 1px solid var(--nav); }
}
@media (max-width: 480px) {
  .why .why__grid { grid-template-columns: 1fr; }
  .why .why-item:nth-child(even) { border-left: none; }
  .why__bar span { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Booking page — link out to Jotform's hosted form (not an iframe embed, which
   broke the mobile photo upload). A single prominent CTA under the intro copy.
   -------------------------------------------------------------------------- */

.booking-cta {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
}
.booking-cta__lead {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
/* A touch larger than the standard button — this is the page's primary action. */
.btn--book {
  padding: 15px 32px;
  font-size: 1.05rem;
}
.booking-note {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.booking-note strong { color: var(--subheading); }
.booking-fallback {
  text-align: center;
  margin-top: 22px;
  color: var(--subheading);
}

/* --------------------------------------------------------------------------
   CL-07 — Meet the Founder
   -------------------------------------------------------------------------- */

.founder-card {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 32px);
  max-width: 640px;
  margin: 30px auto 0;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 30px);
}
.founder-avatar {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--page-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.founder-avatar img { width: 74px; height: 53px; object-fit: contain; }
.founder-card h3 { font-size: 1.35rem; margin: 0 0 4px; }
.founder-role { color: var(--stroke); font-weight: 700; font-size: 0.95rem; margin: 0; }
@media (max-width: 520px) {
  .founder-card { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   CL-09 — image upload / drop box on the request form
   -------------------------------------------------------------------------- */

.upload-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--page-base);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload-drop:hover,
.upload-drop.is-dragover { border-color: var(--heading); background: rgba(238, 241, 244, 0.05); }
.upload-drop:focus-visible { outline: 3px solid var(--stroke); outline-offset: 2px; }
.upload-drop svg { width: 30px; height: 30px; color: var(--stroke); margin-bottom: 6px; }
.upload-drop p { margin: 0; color: var(--subheading); font-size: 0.97rem; }
.upload-drop .upload-hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.upload-drop .upload-browse { color: var(--heading); font-weight: 700; text-decoration: underline; }

.upload-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-previews:empty { margin-top: 0; }
.upload-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(25, 29, 39, 0.82);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-thumb button:hover { background: rgba(25, 29, 39, 0.95); }
.upload-error { color: #F3B0B0; font-size: 0.9rem; margin: 8px 0 0; min-height: 0; }

/* --------------------------------------------------------------------------
   Gallery — one section per service, thumbnails open in a lightbox (P7)
   -------------------------------------------------------------------------- */

.gallery-services { display: grid; gap: 40px; }
.gallery-service__title { font-size: 1.25rem; margin: 0 0 16px; }
.gallery-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  aspect-ratio: 4 / 3;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.gallery-tile { cursor: zoom-in; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.gallery-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25, 29, 39, 0.3); }
a.gallery-tile:focus-visible { outline: 3px solid var(--heading); outline-offset: 3px; }
.gallery-tile--empty { display: grid; place-items: center; }
.gallery-tile--empty img { opacity: 0.5; }
.gallery-tile--empty span {
  position: absolute;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 25, 0.92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(238, 241, 244, 0.12);
  color: var(--heading);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(238, 241, 244, 0.22); }

/* --------------------------------------------------------------------------
   FAQ accordion — visible Q&A must match the FAQPage schema word-for-word
   -------------------------------------------------------------------------- */

.faq-list { max-width: 820px; margin: 30px auto 0; display: grid; gap: 12px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
}
.faq-q {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 34px 16px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--stroke);
  line-height: 1;
}
.faq-item[open] .faq-q::after { content: "\2212"; } /* minus */
.faq-a { padding: 0 0 18px; }
.faq-a p { color: var(--subheading); margin: 0; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Areas we cover
   -------------------------------------------------------------------------- */

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.areas-list li {
  border: 1.5px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   CTA band before the footer — darkened workshop photo
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background:
    linear-gradient(rgba(25, 29, 39, 0.78), rgba(25, 29, 39, 0.78)),
    url("../images/workshop.jpg") center 40% / cover no-repeat;
  padding: clamp(60px, 8vw, 96px) 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.cta-band p { max-width: 40rem; margin-inline: auto; color: var(--subheading); }
.cta-band .hero-ctas { justify-content: center; margin: 26px 0 0; }

/* --------------------------------------------------------------------------
   Two-column feature (About / why-choose with photo)
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* logo watermark on photos — white mark, slate bg hidden by screen blend */
.watermark::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 64px;
  height: 45px;
  background: url("../images/milners-mark.svg") center / contain no-repeat;
  opacity: 0.65;
  pointer-events: none;
}

.check-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: grid;
  gap: 11px;
}
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--subheading); }
.check-list svg { width: 19px; height: 19px; flex: none; margin-top: 4px; }
.check-list strong { color: var(--heading); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  /* auto-fit (not auto-fill) so the remaining items stretch to fill the row —
     no empty track left where the removed "more photos" card used to sit. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.gallery-photo { position: relative; }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; }
.gallery-item figcaption {
  padding: 13px 16px;
  color: var(--subheading);
  font-size: 0.95rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: 38px;
}

.info-block { margin-bottom: 28px; }
.info-block h3 { font-size: 1.08rem; margin-bottom: 10px; }
.info-block p, .info-block address { font-style: normal; color: var(--subheading); margin: 0 0 6px; }
.info-block a { font-weight: 600; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours-table th, .hours-table td {
  text-align: left;
  white-space: nowrap; /* "07:00 – 17:30" must never wrap at the dash */
  padding: 7px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--subheading);
  font-weight: 400;
}
.hours-table th { color: var(--heading); font-weight: 700; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 10px;
}
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Cookie-free replacement for the map-frame iframe embed — links out to Google
   Maps instead of setting a third-party cookie on-page. See CLAUDE.md /
   milners-legal-cookieless-patch.md. */
.map-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.map-cta-card:hover { border-color: var(--stroke); }
.map-cta-card__icon { width: 24px; height: 24px; flex: none; }
.map-cta-card__text { display: flex; flex-direction: column; }
.map-cta-card__text small { font-weight: 400; color: var(--subheading); font-size: 0.85rem; }

/* Legal pages (privacy/cookie/terms) — narrower measure for readability */
.legal-content { max-width: 760px; }
.legal-content h3 { margin-top: 28px; font-size: 1.1rem; }
.legal-content p { color: var(--subheading); }

/* --------------------------------------------------------------------------
   Request a Service form
   -------------------------------------------------------------------------- */

.request-form {
  background: var(--panel-strong);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.form-field .optional { color: var(--muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--page-base);
  color: var(--heading);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font-family: inherit;
  font-size: 1rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--stroke);
  outline-offset: 0;
  border-color: var(--heading);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field select { appearance: auto; }

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 15px;
}
.form-consent input {
  width: 21px;
  height: 21px;
  margin: 3px 0 0;
  accent-color: var(--btn-fill);
  flex: none;
}
.form-consent label { color: var(--subheading); font-size: 0.98rem; }

.form-note { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }

.form-status {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}
.form-status.success {
  display: block;
  background: var(--panel);
  border: 1.5px solid var(--heading);
  color: var(--heading);
}
.form-status.error {
  display: block;
  background: var(--panel);
  border: 1.5px solid var(--stroke);
  color: var(--heading);
}

/* --------------------------------------------------------------------------
   Social icons — coloured, clickable (brief requirement)
   -------------------------------------------------------------------------- */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.social-row a:hover { transform: translateY(-2px); }
.social-row svg { width: 23px; height: 23px; }
.social--facebook { background: #1877F2; }
.social--instagram {
  background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}
.social--tiktok { background: #010101; }
.social--whatsapp { background: #25D366; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer);
  padding: clamp(44px, 6vw, 64px) 0 30px;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px 28px;
  align-items: start;
}

.footer-brand img { width: auto; height: 46px; object-fit: contain; display: block; margin-bottom: 14px; }
.footer-brand p { color: #E8ECF1; font-size: 0.97rem; max-width: 26rem; }

.site-footer h3 {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 14px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #E8ECF1; text-decoration: none; font-size: 0.99rem; }
.footer-links a:hover { text-decoration: underline; color: var(--heading); }

/* NAP block — must read character-for-character as the Google Business Profile
   listing (name / address / landline), per milners-seo-build-spec.md §2–3. */
.footer-nap {
  font-style: normal;
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: #E8ECF1;
  font-size: 0.97rem;
}
.footer-nap .nap-name { color: var(--heading); font-weight: 700; }
.footer-nap .nap-phone { color: var(--heading); font-weight: 600; }
/* Address links to Google Maps — inherits the NAP colour, underlines on hover
   so it reads as clickable without changing the address wording. */
.nap-map-link { color: inherit; text-decoration: none; }
.nap-map-link:hover, .nap-map-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-contact li { color: #E8ECF1; font-size: 0.97rem; }
.footer-contact a { color: var(--heading); font-weight: 600; }

/* Footer service areas — plain text (no thin doorway pages shipped) */
.footer-areas {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.footer-areas h3 {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 12px;
}
.areas-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.areas-inline li {
  color: #E8ECF1;
  font-size: 0.92rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 13px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: #DDE2E9;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  background: radial-gradient(ellipse at 50% 0%, var(--hero-centre), var(--hero-edge) 80%);
  padding: clamp(44px, 6vw, 72px) 0;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page-hero p { max-width: 46rem; font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-side { justify-items: stretch; }
  .hero-reviews { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .feature-photo { order: -1; }
  .feature-photo img { max-height: 340px; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .gallery-item img { height: 260px; }
}
