/* Glencross Scaffolding: shared parts used on every page.
   Menu bar, buttons, call bar, footer, quote form and section, cookie banner.
   Colours and other settings come from tokens.css. Look approved 12 Nov 2026
   (design/mockups/glencross-home/final.html). */

@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-400-800-normal.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: var(--jump-offset); }
body { margin: 0; font-family: var(--font); color: var(--color-text); background: var(--color-page); line-height: 1.6; font-size: var(--font-size-9); -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a, button, input, label, textarea { touch-action: manipulation; }
img { max-width: 100%; display: block; }
picture { display: contents; }  /* the photo tool wraps each photo in <picture>; this keeps the layout as if it weren't there */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
main:focus { outline: none; }  /* focused by the skip link so the next Tab starts there; not something you click */
.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 max(var(--page-gutter), env(safe-area-inset-right)) 0 max(var(--page-gutter), env(safe-area-inset-left)); }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: calc(-1 * var(--space-1)); padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Skip link: hidden until a keyboard user reaches it */
.skip { position: absolute; left: 12px; top: -100px; z-index: calc(var(--z-cookie-banner) + 1); padding: var(--space-8) var(--space-13); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font-weight: 800; }
.skip:focus { top: 12px; outline: var(--focus-ring); outline-offset: 2px; }

/* A visible focus ring everywhere a keyboard can land */
:where(a, button, input, textarea, summary):focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
:where(header.site, .hero, .quote, footer.site, .callbar, .menu-panel) :where(a, button):focus-visible { outline: var(--focus-ring-on-dark); }

/* ===== Sections and headings shared by every page ===== */
section.block { padding: var(--space-32) 0; }
h2 { margin: 0 0 var(--space-23); font-size: var(--font-size-20); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.tag { display: block; font-size: var(--font-size-3); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.go { display: inline-block; padding: var(--space-6) 0; margin: calc(-1 * var(--space-6)) 0; font-weight: 700; }  /* 44px tap area, spacing unchanged */
.go::after { content: "  →"; }
.list { list-style: none; margin: 0 0 var(--space-15); padding: var(--space-13) var(--space-15); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-15); border-radius: var(--radius-lg); background: var(--color-tile); border: 1px solid var(--color-line); font-size: var(--font-size-8); line-height: 1.4; }
.list li { padding-left: var(--space-16); position: relative; }
.list li::before { content: "✔"; position: absolute; left: 0; color: var(--color-brand); }
.links { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-18); color: var(--color-brand-deep); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: var(--space-10) var(--space-17); font: inherit; font-weight: 700; font-size: var(--font-size-8); line-height: 1.6; border: 1.5px solid transparent; text-align: center; border-radius: var(--radius-pill); cursor: pointer; }
.btn-primary { background: var(--color-brand-deep); color: var(--color-on-dark); }
.btn-secondary { border-color: var(--line-on-dark-strong); color: var(--color-on-dark); }
.btn-outline { border-color: var(--color-line-strong); color: var(--color-text); }

/* ===== Menu bar (round 4 D): dark floating bar with the orange line ===== */
/* Fixed at the top. See-through over the hero photo, then fills in near-black and floats once the page scrolls. */
/* --bar-text: the links' and the Menu button's size, and --bar-hours-text the opening hours', which menu-bar.js also reads
   to tell bigger text from normal */
header.site { --bar-text: var(--font-size-7); --bar-hours-text: var(--font-size-3); position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-menubar); color: var(--color-on-dark); transition: background-color var(--menubar-glide), box-shadow var(--menubar-glide), color var(--menubar-glide), padding var(--menubar-glide); }
/* Every property that differs between the see-through bar and the floating bar is in the transition list, so it all glides together.
   One left out changes in a single frame: max-width and padding once did, throwing the logo and buttons 12–14px sideways before they slid back.
   Only the bottom border's width is listed: listing all four makes the unused side borders start at their default 3px and shrink, a 3px wobble.
   The blur starts at 0 so it fades in instead of switching on at once. */
