/* ================================================================
   GP WINDOWS & DOORS
   One stylesheet for the homepage, privacy and 404 pages.

   The look: quiet and precise. Medium-weight headings at modest
   sizes, small body text, thin lines, plenty of space, one green.
   The window idea runs through it: content sits in "panes" divided
   by hairline glazing bars (services, reasons, steps, figures), and
   list bullets are a small four-pane window mark. The four colours of
   the logo's wing appear sparingly: section labels, hero figures, steps.

   Contents:
    1. Fonts and design tokens     9. Our work (gallery, lightbox, before/after)
    2. Base and shared layout     10. Reviews
    3. Buttons, labels, lists     11. How it works
    4. Header and mobile menu     12. Areas
    5. Hero                       13. FAQ
    6. Panes (shared grid)        14. Get a quote (form)
    7. Services                   15. Footer, sticky bar, small pages
    8. About + why choose GP
   ================================================================ */

/* ================================================================
   1. FONTS AND DESIGN TOKENS
   ================================================================ */
/* Three self-hosted fonts (Latin subsets). Funnel Display for headings and big figures;
   Geist for text. Michroma, the wide squared
   face closest to the lettering in George's logo, only for small labels, menus and buttons. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/geist-var.woff2") format("woff2"); }
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/funnel-var.woff2") format("woff2"); }
@font-face { font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/michroma.woff2") format("woff2"); }

:root {
  --black: #0B0C0D; --ink: #131517; --line-dark: rgba(255,255,255,0.12);
  --sand: #E9E2D3; --sand-line: #CFC6B2;   /* warm panel: quote form and the repairs card */
  --white: #FFFFFF; --paper: #F5F3EE; --line-light: #DFDDD5;
  --text: #16181B; --muted-light: #5A5F66; --muted-dark: #9DA2A9; --soft-dark: #CDD0D5;
  --accent: #3FBF4F; --accent-hover: #55CE64;
  /* Darker green for text and marks on light backgrounds (the bright green is too pale to read there) */
  --accent-deep: #1E7B2C;
  /* The four colours of the wing in the logo */
  --wing-1: #3FBF4F; --wing-2: #F7D22B; --wing-3: #1FA9E1; --wing-4: #E5332A;
  --swoosh: linear-gradient(90deg, #3FBF4F 0 25%, #F7D22B 25% 50%, #1FA9E1 50% 75%, #E5332A 75% 100%);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Funnel Display", "Geist", system-ui, sans-serif;   /* headings and big figures */
  --font-label: "Michroma", "Geist", system-ui, sans-serif;
  --container: 1200px; --gutter: 20px; --section-pad: 68px;
  --radius: 2px;              /* buttons and form fields only; photos and panels are square */
  --header-h: 66px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 600px) { :root { --gutter: 32px; --section-pad: 88px; } }
@media (min-width: 900px) { :root { --gutter: 40px; --section-pad: 124px; --header-h: 78px; } }

/* ================================================================
   2. BASE AND SHARED LAYOUT
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-width: 20rem; background: var(--black); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
/* Anything the script marks as hidden stays hidden, whatever its own display rule says (this is what hides "Show more photos" once every photo is showing) */
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.s-light :focus-visible, .s-white :focus-visible, .quote-card :focus-visible { outline-color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; text-wrap: balance; }
.hero-stats strong, .stat strong, .score-num, .why-quote blockquote p, .spot .review blockquote p { font-family: var(--font-head); }
h1 { font-size: clamp(32px, 8.8vw, 40px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; }
@media (min-width: 900px) {
  h1 { font-size: clamp(44px, 4.1vw, 58px); line-height: 1.05; }
  h2 { font-size: clamp(32px, 2.9vw, 40px); }
  h3 { font-size: 19px; }
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad); }
/* Most of the page is one charcoal grey. Where two grey sections meet, a hairline across 90% of
   the width marks the join. */
.s-ink + .s-ink::before { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 1px; background: var(--line-dark); }
/* Each section sets its own line, muted-text, heading and window-mark colours */
.s-black { background: var(--black); color: var(--white); --bg: var(--black); --fg: var(--white); --line: var(--line-dark); --muted: var(--muted-dark); --mark: var(--accent); }
/* A second, slightly lifted dark, so two dark sections in a row still read as separate */
.s-ink { background: var(--ink); color: var(--white); --bg: var(--ink); --fg: var(--white); --line: var(--line-dark); --muted: var(--muted-dark); --mark: var(--accent); }
/* Pieces built for light sections, restyled where they now sit on a dark one */
.s-black .btn--outline-ink, .s-ink .btn--outline-ink { border-color: rgba(255,255,255,0.3); color: var(--white); }
.s-black .btn--outline-ink:hover, .s-ink .btn--outline-ink:hover { border-color: var(--white); }
.s-black .ba-nav .spot-btn, .s-ink .ba-nav .spot-btn { border-color: var(--line-dark); background: var(--black); color: var(--white); }
.s-black .ba-nav .spot-btn:hover, .s-ink .ba-nav .spot-btn:hover { border-color: var(--white); }
.s-ink .ba-nav .spot-count { color: var(--muted-dark); }
.s-ink .score-card, .s-ink .why-quote { background: var(--black); }
/* The review stage stays a light panel, so its words stay dark */
.s-ink .review, .s-ink .spot-count { color: var(--text); }
.s-ink .spot-count { color: var(--muted-light); }
.s-ink .spot-index button:hover { color: var(--white); }
.s-ink .spot-index button[aria-current="true"] { color: var(--white); background: rgba(255,255,255,0.06); }
.s-ink .spot-index button[aria-current="true"]::before { color: var(--accent); }
.s-ink .spot-place { color: var(--muted-dark); }
.s-light { background: var(--paper); --bg: var(--paper); --fg: var(--text); --line: var(--line-light); --muted: var(--muted-light); --mark: var(--accent-deep); }
.s-white { background: var(--white); --bg: var(--white); --fg: var(--text); --line: var(--line-light); --muted: var(--muted-light); --mark: var(--accent-deep); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 200; padding: 12px 18px; background: var(--accent); color: var(--black); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
/* The icon drawings live in one hidden block at the top of each page */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Photos are always square-cornered and fill their box */
.photo { position: relative; overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* The window mark: a small square split into four panes. It opens every section label and is the bullet in lists. */
.area-list li::before, .also-list li::before, .why-row dt::before {
  content: ""; flex: none; width: 11px; height: 11px; border: 1px solid var(--mark);
  background: linear-gradient(var(--mark), var(--mark)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--mark), var(--mark)) 0 50% / 100% 1px no-repeat;
}

/* Section labels open with the wing from George's logo, and the words run out from its base the way "GP" does in the logo */
.label::before { content: ""; flex: none; width: 17px; height: 26px; margin-bottom: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%236FD22A'/%3E%3Cstop offset='.55' stop-color='%2322A31C'/%3E%3Cstop offset='1' stop-color='%2312800F'/%3E%3C/linearGradient%3E%3ClinearGradient id='y' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FFF21A'/%3E%3Cstop offset='1' stop-color='%23F5B90C'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232CC4F5'/%3E%3Cstop offset='1' stop-color='%231188D2'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23D81818'/%3E%3Cstop offset='1' stop-color='%23F0261F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23r)' d='M19 104Q44 108 80 92C66 119 34 123 19 104Z'/%3E%3Cpath fill='url(%23b)' d='M4 75Q30 92 80 92C58 116 22 110 4 75Z'/%3E%3Cpath fill='url(%23y)' d='M1 39Q24 74 80 92C56 108 18 96 1 39Z'/%3E%3Cpath fill='url(%23g)' d='M1 1Q26 50 80 92C54 98 18 76 1 1Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Every section opens the same way: a small label with the window mark, then the heading.
   On wide screens the intro line sits to the right of the heading. */
.label { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 18px; color: var(--muted); font-family: var(--font-label); font-size: 10px; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; }
.sec-head { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-lede { max-width: 46ch; color: var(--muted); }
.sec-lede a { color: var(--fg); text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .label { margin-bottom: 22px; }
  .sec-head { grid-template-columns: 7fr 5fr; column-gap: 72px; align-items: end; margin-bottom: 64px; }
  .sec-head h2 { max-width: 18ch; }
  /* A heading with no intro line beside it has the full width, so it stays on one line */
  .sec-head > div:only-child { grid-column: 1 / -1; }
  .sec-head > div:only-child h2 { max-width: none; }
  .sec-head .sec-lede { justify-self: end; padding-bottom: 4px; }
}

/* Two-column sections (FAQ): heading on the left, content on the right */
.split { display: grid; gap: 32px; }
.split-intro .sec-lede { margin-top: 16px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 8fr; column-gap: 96px; align-items: start; }
  .split-intro { position: sticky; top: 104px; }
  .split-intro .sec-lede { margin-top: 20px; }
}

/* Scroll reveal: blocks are only hidden by the script, so the page reads fine without JavaScript */
.reveal-wait { opacity: 0; transform: translateY(14px); }
[data-reveal] { transition: opacity 500ms ease-out, transform 600ms var(--ease-out); }

/* ================================================================
   3. BUTTONS, LABELS, LISTS
   ================================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius); background: none; font-family: var(--font-label); font-size: 10px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 120ms ease; }
/* Michroma only ships one weight, so button lettering is thickened with a hairline stroke. */
.btn { -webkit-text-stroke: 0.3px currentColor; }
.btn--green { -webkit-text-stroke-width: 0.45px; }
.btn .arrow, .btn .icon { -webkit-text-stroke: 0; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn .arrow { font-family: var(--font); font-size: 15px; letter-spacing: 0; transition: transform 240ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
/* Black text on the green: white on this green is too faint */
.btn--green { background: var(--accent); color: var(--black); }
.btn--green:hover { background: var(--accent-hover); }
.btn--outline { border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn--outline:hover { border-color: var(--white); }
.btn--outline-ink { border-color: rgba(22,24,27,0.3); color: var(--text); }
.btn--outline-ink:hover { border-color: var(--text); }
.btn--small { min-height: 42px; padding: 0 18px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg, var(--white)); font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.text-link .arrow { color: var(--mark, var(--accent)); font-family: var(--font); font-size: 15px; letter-spacing: 0; transition: transform 240ms var(--ease-out); }
.text-link:hover .arrow { transform: translateX(4px); }

.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; }
.tick-list .icon { width: 16px; height: 16px; margin-top: 0.3em; color: var(--mark); stroke-width: 2; }

.stars { display: flex; gap: 3px; margin-bottom: 16px; color: #E9A917; }
.stars .icon { width: 13px; height: 13px; }

/* ================================================================
   4. HEADER AND MOBILE MENU
   ================================================================ */
/* The header always takes up the same room in the page (--header-h). Only the black bar drawn inside it
   (--bar) gets shorter after scrolling, so nothing below moves when it shrinks. That matters: if the page
   moved, the scroll position would change, the bar would grow back, and the two would chase each other. */
.site-header { --bar: var(--header-h); position: sticky; top: 0; z-index: 100; height: var(--header-h); color: var(--white); pointer-events: none; }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--bar); background: var(--black); transition: height 220ms ease, background-color 300ms ease, box-shadow 300ms ease; }
/* The four-colour stripe from the logo runs under the header. On the homepage it is held back at the top
   of the page and draws in from the left once you scroll. */
.site-header::after { content: ""; position: absolute; inset: var(--bar) 0 auto; height: 2px; background: var(--swoosh); transform-origin: left; transition: top 220ms ease, transform 600ms var(--ease-out); }
/* Homepage, top of the page: the bar is frosted glass over the hero photo with a hairline under it,
   the same finish as the band of figures at the bottom of the hero */
body:has(.hero) .site-header:not(.is-scrolled):not(.is-open)::before { background: rgba(11,12,13,0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 -1px 0 var(--line-dark); }
body:has(.hero) .site-header:not(.is-scrolled):not(.is-open)::after { transform: scaleX(0); }
.header-inner { position: relative; display: flex; align-items: center; gap: 20px; height: var(--bar); pointer-events: auto; transition: height 220ms ease; }
.site-header.is-scrolled { --bar: 60px; }
.site-header.is-scrolled::before { background: rgba(11,12,13,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header.is-open::before { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }

.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; text-decoration: none; }
/* The logo is George's own, cut out on a clear background: swoosh and "GP" with WINDOWS & DOORS underneath */
.logo img { width: auto; height: 46px; transition: height 220ms ease; }
/* The wings only fill the top-left corner, so by the numbers the logo is centred but to the eye it sits low. Nudge it up. */
.site-header .logo img { transform: translateY(-6%); }
.site-header.is-scrolled .logo img { height: 42px; }
@media (min-width: 900px) { .logo img { height: 54px; } .site-header.is-scrolled .logo img { height: 42px; } }
.site-footer .logo img { height: 72px; }

.main-nav { display: none; }
.header-phone { display: none; }
.header-quote { display: none; }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--white); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close, .site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

/* Phone menu: a full-screen black panel under the header bar */
.mobile-menu { pointer-events: auto; position: fixed; inset: calc(var(--header-h) + 2px) 0 0; z-index: 99; display: flex; flex-direction: column; gap: 28px; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--ink); }
/* Open and close: the panel fades and drops in, then the links follow one after another. While
   closed it stays laid out but invisible (and out of reach of taps and screen readers), so both
   directions can animate. */
.mobile-menu { transition: opacity 240ms ease, transform 340ms var(--ease-out), visibility 0s; }
@media (max-width: 899.98px) {
  .mobile-menu[hidden] { display: flex !important; visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease, visibility 0s 200ms; }
}
.mobile-menu nav a, .mobile-menu-actions { transition: opacity 320ms ease, transform 420ms var(--ease-out); }
.mobile-menu nav a:nth-child(1) { transition-delay: 60ms; } .mobile-menu nav a:nth-child(2) { transition-delay: 105ms; } .mobile-menu nav a:nth-child(3) { transition-delay: 150ms; } .mobile-menu nav a:nth-child(4) { transition-delay: 195ms; } .mobile-menu nav a:nth-child(5) { transition-delay: 240ms; }
.mobile-menu-actions { transition-delay: 300ms; }
.mobile-menu[hidden] nav a, .mobile-menu[hidden] .mobile-menu-actions { opacity: 0; transform: translateY(10px); transition: none; }
.site-header.is-scrolled .mobile-menu { top: 62px; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-head); font-size: 23px; font-weight: 400; letter-spacing: -0.02em; text-decoration: none; }
.mobile-menu nav a::after { content: "→"; color: var(--accent); font-size: 17px; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: auto; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .menu-toggle, .mobile-menu { display: none !important; }
  .logo { margin-right: 0; }
  .main-nav { display: flex; gap: 36px; margin-inline: auto; }
  .main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--soft-dark); font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: color 200ms ease; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
  .main-nav a:hover { color: var(--white); }
  .main-nav a:hover::after { transform: scaleX(1); }
  /* the phone number is set like the number on the Call buttons: the label font, spaced out, slightly thickened */
  .header-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: 8px; font-family: var(--font-label); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; -webkit-text-stroke: 0.3px currentColor; text-decoration: none; white-space: nowrap; }
  .header-phone .icon { -webkit-text-stroke: 0; }
  .header-phone .icon { width: 15px; height: 15px; color: var(--accent); }
  .header-phone:hover { color: var(--accent); }
  .header-quote { display: inline-flex; }
}
@media (min-width: 900px) and (max-width: 1099px) { .main-nav { gap: 22px; } }

