/* ============================================================
   Yorkshire Unvented Hot Water - design system
   ------------------------------------------------------------
   Structure:
   1. Tokens (colours, type, spacing, shadows)
   2. Base + typography
   3. Layout utilities (.wrap, .section, grids)
   4. Buttons, chips, badges
   5. Header + navigation
   6. Hero (home) + sub-hero (inner pages)
   7. Content sections (trust, services, checker, steps,
      jobs, cost, areas, faq, contact, form)
   8. Footer + sticky mobile bar
   9. Animations (all gated by prefers-reduced-motion)
   10. Responsive: written mobile-first; breakpoints 720px / 1040px
   ============================================================ */

/* 1. ------------------------------------------------ tokens */
:root {
  /* colour - "spec-plate": cool workshop paper, steel/tank darks, one brass accent.
     Drawn from the trade's own materials (brass valves, steel cylinders), chosen
     to avoid the purple-gradient AND the warm-cream-serif AI defaults. */
  --ink: #15211f;          /* headings / darkest text on light */
  --deep: #0e1714;         /* darkest backgrounds */
  --navy: #162320;         /* dark section background (steel) */
  --navy-soft: #20302b;    /* raised panel on dark */
  --paper: #f3f4f1;        /* page background (cool workshop white) */
  --card: #ffffff;
  --mist: #e9ebe5;         /* alternate light section */
  --line: rgba(21, 33, 31, .13);
  --body-c: #3b4744;       /* body text on light */
  --muted: #5c6864;        /* secondary text on light */
  --copper: #a8731d;       /* brass, text-safe on light (links) */
  --copper-soft: #c08e30;
  --amber: #c98a2b;        /* brass-amber: CTAs + the title accent phrase */
  --amber-deep: #ad721a;
  --wa: #23c460;           /* WhatsApp (brand) */
  --wa-ink: #0a2917;
  --on-dark: rgba(243, 244, 241, .76);
  --on-dark-strong: #ffffff;
  --line-dark: rgba(243, 244, 241, .15);

  /* type - industrial grotesque display + engineering body + system mono labels */
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* shape + depth - tighter radii than the SaaS default; flatter surfaces */
  --r-sm: 5px;
  --r: 8px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 0 rgba(21, 33, 31, .04), 0 2px 4px rgba(21, 33, 31, .06);
  --shadow: 0 1px 2px rgba(21, 33, 31, .06), 0 12px 28px -18px rgba(21, 33, 31, .24);
  --shadow-lg: 0 2px 4px rgba(21, 33, 31, .07), 0 26px 54px -30px rgba(21, 33, 31, .34);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  /* full header height (accent 3px + topbar 44px + main bar 76px);
     heroes pull up by this much so the image runs behind the header */
  --header-overlap: 123px;
}

@media (max-width: 719.98px) {
  :root { --header-overlap: 79px; } /* topbar hidden on small screens */
}

@media (max-width: 479.98px) {
  :root { --header-overlap: 67px; } /* slimmer 64px main bar on phones */
}

/* self-hosted fonts (latin subset). Archivo = display grotesque (variable),
   IBM Plex Sans = body (engineering humanist, two static weights). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plexsans-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plexsans-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plexsans-700-latin.woff2") format("woff2");
}

/* 2. -------------------------------------- base + typography */
* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* clip on body alone doesn't stop sideways panning on mobile browsers
     (iOS Safari in particular) - the root element must clip too. `clip`
     rather than `hidden` so no scroll container is created and
     position:sticky keeps working. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip; /* belt-and-braces: nothing may cause sideways scroll */
  background: var(--paper);
  color: var(--body-c);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw + .6rem, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.6vw + .6rem, 2.7rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper); }

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

strong { color: var(--ink); }

.section-dark strong,
.site-footer strong { color: var(--on-dark-strong); }

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

::selection { background: rgba(233, 162, 59, .35); }

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-300%);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

/* 3. ------------------------------------- layout utilities */
.wrap {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--mist); }

.section-dark {
  background: var(--navy);
  color: var(--on-dark);
}

