/* ==========================================================================
   T2 Electrics & Plumbing — stylesheet
   Direction: colour chapters (tasteskill draw, seed 250808910), brand palette
   and typeface kept. House rules: no eyebrows, no hairlines, no shadows at
   rest, no gradients, flat fields, one typeface, five type steps, full-ink
   running text, headlines of two lines or fewer.
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* colour: one ground, one ink, one accent, flat fields */
  --paper: #FFFFFF;
  --ink: #1B2430;
  --navy: #030F27;
  --indigo: #292361;
  --amber: #F5A31A;
  --amber-ink: #9A6208;     /* amber for text on light grounds, 5.1:1 */
  --field: #F0F3F7;         /* the one light tone step */
  --field-2: #E3E8EF;       /* a second step, for open tiles and hover */
  --on-dark: #FFFFFF;
  --on-dark-soft: #C9D2DE;

  /* type: five steps */
  --t-small: 14px;
  --t-body: 17px;
  --t-lead: 20px;
  --t-h3: 24px;
  --t-h2: clamp(32px, 3.4vw, 46px);
  --t-display: clamp(40px, 5vw, 66px);
  --t-huge: clamp(56px, 7vw, 100px);

  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 2.5vw, 32px);
  --section: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--navy); text-underline-offset: .15em; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a, button { touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--navy); color: var(--on-dark); padding: 10px 14px; z-index: 200; }
.skip:focus { top: 12px; }
.lede { font-size: var(--t-lead); line-height: 1.45; max-width: 60ch; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.text-link:hover { text-decoration-color: currentColor; }

/* Buttons: flat, square, one fill ---------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 0; border-radius: 0; font: inherit; font-weight: 700; font-size: var(--t-body); line-height: 1.2; color: var(--navy); background: var(--amber); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--navy); color: var(--on-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 18px 32px; }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: var(--amber); color: var(--navy); }

/* Header: wordmark, plain links, one action ------------------------------ */
.site-header { position: relative; z-index: 100; background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: none; width: 48px; height: 48px; }
.brand-name { font-weight: 700; font-size: var(--t-lead); color: var(--navy); letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font: inherit; font-size: var(--t-body); font-weight: 500; color: var(--navy); background: none; border: 0; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease); }
.nav-list > li > button svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li.is-active > button, .nav-list > li > a[aria-current] { background: var(--field); }
.sub { list-style: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--paper); display: none; z-index: 50; padding: 8px 0; box-shadow: 0 16px 40px rgba(3, 15, 39, .18); /* taste-skill-ignore: a real overlay */ }
.sub li a { display: block; padding: 10px 18px; font-size: var(--t-body); text-decoration: none; color: var(--navy); }
.sub li a:hover, .sub li a[aria-current] { background: var(--field); }
.has-sub[data-open="true"] .sub { display: block; }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }
@media (hover: hover) { .has-sub:hover .sub { display: block; } }
.header-cta { flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 24px; height: 3px; background: var(--navy); content: ""; transition: transform .2s var(--ease), top .2s var(--ease); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -8px; left: 0; }
.nav-toggle-bar::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Hero: mosaic masthead, title on axis ----------------------------------- */
.masthead { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); height: 52svh; min-height: 360px; }
.m-photo { overflow: hidden; background: var(--navy); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease) infinite alternate; }
.m-a { grid-column: span 2; }
.m-tall { grid-row: span 2; }
.m-amber { background: var(--amber); }
.m-navy { background: var(--navy); }
.m-indigo { background: var(--indigo); }
.m-grey { background: var(--field); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 34% 1fr; gap: 32px; align-items: start; padding-block: 56px 0; }
.standfirst { font-size: var(--t-lead); line-height: 1.45; max-width: 30ch; margin: 0; padding-top: 14px; }
.hero-title h1 { font-size: var(--t-display); letter-spacing: -0.04em; line-height: 0.95; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.hero { padding-bottom: calc(var(--section) * .6); }

/* Title band (inner pages): a navy chapter ------------------------------- */
.masthead-sm { display: grid; grid-template-columns: repeat(6, 1fr); height: 22svh; min-height: 140px; }
.masthead-sm .m-photo img { animation-duration: 30s; }
.masthead-sm .m-a { grid-column: span 2; }
@media (max-width: 900px) { .masthead-sm { grid-template-columns: repeat(3, 1fr); height: 14svh; min-height: 90px; } .masthead-sm .m-c { display: none; } }
.title-band { background: var(--navy); color: var(--on-dark); padding-block: 48px 72px; }
.title-band h1 { color: var(--on-dark); max-width: 20ch; margin-top: 28px; }
@media (max-width: 600px) { .title-band h1 { font-size: 32px; } .call-band-note { justify-self: start; text-align: left; } }
.title-band .lede { color: var(--on-dark-soft); margin-top: 24px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--t-small); color: var(--on-dark-soft); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--amber); }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb [aria-current] { color: var(--amber); }

