/* ==========================================================================
   bestdrainage.london - design system
   Motif: the pipe ring from the logo. Light, photo-led, engineering-plain.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
.ico { display: inline-block; vertical-align: middle; flex: none; }

:root {
  --navy: #102a45;
  --navy-deep: #0b1e33;
  --teal: #019fa7;
  --teal-ink: #00747a;
  --aqua: #e8f3f4;
  --mist: #f5f9fa;
  --line: #d3e2e6;
  --text: #22384b;
  --muted: #586d7e;
  --white: #ffffff;
  --maxw: 1200px;
  --r: 8px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.015em; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--teal-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small sentence-case label: what the block is about, never shouted. */
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--teal-ink); }
.kicker .ico { color: var(--teal); }

/* Buttons ------------------------------------------------------------------ */
.btn, .btn-call-lg, .btn-ghost, .btn-call-block, .btn-call-dark, .call, .form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2;
  border-radius: var(--r); padding: 13px 20px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--lg, .btn-call-lg, .btn-ghost { padding: 15px 24px; font-size: 17px; }
.btn--solid, .btn-call-lg, .btn-call-block, .call, .form-submit { background: var(--teal-ink); color: #fff; }
.btn--solid:hover, .btn-call-lg:hover, .btn-call-block:hover, .call:hover, .form-submit:hover { background: var(--navy); }
.btn--line, .btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover, .btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-call-dark { background: #fff; color: var(--navy); padding: 15px 24px; font-size: 18px; }
.btn-call-dark:hover { background: var(--aqua); }
.btn-call-block { width: 100%; }
.btn-row, .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 600; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy); }

/* Header ------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.site-head__logo { display: block; flex: none; }
.site-head__logo img { display: block; height: 42px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 6px; }
.site-nav a:hover { background: var(--aqua); }
.site-head__actions { display: flex; align-items: center; gap: 14px; }
.head-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.head-phone__ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--navy); display: grid; place-items: center; color: var(--teal-ink); }
.head-phone__txt { display: flex; flex-direction: column; line-height: 1.15; }
.head-phone__txt small { font-size: 12px; color: var(--muted); }
.head-phone__txt strong { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
.site-menu__panel { position: absolute; right: 0; top: 54px; width: min(320px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: 0 24px 48px -24px rgba(16,42,69,.35); display: grid; gap: 4px; }
.site-menu__nav { display: grid; }
.site-menu__nav a { color: var(--navy); text-decoration: none; font-weight: 500; padding: 11px 12px; border-radius: 6px; }
.site-menu__nav a:hover { background: var(--aqua); }
.site-menu__panel .btn { margin-top: 6px; }

/* Home hero: the ring ------------------------------------------------------ */
.hero-ring { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-ring__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-ring h1 { max-width: 15ch; margin-bottom: 20px; }
.hero-ring__lead { font-size: 18.5px; line-height: 1.6; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 15px; }
.hero-facts li { display: flex; align-items: baseline; gap: 6px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transform: translateY(-1px); }
.hero-facts strong { color: var(--navy); font-weight: 700; }

.hero-ring__media { position: relative; justify-self: center; width: min(100%, 520px); }
/* The coupling flanges either side of the ring, as in the logo. */
.hero-ring__media::before, .hero-ring__media::after { content: ""; position: absolute; top: 50%; width: 22px; height: 26%; background: var(--navy); border-radius: 6px; transform: translateY(-50%); z-index: 1; }
.hero-ring__media::before { left: -6px; }
.hero-ring__media::after { right: -6px; }
.ring { position: relative; aspect-ratio: 1; border-radius: 50%; border: 18px solid var(--navy); overflow: hidden; background: var(--aqua); box-shadow: 0 0 0 12px #fff, 0 0 0 13px var(--line); }
.ring img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ring img.ring__emblem { width: 58%; height: auto; margin: 21% auto 0; object-fit: contain; }
.ring-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--teal-ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; }
.ring-tag strong { font-weight: 600; }

/* Split section head: heading left, lead right. ----------------------------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.split-head h2 { max-width: 18ch; }
.split-head__lead, .split-head__lead p { color: var(--muted); font-size: 17.5px; margin: 0; }
.split-head__lead .btn-row { margin-top: 18px; }

/* Services: two tiers ------------------------------------------------------ */
.svc { padding: 96px 0 88px; }
.svc-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 48px; }
.svc-feature__img { aspect-ratio: 1; width: 62%; border-radius: 50%; overflow: hidden; border: 10px solid var(--navy); background: var(--aqua); display: grid; place-items: center; margin-bottom: 22px; }
.svc-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-feature__icon { color: var(--navy); }
.svc-feature__item h3 { font-size: 22px; margin-bottom: 8px; }
.svc-feature__item h3 a { color: var(--navy); text-decoration: none; background-image: linear-gradient(var(--teal), var(--teal)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s ease; }
.svc-feature__item h3 a:hover { background-size: 100% 2px; }
.svc-feature__item p { color: var(--muted); margin: 0; max-width: 38ch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--navy); }
.svc-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc-list__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--aqua); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.svc-list__body { display: flex; flex-direction: column; gap: 2px; }
.svc-list__body a, .svc-list__body strong { font-weight: 600; font-size: 17.5px; color: var(--navy); text-decoration: none; }
.svc-list__body a:hover { color: var(--teal-ink); text-decoration: underline; }
.svc-list__body span { color: var(--muted); font-size: 15px; }
.svc__more { margin: 28px 0 0; }