.section-dark h2, .section-dark h3 { color: var(--on-dark-strong); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-head .lede,
.lede { font-size: 1.15rem; color: var(--muted); }

.section-dark .lede { color: var(--on-dark); }

/* eyebrows are stamped mono labels (the spec-plate vocabulary), not a
   decorative dash-and-kicker. No pseudo-element ornament. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}


.section-dark .eyebrow { color: var(--amber); }

.grid { display: grid; gap: 16px; }

/* 4. -------------------------------- buttons, chips, badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { flex: none; }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(233, 162, 59, .8);
}

.btn-primary:hover { background: #f0ad4e; }

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 10px 24px -12px rgba(35, 196, 96, .7);
}

.btn-wa:hover { background: #2dd66e; }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

.section-dark .btn-ghost,
.hero .btn-ghost,
.sub-hero .btn-ghost {
  border-color: var(--line-dark);
  color: var(--on-dark-strong);
}

.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.sub-hero .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* check chips - quick trust points under CTAs */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 500;
}

.chips svg { flex: none; color: var(--amber); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-urgent { background: #fdebe3; color: #a33b12; }
.badge-soon { background: #fdf3dd; color: #8a6210; }
.badge-routine { background: #e5f3e9; color: #1f6b3a; }

/* 5. --------------------------------- header + navigation */
/* Cinematic header: at the top of the page it is a transparent veil
   (a soft dark gradient) floating over the hero image. On scroll the
   solid glass layer (::after) fades in. The 3px copper line stays as
   the signature accent in both states. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 15, 21, .8), rgba(8, 15, 21, .38) 62%, rgba(8, 15, 21, 0));
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* The topbar parks itself above the viewport as you scroll: the header
   sticks 44px up, so its height NEVER changes mid-scroll. This is what
   prevents the judder a collapsing topbar used to cause. */
@media (min-width: 720px) {
  .site-header:has(.topbar) { top: -44px; }
}

/* signature copper accent lives on the main bar so it stays visible
   in the stuck state */
.header-main::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--copper);
}

/* solid steel bar faded in by opacity as you scroll (no frosted glass);
   background-color also transitions for the dark/light section theming */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deep);
  opacity: 0;
  transition: opacity .35s var(--ease), background-color .35s var(--ease);
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: rgba(247, 246, 242, .09);
}

.site-header.is-scrolled::after,
.site-header.nav-open::after {
  opacity: 1;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .65);
}

/* no-JS fallback: without the scroll handler the transparent state never
   resolves, so keep the header solid for readability over light sections */
html:not(.has-js) .site-header { background: rgba(10, 19, 27, .95); }

.topbar {
  background: rgba(6, 12, 18, .55);
  border-bottom: 1px solid rgba(247, 246, 242, .06);
  color: var(--on-dark);
  font-size: .85rem;
  overflow: hidden;
  max-height: 44px; /* fixed: the sticky offset above relies on this */
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  /* 43px + the topbar's 1px border = exactly 44px, matching the
     header's -44px sticky offset and the --header-overlap maths */
  min-height: 43px;
  padding-block: 4px;
}

.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { color: var(--amber); flex: none; }

.topbar a {
  color: var(--on-dark-strong);
  font-weight: 600;
  text-decoration: none;
}

.topbar a:hover { color: var(--amber); }