/* Statement tiles (home intro) ------------------------------------------- */
.statement { padding: 0 0 var(--section); background: var(--paper); }
.statement .board { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 38svh 38svh auto; gap: 8px; }
.tile { overflow: hidden; }
.tile-a { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--navy); display: flex; align-items: flex-end; padding: 20px; }
.tile-a h2 { color: var(--on-dark); font-size: var(--t-huge); line-height: .86; letter-spacing: -0.04em; text-transform: uppercase; }
.tile-b { grid-column: 9 / 13; grid-row: 1; background: var(--field); display: flex; align-items: flex-end; padding: 20px; }
.tile-b p { font-size: var(--t-huge); font-weight: 700; line-height: .86; letter-spacing: -0.04em; color: var(--navy); margin: 0; }
.tile-c { grid-column: 9 / 13; grid-row: 2; background: var(--indigo); }
.tile-c img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { grid-column: 1 / 13; grid-row: 3; grid-auto-rows: auto; display: grid; grid-template-columns: repeat(12, 1fr); background: var(--paper); min-height: 0; }
.board .tile-text { grid-row: 3; }
.tile-text p { grid-column: 7 / 13; padding: 40px 0 0 40px; font-size: var(--t-lead); line-height: 1.4; margin: 0; }

/* Content blocks ---------------------------------------------------------- */
.intro { padding-block: var(--section); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-single { grid-template-columns: minmax(0, 1fr); }
.intro-single .intro-copy { max-width: 70ch; }
.intro-copy h2 { margin-bottom: 28px; }
.intro-copy p { max-width: 62ch; }
.intro-copy .btn { margin-top: 18px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 26px 0 10px; }
.check-list li { position: relative; padding-left: 24px; font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--amber); }
.prose h2 { font-size: var(--t-h3); margin: 32px 0 10px; }

.side-card { background: var(--field); padding: 24px 26px; margin-bottom: 12px; }
.side-card h3 { font-size: var(--t-lead); margin-bottom: 12px; }
.side-card .side-links + h3 { margin-top: 26px; }
.side-links { list-style: none; display: grid; gap: 2px; }
.side-links a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; }
.side-links a:hover { color: var(--amber-ink); text-decoration: underline; }
.side-card-accent { background: var(--navy); color: var(--on-dark); }
.side-label { font-size: var(--t-small); color: var(--on-dark-soft); margin-bottom: 4px; }
.side-big { color: var(--on-dark); font-weight: 700; font-size: var(--t-lead); text-decoration: none; }
.side-big:hover { color: var(--amber); }
.side-all { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

/* Services: a typographic index on a tone field --------------------------- */
.services { background: var(--field); padding-block: var(--section); }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-head h2 { font-size: clamp(28px, 2.6vw, 36px); }
.services-head h2 { margin-bottom: 20px; }
.services-head p { max-width: 30ch; }
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.services-single .service-cols { grid-template-columns: 1fr 1fr; }
.service-col h3 { margin-bottom: 18px; }
.service-index { list-style: none; display: grid; gap: 22px; }
.service-index li a { display: block; font-weight: 700; font-size: var(--t-lead); line-height: 1.2; text-decoration: none; }
.service-index li a:hover { color: var(--amber-ink); text-decoration: underline; }
.service-index li span { display: block; margin-top: 4px; font-size: var(--t-body); line-height: 1.45; }
.service-index-dark li a { color: var(--on-dark); }
.service-index-dark li a:hover { color: var(--amber); }
.service-index-dark li span { color: var(--on-dark-soft); }

/* Commercial chapter: navy field ----------------------------------------- */
.commercial { background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.commercial h2, .commercial h3 { color: var(--on-dark); }
.commercial-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.commercial-copy p { max-width: 62ch; color: var(--on-dark); }
.commercial-copy h2 { margin-bottom: 24px; }
.commercial-copy h3 { margin: 40px 0 14px; }
.sector-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; max-width: 56ch; }
.sector-list li { position: relative; padding-left: 22px; }
.sector-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; background: var(--amber); }
.commercial-services { background: var(--indigo); padding: 32px; }
.commercial-services h3 { margin-bottom: 20px; }