header.site .wrap { display: flex; align-items: center; gap: var(--space-16); height: var(--menubar-height); border-bottom: 1px solid transparent; background-clip: padding-box; box-shadow: inset 0 -3px 0 var(--color-brand); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); transition: height var(--menubar-glide), max-width var(--menubar-glide), padding var(--menubar-glide), border-bottom-width var(--menubar-glide), background-color var(--menubar-glide), border-color var(--menubar-glide), box-shadow var(--menubar-glide), border-radius var(--menubar-glide), -webkit-backdrop-filter var(--menubar-glide), backdrop-filter var(--menubar-glide); }
header.site .wrap > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-4) 0; margin: calc(-1 * var(--space-4)) 0; }  /* 44px tap area even when the logo shrinks to 34px; spacing unchanged */
.brand .mark { width: 52px; height: 52px; border-radius: var(--radius-md); transition: width var(--menubar-glide), height var(--menubar-glide), border-radius var(--menubar-glide); }
.brand .word { text-transform: uppercase; }  /* written in normal case so screen readers say the words, not the letters */
.brand .word b { display: block; font-size: var(--font-size-10); line-height: 1; letter-spacing: .04em; font-weight: 800; }
.brand .word span { display: block; font-size: var(--font-size-2); letter-spacing: .3em; opacity: .85; }
/* Its gaps are 16px from 1190px up, where all five job links show (user, q129, layout A of r-menubar-temproof.html): any closer
   and the links' tap areas, 8px past their words either side, would overlap. */
nav.main { display: flex; gap: var(--space-12); margin-left: auto; font-weight: 600; font-size: var(--bar-text); }
/* Each link's box is its 44px tap area, inside the bar's height, and the patch behind it when selected or pointed at.
   Its wider sides are cancelled by the margin, so the links' spacing is unchanged. */
nav.main a { opacity: .9; padding: var(--space-6) var(--space-5); margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-5)); border-radius: var(--radius-sm); transition: background-color var(--menu-hover-fade), opacity var(--menu-hover-fade); }
/* Pointed at or keyboard focus (user, 17 Nov): a soft see-through white patch, the selected patch's shape, so it can't
   be mistaken for the selected page. */
nav.main a:not([aria-current="page"]):is(:hover, :focus-visible) { opacity: 1; color: var(--color-on-dark); background: var(--color-hover-patch-on-dark); }
/* The current page (user, 17 Nov, mockup A of r2-menubar-selected-colour.html): white words on their own solid
   orange patch, so they read the same over the photo at the top and over the 97% bar floating above white
   sections. Pointing at it changes nothing. The section-link line's current section has the same look (user, q32
   and q33: "Same as the main menu"), and menu-bar.js moves it along the line as you scroll. */
:is(nav.main a[aria-current="page"], .grp.has-current > .grp-btn, .sec-row a[aria-current="location"]) { opacity: 1; color: var(--color-on-dark); background: var(--color-brand-deep); }
/* High-contrast mode (Windows contrast themes) paints over the patch, so the current link gets an outline in the
   system's highlight colour instead, drawn inside the link's box so it stays within the bar (bug kb-mwl0mzfuf72b9).
   While the link has keyboard focus the usual focus ring takes its place (bug kb-mwl1p94gf72xc). The section-link line's
   current section gets the same. */
@media (forced-colors: active) { :is(nav.main a[aria-current="page"], .grp.has-current > .grp-btn, .sec-row a[aria-current="location"]):not(:focus-visible) { outline: var(--current-mark-forced); outline-offset: calc(-1 * var(--space-2)); } }
.phone { text-align: right; line-height: 1.2; padding: var(--space-9) 0; margin: calc(-1 * var(--space-9)) 0; }
.phone b { display: block; font-size: var(--font-size-10); white-space: nowrap; }
.phone small { font-size: var(--bar-hours-text); opacity: .75; }
.menu-btn { display: none; align-items: center; min-height: 44px; min-width: 44px; padding: 0 var(--space-7); font: inherit; font-weight: 700; font-size: var(--bar-text); color: inherit; background: none; border: 1.5px solid var(--line-on-dark-strong); border-radius: var(--radius-pill); cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--color-on-dark); color: var(--color-dark); }
nav.main a, .phone b, .phone small, header.site .btn, .menu-btn { white-space: nowrap; }
/* The Specialist drop-down (user, q129): New build and Temporary roof in one link, shown in their place where the five job links
   don't fit (steps below). It opens on a click, a tap, or Enter or Space, and closes on another, on Escape, or once focus or a
   click goes elsewhere (menu-bar.js). The button looks like the links beside it, and carries the current-page patch while on
   one of its pages; the list is the bar's near-black, with the orange line along its top, and its links are the bar's links. */