.topbar-right { display: none; align-items: center; gap: 20px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.site-header .brand-logo { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }

.brand-logo { width: 46px; height: 46px; display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.brand-tag {
  display: block;
  color: var(--amber);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-desktop { display: none; gap: 4px; }

.nav-desktop a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: rgba(247, 246, 242, .85);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-desktop a:hover { background: rgba(247, 246, 242, .08); color: #fff; }

.nav-desktop a[aria-current="page"] { color: var(--amber); }

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.header-cta { display: flex; align-items: center; gap: 10px; }

.header-cta .btn { min-height: 46px; padding-inline: 16px; font-size: .95rem; }

.header-cta .btn-wa { display: none; }

/* hamburger */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(247, 246, 242, .28);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.menu-toggle:hover { border-color: rgba(247, 246, 242, .5); }

.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .25s var(--ease), opacity .2s;
}

.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

.site-header.nav-open .menu-toggle .bars { background: transparent; }
.site-header.nav-open .menu-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .menu-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile slide-down panel: solid, so it stays readable even while the
   header behind it is in its transparent state */
.nav-mobile {
  display: grid;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
  background: rgba(10, 19, 27, .97);
  border-top: 0 solid rgba(247, 246, 242, .09);
}

.site-header.nav-open .nav-mobile {
  max-height: 480px;
  border-top-width: 1px;
}

.nav-mobile a {
  padding: 15px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(247, 246, 242, .08);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--amber); }

.nav-mobile a[aria-current="page"] { color: var(--amber); }

/* --- section-aware header theming ---------------------------------
   JS adds .header-light when the header sits over a light section.
   Everything below is paint-only (colors), so theme changes can never
   move layout or cause judder. */
.brand,
.brand-tag,
.nav-desktop a,
.nav-mobile a,
.menu-toggle {
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

/* keep the slide animation alongside the theme fade */
.nav-mobile {
  transition: max-height .35s var(--ease), color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  transition: transform .25s var(--ease), opacity .2s, background-color .3s var(--ease);
}

.site-header.header-light { border-bottom-color: rgba(14, 28, 38, .12); }

.site-header.header-light::after { background: rgba(248, 246, 242, .96); }

.site-header.header-light .brand { color: var(--ink); }
.site-header.header-light .brand-tag { color: var(--copper); }

.site-header.header-light .nav-desktop a { color: rgba(14, 28, 38, .78); }
.site-header.header-light .nav-desktop a:hover { background: rgba(14, 28, 38, .06); color: var(--ink); }
.site-header.header-light .nav-desktop a[aria-current="page"] { color: var(--copper); }
.site-header.header-light .nav-desktop a[aria-current="page"]::after { background: var(--copper); }

.site-header.header-light .menu-toggle { border-color: rgba(14, 28, 38, .3); }
.site-header.header-light .menu-toggle .bars::before,
.site-header.header-light .menu-toggle .bars::after { background: var(--ink); }
.site-header.header-light:not(.nav-open) .menu-toggle .bars { background: var(--ink); }

.site-header.header-light .nav-mobile { background: rgba(250, 249, 245, .98); border-top-color: rgba(14, 28, 38, .1); }
.site-header.header-light .nav-mobile a { color: var(--ink); border-bottom-color: rgba(14, 28, 38, .08); }
.site-header.header-light .nav-mobile a:hover,
.site-header.header-light .nav-mobile a[aria-current="page"] { color: var(--copper); }

/* amber focus ring is invisible on the cream header; use copper there */
.site-header.header-light :focus-visible { outline-color: var(--copper); }

.nav-mobile .nav-mobile-cta {
  display: flex;
  gap: 10px;
  padding: 16px clamp(20px, 5vw, 48px) 20px;
  border-bottom: 0;
}

.nav-mobile .nav-mobile-cta .btn { flex: 1; }

/* 6. ----------------------------------- hero + sub-hero */
/* Cinematic full-bleed hero. Layer order (bottom → top):
   gradient fallback on .hero → .hero-bg image → .hero-scrim fade →
   ::before blueprint grid → content (.hero-inner / .hero-foot) */
.hero {
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  /* the hero starts at the very top of the viewport, behind the
     transparent header, and fills the whole first screen */
  margin-top: calc(-1 * var(--header-overlap));
  padding-top: var(--header-overlap);
  min-height: 640px; /* fallback chain: px → vh → svh */
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(165deg, var(--deep), var(--navy) 75%);
  color: var(--on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* keeps the cylinder on the right of frame */
}

/* directional fade: solid behind the copy, dissolving so the cylinder
   reads clearly on the right; gentle top/bottom vignette for depth */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 28, .5), transparent 22%, transparent 64%, rgba(10, 20, 28, .85) 100%),
    linear-gradient(90deg, #0a141c 0%, rgba(10, 20, 28, .97) 32%, rgba(10, 20, 28, .88) 50%, rgba(10, 20, 28, .3) 70%, rgba(10, 20, 28, .06) 84%, rgba(10, 20, 28, .35) 100%);
}

/* faint blueprint grid over the hero background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(247, 246, 242, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 246, 242, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 90% at 30% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(32px, 5vw, 56px);
  padding-block: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 36px);
}

.hero-foot {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(22px, 3.5vw, 40px);
}

.hero h1 {
  color: #fff;
  max-width: 12ch;
  font-size: clamp(2.6rem, 4.2vw + 1rem, 5rem);
  text-shadow: 0 2px 24px rgba(10, 20, 28, .45);
}

/* orange accent phrase inside white titles on dark backgrounds (the
   signature hero treatment, applied to every dark-section title) */
.hero .accent,
.sub-hero .accent,
.section-dark .accent,
.cta-band .accent { color: var(--amber); }

.hero-lede {
  max-width: 54ch;
  margin-bottom: 28px;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.hero .eyebrow { color: var(--amber); }

.hero .chips { margin-top: 26px; }
.hero .chips li { color: var(--on-dark); }

/* reassurance microcopy directly under the hero CTAs */
.hero-assure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--on-dark);
  font-size: .93rem;
}

.hero-assure svg { flex: none; color: var(--amber); }

/* invisible right-hand layer that anchors the floating proof badges
   over the photographed cylinder */
.hero-media {
  position: relative;
  min-height: 320px;
  pointer-events: none;
}

/* ---- signature element: the cylinder data-plate ----
   key facts presented like the engraved spec label on every unvented
   cylinder (mono, tracked, tabular). Solid steel panel, no glass. */
.spec-plate {
  width: min(380px, 100%);
  margin-left: auto;
  pointer-events: auto;
  background: var(--deep);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}

.spec-plate-cap {
  margin: 0;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--line-dark);
}