/* ================================================================
   5. HERO
   One photo fills the whole hero. A dark fade sits over it (heavier
   where the words are) so the heading always reads.
   ================================================================ */
/* The photo runs up behind the header bar, so the hero is pulled up by the header height and padded back down */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,13,0.35) 0%, rgba(11,12,13,0.55) 26%, rgba(11,12,13,0.94) 52%, var(--black) 100%); }
.hero-copy { padding-block: 150px 28px; }
.hero .label { color: var(--soft-dark); }
@media (max-width: 479px) { .hero .label { font-size: 8.5px; letter-spacing: 0.08em; white-space: nowrap; } }
.hero-sub { margin-top: 18px; max-width: 52ch; color: var(--soft-dark); }
.hero-actions { display: grid; gap: 10px; margin-top: 28px; }
.hero-actions .btn--outline { background: rgba(11,12,13,0.4); }
.hero-note { margin-top: 10px; color: var(--muted-dark); font-size: 14px; }
.hero-note a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-note a:hover { color: var(--white); }
/* The band of figures that closes the hero: four panes on a hairline, over the bottom of the photo */
/* The four-colour stripe runs edge to edge along the top of the band */
.hero-band { position: relative; border-bottom: 1px solid var(--line-dark); background: rgba(19,21,23,0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--swoosh); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
.hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
.hero-stats li { padding: 16px 0; }
.hero-stats li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
/* The four steps each take one wing colour, as a thin line along the top of the pane */
.step:nth-child(1) { --wing: var(--wing-1); } .step:nth-child(2) { --wing: var(--wing-2); } .step:nth-child(3) { --wing: var(--wing-3); } .step:nth-child(4) { --wing: var(--wing-4); }
.hero-stats strong { display: block; font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; margin-top: 7px; color: var(--muted-dark); font-family: var(--font-label); font-size: 8.5px; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; }

/* Phones and tablets: the figures sit two by two, edge to edge, and each takes one wing colour
   along its top in place of the single stripe. */
@media (max-width: 899.98px) {
  /* The dark wash protects the words, then lifts just above the figures so the photo shows
     through the frosted band (the band is about 180px tall here). The photo is
     enlarged a little so brickwork and windows, not the flat grey roof at its foot, sit behind the band. */
  .hero-media img { height: 124%; }
  /* One even wash, a little deeper behind the words and easing off towards the figures: no hard
     dark block, so the photo reads as one picture from top to bottom. */
  .hero-media::after { background: linear-gradient(180deg, rgba(11,12,13,0.3) 0%, rgba(11,12,13,0.62) 30%, rgba(11,12,13,0.78) 50%, rgba(11,12,13,0.78) 68%, rgba(11,12,13,0.5) 100%); }
  .hero-band { background: rgba(11,12,13,0.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  /* the text block sits a little above the stats, not hard against them: same hero height, 40px moved from above the text to below it */
  .hero-copy { padding-block: 110px 84px; }
  .hero-stats span { color: var(--soft-dark); }
  .hero-band::before { content: none; }
  .hero-stats.container { max-width: none; padding-inline: 0; }
  .hero-stats li, .hero-stats li:nth-child(even) { padding: 18px var(--gutter) 16px; }
  .hero-stats li:nth-child(n + 3) { border-top: 0; }
  .hero-stats li:nth-child(1) { box-shadow: inset 0 2px 0 var(--wing-1); }
  .hero-stats li:nth-child(2) { box-shadow: inset 0 2px 0 var(--wing-2); }
  .hero-stats li:nth-child(3) { box-shadow: inset 0 2px 0 var(--wing-3); }
  .hero-stats li:nth-child(4) { box-shadow: inset 0 2px 0 var(--wing-4); }
}
@media (min-width: 600px) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
}
@media (min-width: 900px) {
  .hero { min-height: min(880px, 100svh); }
  .hero > .container { flex: 1; display: flex; align-items: center; }
  .hero-media img { object-position: 50% 45%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(11,12,13,0.95) 0%, rgba(11,12,13,0.84) 36%, rgba(11,12,13,0.35) 70%, rgba(11,12,13,0.15) 100%), linear-gradient(180deg, rgba(11,12,13,0.45) 0%, rgba(11,12,13,0) 22%); }
  .hero-copy { max-width: 700px; padding-block: 80px 72px; }
  .hero h1 { max-width: 17ch; }
  .hero-sub { margin-top: 24px; max-width: 48ch; font-size: 17px; }
  .hero-actions { margin-top: 36px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats li, .hero-stats li:nth-child(even) { display: flex; align-items: center; gap: 16px; padding: 26px 24px 26px 28px; border-left: 1px solid var(--line-dark); }
  .hero-stats li:nth-child(n + 3) { border-top: 0; }
  .hero-stats li:first-child { padding-left: 0; border-left: 0; }
  /* Desktop: the colour line along the top changes exactly at the dividers between the figures.
     Green runs from the left edge of the screen to the first divider and red from the last divider
     to the right edge, so those two are longer than yellow and blue. */
  .hero-band { overflow: hidden; }
  .hero-band::before { content: none; }
  .hero-stats li { position: relative; }
  .hero-stats li::before { content: ""; position: absolute; top: 0; left: -1px; right: 0; height: 2px; }
  .hero-stats li:nth-child(1)::before { left: -100vw; background: var(--wing-1); }
  .hero-stats li:nth-child(2)::before { background: var(--wing-2); }
  .hero-stats li:nth-child(3)::before { background: var(--wing-3); }
  .hero-stats li:nth-child(4)::before { right: -100vw; background: var(--wing-4); }
  .hero-stats strong { font-size: 28px; }
  .hero-stats span { margin-top: 0; max-width: 20ch; }
}

/* ================================================================
   6. PANES (SHARED GRID)
   A frame split by hairline glazing bars. The gaps between the cells
   show the frame colour behind them, which draws the bars.
   ================================================================ */
.service-grid, .steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* ================================================================
   7. SERVICES
   Six panes in one frame: five services and the smaller jobs.
   ================================================================ */
/* Services are separate cards with a small gap. On the five service cards the photo fills the whole
   card, and the words sit on a frosted dark plate over its lower part: the same finish as the
   figures on the hero and on the About photo. The sixth card (smaller jobs) is a plain dark pane. */
.service-grid { gap: 12px; background: none; border: 0; }
.service { --pad: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.service--also > * { margin-inline: var(--pad); }

.service { position: relative; }

/* The whole photo shows at the top of the card. Behind everything sits a blurred, darkened copy of
   the same photo filling the card, so the frosted plate reads as glass over one continuous image. */
.service--photo { position: relative; overflow: hidden; isolation: isolate; padding-top: 54%; background: var(--ink); color: var(--white); }
/* Which photo sits blurred behind each card. These are set here, not as style="" on the cards,
   because the live site's security header (in _headers) blocks inline styles. */
.service--photo[data-photo="windows"] { --photo: url("/assets/services/windows-600.webp"); }
.service--photo[data-photo="doors"] { --photo: url("/assets/services/doors-600.webp"); }
.service--photo[data-photo="bifolds"] { --photo: url("/assets/services/bifold-sliding-600.webp"); }
.service--photo[data-photo="roofs"] { --photo: url("/assets/services/lanterns-roofs-600.webp"); }
.service--photo[data-photo="cladding"] { --photo: url("/assets/services/cladding-600.webp"); }
.service--photo::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--photo) center / cover no-repeat; filter: blur(18px) brightness(0.9) saturate(1.15); }
.service--photo .photo { position: absolute; inset: 0 0 auto; aspect-ratio: 3 / 2; overflow: hidden; }
.service--photo .photo img { transition: transform 900ms var(--ease-out); }
.service--photo:hover .photo img { transform: scale(1.03); }
.service-body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 20px var(--pad) 14px; border-top: 1px solid rgba(255,255,255,0.16); background: rgba(11,12,13,0.58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.service-body > p { margin-top: 8px; color: var(--soft-dark); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.service-body h3 + p { flex: 1; }
.service-body > .service-incl { margin-top: 18px; padding-top: 14px; width: 100%; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 13.5px; line-height: 1.55; }
/* Each card: a green quote button first, the link to that kind of work second. */
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; width: 100%; margin-top: 16px; margin-bottom: 8px; }
/* Only the words are underlined; the arrow sits beside them, level with the middle of the capitals. */
.service-actions .text-link { color: var(--white); }
.service-actions .text-link > span:first-child { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.service-actions .text-link:hover > span:first-child { text-decoration-color: currentColor; }
.service-actions .text-link .arrow { position: relative; top: var(--arrow-lift, -2px); line-height: 1; }

.service--also { padding: 22px 0 14px; background: var(--ink); color: var(--white); }
.service--also h3 { margin-top: 0; }
.also-intro { margin-top: 8px; color: var(--soft-dark); font-size: 15px; line-height: 1.6; }
/* Two short lists side by side at every size, so the card stays compact on phones too */
.also-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; width: calc(100% - 2 * var(--pad)); margin-top: 16px; border-top: 1px solid var(--line-dark); --mark: var(--accent); }
.also-list li { display: flex; align-items: center; gap: 8px; padding-block: 10px; border-bottom: 1px solid var(--line-dark); color: var(--soft-dark); font-size: 14px; line-height: 1.35; }
.also-list li::before { width: 9px; height: 9px; }
/* The repairs card is the darker of the two greys (near-black), a step down from the page, with a hairline round it.
   The sand version it replaced is saved in site-source/backup-about-card/repairs-card-sand.css. */
.service--also { background: var(--black); outline: 1px solid var(--line-dark); outline-offset: -1px; }
/* ...and it carries the same faint green rings as the other near-black cards (review score, review banner), from its top-right corner */
.service--also { position: relative; overflow: hidden; isolation: isolate; }
.service--also::before { content: ""; position: absolute; z-index: -1; top: -200px; right: -200px; width: 380px; height: 380px; margin: 0; border: 1px solid rgba(63,191,79,0.24); border-radius: 50%; box-shadow: 0 0 0 36px rgba(63,191,79,0.045), 0 0 0 72px rgba(63,191,79,0.028); pointer-events: none; }
/* The foot of the card sits at the bottom, so its button lines up with the buttons on the photo cards */
.also-foot { width: calc(100% - 2 * var(--pad)); margin-top: auto; padding-top: 18px; }
.also-foot p { color: var(--muted-dark); font-size: 13.5px; line-height: 1.55; }
@media (min-width: 600px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .service { --pad: 28px; }
  .service--photo { padding-top: 54%; }
  .service-body { padding: 24px var(--pad) 20px; }
  .service--also { padding: 24px 0 20px; }
  /* The rows stretch so the list fills the card, which is no taller than the photo cards beside it */
  .also-list { flex: 1; grid-auto-rows: 1fr; column-gap: 20px; }
  .also-list li { gap: 12px; padding-block: 9px; font-size: 14.5px; }
}

/* ================================================================
   8. ABOUT + WHY CHOOSE GP
   A photo carrying George's name and figures; beside it his story
   and the six reasons; then one review.
   ================================================================ */
/* One card: George's photo, joined to his story on a solid charcoal pane (no picture behind it).
 */
.about-grid { position: relative; display: grid; background: var(--ink); }
.about-photo { position: relative; }
.about-photo .photo { aspect-ratio: 2 / 3; }
/* Caption plate over the bottom of the photo: name, then three figures split by hairlines.
   Same frosted finish as the band along the bottom of the hero. */
/* The photo is a close portrait, so the two labels keep clear of the face: the name is a small tag
   over the sky at the top, the strip of figures runs along the bottom over his shirt. */
.about-plate { color: var(--white); }
.about-name, .stats { background: rgba(11,12,13,0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* The tag sits flush with the left edge of the photo. */
.about-name { position: absolute; top: 18px; left: 0; margin: 0; padding: 9px 14px 9px 12px; border-left: 2px solid var(--accent); color: var(--muted-dark); font-size: 12px; line-height: 1.4; }
.about-name strong { display: block; color: var(--white); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.stats { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 14px 10px 16px 14px; border-left: 1px solid var(--line-dark); }
.stat:first-child { padding-left: 18px; border-left: 0; }
.stat strong { display: block; font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted-dark); font-size: 12.5px; line-height: 1.35; }

.why-head h3 { font-size: 22px; letter-spacing: -0.025em; }
/* George's story is a framed pane joined to the photo (the same idea as the frame of reasons below).
   Its heading is a small label; the opening line of the story does the work of a headline. */
.about-copy { --fg: var(--white); --muted: var(--soft-dark); --line: rgba(255,255,255,0.16); display: flex; flex-direction: column; padding: 26px 22px 20px; border-top: 1px solid var(--line); position: relative; background: var(--ink); color: var(--white); }
/* On a dark section the pane would vanish into the page, so it goes a shade darker (the same near-black as
   the review pane below) with a hairline round it. */
.s-ink .about-grid, .s-black .about-grid { outline: 1px solid var(--line-dark); outline-offset: -1px; }
.s-ink .about-copy, .s-black .about-copy { background: var(--black); }
.about-copy h3 { color: var(--muted); font-family: var(--font-label); font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; }
.about-lead { margin-top: 16px; color: var(--fg); font-family: var(--font-head); font-size: 22px; font-weight: 400; line-height: 1.28; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }
.about-cols { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.about-cols p { max-width: 60ch; }
.about-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.about-foot .text-link { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.about-foot .text-link:hover { text-decoration-color: currentColor; }

/* Second part: "Why choose us". A hairline splits it from George's story. Under its heading, one
   frame: a dark pane holding a customer review, joined to the six reasons as panes beside it. */
.why { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.why-head { margin-bottom: 22px; }
.why-head p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
/* The customer review leads, as a wide banner set large. Under it the six reasons sit in an open grid:
   each one a hairline, a ticked title in the heading font and a line of explanation. */
.why-quote { display: grid; padding: 26px 22px 22px; background: var(--ink); color: var(--white); outline: 1px solid var(--line-dark); outline-offset: -1px; }
.why-quote blockquote p { margin-top: 16px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; text-wrap: balance; }
.why-quote figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 13px; line-height: 1.55; }
.why-list { display: grid; margin-top: 10px; }
.why-row { padding: 20px 0 2px; margin-top: 20px; border-top: 1px solid var(--line); }
.why-row dt { font-family: var(--font-head); font-size: 19px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
/* a green tick before each reason; the explanation lines up under the title, not under the tick */
.why-row { --tick: 17px; --tick-gap: 11px; }
.why-row dt { display: flex; align-items: center; gap: var(--tick-gap); }
.why-row dt::before { content: ""; flex: none; width: var(--tick); height: var(--tick); border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233FBF4F' stroke-width='1.7' stroke-linecap='square'%3E%3Cpath d='M2.5 8.6l3.6 3.6 7.4-8.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.why-row dd { margin-top: 8px; padding-left: calc(var(--tick) + var(--tick-gap)); color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 44ch; }
@media (min-width: 600px) { .why-list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 900px) {
  /* A narrow portrait beside the words, which sit centred against it */
  .about-grid { grid-template-columns: 4fr 8fr; align-items: stretch; }
  .about-copy { padding: 44px 48px 30px; border-top: 0; border-left: 1px solid var(--line); }
  .about-lead { margin-top: 22px; font-size: 30px; line-height: 1.22; letter-spacing: -0.025em; max-width: 24ch; }
  .about-cols { margin-top: 28px; padding-top: 26px; }
  .about-foot { margin-top: auto; padding-top: 20px; }
  .about-name { top: 22px; }
}
/* Upright tablets: the portrait is capped so it doesn't fill the screen */
@media (min-width: 600px) and (max-width: 899.98px) {
  .about-grid { grid-template-columns: 300px 1fr; align-items: stretch; }
  .about-copy { border-top: 0; border-left: 1px solid var(--line); }
  .about-photo .photo { position: absolute; inset: 0; aspect-ratio: auto; }
  .about-photo .stat { padding: 10px 6px 12px 10px; } .about-photo .stat strong { font-size: 16px; } .about-photo .stat span { font-size: 11px; }
}
@media (min-width: 1200px) {
  .about-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* each figure and its label stay on one line across the foot of the photo */
  .about-photo .stat, .about-photo .stat:first-child { padding: 18px 4px 20px 16px; }
  .about-photo .stat span { font-size: 12.5px; white-space: nowrap; }
}
/* Small laptops and tablets on their side: a wider photo and tighter figures, so the strip stays below his chin */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .about-grid { grid-template-columns: 5fr 7fr; }
  .about-copy { padding: 34px 34px 24px; }
  .about-lead { font-size: 25px; }
  .about-photo .stat { padding: 12px 8px 14px 14px; }
  .about-photo .stat strong { font-size: 18px; }
  .about-photo .stat span { font-size: 12px; }
}
@media (min-width: 900px) {
  .stat { padding: 18px 12px 20px 20px; }
  .stat:first-child { padding-left: 24px; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 13px; }
  .why-head h3 { font-size: 26px; }
  /* One frame, four columns: the review pane on the left runs the full height of the two rows of reasons */
  .why { margin-top: 56px; padding-top: 48px; }
  .why-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; }
  .why-head p { margin-top: 0; }
  /* banner: stars and quote on the left, who said it on the right behind a hairline */
  .why-quote { grid-template-columns: 1fr 230px; grid-template-rows: auto auto; column-gap: 56px; align-items: end; padding: 40px 48px 42px; }
  .why-quote .stars { grid-column: 1; }
  .why-quote blockquote { grid-column: 1; }
  .why-quote blockquote p { margin-top: 20px; font-size: 32px; line-height: 1.2; letter-spacing: -0.028em; max-width: 32ch; }
  .why-quote figcaption { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; padding: 4px 0 6px 28px; border-top: 0; border-left: 1px solid var(--line-dark); }
  .why-list { grid-template-columns: repeat(3, 1fr); column-gap: 56px; margin-top: 16px; }
  .why-row { margin-top: 32px; padding-top: 22px; }
  .why-row dt { font-size: 21px; }
}

/* ================================================================
   9. OUR WORK: GALLERY, LIGHTBOX, BEFORE/AFTER
   ================================================================ */
/* Filters are a row of plain tabs on a rule; the chosen one gets the green underline */
.filters { display: flex; gap: 28px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.filters::-webkit-scrollbar { display: none; }
/* Swipe cue: sits over the right-hand end of the tabs while there are more to the right, and goes once you reach the end */
.filters-wrap { position: relative; }
.filters-more { position: absolute; top: 0; right: calc(-1 * var(--gutter)); bottom: 1px; display: flex; align-items: center; gap: 6px; padding: 0 var(--gutter) 0 44px; background: linear-gradient(90deg, transparent, var(--bg, var(--paper)) 42%); color: var(--fg); font-family: var(--font-label); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transition: opacity 240ms ease; }
.filters-more b { color: var(--mark); font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: 0; animation: nudge 1.6s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.filters-wrap.is-end .filters-more, .filters-wrap.no-scroll .filters-more { opacity: 0; }
.filter { position: relative; flex: none; min-width: 44px; min-height: 48px; padding: 0; text-align: left; border: 0; background: none; color: var(--muted); font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color 200ms ease; }
.filter::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--mark); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease-out); }
.filter:hover { color: var(--fg); }
.filter[aria-pressed="true"] { color: var(--fg); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* Rows of one height; each photo is tall, square or wide, and the photos in a row stretch to fill it edge to edge */
.gallery { --row: 136px; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 20px; }
.tile { position: relative; display: block; height: var(--row); flex: 100 1 calc(var(--row) * 1); overflow: hidden; background: var(--ink); cursor: zoom-in; }
.tile--tall { flex: 74 1 calc(var(--row) * 0.74); }
.tile--wide { flex: 150 1 calc(var(--row) * 1.5); }
/* Once the script has sized each photo into full-width rows, the sizes above stand down */
.gallery.is-laid-out .tile { flex: none; max-width: none; }
/* Jobs with more than one photo say so in the corner; the other angles open in the viewer */
.tile-count { position: absolute; top: 10px; right: 10px; padding: 5px 8px; background: rgba(11,12,13,0.8); color: var(--white); font-family: var(--font-label); font-size: 8px; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile-cap { position: absolute; inset: auto 0 0; padding: 44px 16px 14px; background: linear-gradient(rgba(11,12,13,0), rgba(11,12,13,0.9)); color: var(--white); font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity 240ms ease, transform 240ms var(--ease-out); }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.04); }
  .tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
}
.tile:focus-visible { outline-offset: -2px; }
.gallery-foot { display: grid; gap: 16px; justify-items: start; margin-top: 24px; }
.gallery-foot .btn { width: 100%; }
.gallery-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.gallery-links .text-link span { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.gallery-links .text-link:hover span { text-decoration-color: currentColor; }
@media (min-width: 600px) { .gallery-foot .btn { width: auto; } .gallery { --row: 220px; gap: 4px; }
  /* A short last row stretches to fill the width, but only so far, so one leftover photo never becomes a letterbox */
  .tile { max-width: calc(var(--row) * 2); } .tile--tall { max-width: calc(var(--row) * 1.4); } .tile--wide { max-width: calc(var(--row) * 2.7); } .filters { margin-inline: 0; padding-inline: 0; } }
@media (min-width: 900px) {
  .gallery { --row: 280px; margin-top: 28px; }
  .filters { gap: 36px; }
  .gallery-foot { grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 28px; }
  .gallery-foot .btn { grid-column: 2; width: auto; }
  .gallery-links { grid-column: 3; justify-self: end; }
}

/* Lightbox (a native <dialog>) */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,6,7,0.97); color: var(--white); }
/* While a photo is open the page behind stops scrolling and its scrollbar goes, so the viewer fills the window. */
html:has(.lightbox[open]) { overflow: hidden; }
/* Fast clicks on the arrows must not select (highlight) the photo or the text. */
.lightbox { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lightbox img { -webkit-user-drag: none; }
.lightbox::backdrop { background: rgba(5,6,7,0.97); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line-dark); }
.lb-count { color: var(--muted-dark); font-family: var(--font-label); font-size: 10px; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }
.lb-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: rgba(11,12,13,0.7); color: var(--white); cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-stage { --pad-y: 12px; --pad-x: 12px; position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: pan-y; }
/* The photo is pinned inside the stage so tall ones can never run over the caption line. */
.lb-stage img { position: absolute; top: var(--pad-y); left: var(--pad-x); width: calc(100% - 2 * var(--pad-x)); height: calc(100% - 2 * var(--pad-y)); object-fit: contain; transition: opacity 200ms ease; }
.lb-stage.is-loading img { opacity: 0.3; }
/* Loading ring while the full-size photo arrives */
.lb-stage.is-loading::after { content: ""; position: absolute; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -23px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-cap { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); text-align: center; color: var(--soft-dark); font-size: 14.5px; line-height: 1.4; }
@media (min-width: 900px) { .lb-stage { --pad-y: 20px; --pad-x: 96px; } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* Before/after sliders */
.ba-wrap { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.ba-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.ba-head h3 { font-size: 22px; letter-spacing: -0.025em; }
.ba-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.ba-nav { display: flex; align-items: center; gap: 8px; }
.ba-nav .spot-btn[disabled] { opacity: 0.35; cursor: default; }
.ba-nav .spot-btn[disabled]:hover { border-color: var(--line); }
/* A row of cards that scrolls sideways and snaps: swipe it, or use the arrows. Each card is one
   job: the before/after slider, then what was done. */
.ba-grid { display: flex; gap: 12px; margin: 24px calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.ba-grid::-webkit-scrollbar { display: none; }
.ba-item { position: relative; flex: 0 0 84%; scroll-snap-align: start; }
.ba { --pos: 50%; position: relative; aspect-ratio: 5 / 6; overflow: hidden; background: var(--ink); user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white); pointer-events: none; }
/* The handle: a semi-transparent dark square (frosted, like the caption plates) with white arrows and a fine white edge */
.ba-handle { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.55); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M16 16l-7 7 7 7M30 16l7 7-7 7'/%3E%3C/svg%3E") center / 46px 46px no-repeat, rgba(11,12,13,0.5); background-origin: border-box; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* the two arrows are drawn in the background above (larger and wider apart than the old icon), so the icon itself is hidden */
.ba-handle .icon { display: none; }
.ba-tag { position: absolute; top: 10px; padding: 5px 8px; background: rgba(11,12,13,0.8); color: var(--white); font-family: var(--font-label); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; pointer-events: none; }
.ba-tag--before { left: 10px; } .ba-tag--after { right: 10px; background: var(--accent); color: var(--black); }
/* The invisible range input is what moves the split. Only its thumb (a tall strip around the
   white line) takes touches, so a swipe anywhere else on the photo scrolls the row of cards.
   The input overhangs the photo by half a thumb each side so the thumb centre tracks the line. */
/* The draggable area is a square round the white handle (84px, about twice the handle), not the whole
   height of the line, so a touch anywhere else on the photo scrolls the page or swipes the row as normal. */
.ba input[type="range"] { --thumb: 84px; position: absolute; top: 50%; left: calc(var(--thumb) / -2); width: calc(100% + var(--thumb)); height: var(--thumb); margin-top: calc(var(--thumb) / -2) !important; margin: 0; padding: 0; opacity: 0; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; }
.ba input[type="range"]::-webkit-slider-runnable-track { height: 100%; background: none; }
.ba input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: 100%; background: none; cursor: ew-resize; pointer-events: auto; touch-action: pan-y; }
.ba input[type="range"]::-moz-range-track { height: 100%; background: none; }
.ba input[type="range"]::-moz-range-thumb { width: var(--thumb); height: 100%; border: 0; border-radius: 0; background: none; cursor: ew-resize; pointer-events: auto; }
.ba:has(input:focus-visible) { outline: 2px solid var(--mark); outline-offset: -2px; }
/* The job name sits on a frosted plate across the full width of the photo's foot, the same finish
   and structure as the service cards: title in the heading face, a hairline, then one line of
   detail. It lets touches through, so it never blocks the handle. */
.ba-item figcaption { position: absolute; inset: auto 0 0; padding: 11px 18px 12px; border-top: 1px solid rgba(255,255,255,0.16); background: rgba(11,12,13,0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--muted-dark); font-size: 13px; line-height: 1.45; pointer-events: none; }
.ba-item figcaption strong { display: block; margin-bottom: 6px; padding-bottom: 7px; border-bottom: 1px solid var(--line-dark); color: var(--white); font-family: var(--font-head); font-size: 16px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; }
@media (min-width: 600px) { .ba-item { flex-basis: calc((100% - 12px) / 2); } }
@media (min-width: 900px) {
  .ba-wrap { margin-top: 88px; padding-top: 40px; }
  .ba-head h3 { font-size: 26px; }
  .ba-grid { margin: 28px 0 0; padding-inline: 0; scroll-padding-inline: 0; }
  .ba-item { flex-basis: calc((100% - 24px) / 3); }
  .ba-item figcaption { padding: 13px 22px 14px; }
}

/* ================================================================
   10. REVIEWS
   A slim score panel on the left, six reviews on the right.
   ================================================================ */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.score-card { display: flex; flex-direction: column; padding: 4px 22px 22px; background: var(--ink); color: var(--white); }
.score { display: flex; align-items: baseline; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.score-num { font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score-num small { font-size: 0.45em; letter-spacing: 0; color: var(--muted-dark); margin-left: 2px; }
.score-text { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted-dark); }
.score-text strong { display: block; color: var(--white); font-size: 15px; font-weight: 500; }
a.score .score-text strong::after { content: "→"; margin-left: 8px; color: var(--accent); display: inline-block; transition: transform 240ms var(--ease-out); }
a.score:hover .score-text strong::after { transform: translateX(4px); }
.score-notes { display: grid; gap: 8px; margin-block: 20px 24px; color: var(--soft-dark); font-size: 14px; line-height: 1.45; }
.score-notes li { display: flex; align-items: flex-start; gap: 10px; }
.score-notes .icon { width: 15px; height: 15px; margin-top: 0.2em; color: var(--accent); stroke-width: 2; }
.score-card .btn { margin-top: auto; }

.review-grid { display: flex; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.review-grid::-webkit-scrollbar { display: none; }
.review { flex: 0 0 86%; display: flex; flex-direction: column; padding: 24px 22px; background: var(--paper); scroll-snap-align: start; }
.review blockquote { flex: 1; }
.review blockquote p { font-size: 15.5px; line-height: 1.65; }
.review figcaption { margin-top: 20px; font-size: 13px; line-height: 1.45; color: var(--muted-light); }
.review figcaption strong { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
@media (min-width: 600px) { .review { flex-basis: 46%; } }
@media (min-width: 900px) {
  .reviews-layout { grid-template-columns: 3fr 9fr; gap: 8px; align-items: stretch; }
  .score-card { padding: 8px 28px 28px; }
  .score { flex-direction: column; gap: 12px; padding-block: 26px; }
  .score-num { font-size: 52px; }
  .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .review { padding: 28px; }
}

/* The spotlight (added by the script; without it the reviews stay a plain row of cards).
   One review at a time on a stage. A wing-colour line runs along the top as a timer and the next
   review fades in when it completes. On desktop an index of every review sits beside the stage. */
.review-grid.spot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; overflow: hidden; background: var(--paper); touch-action: pan-y; }
.spot .review { grid-area: 1 / 1; padding: 30px 22px 84px; background: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 450ms ease, transform 600ms var(--ease-out), visibility 0s 450ms; }
.spot .review.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 120ms, 120ms, 0s; }
.spot .review blockquote { flex: 0 1 auto; margin-top: 18px; }
.spot .review blockquote p { font-size: 19px; line-height: 1.45; letter-spacing: -0.015em; max-width: 30ch; }
.spot .review figcaption { margin-top: 22px; }
/* The timer is a thin line along the top of the stage that fills from left to right over 7 seconds,
   in the next wing colour each time. When it's full the next review comes in. */
.spot-line { position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
.spot-line i { display: block; height: 100%; background: var(--wing-1); transform-origin: left; animation: spot-run 7s linear forwards; }
.spot.is-paused .spot-line i, .spot.is-away .spot-line i { animation-play-state: paused; }
@keyframes spot-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spot-nav { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; }
.spot-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: border-color 200ms ease, color 200ms ease; }
.spot-btn:hover { border-color: var(--text); }
.spot-btn .icon { width: 16px; height: 16px; }
.spot-count { min-width: 64px; text-align: center; color: var(--muted); font-family: var(--font-label); font-size: 10px; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }
.spot-index { display: none; }
@media (prefers-reduced-motion: reduce) { .spot-line { display: none; } }
@media (min-width: 600px) { .spot .review blockquote p { font-size: 21px; max-width: 34ch; } }
@media (min-width: 900px) {
  .reviews-layout.has-spot { grid-template-columns: 3fr 5.6fr 3.4fr; }
  .spot .review { padding: 40px 40px 100px; }
  .spot .review blockquote { margin-top: 22px; }
  .spot .review blockquote p { font-size: 24px; line-height: 1.38; letter-spacing: -0.02em; max-width: 26ch; }
  .spot-nav { left: 40px; bottom: 36px; }
  /* The index: every review as a row; the one on the stage is marked */
  .spot-index { display: flex; flex-direction: column; border: 1px solid var(--line); }
  .spot-index li { flex: 1; display: flex; border-top: 1px solid var(--line); }
  .spot-index li:first-child { border-top: 0; }
  .spot-index button { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 18px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; transition: color 200ms ease, background-color 200ms ease; }
  .spot-index button::before { content: ""; flex: none; width: 9px; height: 9px; border: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat; opacity: 0.45; }
  .spot-index button:hover { color: var(--text); }
  .spot-index button[aria-current="true"] { color: var(--text); background: var(--paper); font-weight: 500; }
  .spot-index button[aria-current="true"]::before { color: var(--accent-deep); opacity: 1; }
  .spot-job { flex: 1; }
  .spot-place { color: var(--muted-light); font-family: var(--font-label); font-size: 9px; font-weight: 400; letter-spacing: 0.14em; }
}

/* ================================================================
   11. HOW IT WORKS
   Four steps as four panes in one frame.
   ================================================================ */
.step { position: relative; padding: 22px 20px 26px; background: var(--bg, var(--paper)); }
/* Each step's wing-colour line draws across from the left as the steps scroll into view, one after
   the other, the same way the stripe under the header does. */
.step::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--wing); transform-origin: left; transition: transform 900ms var(--ease-out) var(--draw-delay, 0ms); }
.step.draw-wait::before { transform: scaleX(0); }

.step-num { display: block; margin-bottom: 18px; color: var(--fg, var(--text)); font-family: var(--font-label); font-size: 10px; letter-spacing: 0.16em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.process-cta { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 600px) { .step:nth-child(even) { --draw-delay: 300ms; } .steps { grid-template-columns: repeat(2, 1fr); } .process-cta { display: flex; flex-wrap: wrap; gap: 12px; } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(1) { --draw-delay: 0ms; } .step:nth-child(2) { --draw-delay: 300ms; } .step:nth-child(3) { --draw-delay: 600ms; } .step:nth-child(4) { --draw-delay: 900ms; }
  .step { padding: 30px 28px 40px; }
  .step-num { margin-bottom: 56px; }
  .process-cta { margin-top: 40px; }
}

/* ================================================================
   12. AREAS
   One frame, two panes: the town list on the left, a drawn map on the right.
   ================================================================ */
.areas-frame { display: grid; border: 1px solid var(--line); }
.areas-towns { padding: 22px 20px 12px; }
.areas-count { color: var(--muted); font-family: var(--font-label); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
.area-list li { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.area-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.area-list li::before { width: 9px; height: 9px; }
.area-map { background: var(--black); }
.area-map svg { display: block; width: 100%; height: auto; }
.map-shallows { fill: none; stroke: rgba(255,255,255,0.04); stroke-width: 26; stroke-linejoin: round; }
.map-land { fill: #1A1D20; stroke: #41464D; stroke-width: 1.5; stroke-linejoin: round; }
.map-road { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-bridge { fill: none; stroke: #41464D; stroke-width: 5; }
.map-dot { fill: var(--accent); }
.map-dot--minor { opacity: 0.7; }
.map-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.55; }
/* Two rings ripple out from Portsmouth, one after the other */
/* Three rings spread out from Portsmouth one after another, growing until they reach the edges of
   the map. The line stays hairline-thin however large the ring gets. */
.map-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; animation: map-pulse 7.5s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
.map-pulse--late { animation-delay: 2.5s; }
.map-pulse--last { animation-delay: 5s; }
@keyframes map-pulse { 0% { transform: scale(1); opacity: 0.75; } 70% { opacity: 0.22; } 100% { transform: scale(62); opacity: 0; } }
.map-town { fill: #E6E8EB; font-family: var(--font); font-size: 20px; font-weight: 500; paint-order: stroke; stroke: #131517; stroke-width: 5px; stroke-linejoin: round; }
.map-town--base { fill: var(--white); font-size: 27px; font-weight: 600; }
.map-town--minor { fill: #A9AEB5; font-size: 16.5px; font-weight: 400; }
.map-sea text { fill: rgba(255,255,255,0.28); font-family: var(--font-label); font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; }
/* Phones: only Portsmouth and seven main towns are labelled, set larger so they can be read on a small map */
@media (max-width: 599px) { .map-town:not(.map-town--base):not(.map-town--main), .map-sea { display: none; } .map-town--base { font-size: 35px; } .map-town--main { font-size: 30px; stroke-width: 7px; } .map-dot { r: 7px; } .map-dot--minor { r: 4px; } }
@media (min-width: 600px) { .area-list { grid-template-columns: repeat(3, 1fr); } .area-list li:nth-last-child(-n + 3) { border-bottom: 0; } }
@media (min-width: 900px) {
  /* The map sets the height; the towns pane beside it is the same height, with the list spread to fill it */
  .areas-frame { grid-template-columns: 5fr 7fr; }
  .areas-towns { display: flex; flex-direction: column; padding: 28px 26px 14px; border-right: 1px solid var(--line); }
  .area-list { flex: 1; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 0 16px; margin-top: 22px; font-size: 13.5px; }
  .area-list li, .area-list li:nth-last-child(-n + 2) { gap: 9px; padding-block: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .area-list li:nth-last-child(-n + 3) { border-bottom: 0; }
  .area-list li::before { width: 8px; height: 8px; }
}

/* ================================================================
   13. FAQ (same pattern as Josh's other sites)
   Answers are open in the HTML so they read fine without JavaScript; the script closes them.
   ================================================================ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
/* Only the first three questions show until "Show more questions" is pressed */
.faq-list.is-short .faq-item:nth-child(n + 4) { display: none; }
.faq-more { margin-top: 24px; width: 100%; }
@media (min-width: 600px) { .faq-more { width: auto; } }
.faq-item h3 { font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: inherit; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 20px 0; border: 0; background: none; color: var(--fg, var(--text)); font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; text-align: left; cursor: pointer; transition: color 200ms ease; }
.faq-question:hover { color: var(--accent-deep); }
.faq-icon { position: relative; flex: 0 0 14px; height: 14px; color: var(--mark, var(--accent-deep)); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 14px; height: 1px; background: currentColor; transition: transform 300ms var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 340ms var(--ease-out), visibility 340ms; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 44px 24px 0; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.faq-answer a { color: var(--mark, var(--accent-deep)); text-underline-offset: 3px; }
.faq-item.is-closed .faq-answer { grid-template-rows: 0fr; visibility: hidden; }
@media (min-width: 900px) { .faq-question { font-size: 19px; padding: 26px 0; } }

/* ================================================================
   14. GET A QUOTE
   ================================================================ */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.quote-copy .sec-lede { margin-top: 16px; color: var(--soft-dark); }
.quote-copy .tick-list { margin-top: 24px; color: var(--soft-dark); font-size: 15px; }
.contact-rows { border-top: 1px solid var(--line-dark); }
/* On phones and tablets the wrapper round the intro and contact rows is ignored, so the three pieces
   stack in this order: intro, form, contact rows. */
.quote-side { display: contents; }
.quote-copy { order: 1; } .quote-card { order: 2; } .contact-rows { order: 3; }
.contact-row { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.contact-row .icon { width: 18px; height: 18px; color: var(--accent); }
.contact-row span { display: block; color: var(--muted-dark); font-family: var(--font-label); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; }
.contact-row strong { display: block; margin-top: 3px; color: var(--white); font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3; overflow-wrap: anywhere; }
.contact-row .arrow { margin-left: auto; color: var(--muted-dark); font-family: var(--font); font-size: 16px; letter-spacing: 0; transition: transform 240ms var(--ease-out), color 200ms ease; }
.contact-row:hover .arrow { transform: translateX(4px); color: var(--accent); }

.quote-card { padding: 24px 20px; background: var(--white); border-top: 2px solid var(--accent); color: var(--text); --fg: var(--text); --mark: var(--accent-deep); }
.form-grid { display: grid; gap: 18px; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.optional { color: var(--muted-light); font-weight: 400; }
.req { color: #B3261E; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #C4C3BC; border-radius: var(--radius); background: var(--white); font-size: 16px; line-height: 1.5; transition: border-color 200ms ease, box-shadow 200ms ease; }
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7B8087; }
.field input:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(63,191,79,0.3); }
.field-error { margin-top: 8px; color: #B3261E; font-size: 13.5px; line-height: 1.4; }
.field-error:empty { display: none; }

/* Tick-box and radio options as square toggles */
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #C4C3BC; border-radius: var(--radius); background: var(--white); font-size: 14px; line-height: 1.3; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.choice input:hover + span { border-color: var(--text); }
.choice input:checked + span { border-color: var(--black); background: var(--black); color: var(--white); }
.choice input:checked + span::before { content: ""; width: 8px; height: 4px; margin-top: -3px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.form-actions { display: grid; gap: 10px; margin-top: 24px; }
.form-actions .btn { padding: 8px 12px; white-space: normal; text-align: center; }
.form-note { margin-top: 16px; color: var(--muted-light); font-size: 13px; line-height: 1.5; }
.form-note a { color: var(--text); text-underline-offset: 3px; }
.form-status { margin-top: 12px; font-size: 14.5px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; border-left: 2px solid #B3261E; background: #FBEAE8; color: #8C1D18; }
.form-status a { color: inherit; }

/* The form is a near-black card, a step darker than the page, with a hairline round it and the same
   faint green rings as the other near-black cards. Fields are a slightly lifted dark with light text.
   (The sand version it replaced is saved in site-source/backup-about-card/quote-form-sand.css.) */
.quote-card { position: relative; overflow: hidden; isolation: isolate; background: var(--black); border-top: 0; outline: 1px solid var(--line-dark); outline-offset: -1px; color: var(--white); --fg: var(--white); --mark: var(--accent); }
.quote-card::after { content: ""; position: absolute; z-index: -1; top: -230px; left: -210px; width: 480px; height: 480px; border: 1px solid rgba(63,191,79,0.24); border-radius: 50%; box-shadow: 0 0 0 44px rgba(63,191,79,0.045), 0 0 0 88px rgba(63,191,79,0.028); pointer-events: none; }
.quote-card :focus-visible { outline-color: var(--accent); }
.quote-card .req, .quote-card .field-error { color: #FF8A80; }
.quote-card .field input[type="text"], .quote-card .field input[type="tel"], .quote-card .field input[type="email"], .quote-card .field textarea, .quote-card .choice span { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.05); color: var(--white); }
.quote-card .field input::placeholder, .quote-card .field textarea::placeholder { color: var(--muted-dark); }
.quote-card .field input:hover, .quote-card .field textarea:hover, .quote-card .choice input:hover + span { border-color: rgba(255,255,255,0.6); }
.quote-card .field input:focus, .quote-card .field textarea:focus { border-color: var(--white); box-shadow: 0 0 0 3px rgba(63,191,79,0.35); }
/* text the browser fills in for you keeps the dark field, not its own pale yellow */
.quote-card .field input:-webkit-autofill { -webkit-text-fill-color: var(--white); box-shadow: 0 0 0 100px #17191B inset; caret-color: var(--white); }
.quote-card .choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--black); }
.quote-card .choice input:checked + span::before { border-color: var(--black); }
.quote-card .choice input:focus-visible + span { outline-color: var(--white); }
.quote-card .form-note, .quote-card .optional { color: var(--muted-dark); }
.quote-card .form-note a { color: var(--white); }
.quote-card .btn--outline-ink { border-color: rgba(255,255,255,0.3); color: var(--white); }
.quote-card .btn--outline-ink:hover { border-color: var(--white); }

@media (min-width: 600px) {
  .quote-card { padding: 32px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .form-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: 5fr 7fr; gap: 44px 88px; align-items: start; }
  .quote-side { display: block; grid-column: 1; grid-row: 1; }
  .quote-side .contact-rows { margin-top: 44px; }
  .quote-copy .sec-lede { margin-top: 20px; }
  .quote-card { grid-column: 2; grid-row: 1; padding: 40px; }
}

/* ================================================================
   15. FOOTER, STICKY BAR, SMALL PAGES
   ================================================================ */
.site-footer { position: relative; background: var(--black); color: var(--muted-dark); font-size: 14.5px; line-height: 1.6; }
.site-footer::before { content: ""; display: block; height: 2px; background: var(--swoosh); }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.site-footer h2 { margin-bottom: 12px; color: var(--muted-dark); font-family: var(--font-label); font-size: 9px; font-weight: 400; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 36px; color: var(--soft-dark); text-decoration: none; transition: color 200ms ease; }
.footer-list a:hover { color: var(--white); }
.footer-list .icon { width: 15px; height: 15px; color: var(--muted-dark); }
.footer-list li:not(:has(a)) { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.footer-list--cols { columns: 2; column-gap: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 20px 26px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom p:first-child { margin-right: auto; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 3fr 3fr 3fr; gap: 32px; padding-block: 80px 56px; } }

/* Phone-only bar fixed to the bottom: Call, WhatsApp, Free quote. Three flat cells, edge to edge. */
.sticky-bar { position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.2fr; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line-dark); background: var(--black); transform: translateY(110%); visibility: hidden; transition: transform 320ms cubic-bezier(0.4, 0, 0.8, 0.4), visibility 0s 320ms; }
/* Coming in, the bar rises slowly from below the screen and settles; its three buttons follow one
   after another. Going out it just drops away, quicker. */
.sticky-bar.is-shown { transform: none; visibility: visible; transition: transform 640ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
.sticky-bar a > * , .sticky-bar a { --rise: 0ms; }
.sticky-bar a { opacity: 0; transition: opacity 200ms ease; }
.sticky-bar.is-shown a { opacity: 1; transition: opacity 420ms ease var(--rise); }
.sticky-bar a:nth-child(1) { --rise: 140ms; }
.sticky-bar a:nth-child(2) { --rise: 220ms; }
.sticky-bar a:nth-child(3) { --rise: 300ms; }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-left: 1px solid var(--line-dark); color: var(--white); font-family: var(--font-label); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.sticky-bar a:first-child { border-left: 0; }
.sticky-bar a.is-green { border-left: 0; background: var(--accent); color: var(--black); }
.sticky-bar .icon { width: 15px; height: 15px; color: var(--accent); }
body.menu-open .sticky-bar { display: none; }
@media (max-width: 899px) { body.has-sticky-bar { padding-bottom: calc(55px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* Privacy and 404 */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; display: flex; flex-direction: column; }
.page-simple main > section { flex: 1; }
.page-simple .header-inner .btn { margin-left: auto; }
.simple { padding-block: 56px 80px; }
.simple .lead { margin-top: 18px; max-width: 52ch; color: var(--soft-dark); font-size: 17px; }
.simple .lead a { text-underline-offset: 4px; }
.simple-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.simple-tick { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; background: var(--accent); color: var(--black); }
.simple-tick .icon { width: 22px; height: 22px; stroke-width: 2; }
.simple-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 20px; list-style: square; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent-deep); }
.prose a { color: var(--accent-deep); text-underline-offset: 3px; }
.prose .updated { color: var(--muted-light); font-size: 14px; }
@media (min-width: 900px) { .simple { padding-block: 104px 128px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-pulse { display: none; }
  .filters-more b { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .tile:hover img, .service:hover .photo img, .btn:hover .arrow, .text-link:hover .arrow { transform: none; }
}


/* ================================================================
   16. SMALL FINISHING DETAILS
   Three quiet touches. Each can be removed on its own by deleting its block.
   ================================================================ */

/* (a) Faint rings: one thin circle with two wider, fainter bands round it, mostly off the edge of
   the panel so only an arc shows. Behind the review banner in "Why choose us" (green) and in the
   bottom corner of the quote section (white). */
.why-quote { position: relative; overflow: hidden; isolation: isolate; }
.why-quote::after { content: ""; position: absolute; z-index: -1; top: -210px; right: -120px; width: 480px; height: 480px; border: 1px solid rgba(63,191,79,0.22); border-radius: 50%; box-shadow: 0 0 0 44px rgba(63,191,79,0.04), 0 0 0 88px rgba(63,191,79,0.025); pointer-events: none; }
/* the same green rings on the black score card in Reviews, coming in from its bottom-right corner */
.score-card { position: relative; overflow: hidden; isolation: isolate; }
.score-card::after { content: ""; position: absolute; z-index: -1; bottom: -170px; right: -170px; width: 360px; height: 360px; border: 1px solid rgba(63,191,79,0.26); border-radius: 50%; box-shadow: 0 0 0 36px rgba(63,191,79,0.05), 0 0 0 72px rgba(63,191,79,0.03); pointer-events: none; }
@media (max-width: 899.98px) {
  .why-quote::after { top: -150px; right: -150px; width: 300px; height: 300px; box-shadow: 0 0 0 30px rgba(63,191,79,0.04), 0 0 0 60px rgba(63,191,79,0.025); }
}

/* (b) Grain: a very fine speckle over the whole page, so the flat greys look less like a screen fill.
   It sits above everything but takes no clicks. */
body::after { content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0.045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* (c) How it works: a small square in the step's colour sits at the start of its line, and pops in
   just as the line starts to draw. */
.step::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; background: var(--wing); transition: transform 420ms var(--ease-out) var(--draw-delay, 0ms); }
.step.draw-wait::after { transform: scale(0); }

/* (e) Top bar: one thin line of proof above the header (rating, review count, two more facts). */
.top-bar { position: relative; z-index: 101; border-bottom: 1px solid var(--line-dark); background: var(--black); color: var(--soft-dark); font-family: var(--font-label); font-size: 8.5px; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.top-bar .container { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 36px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.top-bar-rating { color: var(--white); text-decoration: none; }
.top-bar-rating strong { font-weight: 400; color: var(--white); }
.top-bar-rating:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.top-bar-dim { color: var(--soft-dark); }
.top-bar .stars { margin: 0; gap: 2px; }
.top-bar .stars .icon { width: 10px; height: 10px; }
.top-bar-extra { display: none; }
/* while the phone menu is open the bar steps aside, so the menu sits flush under the header */
body.menu-open .top-bar { display: none; }
@media (min-width: 900px) {
  .top-bar .container { justify-content: space-between; }
  .top-bar-extra { display: inline-flex; }
  /* small laptops only have room for two items */
  .top-bar-extra + .top-bar-extra { display: none; }
}
@media (min-width: 1200px) { .top-bar-extra + .top-bar-extra { display: inline-flex; } }

/* (f) How it works as a picture card.
   A photo of a job in progress (a fitter on a tower, under a dark sky) fills the left of the card at close to its real size, so
   it stays sharp. The heading, a line of intro and the two buttons sit on it, under a wash that is
   darkest behind the words. On the right the four steps run down a frosted glass panel as a timeline:
   number, title and a line each, with the step's wing colour as a line along its top edge that draws
   across on scroll. Behind that panel is a blurred copy of the same photo.
   The hairlines that separate grey sections stay on above and below this one. */
.process-card { --photo: url("/assets/process/how-it-works.webp"); position: relative; isolation: isolate; overflow: hidden; display: grid; background: var(--black) var(--photo) center top / 100% auto no-repeat; color: var(--white); outline: 1px solid var(--line-dark); outline-offset: -1px; }
.process-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,12,13,0.74) 0%, rgba(11,12,13,0.3) 30%, rgba(11,12,13,0.2) 100%); pointer-events: none; }
.process-card .sec-head { display: block; margin: 0; padding: 30px 22px 0; min-height: 300px; }
.process-card .sec-head > * { display: block; max-width: none; }
.process-card .sec-head .sec-lede { justify-self: start; margin: 14px 0 0; padding: 0; color: var(--white); max-width: 30ch; text-align: left; }
/* the steps panel */
.process-card .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 0; background: rgba(11,12,13,0.66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,0.16); }
.process-card .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 22px 22px 24px 24px; background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.process-card .step:first-child { border-top: 0; }
.process-card .step-num { grid-column: 1; grid-row: 1 / 3; margin: 5px 0 0; color: var(--wing); }
.process-card .step h3, .process-card .step p { grid-column: 2; }
.process-card .step p { margin-top: 6px; color: var(--soft-dark); max-width: 44ch; }
/* the coloured line runs along the top of each step and draws across from the left (the base .step rule) */
.process-card .step::after { top: 0; left: 0; }
.process-card .process-cta { margin: 0; padding: 20px 22px 24px; background: var(--black); border-top: 1px solid rgba(255,255,255,0.12); }
.process-card .btn--outline-ink { background: rgba(11,12,13,0.45); }
/* Phones and tablets: the sharp photo only reaches as far as the heading, so a blurred, enlarged copy of it
   fills the card from there down, behind the frosted steps and the buttons. */
@media (max-width: 899.98px) {
  .process-card { --head: 300px; }
  .process-card .sec-head { min-height: var(--head); }
  .process-card::before { content: ""; position: absolute; inset: var(--head) -40px -40px -40px; z-index: -2; background: var(--photo) center / cover no-repeat; filter: blur(24px) brightness(0.85) saturate(1.15); }
  .process-card .steps { background: rgba(11,12,13,0.56); }
  .process-card .process-cta { background: rgba(11,12,13,0.56); }
}
@media (min-width: 600px) and (max-width: 899.98px) { .process-card { --head: 380px; } }
@media (min-width: 900px) {
  .process-card { --left: 50%; grid-template-columns: var(--left) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 600px; background-position: left 20%; background-size: var(--left) auto; }
  /* blurred copy of the photo behind the steps panel */
  .process-card::before { content: ""; position: absolute; inset: -30px -30px -30px var(--left); z-index: -2; background: var(--photo) center / cover no-repeat; filter: blur(22px) brightness(0.8) saturate(1.1); }
  .process-card::after { right: calc(100% - var(--left)); background: linear-gradient(90deg, rgba(11,12,13,0.78) 0%, rgba(11,12,13,0.4) 48%, rgba(11,12,13,0.08) 100%), linear-gradient(0deg, rgba(11,12,13,0.72) 0%, rgba(11,12,13,0) 36%); }
  .process-card .sec-head { grid-column: 1; grid-row: 1; padding: 48px 48px 0; min-height: 0; }
  .process-card .sec-head .sec-lede { margin-top: 18px; }
  .process-card .process-cta { grid-column: 1; grid-row: 2; align-self: end; padding: 0 48px 48px; background: none; border-top: 0; }
  .process-card .steps { grid-column: 2; grid-row: 1 / 3; grid-auto-rows: 1fr; border-top: 0; border-left: 1px solid rgba(255,255,255,0.16); background: rgba(11,12,13,0.6); }
  .process-card .step { grid-template-columns: 56px minmax(0, 1fr); align-content: center; padding: 24px 40px 26px 36px; }
  .process-card .step, .process-card .step:nth-child(n) { --draw-delay: 0ms; }
  .process-card .step:nth-child(2) { --draw-delay: 110ms; } .process-card .step:nth-child(3) { --draw-delay: 220ms; } .process-card .step:nth-child(4) { --draw-delay: 330ms; }
  .process-card .step::before { transition-duration: 650ms; }
}
/* Wide screens: a shorter card. The photo takes the left half with the heading at its top and the buttons at
   its foot, and the four steps sit two by two on the right, each with its number above its title. */
@media (min-width: 1200px) {
  .process-card { --left: 50%; min-height: 0; }
  .process-card .sec-head { padding-bottom: 150px; }
  .process-card .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-card .step { display: block; align-content: start; padding: 30px 32px 34px; }
  .process-card .step:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.12); }
  .process-card .step:nth-child(2) { border-top: 0; }
  .process-card .step-num { display: block; margin: 0 0 30px; }
  .process-card .step p { max-width: 30ch; }
}

/* (g) "What do you need?" as a dropdown. The button looks like the other fields and shows what has been
   picked; the list of tick-boxes opens beneath it, over the rest of the form. */
.pick { position: relative; }
.pick-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius); background: rgba(255,255,255,0.05); color: var(--muted-dark); font: inherit; font-size: 16px; line-height: 1.5; text-align: left; cursor: pointer; transition: border-color 200ms ease, box-shadow 200ms ease; }
.pick-toggle > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick.has-value .pick-toggle { color: var(--white); }
.pick-toggle:hover { border-color: rgba(255,255,255,0.6); }
.pick-toggle:focus-visible, .pick.is-open .pick-toggle { outline: none; border-color: var(--white); box-shadow: 0 0 0 3px rgba(63,191,79,0.35); }
.has-error .pick-toggle { border-color: #FF8A80; }
.pick-caret { flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform 240ms var(--ease-out), margin 240ms var(--ease-out); }
.pick.is-open .pick-caret { margin-top: 4px; transform: rotate(-135deg); }
/* the list */
.pick.is-dropdown .choice-chips { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; display: block; max-height: 300px; overflow-y: auto; border: 1px solid rgba(255,255,255,0.3); background: #17191B; box-shadow: 0 18px 40px rgba(0,0,0,0.5); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 180ms ease, transform 180ms ease, visibility 0s 180ms; }
.pick.is-dropdown.is-open .choice-chips { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms ease, transform 180ms ease, visibility 0s; }
.pick.is-dropdown .choice { display: block; border-top: 1px solid rgba(255,255,255,0.1); }
.pick.is-dropdown .choice:first-child { border-top: 0; }
.quote-card .pick.is-dropdown .choice span { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 14px; border: 0; background: none; color: var(--white); font-size: 15px; }
/* a square tick-box at the start of each row */
.quote-card .pick.is-dropdown .choice span::before { content: ""; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid rgba(255,255,255,0.45); background: none; transform: none; }
.quote-card .pick.is-dropdown .choice input:hover + span { background: rgba(255,255,255,0.06); }
.quote-card .pick.is-dropdown .choice input:checked + span { background: rgba(63,191,79,0.12); color: var(--white); }
.quote-card .pick.is-dropdown .choice input:checked + span::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B0C0D' stroke-width='2'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.quote-card .pick.is-dropdown .choice input:focus-visible + span { outline: 2px solid var(--white); outline-offset: -2px; }

/* (h) Scrollbars. The page's own bar is dark to match the site: a near-black track with a slim, square
   grey handle that turns green while you hover or drag it. Small scrolling areas (the dropdown list in
   the form, the phone menu, the message box) get a thinner version of the same.
   Chrome, Edge and Safari use the ::-webkit rules; Firefox can only take a colour and a width. */
/* Desktop only (a mouse or trackpad). On phones and tablets a styled scrollbar stops being an overlay and
   takes 12px off the width of the page, which made the whole layout jump while loading. */
@media (hover: hover) and (pointer: fine) {
  html::-webkit-scrollbar { width: 12px; height: 12px; }
  html::-webkit-scrollbar-track { background: var(--black); }
  html::-webkit-scrollbar-thumb { background: #41454B; border: 3px solid var(--black); border-radius: 0; }
  html::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:active { background: var(--accent); }
  html::-webkit-scrollbar-corner { background: var(--black); }
  .pick .choice-chips::-webkit-scrollbar, .mobile-menu::-webkit-scrollbar, .field textarea::-webkit-scrollbar { width: 8px; }
  .pick .choice-chips::-webkit-scrollbar-track, .mobile-menu::-webkit-scrollbar-track, .field textarea::-webkit-scrollbar-track { background: transparent; }
  .pick .choice-chips::-webkit-scrollbar-thumb, .mobile-menu::-webkit-scrollbar-thumb, .field textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border: 2px solid transparent; background-clip: padding-box; border-radius: 0; }
  .pick .choice-chips::-webkit-scrollbar-thumb:hover, .mobile-menu::-webkit-scrollbar-thumb:hover, .field textarea::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
  @supports (-moz-appearance: none) {
    html { scrollbar-color: #41454B #0B0C0D; }
    .pick .choice-chips, .mobile-menu, .field textarea { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.28) transparent; }
  }
}

/* (i) FAQ: plain background, nothing behind the questions. */

/* (j) Areas on phones: the 30 towns run on as one compact block of text with green dots between them,
   instead of 15 ruled rows. Same towns, about a third of the height. */
@media (max-width: 599.98px) {
  .area-list { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; padding-top: 14px; font-size: 15px; line-height: 1.9; }
  .area-list li, .area-list li:nth-last-child(-n + 2) { display: inline-flex; gap: 0; padding: 0; border: 0; white-space: nowrap; }
  .area-list li::before { content: none; }
  .area-list li:not(:last-child)::after { content: ""; flex: none; align-self: center; width: 4px; height: 4px; margin: 0 10px; background: var(--mark, var(--accent)); }
  .areas-towns { padding-bottom: 20px; }
}

/* (k) Areas on desktop: the list of towns is swapped for a short coverage panel, because the map beside it
   already names every town. Four facts as ruled rows (small label, answer in the heading font), then a button. */
.areas-facts { display: none; }
@media (min-width: 900px) {
  /* the map sets the height of the frame; the panel fits inside it */
  .areas-towns { padding: 24px 26px 24px; }
  .areas-towns .area-list, .areas-count--towns { display: none; }
  .areas-facts { display: flex; flex-direction: column; flex: 1; }
  .areas-facts dl { flex: 1; display: grid; grid-auto-rows: auto; align-content: stretch; margin: 16px 0 20px; border-top: 1px solid var(--line); }
  .areas-facts dl > div { display: grid; grid-template-columns: 128px 1fr; column-gap: 14px; align-items: baseline; align-content: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
  /* each label sits on the same line as the first line of its answer, and never wraps */
  .areas-facts dt { white-space: nowrap; color: var(--muted); font-family: var(--font-label); font-size: 9px; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; }
  .areas-facts dd { margin: 0; font-family: var(--font-head); font-size: 16.5px; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
  .areas-facts .btn { align-self: flex-start; }
}
/* small laptops: the frame is shorter, so the map takes less of the width and the panel a little more */
@media (min-width: 900px) and (max-width: 1199.98px) { .areas-frame { grid-template-columns: 1fr 1fr; align-items: stretch; } .area-map { display: flex; align-items: center; } }

/* (l) The coverage panel on phones and tablets too (the list of towns is gone everywhere) */
@media (max-width: 899.98px) {
  .areas-facts { display: flex; flex-direction: column; }
  .areas-towns { padding: 22px 20px 22px; }
  .areas-facts dl { display: grid; margin: 14px 0 20px; border-top: 1px solid var(--line); }
  .areas-facts dl > div { display: grid; grid-template-columns: 118px 1fr; column-gap: 12px; align-items: baseline; padding-block: 13px; border-bottom: 1px solid var(--line); }
  .areas-facts dt { white-space: nowrap; color: var(--muted); font-family: var(--font-label); font-size: 8.5px; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; }
  .areas-facts dd { margin: 0; font-family: var(--font-head); font-size: 16px; line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; }
  .areas-facts .btn { width: 100%; }
}
@media (min-width: 600px) and (max-width: 899.98px) { .areas-facts .btn { width: auto; align-self: flex-start; } }

/* (n) The coverage panel beside the map is the darker near-black, like the other dark cards */
.areas-towns { background: var(--black); }

/* (o) Top bar on phones: the whole bar is the tap target, and on the narrowest phones the review count drops off so the line fits */
@media (max-width: 899.98px) { .top-bar-rating { min-height: 36px; padding-inline: 8px; } }
@media (max-width: 359.98px) { .top-bar { letter-spacing: 0.1em; } .top-bar-dim { display: none; } }

/* (p) Background photos load late. The blurred photo behind each service card, the "How it works" photo and
   the faint logo behind the FAQs are decoration set in CSS, which browsers would otherwise fetch the moment
   the page opens, slowing the hero. Elements marked .bg-wait hold theirs back; the script removes the class
   as each one nears the screen. Where scripts are off (or the browser doesn't know this rule) they load
   straight away as before. */
@media (scripting: enabled) {
  .service--photo.bg-wait.bg-wait, .process-card.bg-wait { --photo: none; }
}

/* (q) Content update: the "Also" list has six longer lines, so it runs as one column; and the
   "Working with…" line sits under the service cards. */
.also-list, .service--also .also-list { grid-template-columns: 1fr; }
.works-with { margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.works-with a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.works-with a:hover { text-decoration-color: currentColor; }
#installation-only { scroll-margin-top: 140px; }

/* (r) Reviews before the script has run. Without scripts the reviews are a row you scroll sideways. With
   scripts they become the one-at-a-time stage, and switching a sideways scroller into that stage made
   the browser record a large layout jump if the page had already been drawn once. So where scripts are
   on, the row is never a scroller in the first place: it is clipped until the script turns it into the stage. */
@media (scripting: enabled) {
  .review-grid:not(.spot) { overflow: clip; scroll-snap-type: none; }
}

/* (s) Phone contact bar: pinned flush to the very bottom of the screen. Its black background carries on
   down through the strip iPhones reserve at the bottom (safe area), and a solid black skirt hangs a
   long way below the bar as well, so no page content can show between the bar and the bottom of the
   screen behind Safari's floating toolbar. */
.sticky-bar { top: auto; right: 0; bottom: 0; left: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background-color: var(--black); }
.sticky-bar::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 240px; background: var(--black); pointer-events: none; }

/* (t) Phones: the "Swipe" cue sits on its own line just above the row of gallery tabs, at the
   right, instead of on top of the tabs. The row itself just fades out at the right-hand edge
   while there are more tabs that way. */
@media (max-width: 899px) {
  .filters-wrap { display: flex; flex-direction: column; }
  .filters-more { position: static; order: -1; align-self: flex-end; padding: 0; margin-bottom: -10px; background: none; font-size: 9px; }
  .filters-wrap::after { content: ""; position: absolute; right: calc(-1 * var(--gutter)); bottom: 1px; width: 56px; height: 47px; background: linear-gradient(90deg, transparent, var(--bg, var(--paper))); pointer-events: none; transition: opacity 240ms ease; }
  .filters-wrap.is-end::after, .filters-wrap.no-scroll::after { opacity: 0; }
}

/* (u) Before/after: the "Before" and "After" tags sit in front of the white dividing line, so the
   line passes behind them when the slider is dragged right across. */
.ba-tag { z-index: 2; }

/* (v) Footer, centred: logo and one line about the business; the page links as a single row of
   small labels between two hairlines; contact details in a row; then Instagram, Facebook and
   Checkatrade. The small column headings are kept for screen readers but not shown. */
.footer-grid, .footer-grid.footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 0; padding-block: 56px 36px; text-align: center; }
.footer-brand p { margin: 16px auto 0; max-width: 44ch; }
.site-footer h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-list, .footer-list--cols { columns: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 32px; }
.footer-grid > div:nth-child(3) { order: 2; width: 100%; margin-top: 36px; padding-block: 12px; border-block: 1px solid var(--line-dark); }
.footer-grid > div:nth-child(3) a { font-family: var(--font-label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; min-height: 40px; }
.footer-grid > div:nth-child(2) { order: 3; margin-top: 28px; }
.footer-grid > div:nth-child(4) { order: 4; margin-top: 6px; }
.footer-bottom { justify-content: center; gap: 6px 28px; text-align: center; }
.footer-bottom p:first-child { margin-right: 0; }
@media (max-width: 599.98px) {
  .footer-grid > div:nth-child(3) .footer-list { gap: 0 24px; }
  .footer-grid > div:nth-child(2) .footer-list { flex-direction: column; align-items: center; gap: 0; }
}
@media (min-width: 900px) { .footer-grid, .footer-grid.footer-grid { padding-block: 72px 44px; } .footer-grid > div:nth-child(3) { margin-top: 44px; } }
.footer-grid > div:nth-child(3) a { justify-content: center; }
@media (max-width: 599.98px) { .footer-grid > div:nth-child(4) .footer-list { gap: 0 18px; } .footer-grid > div:nth-child(4) a { gap: 8px; } }

/* (w) Photo viewer zoom: the viewer handles pinch and drag itself; a small line in the top bar
   says how to zoom (double-tap on phones, double-click with a mouse). */
.lb-stage { touch-action: none; }
.lb-stage img { cursor: zoom-in; will-change: transform; }
.lb-stage.is-zoomed img { cursor: grab; }
.lb-hint { margin: 0 auto 0 18px; color: var(--muted-dark); font-family: var(--font-label); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.lb-hint .for-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .lb-hint .for-touch { display: none; } .lb-hint .for-mouse { display: inline; } }


/* (y) The black sliver that tells iPhone Safari to colour the strip behind its floating toolbar black
   while the phone contact bar is showing (see site.js). Only 4px of it is on screen, hidden behind the bar. */
.bar-tint { position: fixed; left: 0; bottom: -8px; z-index: 89; width: 100%; height: 12px; background-color: #0B0C0D; pointer-events: none; }
@media (min-width: 900px) { .bar-tint { display: none; } }

/* (z) iPhone Safari decides what colour to fill the strip behind its floating toolbar by looking at
   whatever fixed layer is on top at the bottom edge of the screen. The film-grain layer (body::after)
   covers the whole screen and sat above the contact bar, so Safari found that see-through layer and
   filled nothing. The bar and its black sliver now sit above the grain, so Safari finds solid black. */
.bar-tint { z-index: 96; }
.sticky-bar { z-index: 97; }

/* (aa) Enquiry form: one button now (Send on WhatsApp), full width of the form like the pair it replaces.
   The line that appears after sending sits on the dark form, with its link underlined. */
.form-actions--one, .form-actions.form-actions--one { grid-template-columns: 1fr; }
.btn--green .icon { color: currentColor; }
.quote-card .form-status:not(.is-error) { color: var(--soft-dark); }
.quote-card .form-status a { color: var(--white); text-underline-offset: 3px; }

/* (ab) Phone contact bar: each button is as wide as its own label plus an equal share of the spare
   room, so "WhatsApp" (the longest word) no longer looks squeezed next to "Call". The green button
   gets a little more of the spare room than the other two. */
.sticky-bar { display: flex; }
.sticky-bar a { flex: 1 1 auto; padding-inline: 6px; white-space: nowrap; }
.sticky-bar a.is-green { flex-grow: 1.6; }

/* (ac) Phone contact bar: the same faint line that runs along its top edge also runs along the
   bottom of the three buttons. */
.sticky-bar a { box-sizing: border-box; border-bottom: 1px solid var(--line-dark); }

/* (ad) The contact bar is for phones and tablets only. This has to come after the rule above that
   lays the bar out as a row, or that rule switches the bar back on at desktop width. */
@media (min-width: 900px) { .sticky-bar, .sticky-bar.is-shown { display: none; } }

/* (ae) Light sections (services, reviews, FAQs) sit on a touch lighter off-white than before. The
   review panel, and the current item in the list of reviews, keep the original off-white (--paper),
   so they read as panels on the lighter background. */
.s-light { background: #FAF9F6; --bg: #FAF9F6; }
.s-light .review-grid.spot, .s-light .review-grid:not(.spot) .review, .s-light .spot-index button[aria-current="true"] { background: #EFECE5; }

/* (af) Phones: the six "Why choose" reasons sit two across in three rows, each with a shorter
   phone-only sentence (.why-brief) in place of the full one (.why-full). They are re-ordered so the
   two reasons in a row have headings of the same length: the two long ones, then the two one-line
   ones, then the other two. The sentence lines up under its heading, not under the tick.
   Tablets and desktop keep the full sentences in the original order. */
.why-brief { display: none; }
@media (max-width: 599.98px) {
  .why-full { display: none; }
  .why-brief { display: inline; }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .why-row { --tick: 13px; --tick-gap: 8px; padding: 16px 0 0; margin-top: 16px; }
  /* each reason shares its row's two lines (heading, sentence) with its neighbour, so the two sentences
     in a row start level even when one heading wraps and the other does not */
  @supports (grid-template-rows: subgrid) { .why-row { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; } }
  .why-row:nth-child(1) { order: 1; } .why-row:nth-child(5) { order: 2; }
  .why-row:nth-child(2) { order: 3; } .why-row:nth-child(3) { order: 4; }
  .why-row:nth-child(4) { order: 5; } .why-row:nth-child(6) { order: 6; }
  .why-row dt { align-items: flex-start; font-size: 16px; line-height: 1.25; text-wrap: balance; }
  .why-row dt::before { margin-top: 4px; }
  .why-row dd { margin-top: 6px; padding-left: calc(var(--tick) + var(--tick-gap)); font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }
}

/* (ag) Service cards have one link each now ("See window work →"), a plain underlined text link with an
   arrow. One green "Get a free quote" button sits centred under the whole grid instead of a button on
   every card. */
.service-actions .text-link { flex-wrap: nowrap; text-align: left; }
.service-actions .text-link .arrow { color: var(--accent); }
.services-cta { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 599.98px) { .services-cta .btn { width: 100%; } }
@media (min-width: 900px) { .services-cta { margin-top: 44px; } }
/* (ah) Enquiry form: the "Got photos?" line sits above the send button with clear space either side. */
.form-photos { margin-top: 22px; color: var(--soft-dark); font-size: 14.5px; line-height: 1.5; }
.form-photos + .form-actions { margin-top: 16px; }
/* the long "Ask about a repair or smaller job" link stays on one line on phones */
@media (max-width: 599.98px) { .service--also .text-link { gap: 8px; font-size: 8.4px; letter-spacing: 0.09em; white-space: nowrap; } }
@media (max-width: 349.98px) { .service--also .text-link { font-size: 7.6px; letter-spacing: 0.06em; } }

/* (ai) Areas on a light background, with a light version of the card: an off-white coverage panel and
   a pale map (soft grey-blue sea, off-white land, dark town names, deeper green dots and rings). */
.s-light .areas-frame { border-color: var(--line-light); }
.s-light .areas-towns { background: var(--paper); }
.s-light .area-map { background: #E2E7E7; }
.s-light .map-shallows { stroke: rgba(255,255,255,0.55); }
.s-light .map-land { fill: #F7F5F0; stroke: #B9BFBE; }
.s-light .map-road { stroke: rgba(22,24,27,0.24); }
.s-light .map-bridge { stroke: #B9BFBE; }
.s-light .map-dot, .s-light .map-dot--minor { fill: var(--accent-deep); }
.s-light .map-ring, .s-light .map-pulse { stroke: var(--accent-deep); }
.s-light .map-town { fill: #2A2E33; stroke: #F7F5F0; }
.s-light .map-town--base { fill: var(--text); }
.s-light .map-town--minor { fill: #5A5F66; }
.s-light .map-sea text { fill: rgba(22,24,27,0.32); }

/* (aj) Two light sections in a row (areas then FAQs) get the same 90%-wide hairline between them that
   two dark sections in a row already have. */
.s-light + .s-light::before { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 1px; background: var(--line-light); }

/* (ak) How it works on a light background: the picture card itself stays dark with light text, as it
   is built over a darkened photo. */
.s-light .process-card { color: var(--white); --bg: var(--ink); --fg: var(--white); --line: var(--line-dark); --muted: var(--muted-dark); --mark: var(--accent); }
.s-light .process-card .btn--outline-ink { border-color: rgba(255,255,255,0.3); color: var(--white); }
.s-light .process-card .btn--outline-ink:hover { border-color: var(--white); }

/* (al) "Why choose" is its own light section now, with the same label + heading as the other sections.
   The review banner stays black; the ticks use the deeper green that reads on a light ground. */
#why .why { margin-top: 0; padding-top: 0; border-top: 0; }
#why .why-quote { background: var(--black); }
#why.s-light .why-row dt::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E7B2C' stroke-width='1.9' stroke-linecap='square'%3E%3Cpath d='M2.5 8.6l3.6 3.6 7.4-8.2'/%3E%3C/svg%3E"); }

/* (am) How it works sits on a split background: dark for the top half, light for the bottom half, so
   the picture card straddles the join. */
#process { background: linear-gradient(to bottom, var(--ink) 50%, #FAF9F6 50%); }

/* (an) The light lower half of How it works runs straight into the light Areas section, so Areas gets
   the usual 90%-wide hairline along its top. (The line above How it works comes from the existing rule
   for two dark sections in a row.) */
#process + .s-light::before { content: ""; position: absolute; top: 0; left: 5%; right: 5%; height: 1px; background: var(--line-light); }

/* (ao) Phones: the two actions that sat left-aligned while every other button on the page runs full
   width. The About card's green button is full width with the call link centred under it, and
   "See more on Instagram" is centred under the full-width "Show more photos" button. */
@media (max-width: 599.98px) {
  .about-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .about-foot .btn { width: 100%; justify-content: center; }
  .about-foot .text-link { align-self: center; }
  .gallery-links { display: flex; justify-content: center; width: 100%; }
}
/* (ap) A wide, soft shadow under the How it works card, so it looks like it rests on the light lower
   half of its section. It cannot be seen against the dark upper half. */
.process-card { box-shadow: 0 34px 56px -30px rgba(11,12,13,0.42), 0 10px 18px -12px rgba(11,12,13,0.22); }

/* (aq) Phones: the "Ask about a repair or smaller job" link is set smaller than the other card links to
   fit on one line, so its arrow is made a little smaller and dropped to sit level with the text. */
@media (max-width: 599.98px) { .service--also .text-link { --arrow-lift: -0.5px; } .service--also .text-link .arrow { font-size: 13.5px; } }

/* (ar) Before/after cards: the whole photo now shows, as a square, and the caption sits in its own
   strip underneath instead of lying over the bottom of the photo. Nothing in the picture (door
   bottoms, sills, the lower part of a bay) is covered any more, and the sides are no longer trimmed. */
.ba { aspect-ratio: 1 / 1; }
.ba-item { display: flex; flex-direction: column; background: var(--black); outline: 1px solid var(--line-dark); outline-offset: -1px; }
.ba-item figcaption { position: static; flex: 1; border-top: 1px solid var(--line-dark); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* (as) How it works: the dark part of the split background now stops about a third of the way down
   the card (a fixed distance from the top of the section), not at the half-way point. The card reads
   as lifted up into the dark section above, with most of it resting on the light. */
#process { --join: 270px; background: linear-gradient(to bottom, var(--ink) var(--join), #FAF9F6 var(--join)); }
@media (min-width: 900px) { #process { --join: 310px; } }

/* (at) Before/after caption strip: a blurred, darkened copy of the card's "after" photo sits behind the
   caption (its bottom edge, so the picture seems to carry on under frosted glass). Each card names its
   photo with data-ba-photo; the pictures are held back until the cards are near the screen (.bg-wait). */
.ba-item[data-ba-photo="knock-through-bifold"] { --photo: url("/assets/before-after/knock-through-bifold-after-600.webp"); }
.ba-item[data-ba-photo="front-door-sidelights"] { --photo: url("/assets/before-after/front-door-sidelights-after-600.webp"); }
.ba-item[data-ba-photo="back-door"] { --photo: url("/assets/before-after/back-door-after-600.webp"); }
.ba-item[data-ba-photo="cladding-rear"] { --photo: url("/assets/before-after/cladding-rear-after-600.webp"); }
.ba-item[data-ba-photo="knock-through-french"] { --photo: url("/assets/before-after/knock-through-french-after-600.webp"); }
.ba-item[data-ba-photo="commercial-glass"] { --photo: url("/assets/before-after/commercial-glass-after-600.webp"); }
.ba-item figcaption { position: relative; isolation: isolate; overflow: hidden; }
.ba-item figcaption::before { content: ""; position: absolute; z-index: -1; inset: -28px; background: var(--photo, none) center bottom / cover no-repeat; filter: blur(16px) brightness(0.42) saturate(1.1); }
.ba-item figcaption strong { border-bottom-color: rgba(255,255,255,0.16); }
@media (scripting: enabled) { .ba-item.bg-wait { --photo: none; } }

/* (au) Phones: the four How it works steps sit two by two, number above title, each with a shorter
   phone-only sentence (.step-brief) in place of the full one (.step-full). */
.step-brief { display: none; }
@media (max-width: 599.98px) {
  .step-full { display: none; } .step-brief { display: inline; }
  .process-card .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-card .step { display: block; padding: 18px 16px 20px; }
  .process-card .step:nth-child(2) { border-top: 0; }
  .process-card .step:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.12); }
  .process-card .step-num { display: block; margin: 0 0 14px; }
  .process-card .step h3 { font-size: 17px; line-height: 1.25; }
  .process-card .step p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }
}
/* (av) Phones and tablets: a tighter, fainter shadow under the How it works card. The wide desktop one
   read as a dark blob under a narrow card. */
@media (max-width: 899.98px) { .process-card { box-shadow: 0 14px 22px -18px rgba(11,12,13,0.38); } }

/* (aw) Tablets: the "Ask about a repair or smaller job" link stays on one line here too, with its arrow level. */
@media (min-width: 600px) and (max-width: 899.98px) { .service--also .text-link { gap: 8px; font-size: 8.4px; letter-spacing: 0.09em; white-space: nowrap; --arrow-lift: -0.5px; } .service--also .text-link .arrow { font-size: 13.5px; } }

/* (ax) Hero stats: each description breaks into even lines instead of leaving one word on its own. */
.hero-stats span { text-wrap: balance; }
/* The smallest phones: slightly tighter letter spacing so no description needs a third line. */
@media (max-width: 379.98px) { .hero-stats span { letter-spacing: 0.08em; } }
@media (max-width: 379.98px) { .hero-stats span { letter-spacing: 0.05em; } .hero-stats li, .hero-stats li:nth-child(even) { padding-inline: 14px; } }
/* (ay) Hero stats: the fourth figure is a shield-and-tick icon, drawn at the same height as the numbers beside it. */
.hero-stats strong .icon { display: block; width: 1.15em; height: 1.15em; stroke-width: 2.3; }
/* Small laptops (900 to 1199px): slightly tighter padding in the stats row so the labels keep to two lines. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .hero-stats li, .hero-stats li:nth-child(even) { gap: 12px; padding-inline: 18px 14px; }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats span { letter-spacing: 0.1em; }
}
@media (min-width: 900px) and (max-width: 1023.98px) {
  .hero-stats li, .hero-stats li:nth-child(even) { gap: 10px; padding-inline: 14px 10px; }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats strong { font-size: 25px; }
  .hero-stats span { letter-spacing: 0.06em; }
}
@media (min-width: 900px) and (max-width: 959.98px) {
  .hero-stats li, .hero-stats li:nth-child(even) { gap: 8px; padding-inline: 12px 8px; }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats strong { font-size: 23px; }
  .hero-stats span { letter-spacing: 0.03em; }
}

/* ================================================================
   Dec 2026: George's wording and the Checkatrade logos
   ================================================================ */
/* Hero headline: room for "Specialist Window and Door Installers" on two lines */
@media (min-width: 900px) { .hero h1 { max-width: 20ch; } }
/* The suppliers line under the service cards reads like the section's intro text */
.suppliers-line { margin-top: 28px; max-width: 68ch; color: var(--muted); }
.suppliers-line + .works-with { margin-top: 12px; }
/* Checkatrade wordmark (official files, shown as supplied): at the head of the score card, and under the footer caption.
   The space around each is at least the height of its letters. */
.score-logo { display: block; align-self: flex-start; padding-block: 26px 6px; }
.score-logo img { display: block; width: 140px; height: auto; }
@media (min-width: 900px) { .score-logo { padding-block: 30px 4px; } .score-logo img { width: 164px; } }
.footer-brand .footer-verified { margin-top: 28px; }
.footer-verified a { display: block; width: 130px; margin-inline: auto; }
.footer-verified img { display: block; width: 100%; height: auto; }
.footer-verified span { display: block; margin-top: 12px; font-size: 12.5px; }
/* Header links never break over two lines (Safari did this to "My work" at 1024px) */
.main-nav a { white-space: nowrap; }
/* The logo keeps its proportions when the header is tight (Safari narrowed it at 1024px) */
.site-header .logo, .site-header .logo img { flex-shrink: 0; }
/* Hero figures strip: the Checkatrade wordmark stands where the big "9/10" was. Sized so the row lines up with the other three. */
.hero-stats .stat-logo img { display: block; width: 104px; height: auto; margin-block: 5px; }
@media (min-width: 900px) { .hero-stats .stat-logo { flex: none; } .hero-stats .stat-logo img { width: 112px; margin-block: 0; } }
@media (min-width: 1200px) { .hero-stats .stat-logo img { width: 124px; } }
/* About card: the photo fills its side of the card however long the words run (and is never shorter than 2:3),
   so the figures always sit on the photo, not on a strip of empty card below it. */
@media (min-width: 900px) {
  .about-photo::before { content: ""; display: block; padding-top: 150%; }
  .about-photo .photo { position: absolute; inset: 0; aspect-ratio: auto; }
  .about-photo .photo img { width: 100%; height: 100%; object-fit: cover; }
  .about-cols { margin-bottom: 30px; }
}
/* Two rows of two paragraphs: a normal paragraph space between the rows, the wide gap only between the columns */
@media (min-width: 1200px) { .about-cols { gap: 22px 40px; } }
/* Checkatrade tick beside who wrote each review (colour on the light cards, white on the dark one) */
.review figcaption, .why-quote figcaption { display: flex; align-items: center; gap: 12px; }
.ct-tick { flex: none; width: auto; height: 30px; }
.why-quote .ct-tick { height: 26px; }
.review figcaption .by, .why-quote figcaption .by { display: block; min-width: 0; }
/* Hero eyebrow on phones: larger and brighter than the other section labels */
@media (max-width: 599.98px) { .hero .label { font-size: 11px; letter-spacing: 0.14em; color: var(--white); white-space: nowrap; } .hero .label::before { width: 19px; height: 29px; } }
/* ...and a size down on the narrowest phones, where 11px ran into the right-hand margin */
@media (max-width: 359.98px) { .hero .label { font-size: 10px; letter-spacing: 0.1em; } }
/* Phone hero: the wash is deeper behind the headline and paragraph (it was 0.62 to 0.78 there) and stays that deep to the foot */
@media (max-width: 699.98px) { .hero-media::after { background: linear-gradient(180deg, rgba(11,12,13,0.3) 0%, rgba(11,12,13,0.5) 16%, rgba(11,12,13,0.82) 32%, rgba(11,12,13,0.88) 46%, rgba(11,12,13,0.88) 100%); } }
/* A before/after card keeps to its slot whatever is inside it */
.ba-item { min-width: 0; max-width: 100%; }
.ba { width: 100%; }