.grp { position: relative; display: none; }
.grp-btn { display: inline-flex; align-items: center; gap: var(--space-4); font: inherit; color: inherit; background: none; border: 0; cursor: pointer; opacity: .9; padding: var(--space-6) var(--space-5); margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-5)); border-radius: var(--radius-sm); white-space: nowrap; transition: background-color var(--menu-hover-fade), opacity var(--menu-hover-fade); }
.grp-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.grp-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.grp:not(.has-current) > .grp-btn:is(:hover, :focus-visible, [aria-expanded="true"]) { opacity: 1; color: var(--color-on-dark); background: var(--color-hover-patch-on-dark); }
/* Just under the bar: 20px from the button's 44px box to the bar's edge at the top of the page, 12px once it floats, plus 4px */
.grp-list { position: absolute; z-index: 2; top: calc(100% + var(--space-16)); left: calc(-1 * var(--space-12)); margin: 0; padding: var(--space-6); list-style: none; min-width: 200px; background: var(--color-dark); border: 1px solid transparent; border-radius: var(--radius-md); box-shadow: inset 0 3px 0 var(--color-brand), var(--shadow-bar); }
header.site.is-scrolled .grp-list { top: calc(100% + var(--space-12)); }
.grp-list li { margin: 0; padding: 0; }
.grp-list li::before { content: none; }
nav.main .grp-list a { display: block; margin: 0; padding: var(--space-6) var(--space-8); min-height: 44px; }