.spec-plate dl { margin: 0; padding: 4px 18px 8px; }

.spec-plate dl > div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(243, 244, 241, .07);
}

.spec-plate dl > div:last-child { border-bottom: 0; }

.spec-plate dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243, 244, 241, .5);
  padding-top: .2em;
}

.spec-plate dd {
  margin: 0;
  color: var(--on-dark-strong);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
}

/* frosted-glass stat bar anchored to the base of the cinematic hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .65);
}

.hero-stats > div {
  padding: 18px 20px;
  background: rgba(14, 23, 20, .9);
}

.hero-stats .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}

.hero-stats .num span { color: var(--amber); }

.hero-stats small {
  color: var(--on-dark);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* inner-page hero */
.sub-hero {
  position: relative;
  overflow: clip;
  background: linear-gradient(165deg, var(--deep), var(--navy) 78%);
  color: var(--on-dark);
  /* inner pages run under the transparent header too */
  margin-top: calc(-1 * var(--header-overlap));
  padding-block: calc(var(--header-overlap) + clamp(40px, 5vw, 72px)) clamp(52px, 7vw, 88px);
}

.sub-hero h1 { color: #fff; max-width: 22ch; }

.sub-hero .lede { max-width: 58ch; color: var(--on-dark); }

.sub-hero .btn-row { margin-top: 28px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: .85rem;
}

.breadcrumbs a { color: var(--on-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(247, 246, 242, .4); }
.breadcrumbs [aria-current] { color: var(--amber); font-weight: 600; }

/* 7a. ------------------------------------- trust/accreditations bar */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--card); }

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  padding-block: 18px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-block: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}

.trust-bar-item svg { flex: none; color: var(--copper); }
.trust-bar-item small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* 7b. ----------------------------------------- service cards */
.services-grid { grid-template-columns: 1fr; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

a.card { text-decoration: none; color: inherit; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--copper);
  transition: background .25s var(--ease), color .25s var(--ease);
}

.card:hover .icon-tile { background: var(--copper); color: #fff; }

/* small flag pinned to a card's corner, e.g. "most common call-out" */
.card-flag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 11px;
  background: rgba(233, 162, 59, .16);
  color: #8a6210;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* price guide line (cost page cards) */
.card .price-line {
  margin: 2px 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.card .price-line strong { color: var(--amber-deep); }

/* keep a flagged card's heading clear of the top-right badge
   (price cards have no icon tile to offset it) */
.card:has(> .card-flag) h3 { padding-right: 92px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--copper);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}

.card-link svg { transition: transform .25s var(--ease); }
.card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }

/* icon stroke-draw animation (paths use pathLength="1") */
.draw path, .draw circle, .draw line, .draw polyline, .draw rect { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* 7c. ------------------------------------- symptom checker */
.checker {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.checker-tabs {
  display: flex;
  gap: 6px;
  padding: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.checker-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 .92rem var(--font-body);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.checker-tab:hover { border-color: var(--copper); color: var(--copper); }

.checker-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.checker-panel { padding: clamp(24px, 4vw, 40px); }

.checker-panel[hidden] { display: none; }

.checker-panel .badge { margin-bottom: 14px; }

.checker-cols { display: grid; gap: 20px; margin: 18px 0 24px; }

.checker-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper);
}

.checker-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.checker-col li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: .97rem;
}

.checker-col li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--amber);
}

/* 7d. --------------------------------------- process steps */
.steps { counter-reset: step; grid-template-columns: 1fr; position: relative; }