/* Proof band: names running off the edges -------------------------------- */
.proof { background: var(--amber); color: var(--navy); padding-bottom: var(--section); }
.proof-band { height: 34vh; min-height: 200px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.proof-track { display: inline-flex; animation: marquee 48s linear infinite; }
.proof-track span { font-size: 8vw; font-weight: 700; letter-spacing: -0.04em; line-height: 1; padding-right: .5em; }
.proof-track span::after { content: ""; display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: currentColor; margin-left: .5em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof-note { font-size: var(--t-lead); max-width: 48ch; margin: 24px 0 0; }
.proof-pause { margin-top: 18px; background: var(--navy); color: var(--amber); border: 0; padding: 10px 16px; font: inherit; font-weight: 500; cursor: pointer; }
.proof-pause:hover { background: var(--indigo); }
.proof.is-paused .proof-track { animation-play-state: paused; }

/* Testimonial: name block, quote block ----------------------------------- */
.testimonial-split { display: grid; grid-template-columns: 5fr 7fr; min-height: 52svh; }
.testimonial-who { background: var(--navy); color: var(--on-dark); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 32px 32px max(32px, calc((100vw - var(--max)) / 2)); }
.testimonial-name { font-size: var(--t-lead); font-weight: 500; margin: 0; }
.testimonial-where { font-size: var(--t-body); color: var(--on-dark-soft); margin: 4px 0 0; }
.testimonial-quote { margin: 0; background: var(--field); padding: 48px 48px 48px 56px; }
.testimonial-quote p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; max-width: 36ch; text-indent: -.4em; color: var(--navy); font-weight: 500; }

/* Recent work ------------------------------------------------------------- */
.recent-work { padding-block: var(--section); }
.job-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; margin-top: 36px; }
.job-list li { display: grid; gap: 6px; }
.job-list time { font-size: var(--t-small); }
.job-trade { font-weight: 700; }
.job-where a { text-decoration: underline; text-decoration-color: var(--amber); }

/* FAQ: filled tiles, sticky heading -------------------------------------- */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-head p { margin-top: 16px; max-width: 32ch; }
.faq-list details { background: var(--field); margin-bottom: 8px; transition: background-color .2s var(--ease); }
.faq-list details[open] { background: var(--amber); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 20px 24px; font-weight: 500; font-size: var(--t-lead); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--navy); left: 0; top: 6.5px; width: 16px; height: 3px; transition: transform .2s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.faq-list details p { margin: 0; padding: 0 24px 24px; max-width: 52ch; }

/* News: one featured, the rest a list ------------------------------------- */
.news { padding-block: var(--section); background: var(--field); }
.news h2 { margin-bottom: 36px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.news-featured img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.news-featured time { display: block; margin: 20px 0 8px; font-size: var(--t-small); }
.news-featured h3 a { text-decoration: none; }
.news-featured h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.news-featured p { margin-top: 12px; max-width: 60ch; }
.news-list { list-style: none; display: grid; gap: 32px; }
.news-list time { display: block; font-size: var(--t-small); margin-bottom: 6px; }
.news-list a { font-weight: 700; font-size: var(--t-lead); line-height: 1.2; text-decoration: none; display: block; }
.news-list a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.news-list p { margin-top: 8px; }
.post { padding-block: var(--section); }
.post-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.post-body p { font-size: var(--t-lead); line-height: 1.5; max-width: 62ch; }
.post-body time { display: block; font-size: var(--t-small); margin: 20px 0 12px; }
.post-image { width: 100%; height: auto; }
.post-body .btn { margin-top: 10px; }

/* Towns -------------------------------------------------------------------- */
.towns { padding-block: var(--section); background: var(--field); }
.town-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 32px; margin-top: 36px; }
.town-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--paper); }
.town-list a { font-weight: 500; text-decoration: none; }
.town-list a:hover { color: var(--amber-ink); text-decoration: underline; }
.town-list span { font-size: var(--t-small); white-space: nowrap; }