header.site.is-scrolled { padding: var(--space-6) var(--space-12) 0; }
header.site.is-scrolled .wrap { height: var(--menubar-height-scrolled); background-color: color-mix(in srgb, var(--color-dark) 97%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 0 solid transparent; border-radius: var(--radius-bar); box-shadow: inset 0 -3px 0 var(--color-brand), var(--shadow-bar); max-width: calc(var(--page-width) - 32px); padding: 0 var(--space-8) 0 var(--space-6); }
header.site.is-scrolled .brand .mark { width: 42px; height: 42px; border-radius: var(--radius-sm); }

/* The bar steps down as the window narrows, so nothing overlaps, wraps or gets cut off. */
@media (max-width: 1239px) { .phone small { display: none; } }   /* 1. hide the opening hours */
@media (max-width: 1189px) { header.site .wrap { gap: var(--space-10); } .hdr-quote { padding-left: var(--space-14); padding-right: var(--space-14); } }   /* 2. tighten the gaps (1189px, up from 1179px, so New build fits: 20 Nov; 14px between the bar's parts, and the links' 16px kept, so the Specialist step fits at 1100px beside a Windows scrollbar, q129) */
@media (max-width: 1189px) { nav.main a.in-group { display: none; } .grp { display: flex; } }   /* 2b. New build and Temporary roof into the Specialist drop-down (q129) */
/* Bigger text's Specialist step (fit-2, below) tightens the bar as step 2 does, or it would be wider at 1190px than at 1189px
   and the Menu button would take over at the wider window (kb-mx3dsg8vf72wc). :where() keeps these as weak as step 2's own
   rules, so the narrower steps below still win. */
header.site:where(.fit-2) .wrap { gap: var(--space-10); }
:where(header.site.fit-2) .hdr-quote { padding-left: var(--space-14); padding-right: var(--space-14); }
@media (max-width: 1099px) { nav.main { display: none; } .menu-btn { display: inline-flex; margin-left: auto; } }   /* 3. Menu button instead of the links, in their place left of the phone number (user, 30 Nov) */
@media (max-width: 860px) {
  .brand .word span { display: none; }
  .hdr-quote { padding: var(--space-6) var(--space-12); font-size: var(--font-size-7); }
  header.site .wrap { height: 64px; gap: var(--space-6); padding: 0 var(--space-12); }
  .phone b { font-size: var(--font-size-8); }
  .brand .mark { width: 40px; height: 40px; border-radius: var(--radius-sm); }
  .brand .word b { font-size: var(--font-size-7); }
  header.site.is-scrolled { padding: var(--space-5) var(--space-6) 0; }
  header.site.is-scrolled .wrap { height: 58px; border-radius: var(--radius-bar-scrolled); }
  header.site.is-scrolled .brand .mark { width: 34px; height: 34px; border-radius: var(--radius-xs); }
  html { scroll-padding-top: var(--jump-offset-phone); }
}
@media (max-width: 539px) { header.site .hdr-quote { display: none; } }   /* 4. the call bar at the bottom still has "Free quote" */
@media (max-width: 389px) { .phone { display: none; } }   /* 5. the call bar still has "Call now" */
/* With only the text made bigger (a browser's text zoom), the bar can run out of room at a width where it fits at normal
   settings. menu-bar.js then takes steps 1, 2 with 2b, 3, 4 and 5 early, one at a time, until it fits, and last of all leaves the logo
   without its name beside it (the name stays for screen readers). The Menu panel has the links, the phone number and
   "Get a free quote". At normal settings it never steps: tools/width-sweep.js fails if it does (kb-mww4uioqf72gn). */
header.site.fit-1 .phone small { display: none; }
header.site.fit-2 nav.main a.in-group { display: none; }
header.site.fit-2 .grp { display: flex; }
header.site.fit-3 nav.main { display: none; }
header.site.fit-3 .menu-btn { display: inline-flex; margin-left: auto; }
header.site.fit-4 .hdr-quote { display: none; }
header.site.fit-5 .phone { display: none; }
header.site.fit-6 .brand .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The page too: with bigger text a long word, or words kept on one line, can be wider than the screen, so the page scrolls
   sideways. menu-bar.js marks the page text-big only then, and they may break. Not at normal settings: some words there
   sit a little past their box ("SafeContractor" at 320px), and breaking them would show. The sweep fails if it's marked. */
html.text-big body { overflow-wrap: anywhere; }
html.text-big .nw { white-space: normal; }

/* Section-link bar (service, projects, about and contact pages; UI spec, service page decision 13 Nov, "A2-joined";
   back 18 Nov, the user: "i want the pages to have section links that appear in the sub menu"):
   once the page is scrolled into its sections, the bar grows a slim second line of links to them, centred.
   861px and up only; phones get nothing extra. menu-bar.js switches it on (.sec) and off.
   The bar's growth uses the same glide as the rest of the bar (Exception 17 Nov); the line itself only fades and slides. */
header.site:has(.sec-row) .wrap { position: relative; overflow: hidden; overflow: clip; }
/* That clip hides the line while it slides in, and would cut off the open Specialist list too (user, 30 Nov). So it lets go
   while the list is open (grp-open, menu-bar.js), and menu-bar.js closes the list before the line comes or goes. */
header.site.grp-open:has(.sec-row) .wrap { overflow: visible; }
header.site.is-scrolled.sec .wrap { height: calc(var(--menubar-height-scrolled) + var(--section-bar) + var(--section-bar-more, 0px)); padding-bottom: calc(var(--section-bar) + var(--section-bar-more, 0px)); }
.sec-row { display: flex; position: absolute; top: calc(var(--menubar-height-scrolled) + var(--space-4)); left: 10px; right: 12px; justify-content: center; gap: var(--space-2); border-top: 1px solid var(--line-on-dark); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--menubar-glide), transform var(--menubar-glide), visibility 0s var(--menubar-glide); }
header.site.is-scrolled.sec .sec-row { opacity: 1; visibility: visible; transform: none; transition: opacity var(--menubar-glide), transform var(--menubar-glide), visibility 0s; }
.sec-row a { display: flex; align-items: center; height: var(--section-link-height); margin: var(--section-link-space) 0; padding: 0 var(--space-8); border-radius: var(--radius-sm); font-size: var(--font-size-6); font-weight: 700; white-space: nowrap; color: var(--color-on-dark-strong); transition: background-color var(--menu-hover-fade), color var(--menu-hover-fade); }
.sec-row a:not([aria-current="location"]):hover { color: var(--color-on-dark); background: var(--color-hover-patch-on-dark); }  /* the main menu's patch (user, q34) */
:where(header.site) .sec-row a:focus-visible { outline-offset: calc(-1 * var(--focus-ring-width)); }
@media (max-width: 860px) { .sec-row { display: none; } }
/* With bigger text only, the links can be wider than the bar, or their words taller than their patch. menu-bar.js then marks
   the bar sec-big: the links go onto as many lines as they need, each patch as tall as its words, and the bar grows by
   --section-bar-more, the line's extra height, which menu-bar.js measures (kb-mwxq6dgdf72x8). At normal settings it never does. */