.step {
  counter-increment: step;
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* step numbers (01/02/03) intentionally hidden at the owner's request */
.step::before { content: none; display: none; }

.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .97rem; }

.step .step-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--copper);
  opacity: .8;
}

/* 7e. ----------------------------------- typical jobs cards */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--navy-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
}

.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.job-card .job-meta span {
  padding: 4px 10px;
  background: rgba(233, 162, 59, .14);
  border-radius: 999px;
  color: var(--amber);
}

.job-card h3 { margin: 0; color: #fff; }

.job-card dl { margin: 0; display: grid; gap: 10px; }

.job-card dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, .55);
}

.job-card dd { margin: 2px 0 0; color: var(--on-dark); font-size: .97rem; }

/* 7f. ----------------------------------------- cost section */
.cost-grid { grid-template-columns: 1fr; gap: 16px; }

.cost-factor {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.cost-factor svg { flex: none; color: var(--copper); margin-top: 3px; }
.cost-factor h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cost-factor p { color: var(--muted); font-size: .95rem; }

.promise-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--ink);
  border-radius: var(--r-lg);
  color: var(--on-dark);
}

.promise-panel h3 { color: #fff; margin: 0; }

.promise-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.promise-panel li { display: flex; gap: 11px; align-items: flex-start; }
.promise-panel li svg { flex: none; color: var(--amber); margin-top: 3px; }

/* 7g. ----------------------------------------- area cards */
/* single column on phones: town names like "Knaresborough" can't
   shrink, and two forced columns used to overflow the viewport */
.areas-grid { grid-template-columns: 1fr; }

.areas-grid > * { min-width: 0; }

@media (min-width: 560px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease);
}

.area-card:hover { border-color: var(--copper); }

.area-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
}

.area-card strong svg { color: var(--copper); transition: transform .25s var(--ease); }
.area-card:hover strong svg { transform: translateX(4px); }

.area-card span { color: var(--muted); font-size: .94rem; }

.coverage-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
  font-size: .97rem;
}

.coverage-note svg { flex: none; color: var(--copper); margin-top: 2px; }

/* area-page village list (replaces the repeated boilerplate cards) */
.village-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.village-list li {
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--ink);
}

/* per-town local proof callout (owner-supplied; renders only when set) */
.local-proof {
  margin: 22px 0 0;
  padding: 14px 20px;
  border-left: 3px solid var(--amber);
  background: var(--mist);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink);
  font-style: italic;
}
.local-proof p { margin: 0; }

/* recent-work photo grid (real job photos) */
.job-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
@media (min-width: 720px) { .job-photos { grid-template-columns: repeat(4, 1fr); } }
.job-photos figure { margin: 0; }
.job-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 825 / 1100;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--mist);
}
.job-photos figcaption { margin-top: 8px; font-size: .85rem; line-height: 1.45; color: var(--muted); }

/* 7h. -------------------------------------------- FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-x {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mist);
  transition: background .25s var(--ease), transform .3s var(--ease);
}

.faq-item summary .faq-x::before,
.faq-item summary .faq-x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
}

.faq-item summary .faq-x::after { transform: rotate(90deg); }

.faq-item[open] summary .faq-x { background: var(--copper); transform: rotate(45deg); }
.faq-item[open] summary .faq-x::before, .faq-item[open] summary .faq-x::after { background: #fff; }

.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* 7i. ------------------------------------ contact + form */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); }

/* grid children default to min-width:auto, so one unbreakable string
   (the email address) can push the whole column off-screen on phones */
.contact-grid > * { min-width: 0; }

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--navy-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
}

.contact-card + .contact-card { margin-top: 14px; }

.contact-card .label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, .55);
}

.contact-card a.big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a.big:hover { color: var(--amber); }

.contact-card p { color: var(--on-dark); font-size: .95rem; }

/* transparent pricing note (no call-out fee + diagnostic policy).
   sits in the dark contact sections, so it matches the contact cards. */
.policy-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 15px 17px;
  background: var(--navy-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  color: var(--on-dark);
  font-size: .9rem;
  line-height: 1.55;
}
.policy-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--amber); }
.policy-note strong { color: #fff; }

.form-panel {
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--body-c);
}

.form-panel h3 { margin-bottom: 6px; }
.form-panel > p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.field { display: grid; gap: 7px; }

.field > span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(180, 95, 45, .18);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%230e1c26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

/* urgency segmented control */
.urgency { display: grid; gap: 8px; grid-template-columns: 1fr; }