/* Process: a pipe run with joints ------------------------------------------ */
.pipe { background: var(--aqua); padding: 88px 0; }
.pipe-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.pipe-steps::before { content: ""; position: absolute; left: 34px; right: calc(25% - 27px); top: 29px; height: 10px; background: var(--navy); border-radius: 5px; }
.pipe-step { position: relative; counter-increment: pipe; }
.pipe-step__joint { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 6px solid var(--navy); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 22px; }
.pipe-step h3 { margin-bottom: 8px; }
.pipe-step h3::before { content: counter(pipe) ". "; color: var(--teal-ink); }
.pipe-step p { color: var(--muted); margin: 0; font-size: 15.5px; }
.pipe-steps { counter-reset: pipe; }

/* Price check: a quote slip ------------------------------------------------ */
#quote { padding: 96px 0; }
.quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.quote-grid h2 { margin-bottom: 16px; }
.quote-grid .lead { color: var(--muted); font-size: 17.5px; }
.note-box { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--teal); padding: 6px 0 6px 18px; margin-top: 24px; color: var(--muted); }
.note-box .ico { color: var(--teal-ink); stroke: currentColor; }
.note-box strong { color: var(--navy); }
.calc-card { position: relative; background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--navy); border-radius: 0 0 var(--r) var(--r); padding: 30px 32px 28px; box-shadow: 0 30px 60px -40px rgba(16,42,69,.45); }
.calc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: radial-gradient(circle at 9px 0, transparent 8px, #fff 8.5px) 0 0 / 18px 9px repeat-x; }
.calc-step { font-weight: 600; color: var(--navy); font-size: 15px; margin: 4px 0 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.price-box { border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); padding: 20px 0; margin: 6px 0 22px; display: grid; gap: 4px; }
.price-box .lbl { font-size: 14px; color: var(--muted); }
.price-box .val { font-weight: 700; font-size: 46px; line-height: 1.05; color: var(--navy); letter-spacing: -.01em; }
.price-box .nt { font-size: 14px; color: var(--muted); }

/* Coverage by borough ------------------------------------------------------ */
.cover { padding: 96px 0; border-top: 1px solid var(--line); }
.cover-boroughs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cover-borough h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 6px; }
.cover-borough h3 span { font-size: 14px; font-weight: 500; color: var(--muted); }
.cover-borough ul { list-style: none; margin: 0; padding: 0; }
.cover-borough li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cover-borough a { color: var(--navy); text-decoration: none; font-weight: 500; }
.cover-borough a:hover { color: var(--teal-ink); text-decoration: underline; }
.cover-borough small { color: var(--muted); font-size: 13px; }