header.site.sec-big .sec-row { flex-wrap: wrap; }
header.site.sec-big .sec-row a { height: auto; min-height: var(--section-link-height); }
/* While the line shows, the bar ends the line's height lower, so whatever the browser brings into view at the top
   (keyboard focus moving back up the page, kb-mwmblfqcf72ow) stops that much lower too, clear of the bar.
   Every jump lands on a section (section links, and "Free quote" to #quote, which sits after the section area),
   and a section's own top space already clears the taller bar, so a jump still stops where it always did
   (kb-mwmcl14af72v3: giving it back only inside the section area left the quote form 55px low). With bigger text, the
   bar's extra height (--section-bar-more) isn't given back, so a jump stops that much lower, clear of the taller bar. */
html:has(header.site.is-scrolled.sec) { scroll-padding-top: calc(var(--jump-offset) + var(--section-bar) + var(--section-bar-more, 0px)); }
html:has(header.site.is-scrolled.sec) section[id] { scroll-margin-top: calc(-1 * var(--section-bar)); }

/* Menu panel opened by the Menu button.
   STAND-IN: what the Menu button opens is still a design step. This plain list keeps the page usable meanwhile. */
/* menu-bar.js lines its left edge up with the Menu button's as it opens (user, 30 Nov), kept 16px inside the window */
.menu-panel { position: absolute; top: calc(100% + 8px); right: max(16px, calc((100vw - var(--page-width)) / 2 + var(--page-gutter))); width: min(320px, calc(100vw - 32px)); max-height: calc(100svh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-6); border-radius: var(--radius-bar); background: var(--color-dark); box-shadow: inset 0 3px 0 var(--color-brand), var(--shadow-bar); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-10); border-radius: var(--radius-sm); font-weight: 700; }
.menu-panel a:hover { background: var(--color-hover-patch-on-dark); }  /* the same patch as the menu bar links */
.menu-panel .menu-call { margin-top: var(--space-4); border-top: 1px solid var(--line-on-dark); padding-top: var(--space-4); }
.menu-panel .menu-call a { color: var(--color-brand-on-dark); }

/* ===== Quote section (round 12 B): heading, job photo, the form card in front ===== */
.quote { background: var(--color-dark); color: var(--color-on-dark); }
.quote h2 { color: var(--color-on-dark); }
.quote-wrap .top { max-width: 760px; margin-bottom: var(--space-22); }
.quote-wrap .top h2 { margin-bottom: var(--space-10); }
.quote-wrap .top .need { margin: 0; color: var(--color-on-dark-soft); font-size: var(--font-size-10); }
.quote-wrap .top .need b { color: var(--color-on-dark); }
.quote-wrap .stage { --quote-overlap: var(--space-29); --quote-words-gap: 0px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.quote-wrap .ph { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-dark-soft); }
.quote-wrap .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.quote-wrap .card { grid-column: 2; grid-row: 1 / span 2; margin: var(--space-28) 0 0 calc(-1 * var(--quote-overlap)); position: relative; min-width: 0; }
.quote-wrap .card .qf, .quote-wrap .card .sent { box-shadow: var(--shadow-form); }
.quote-wrap .after { grid-column: 1; grid-row: 2; margin-top: var(--space-18); padding-right: calc(var(--quote-overlap) + var(--quote-words-gap)); }   /* the words under the photo stop where the card's overlap starts, plus a gap where they wrap up to it (bug kb-mwp44vaaf72fz) */
.talk { margin: 0; }
.talk a { font-weight: 800; color: var(--color-brand-on-dark); overflow-wrap: anywhere; }
.quote .address { margin-top: var(--space-15); padding-top: var(--space-13); border-top: 1px solid var(--line-on-dark); font-size: var(--font-size-6); color: var(--color-on-dark-muted); }
@media (max-width: 1100px) { .quote-wrap .stage { --quote-overlap: var(--space-34); --quote-words-gap: var(--space-12); } .quote-wrap .qf { padding: var(--space-17); } }
@media (max-width: 860px) {
  .quote-wrap .stage { grid-template-columns: 1fr; }
  .quote-wrap .ph { aspect-ratio: 16 / 10; }
  .quote-wrap .card { grid-column: 1; grid-row: 2; margin: calc(-1 * var(--space-26)) var(--space-8) 0; }
  .quote-wrap .after { grid-row: 3; padding-right: 0; }
}
@media (max-width: 389px) { .quote-wrap .card { margin: calc(-1 * var(--space-23)) 0 0; } }