.urgency label { position: relative; display: block; cursor: pointer; }

.urgency input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.urgency .urgency-pill {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.urgency input:checked + .urgency-pill {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.urgency input:focus-visible + .urgency-pill {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.form-footnote {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
}

.form-footnote svg { flex: none; color: var(--copper); margin-top: 2px; }

.hidden-field { display: none; }

/* 7j. -------------------------------------- CTA banner */
.cta-band {
  position: relative;
  overflow: clip;
  background: var(--deep);
  color: var(--on-dark);
  text-align: center;
}

.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band .lede { max-width: 50ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* 8. ------------------------------ footer + sticky bar */
.site-footer {
  background: var(--deep);
  color: var(--on-dark);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: clamp(48px, 7vw, 72px);
  grid-template-columns: 1fr;
}

.footer-brand .brand-name { color: #fff; }

.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--on-dark); font-size: .92rem; }

.footer-col h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--amber); }

.footer-qual {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-qual span {
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem;
  color: rgba(247, 246, 242, .55);
}

.footer-bottom a { color: inherit; }

/* sticky mobile action bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(14, 28, 38, .4);
  transform: translateY(105%);
  transition: transform .35s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}

.sticky-bar.is-shown { transform: translateY(0); }

.sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  background: var(--card);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.sticky-bar a svg { color: var(--copper); }
.sticky-bar .sticky-call { background: var(--amber); }
.sticky-bar .sticky-call svg { color: var(--ink); }
.sticky-bar .sticky-wa { background: var(--wa); color: var(--wa-ink); }
.sticky-bar .sticky-wa svg { color: var(--wa-ink); }

/* 9. ----------------------------------------- animations */
/* scroll reveal - JS adds .in; gated so no-JS users see everything */
.has-js [data-reveal],
.has-js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .has-js [data-reveal],
  .has-js [data-reveal-group] > * {
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
  }

  /* hero entrance (CSS-only, runs once on load) */
  .hero-copy-block > * { animation: fadeUp .7s var(--ease) both; }
  .hero-copy-block > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy-block > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy-block > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy-block > *:nth-child(5) { animation-delay: .32s; }
  .hero-media { animation: fadeUp .8s var(--ease) .2s both; }

  .spec-plate { animation: floatIn .8s var(--ease) .5s both; }

  /* cinematic slow push-in on the hero image (transform-only = GPU-cheap) */
  .hero-bg img {
    animation:
      heroBgIn 1.1s ease-out both,
      kenburns 32s ease-in-out 1.1s infinite alternate both;
  }

  /* card hovers */
  .card, .step, .job-card, .area-card, .btn {
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .2s, color .2s;
  }

  .card:hover, .area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  /* icon stroke draw when revealed */
  .has-js [data-reveal-group] > * .draw path,
  .has-js [data-reveal-group] > * .draw circle,
  .has-js [data-reveal-group] > * .draw polyline,
  .has-js [data-reveal-group] > * .draw line,
  .has-js [data-reveal-group] > * .draw rect,
  .has-js [data-reveal] .draw path,
  .has-js [data-reveal] .draw circle,
  .has-js [data-reveal] .draw polyline,
  .has-js [data-reveal] .draw line,
  .has-js [data-reveal] .draw rect { stroke-dashoffset: 1; }

  .has-js [data-reveal-group] > *.in .draw path,
  .has-js [data-reveal-group] > *.in .draw circle,
  .has-js [data-reveal-group] > *.in .draw polyline,
  .has-js [data-reveal-group] > *.in .draw line,
  .has-js [data-reveal-group] > *.in .draw rect,
  .has-js [data-reveal].in .draw path,
  .has-js [data-reveal].in .draw circle,
  .has-js [data-reveal].in .draw polyline,
  .has-js [data-reveal].in .draw line,
  .has-js [data-reveal].in .draw rect {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.1s var(--ease) .25s;
  }

  /* checker panel crossfade */
  .checker-panel:not([hidden]) { animation: fadeUp .4s var(--ease); }
}

.has-js [data-reveal].in,
.has-js [data-reveal-group] > *.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal],
  .has-js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes heroBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08) translateX(-1.2%); }
}