/* Contact: navy chapter with the form ------------------------------------ */
.contact { padding-block: var(--section); background: var(--navy); color: var(--on-dark); }
.contact h2 { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-details { order: 2; }
.contact-details > p { color: var(--on-dark); margin-top: 18px; max-width: 40ch; }
.contact-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 28px; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 2px; }
.contact-list a { color: var(--on-dark); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--amber); }
.quote-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); order: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: var(--t-body); padding: 14px 16px; border: 2px solid var(--field-2); /* taste-skill-ignore: form fields keep their lines */ border-radius: 0; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--navy); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C62828; }
.quote-form .btn { width: 100%; }
.form-status { margin-top: 12px; font-size: var(--t-small); min-height: 1.4em; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #C62828; }

/* Call band: the number is the button ------------------------------------ */
.call-band { background: var(--amber); }
.call-band-link { display: grid; grid-template-rows: auto 1fr; min-height: 60svh; padding: 40px 0 24px; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; color: var(--navy); text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.call-band:has(.call-band-link:hover), .call-band:has(.call-band-link:focus-visible) { background: var(--navy); }
.call-band-link:hover, .call-band-link:focus-visible { background: var(--navy); color: var(--amber); }
.call-band-note { font-size: var(--t-lead); max-width: 40ch; line-height: 1.4; justify-self: end; text-align: right; }
.call-band-arrow { display: none; }
.call-band-number { align-self: end; font-weight: 700; font-size: clamp(44px, 10.4vw, 150px); letter-spacing: -0.05em; line-height: .9; white-space: nowrap; }

/* Sitemap page ------------------------------------------------------------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-group h2 { font-size: var(--t-h3); margin-bottom: 12px; }
.sitemap-group ul { list-style: none; }
.sitemap-group li a { display: block; padding: 4px 0; text-decoration: none; }
.sitemap-group li a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

/* Footer: name first, places under it ------------------------------------ */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-block: 72px 40px; }
.footer-name { color: var(--on-dark); font-weight: 700; font-size: clamp(40px, 8vw, 120px); letter-spacing: -0.04em; line-height: .95; margin: 0 0 56px; text-wrap: balance; }
.footer-row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.footer-reach { list-style: none; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; color: var(--amber); display: grid; gap: 8px; }
.footer-reach a { color: var(--amber); text-decoration: none; }
.footer-reach a:hover { text-decoration: underline; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-links h2 { color: var(--on-dark); font-size: var(--t-body); margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li a { display: block; padding: 3px 0; font-size: var(--t-small); color: var(--on-dark-soft); text-decoration: none; }
.footer-links li a:hover { color: var(--amber); }
.legal { margin-top: 96px; font-size: var(--t-small); max-width: 90ch; }

/* Overlays (the only things that float) ---------------------------------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; background: var(--paper); color: var(--ink); box-shadow: 0 16px 48px rgba(3,15,39,.25); /* taste-skill-ignore: a real overlay */ padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: var(--t-small); max-width: 900px; margin-inline: auto; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice div { display: flex; gap: 8px; }
.header-call-sm { display: none; }

/* Motion: entrances, reduced-motion fallback ------------------------------ */
html.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-rise].in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .service-cols { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-row { min-height: 72px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: 14px 0; color: var(--on-dark); }
  .nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li.is-active > button, .nav-list > li > a[aria-current] { background: transparent; color: var(--amber); }
  .sub { position: static; background: var(--indigo); padding: 4px 0; } /* taste-skill-ignore */
  .sub li a { color: var(--on-dark); padding-left: 16px; }
  .sub li a:hover { background: transparent; color: var(--amber); }
  .header-cta { margin-top: 12px; width: 100%; }
  .masthead { grid-template-columns: repeat(3, 1fr); height: 38svh; min-height: 240px; }
  .m-a { grid-column: span 1; }
  .m-c, .m-d { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .hero-title { order: -1; }
  .hero-title h1 { font-size: 8vw; }
  .standfirst { max-width: 36ch; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 6px; }
  .tile-a { grid-column: 1 / 3; grid-row: auto; min-height: 46svh; }
  .tile-a h2 { font-size: 12vw; }
  .tile-b { grid-column: 1; grid-row: auto; aspect-ratio: 1; }
  .tile-b p { font-size: 12vw; }
  .tile-c { grid-column: 2; grid-row: auto; aspect-ratio: 1; }
  .tile-text { grid-column: 1 / 3; grid-row: auto; display: block; }
  .tile-text p { padding: 20px 0 0; font-size: var(--t-body); }
  .intro-grid, .services-grid, .commercial-grid, .faq-grid, .news-grid, .post-grid, .contact-grid, .footer-row { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .testimonial-split { grid-template-columns: 1fr; min-height: 0; }
  .testimonial-quote { order: -1; padding: 24px 24px 24px 32px; }
  .testimonial-quote p { font-size: var(--t-lead); max-width: none; }
  .testimonial-who { min-height: 96px; padding: 24px; }
  .proof-band { height: 22vh; min-height: 140px; }
  .proof-track span { font-size: 15vw; }
  .town-list, .job-list, .sitemap-grid { grid-template-columns: 1fr; }
  .check-list, .sector-list { grid-template-columns: 1fr; }
  .call-band-link { min-height: 46svh; }
  .call-band-number { font-size: 10.4vw; }
  .header-call-sm { display: inline-flex; margin-left: auto; padding: 10px 14px; gap: 6px; }
  .header-call-sm svg { width: 18px; height: 18px; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-details > p, .proof-note, .standfirst, .faq-head p, .services-head p { max-width: none; }
  .quote-form { padding: 16px; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; animation: none; }
  .m-photo img { animation: none; }
  .proof-track { animation: none; }
  html.js [data-rise] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