/* ===== Quote form ===== */
.qf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); row-gap: var(--space-8); padding: var(--space-20); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); }
.qf .full { grid-column: 1 / -1; }
.qf .field { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.qf .field:has(.err) { margin-bottom: calc(-1 * var(--space-5)); }  /* the message line sits in the gap below, so unchecked fields don't look further apart */
.qf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf label, .qf legend { font-size: var(--font-size-6); font-weight: 700; padding: 0; }
.qf input:not([type=radio]), .qf textarea { font: inherit; font-size: var(--font-size-8); padding: var(--space-8) var(--space-10); width: 100%; min-height: 50px; border-radius: var(--radius-sm); border: 1px solid var(--color-line-strong); background: var(--color-surface); color: var(--color-text); accent-color: var(--color-brand); }
.qf textarea { resize: vertical; }
.qf .err { margin: 0; min-height: 20px; font-size: var(--font-size-5); line-height: 20px; font-weight: 700; color: var(--color-error); }
.qf .bad input { border: 2px solid var(--color-error-edge); padding: var(--space-7) var(--space-9); }
.qf .chip input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.qf .chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-4); }
.qf .chip { position: relative; display: block; cursor: pointer; }
.qf .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf .chip span { display: grid; place-items: center; min-height: 50px; padding: var(--space-6) var(--space-10); border-radius: var(--radius-sm); border: 1px solid var(--color-line-strong); background: var(--color-surface); font-size: var(--font-size-8); font-weight: 700; }
.qf .chip input:checked + span { border: 2px solid var(--color-brand); background: var(--color-brand-pale); }
.qf .chip input:checked + span::before { content: "✔"; margin-right: var(--space-5); color: var(--color-brand); }  /* not colour alone */
.qf .needed { margin: 0; font-size: var(--font-size-6); color: var(--color-muted); }
.qf .no-js { margin: 0; font-size: var(--font-size-6); font-weight: 700; }
.qf .fail { margin: 0; padding: var(--space-10) var(--space-12); border-radius: var(--radius-sm); background: var(--color-brand-pale); border-left: 4px solid var(--color-brand); font-weight: 700; }
.qf .fail a, .sent a { color: var(--color-brand-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; white-space: nowrap; }
.qf button.btn { min-height: 54px; font-weight: 800; font-size: var(--font-size-9); border: 0; }
.qf button.btn[aria-busy="true"] { cursor: progress; }
.qf button.btn[aria-busy="true"]::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: var(--space-6); vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--radius-round); animation: qf-spin .8s linear infinite; }
@keyframes qf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qf button.btn[aria-busy="true"]::after { animation: none; } }
.sent { padding: var(--space-22) var(--space-20); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); }
.sent p { margin: 0; color: var(--color-muted); font-size: var(--font-size-9); }
.sent .sent-big { margin-bottom: var(--space-5); font-size: var(--font-size-14); font-weight: 800; line-height: 1.25; color: var(--color-text); }
.qf .fail:focus, .sent:focus { outline: none; }  /* focus is moved there so screen readers read it; it's not something you click */
@media (max-width: 860px) {
  .qf { grid-template-columns: 1fr; }
  .quote-wrap .qf { padding: var(--space-15) var(--space-13); }
  .qf button.btn { width: 100%; }
  .sent { padding: var(--space-18) var(--space-15); }
}