/* 10. ---------------------------------------- responsive */
@media (min-width: 720px) {
  .topbar-right { display: flex; }

  .trust-bar-inner { grid-template-columns: repeat(4, 1fr); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .checker-cols { grid-template-columns: 1fr 1fr; }

  .cost-grid { grid-template-columns: repeat(2, 1fr); }

  .areas-grid { grid-template-columns: repeat(3, 1fr); }

  .urgency { grid-template-columns: repeat(3, 1fr); }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-wide, .form-grid .urgency-block, .form-grid .form-submit { grid-column: 1 / -1; }

  .hero-stats { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }

  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1040px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none; }
  .header-cta .btn-wa { display: inline-flex; }

  .hero-inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
  }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .checker { grid-template-columns: 280px 1fr; }

  .checker-tabs {
    flex-direction: column;
    padding: 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: visible;
  }

  .checker-tab { justify-content: flex-start; border-radius: var(--r-sm); padding: 14px 16px; }

  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }

  .cost-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
}

/* sticky bar only on small screens */
@media (min-width: 1040px) {
  .sticky-bar { display: none; }
}

@media (max-width: 1039.98px) {
  body { padding-bottom: 0; }
  body.has-sticky-pad { padding-bottom: 76px; }
}

/* tablet: keep the topbar to a single tidy line */
@media (max-width: 899.98px) {
  .topbar-right span { display: none; }
  .topbar p, .topbar a { white-space: nowrap; }
}

/* below the two-column breakpoint the floating badges lose their anchor
   over the cylinder - the chips already carry those trust points */
@media (max-width: 1039.98px) {
  .hero-media { display: none; }
}

/* small-screen header: the sticky action bar carries contact duties,
   so the header slims right down */
@media (max-width: 719.98px) {
  .topbar { display: none; }

  /* mobile cinematic: a guaranteed band of clear image at the top,
     with the copy rising from a solid base so legibility never
     depends on the photo */
  .hero-inner {
    align-content: end;
    padding-top: calc(var(--header-overlap) + 16vh);
    gap: 24px;
  }

  /* focal point: keeps the cylinder and its gauge in the narrow crop */
  .hero-bg img { object-position: 72% 30%; }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(10, 20, 28, .3), rgba(10, 20, 28, .38) 30%, rgba(10, 20, 28, .92) 58%, #0a141c 100%),
      linear-gradient(90deg, rgba(10, 20, 28, .4), transparent 60%);
  }

  .hero-lede { font-size: 1.05rem; margin-bottom: 24px; }

  .hero .btn-row { gap: 10px; }

  .hero-assure { font-size: .88rem; }

  /* chips as a tidy two-column grid instead of a long wrapped row */
  .hero .chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 22px;
  }

  .hero .chips li { font-size: .88rem; align-items: flex-start; }
  .hero .chips li svg { margin-top: 3px; }

  .hero-stats > div { padding: 14px 16px; }
}

@media (max-width: 559.98px) {
  .hero .btn-row .btn,
  .cta-band .btn-row .btn,
  .sub-hero .btn-row .btn { width: 100%; }
}

@media (max-width: 479.98px) {
  .header-inner { min-height: 64px; } /* compact bar; --header-overlap matches */
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: .88rem; }
  .brand-tag { display: none; }

  /* icon-only call button: text shrinks away, accessible name remains */
  .header-cta .btn-primary {
    width: 46px;
    min-height: 46px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .header-cta .btn-primary svg { width: 19px; height: 19px; }
}

/* ============================================================
   Areas page: route-map hero ("Patch & Path"). Mobile = contained
   full-bleed band below the copy. Desktop = map bleeds off the top
   and right edges and fades into the copy on the left.
   ============================================================ */
.sub-hero--map .sub-hero-grid { display: grid; gap: clamp(24px, 5vw, 40px); }

.areas-map {
  position: relative;
  margin: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* match the SVG viewBox aspect (1280x720 = 16:9) so `meet` fills the band
     exactly on mobile — a taller ratio letterboxes into dark bars top & bottom */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--deep);
}

.areas-map-cap {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  margin: 12px; padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-strong);
  background: rgba(14, 23, 20, .72);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
}