/* FAQ ---------------------------------------------------------------------- */
.faq-split { background: var(--mist); padding: 96px 0; border-top: 1px solid var(--line); }
.faq-split__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-head h2 { margin-bottom: 18px; }
.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 2px solid var(--navy); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; font-family: var(--font); font-size: 17.5px; font-weight: 600; color: var(--navy); text-align: left; cursor: pointer; }
.faq-q .plus { color: var(--teal-ink); transition: transform .2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { display: none; color: var(--muted); padding: 0 40px 20px 0; }
.faq-item.open .faq-a { display: block; }
.faq-a p { margin: 0; }
.area-faq { max-width: 860px; margin: 0 auto; padding: 72px 24px; }
.area-faq .faq-head, .area-faq .sect-head { margin-bottom: 24px; }
.sect-head h2, h2.sect { margin-bottom: 12px; }

/* Contact ------------------------------------------------------------------ */
.contact-band { background: var(--navy); color: #d9e6ee; padding: 96px 0; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); left: -260px; bottom: -300px; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-band h2 { color: #fff; margin-bottom: 16px; }
.contact-band .kicker { color: #8fd8dc; }
.contact-band .lead { color: #b9cbd8; font-size: 17.5px; }
.contact-rows { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.contact-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.contact-row .ico { stroke: #8fd8dc; }
.contact-row .sub { font-size: 13.5px; color: #9fb5c5; }
.contact-row .main { font-size: 20px; font-weight: 600; }
.contact-row .main.sm { font-size: 16px; font-weight: 500; }
a.contact-row:hover .main { text-decoration: underline; }

.form-card { background: #fff; color: var(--text); border-radius: var(--r); padding: 32px; }
.form-card h3 { font-size: 22px; margin: 0 0 4px; }
.form-card .sub { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.form-card input { width: 100%; font-family: var(--font); font-size: 16px; color: var(--text); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; background: #fff; }
.form-card input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(1,159,167,.2); }
.form-card input.err { border-color: #c0392b; }
.form-submit { width: 100%; margin-top: 4px; font-size: 17px; padding: 15px 20px; }
.form-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.bd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.5; }
.form-status p { margin: 4px 0 0; }
.form-status--sent { background: var(--aqua); border: 1px solid #9fd6d9; color: var(--navy); }
.form-status--error { background: #fdecec; border: 1px solid #f1b3b3; color: #6b1b1b; }
.form-privacy { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.form-privacy a { color: var(--teal-ink); font-weight: 600; }

/* Home blog teaser --------------------------------------------------------- */
#blog { padding-top: 96px; padding-bottom: 96px; }
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.link-underline { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card .thumb { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 16px; background: var(--aqua); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .date { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.blog-card h3 { font-size: 19px; line-height: 1.3; }
.blog-card:hover h3 { color: var(--teal-ink); text-decoration: underline; }
.blog-card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* Final call band ---------------------------------------------------------- */
.final-cta, .cta-band { background: var(--teal-ink); color: #fff; padding: 52px 0; }
.final-cta-inner, .cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.final-cta h2, .cta-inner h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 6px; }
.final-cta p, .cta-inner p { margin: 0; color: #d6f1f2; }
.cta-inner .call { background: #fff; color: var(--navy); }

/* Footer ------------------------------------------------------------------- */
.site-foot { background: var(--mist); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.footer-logo img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.col-title { font-weight: 600; color: var(--navy); margin-bottom: 12px; text-transform: none; letter-spacing: 0; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-links span { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--teal-ink); text-decoration: underline; }
.footer-nav { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--navy); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; border-top: 1px solid var(--line); }
.made-by { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.made-by img { height: 22px; width: auto; }

/* Inner page hero (hubs, local pages, standard pages, blog) ----------------- */
.hero { position: relative; background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 44px solid var(--aqua); right: -120px; top: -140px; pointer-events: none; }
.hero-mesh { display: none; }
.area-hero .area-hero-inner, .hero > .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.area-hero .area-hero-inner { max-width: var(--maxw); }
.area-hero-text { max-width: 760px; }
.hero h1 { margin-bottom: 16px; }
.hero p, .area-hero p.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.area-hero p.lead { margin-bottom: 26px; }
.badge-rating { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--teal-ink); margin-bottom: 14px; }
.area-hero .area-hero-inner.has-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.area-hero-media { justify-self: center; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 14px solid var(--navy); box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line); }
.area-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14.5px; }

/* Facts row on inner pages ------------------------------------------------- */
.stats-band { padding-top: 32px; padding-bottom: 8px; }
.stat-card { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stat-card .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--aqua); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.stat-card .v { font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.2; }
.stat-card .c { font-size: 13.5px; color: var(--muted); }
.stat-card { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
.stat-card .ic { grid-row: span 2; }

/* Body + sidebar ----------------------------------------------------------- */
.area-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.area-prose { max-width: 72ch; font-size: 17px; }
.area-prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.area-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.area-prose h3 { margin: 28px 0 10px; }
.area-prose ul, .area-prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.area-prose li { margin-bottom: 6px; }
.area-prose ul li::marker { color: var(--teal); }
.area-prose ol li::marker { color: var(--teal-ink); font-weight: 700; }
.area-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.area-prose th, .area-prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.area-prose th { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--navy); }
.area-prose td:last-child, .area-prose th:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.area-prose a, .article-copy a { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bd-term, a.bd-term { text-decoration-style: dotted; }
.area-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.area-side-box { border-top: 3px solid var(--navy); padding-top: 14px; }
.area-side-title { font-size: 16px; margin: 0 0 10px; }
.area-side-parent { font-weight: 600; }
.area-link-list { list-style: none; margin: 0; padding: 0; }
.area-link-list li { border-bottom: 1px solid var(--line); }
.area-link-list a { display: block; padding: 9px 0; color: var(--navy); text-decoration: none; font-size: 15px; }
.area-link-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.area-side-cta { background: var(--aqua); border-top: 0; border-radius: var(--r); padding: 20px; }
.area-side-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 6px; text-align: center; }
.area-side-links { display: flex; justify-content: center; gap: 14px; font-size: 14px; margin: 0; }
.area-side-links a { color: var(--teal-ink); }
.service-local { padding-top: 24px; padding-bottom: 24px; }

/* Index pages: services, areas, coverage ----------------------------------- */
.services-index, .areas-index { padding-top: 48px; padding-bottom: 72px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.card:hover { border-color: var(--teal); }
.card h3, .card h2 { font-size: 19px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.svc-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--aqua); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 14px; }
.service-card-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--teal-ink); }
.areas-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.areas-index--coverage { grid-template-columns: 1fr; }
.areas-index-block { border-top: 2px solid var(--navy); padding-top: 14px; }
.areas-index-title { font-size: 20px; margin: 0 0 4px; }
.areas-index-title a { color: var(--navy); text-decoration: none; }
.areas-index-codes { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.areas-index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.areas-index-list--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.areas-index-list li { border-bottom: 1px solid var(--line); }
.areas-index-list a { display: block; padding: 7px 0; color: var(--navy); text-decoration: none; font-size: 15px; }
.areas-index-list a:hover { color: var(--teal-ink); text-decoration: underline; }

/* Blog and article --------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; padding-top: 48px; padding-bottom: 64px; }
.grid > .card { padding: 0; border: 0; background: none; }
.thumb { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; background: var(--aqua); margin-bottom: 14px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body .date { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.grid > .card h2 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.grid > .card:hover h2 { color: var(--teal-ink); text-decoration: underline; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.article-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 32px; }
.article-cover img { display: block; width: 100%; height: auto; }
.article-copy { max-width: 70ch; font-size: 17.5px; line-height: 1.75; }
.article-copy h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 40px 0 14px; }
.article-copy h3 { margin: 28px 0 10px; }
.article-copy ul, .article-copy ol { padding-left: 1.2em; }
.article-copy li { margin-bottom: 6px; }
.article-copy blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--teal); color: var(--navy); }
.article-copy table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 16px; }
.article-copy th, .article-copy td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.post-links { margin-top: 40px; padding: 22px 24px; background: var(--aqua); border-radius: var(--r); }
.post-links h2 { font-size: 18px; margin: 0 0 10px; }
.post-links ul { margin: 0; padding-left: 1.1em; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 14px; background: var(--aqua); border-radius: var(--r); padding: 22px; }
.sidebar h3 { font-size: 18px; margin: 0; }
.sidebar p { margin: 0; color: var(--muted); font-size: 15px; }
.related { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.related a { color: var(--navy); font-size: 15px; }
.navigation.pagination { padding-bottom: 64px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--navy); text-decoration: none; font-weight: 500; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Glossary ----------------------------------------------------------------- */
.glossary-index, .glossary-single { padding-top: 40px; padding-bottom: 72px; }
.glossary-az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.glossary-az a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; }
.glossary-az a:hover { background: var(--navy); color: #fff; }
.glossary-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.glossary-cat { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--aqua); color: var(--navy); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.glossary-group { margin-bottom: 32px; }
.glossary-letter { font-size: 28px; color: var(--teal-ink); border-bottom: 2px solid var(--navy); padding-bottom: 6px; margin-bottom: 8px; }
.glossary-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.glossary-list li { border-bottom: 1px solid var(--line); }
.glossary-list a { display: block; padding: 8px 0; color: var(--navy); text-decoration: none; }
.glossary-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.glossary-note { background: var(--aqua); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 20px 0; }
.glossary-cta { margin-top: 28px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-head__actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-ring__grid, .quote-grid, .contact-grid, .faq-split__grid, .split-head, .area-body, .article, .area-hero .area-hero-inner.has-media { grid-template-columns: 1fr; gap: 40px; }
  .hero-ring__grid { padding-top: 40px; padding-bottom: 64px; }
  .hero-ring__media { width: min(78vw, 420px); }
  .svc-feature { grid-template-columns: 1fr; gap: 36px; }
  .svc-feature__item { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; align-items: center; }
  .svc-feature__img { width: 120px; border-width: 7px; margin: 0; grid-row: span 2; }
  .svc-list { grid-template-columns: 1fr; }
  .pipe-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .pipe-steps::before { display: none; }
  .cover-boroughs { grid-template-columns: 1fr 1fr; }
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .area-side, .sidebar { position: static; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .glossary-list { grid-template-columns: 1fr 1fr; }
  .areas-index { grid-template-columns: 1fr; }
  .areas-index-list--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-hero-media { width: min(70vw, 300px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .site-head__in { min-height: 66px; gap: 12px; }
  .site-head__logo img { height: 34px; }
  .head-phone__txt small { display: none; }
  .head-phone__txt strong { font-size: 15px; }
  .head-phone__ring { width: 34px; height: 34px; border-width: 2px; }
  .svc, .pipe, #quote, .cover, .faq-split, .contact-band, #blog { padding-top: 64px; padding-bottom: 64px; }
  .pipe-steps, .cover-boroughs, .grid, .grid-3, .grid-4, .site-foot__grid, .glossary-list, .areas-index-list { grid-template-columns: 1fr; }
  .areas-index-list--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-card, .form-card { padding: 24px 20px; }
  .price-box .val { font-size: 38px; }
  .ring { border-width: 12px; }
  .ring-tag { font-size: 13px; padding: 9px 14px; white-space: normal; text-align: center; width: max-content; max-width: 92%; }
  .hero-ring__media::before, .hero-ring__media::after { width: 16px; }
  .btn-row .btn, .hero-cta a { width: 100%; }
  .svc-feature__item { grid-template-columns: 88px 1fr; }
  .svc-feature__img { width: 88px; border-width: 6px; }
  .blog-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 480px) {
  .head-phone__txt { display: none; }
  .head-phone__ring { width: 44px; height: 44px; border-width: 3px; }
}