/* ===== Footer (round 13 A, plus round 13 C's orange line) ===== */
footer.site { font-size: var(--font-size-6); background: var(--color-dark-deep); color: var(--color-on-dark-muted); border-top: 5px solid var(--color-brand); }
footer.site b { color: var(--color-on-dark); }
footer.site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-20); padding-top: var(--space-26); padding-bottom: var(--space-23); }
footer.site .fbrand { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-10); }
footer.site .fbrand .mark { width: 44px; height: 44px; border-radius: var(--radius-sm); }
footer.site h2 { margin: 0 0 var(--space-8); font-size: var(--font-size-3); line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--color-on-dark); max-width: none; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
footer.site a:hover, footer.site .fcookie:hover { color: var(--color-on-dark); }
footer.site .fcall { display: inline-block; padding: var(--space-4) 0; margin: calc(-1 * var(--space-2)) 0 calc(-1 * var(--space-3)); font-size: var(--font-size-12); font-weight: 800; color: var(--color-on-dark); }
footer.site .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-16); justify-content: space-between; padding-top: var(--space-14); border-top: 1px solid var(--line-on-dark-faint); font-size: var(--font-size-4); }
/* Every link at least 44px tall. The padding is cancelled by an equal negative margin, so on a computer the
   spacing looks exactly as before. On touch screens the margin goes, so each link gets its own 44px. */
footer.site ul a, footer.site .flinks a, footer.site .fcookie { display: inline-block; padding: var(--space-8) 0; margin: calc(-1 * var(--space-8)) 0; min-width: 44px; }
footer.site .flinks { display: inline-flex; gap: var(--space-16); }
footer.site .fcookie { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
footer.site a:focus-visible, footer.site .fcookie:focus-visible { outline-offset: 2px; border-radius: var(--radius-focus); }
@media (pointer: coarse) {
  footer.site ul { gap: 0; }
  footer.site ul a, footer.site .flinks a, footer.site .fcookie { margin: 0; padding: var(--space-8) 0; }
}
@media (max-width: 860px) {
  body { font-size: var(--font-size-8); }
  section.block { padding: var(--space-27) 0; }
  h2 { font-size: var(--font-size-17); margin-bottom: var(--space-18); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; gap: var(--space-18) var(--space-14); padding-top: var(--space-23); }
  footer.site .fabout, footer.site .fcontact { grid-column: 1 / -1; }
}

/* ===== Bottom call bar (phones only) ===== */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: sticky; bottom: 0; z-index: var(--z-callbar); background: var(--color-dark); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { padding: var(--space-11); text-align: center; font-weight: 800; color: var(--color-on-dark); }
  .callbar a:first-child { background: var(--color-dark); }
  .callbar a:last-child { background: var(--color-brand-deep); }
}

/* ===== Cookie banner =====
   STAND-IN LOOK: the banner's design is still a design step. Behaviour is final: Accept and Reject are
   equally easy, nothing from Google loads before Accept, and "Cookie settings" in the footer reopens it. */
.cookie-banner { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-cookie-banner); width: min(440px, calc(100vw - 32px)); padding: var(--space-14) var(--space-15); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text); border-top: 4px solid var(--color-brand); box-shadow: var(--shadow-banner); font-size: var(--font-size-7); line-height: 1.5; }
.cookie-banner h2 { margin: 0 0 var(--space-4); font-size: var(--font-size-10); line-height: 1.3; letter-spacing: 0; max-width: none; }
.cookie-banner p { margin: 0 0 var(--space-10); color: var(--color-muted); }
.cookie-banner .was { font-weight: 700; color: var(--color-text); }
.cookie-banner p a { color: var(--color-brand-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.cookie-banner .choices .btn { padding: var(--space-7) var(--space-12); background: var(--color-dark); color: var(--color-on-dark); }
.cookie-banner :focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.cookie-banner:focus { outline: none; }
@media (max-width: 860px) { .cookie-banner { left: 10px; bottom: calc(64px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); padding: var(--space-12) var(--space-13); } }

/* ===== Plain pages: not-found, quote not sent ===== */
.plain-page { padding-top: var(--space-37); min-height: 70svh; }
.plain-page h1 { margin: 0 0 var(--space-13); font-size: var(--font-size-20); line-height: 1.08; letter-spacing: -.025em; }
.plain-page p { margin: 0 0 var(--space-16); max-width: 58ch; }
.plain-page .btn { margin: 0 var(--space-5) var(--space-5) 0; }

@media (prefers-reduced-motion: reduce) {
  header.site, header.site .wrap, .brand .mark, nav.main a, .grp-btn, .sec-row, header.site.is-scrolled.sec .sec-row, .sec-row a { transition: none; }
}