/* desktop: map escapes the column, bleeds top + right, fades into the copy */
@media (min-width: 880px) {
  .sub-hero--map { min-height: clamp(520px, 56vw, 680px); }
  .sub-hero--map .sub-hero-grid { display: block; }
  .sub-hero--map .sub-hero-copy { position: relative; z-index: 2; max-width: 52ch; }
  .sub-hero--map .areas-map {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;
    width: clamp(58%, 62vw, 76%);
    margin: 0; aspect-ratio: auto; height: auto;
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 11%, rgba(0,0,0,.6) 21%, #000 32%, #000 100%);
            mask-image: linear-gradient(to right, transparent 0%, transparent 11%, rgba(0,0,0,.6) 21%, #000 32%, #000 100%);
    z-index: 1;
  }
  /* shift the geographic system into the clear (un-faded) band on desktop;
     mobile keeps the full centred viewBox with no transform */
  .dispatch-map .dm-geo { transform: translateX(340px); }
  /* keep the caption visible on desktop too — it names Mark & the team in the
     open bottom-right corner (the floating van label collided with town names) */
  .sub-hero--map .areas-map-cap { max-width: 22ch; text-align: right; line-height: 1.5; }
}

/* ---- dispatch map (bespoke SVG) ---- */
.dispatch-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dispatch-map text { font-family: var(--font-mono); text-transform: uppercase; }

.dm-terrain path { fill: none; stroke: rgba(243, 244, 241, .06); stroke-width: 1.5; }
.dm-roadhint path { fill: none; stroke: rgba(243, 244, 241, .05); stroke-width: 1; stroke-dasharray: 5 9; }

.dm-ring { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.dm-ring--tick { stroke-dasharray: 2 8; opacity: .7; }
.dm-wash { fill: var(--copper); opacity: .05; }
.dm-coverage { fill: none; stroke: var(--amber); stroke-width: 1.6; opacity: .85; stroke-dasharray: 7 7; }
.dm-radius-stamp { fill: var(--amber); font-size: 13px; letter-spacing: 2px; }
.dm-radius-tick { stroke: var(--amber); stroke-width: 1; opacity: .7; }

.dm-route { fill: none; stroke: var(--line-dark); stroke-width: 1.6; stroke-linecap: round; stroke-dashoffset: 0; }
.dm-node { fill: var(--on-dark-strong); }
.dm-label { fill: var(--on-dark-strong); font-size: 27px; letter-spacing: 2px; }
.dm-sub { fill: var(--on-dark); font-size: 19px; letter-spacing: 2px; }

.dm-ping { fill: none; stroke: var(--amber); stroke-width: 2; opacity: .22; transform-box: fill-box; transform-origin: center; }
.dm-hub-disc { fill: var(--amber); }
.dm-hub-label { fill: var(--on-dark-strong); font-size: 26px; letter-spacing: 3px; }
.dispatch-map .dm-hub-sub { fill: var(--amber); font-size: 18px; letter-spacing: 3px; text-transform: none; }

/* real side-view van glyphs */
.dm-van-body { fill: var(--navy-soft); stroke: var(--on-dark); stroke-width: 1; stroke-linejoin: round; }
.dm-van-glass { fill: var(--deep); opacity: .5; }
.dm-van-crease { stroke: rgba(243, 244, 241, .18); stroke-width: 1; }
.dm-van-tyre { fill: var(--deep); }
.dm-van-hub { fill: var(--on-dark); }
.dm-van-glow { fill: var(--on-dark); opacity: .12; }
.dm-van--mark .dm-van-body { fill: var(--amber); stroke: var(--amber-deep); }
.dm-van--mark .dm-van-glow { fill: var(--amber); opacity: .5; }
.dm-chip-bg { fill: rgba(14, 23, 20, .58); stroke: none; }
.dm-van--mark .dm-chip-bg { fill: var(--amber); stroke: var(--amber); }
.dm-chip-tx { fill: var(--on-dark); font-size: 15px; letter-spacing: 1.5px; }
.dm-van--mark .dm-chip-tx { fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .dm-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dm-draw 1s var(--ease) both; animation-delay: calc(.45s + var(--i, 0) * .14s); }
  .dm-coverage { animation: dm-march 16s linear infinite; }
  .dm-ping { animation: dm-ping 3s ease-out infinite; }
}
@keyframes dm-draw { to { stroke-dashoffset: 0; } }
@keyframes dm-march { to { stroke-dashoffset: -28; } }
@keyframes dm-ping { 0% { transform: scale(.5); opacity: .55; } 80% { opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }

/* Vans are positioned + animated by JS (getPointAtLength). Without JS they have
   no transform, so hide them rather than let them sit at the SVG origin. With JS +
   reduced motion they are parked static mid-route facing outbound (site.js). */
html:not(.has-js) .dm-van { display: none; }
