/* Hexham Boilers – site styles
   Design: "precision & hearth" – deep ink navy, warm ember/amber heat accents, sandstone neutrals,
   gauge and heat-line motifs, Tynedale skyline in the footer. Mobile first. */

:root {
  --ink: #0f1b2d;
  --ink-2: #16263c;
  --ink-3: #24395a;
  --ember: #a8370a;
  --ember-hot: #e85d21;
  --amber: #f6a623;
  --amber-2: #ffc35c;
  --cream: #f7f4ef;
  --paper: #ffffff;
  --stone: #ece6db;
  --stone-2: #e2dace;
  --line: #d6cebf;
  --text: #1a2433;
  --muted: #4a5465;
  --on-dark: #e9edf3;
  --on-dark-muted: #b9c3d1;
  --green: #2f7d4f;
  --focus: #1d4ed8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .07);
  --shadow-lg: 0 2px 6px rgba(15, 27, 45, .08), 0 20px 48px rgba(15, 27, 45, .12);
  --wrap: 1200px;
  --gutter: 16px;
  --heat: linear-gradient(90deg, var(--ember-hot), var(--amber));
}
@media (min-width: 700px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
@media (min-width: 700px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4, h5, .h3, .h4, .h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
.h4, h4 { font-size: 1.2rem; }
.h5 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }
a { color: var(--ember); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .cta-band :focus-visible, .quote-side :focus-visible, .topbar :focus-visible { outline-color: var(--amber-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.small { font-size: .9rem; color: var(--muted); }
.ic { width: 1.4em; height: 1.4em; flex: none; vertical-align: middle; }
.ic.sm { width: 1.05em; height: 1.05em; }
.eyebrow { font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin: 0 0 .7rem; display: inline-flex; align-items: center; gap: .5em; }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--heat); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.on-dark { color: var(--amber); }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--muted); max-width: 40em; }
.mt { margin-top: 2.5rem; }

/* Buttons */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 2px 0 #c7811a; }
.btn-primary:hover { background: var(--amber-2); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-lg { min-height: 56px; padding: .85em 1.5em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.more { font-family: var(--font-head); font-weight: 700; display: inline-flex; gap: .4em; align-items: center; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.more:hover { color: var(--ember); }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: .88rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .4em; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--amber); }
@media (max-width: 699px) { .topbar-in > p:first-child { display: none; } .topbar-in { justify-content: center; } }
.site-header { background: rgba(247, 244, 239, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(8px); }
.hdr { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark svg { display: block; width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.brand-text .b1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text .b2 { font-size: .8rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ember); margin-top: 4px; }
.brand.on-dark { color: #fff; }
.brand.on-dark .b2 { color: var(--amber); }
.logo-img { width: auto; max-height: 64px; }
.nav-toggle { display: inline-flex; align-items: center; gap: .4em; background: var(--ink); color: #fff; border: 0; border-radius: 10px; min-height: 46px; padding: 0 1rem; font: 700 1rem var(--font-head); cursor: pointer; }
.nav-toggle .shut { display: none; }
.nav-open .nav-toggle .shut { display: inline; }
.nav-open .nav-toggle .open { display: none; }
.site-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.sub { list-style: none; margin: 0; padding: 0; }
.sub-toggle { background: none; border: 0; color: var(--ink); cursor: pointer; min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; border-radius: 8px; }
.sub-toggle .ic { transition: transform .2s; }
.has-sub.open .sub-toggle .ic { transform: rotate(180deg); }

@media (max-width: 1079px) {
  .nav-open .site-nav { display: block; position: fixed; inset: 0; top: var(--hdr-top, 0); z-index: 60; background: var(--cream); overflow-y: auto; padding: 96px var(--gutter) 120px; }
  .nav-open .nav-toggle { position: fixed; right: var(--gutter); top: 15px; z-index: 70; }
  .nav-open { overflow: hidden; }
  .nav-list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav-list > li > a { flex: 1; padding: 1rem 0; font-size: 1.25rem; }
  .sub { display: none; width: 100%; padding: 0 0 .8rem .8rem; }
  .has-sub.open .sub { display: block; }
  .sub a { display: block; padding: .55rem 0; font-weight: 500; }
  .nav-cta { display: grid; gap: .75rem; margin-top: 1.5rem; }
  .nav-list a[aria-current="page"] { color: var(--ember); }
}
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.25rem; }
  .nav-list { display: flex; gap: .2rem; align-items: center; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-list > li > a { padding: .6rem .7rem; border-radius: 8px; font-size: 1rem; }
  .nav-list > li > a:hover, .nav-list > li.active > a { background: var(--stone); }
  .has-sub > a { padding-right: .2rem !important; }
  .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; display: none; }
  .has-sub.open .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
  .sub a { display: block; padding: .6rem .8rem; border-radius: 8px; font-weight: 500; }
  .sub a:hover, .sub a[aria-current="page"] { background: var(--cream); color: var(--ember); }
  .nav-cta { display: flex; gap: .6rem; }
  .nav-cta .call span { white-space: nowrap; }
}
@media (min-width: 1080px) and (max-width: 1239px) { .nav-cta .call { display: none; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 2rem; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 100% 0%, rgba(246, 166, 35, .16), transparent 60%),
    linear-gradient(var(--cream), var(--cream)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(15, 27, 45, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 27, 45, .045) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-in { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; gap: 3rem; } .hero-art { width: min(100%, 440px); } }
.hero h1 { max-width: 13em; }
.hero h1::after { content: ""; display: block; width: 84px; height: 6px; border-radius: 3px; background: var(--heat); margin-top: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.hero-call { font-size: 1rem; color: var(--muted); }
.hero-call a { font-weight: 700; color: var(--ink); }
.nw { white-space: nowrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: min(70%, 300px); height: auto; filter: drop-shadow(0 26px 40px rgba(15, 27, 45, .16)); }
.hero-photo { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.trust { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 1.2rem; display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .trust { grid-template-columns: repeat(4, 1fr); padding: 1.5rem; } }
.trust li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.trust strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; margin-bottom: .15rem; }
.trust span { color: var(--muted); }
.tr-ic { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--ink); color: var(--amber); }
.side .trust { grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0; margin: 0; }

/* Section rhythm */
section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
section.flush { padding-top: 1rem; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.8rem; }
.sec-head h2 { margin: 0; }
.alt { background: var(--stone); }

/* Pathways */
.pathways { padding-top: 1rem; }
.path-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .path-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.path-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.path-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--heat); transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink); color: var(--text); }
.path-card:hover::before { transform: scaleY(1); }
.path-card h3 { margin: .4rem 0 .1rem; }
.path-card p { color: var(--muted); margin: 0 0 .8rem; }
.path-ic { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--cream); color: var(--ember); border: 1px solid var(--line); }
.path-cta { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--ink); display: inline-flex; gap: .4em; align-items: center; }

/* Split editorial */
.stone { background: var(--stone); }
.split-in { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split-in { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; } }
.spec-card { background: var(--ink); color: var(--on-dark); border-radius: 18px; padding: 1.8rem; position: relative; overflow: hidden; }
.spec-card h2 { color: #fff; }
.spec-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(246, 166, 35, .18); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.spec-list a { display: flex; gap: .7rem; align-items: center; padding: .8rem 0; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; }
.spec-list a:hover { color: var(--amber); }
.spec-list .ic { color: var(--amber); }

/* Prose */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child, .prose > :first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ember); }
.prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--amber); font-size: 1.1em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.prose th { background: var(--stone); font-family: var(--font-head); }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.page-body { padding-block: 2.5rem 1rem; }

/* Steps */
.process { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.process h2, .process h3 { color: #fff; }
.process .eyebrow { color: var(--amber); }
.process.alt { background: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.steps p { color: var(--on-dark-muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--amber); color: var(--amber); font: 700 1.5rem var(--font-head); margin-bottom: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; display: none; }
@media (min-width: 800px) { .steps li:not(:last-child)::after { display: block; top: 52px; right: -2rem; width: 2rem; height: 3px; background: var(--heat); } }

/* Areas */
.areas-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .areas-in { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } }
.area-map { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #eef3ef; }
.area-map a:hover text, .area-map a:focus text { fill: var(--ember); text-decoration: underline; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0; }
.chips a, .chips.plain li { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips.plain li { background: transparent; font-weight: 500; }

/* Cards: services, cases, posts, testimonials */
.svc-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.svc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.svc-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-card h2, .svc-card h3 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.svc-card h2 a, .svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h2 a::after, .svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.svc-card p { color: var(--muted); font-size: 1rem; }
.svc-num { position: absolute; right: 1.2rem; top: 1rem; font: 700 1rem var(--font-head); color: #776d5e; }
.svc-ic { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--amber); }
.svc-more { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--ember); display: inline-flex; gap: .4em; align-items: center; font-size: .95rem; }

.case-grid, .post-grid, .t-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .case-grid, .post-grid, .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .case-grid, .post-grid, .t-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card, .post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case-card h3 { font-size: 1.2rem; }
.case-card h3 a { color: var(--ink); text-decoration: none; }
.case-card h3 a:hover { color: var(--ember); text-decoration: underline; }
.cc-img img, .card-img { width: 100%; aspect-ratio: 3/1; object-fit: cover; }
.case-card .cc-img img { aspect-ratio: 16/10; }
.cc-ph { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--ink); color: var(--amber); }
.cc-ph .ic { width: 56px; height: 56px; }
.cc-body, .pc-body { padding: 1.2rem 1.3rem 1.4rem; }
.cc-body p, .pc-body p { color: var(--muted); font-size: .98rem; }
.pc-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.pc-link:hover h2, .pc-link:hover h3 { color: var(--ember); text-decoration: underline; }
.post-card h2, .post-card h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.pc-cat { font: 700 .76rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ember) !important; margin-bottom: .4rem; }
.pc-meta { font-size: .88rem !important; margin: 0; }
.latest { background: #fff; border-top: 1px solid var(--line); }

.t-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; }
.t-card blockquote { margin: 0; font-size: 1.02rem; }
.t-card blockquote p { margin: 0; }
.t-card figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .95rem; }
.t-card figcaption span { color: var(--muted); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { width: 20px; height: 20px; color: #cfc6b6; }
.star.on { color: #b45309; }
.rating-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1.05rem; }
.empty-note { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line); color: var(--muted); }
.empty-note p { margin: 0; }

/* FAQs */
.faq-sec h2 { margin-bottom: 1.2rem; }
.faqs { display: grid; gap: .7rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 1.08rem; margin: 0; font-weight: 700; }
.faq summary .ic { transition: transform .2s; color: var(--ember); }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq[open] { border-color: var(--ink); }
.faq-a { padding: 0 1.2rem 1rem; color: var(--text); }
.faq-a p:last-child { margin: 0; }

/* Quote section & form */
.quote-sec { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.quote-sec::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--heat); }
.quote-in { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .quote-in { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; } }
.quote-side h2 { color: #fff; }
.quote-side p { color: var(--on-dark-muted); }
.qs-call a { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font: 700 1.6rem var(--font-head); text-decoration: none; }
.qs-call a:hover { color: var(--amber); }
.qs-call .ic { color: var(--amber); }
.qs-note { border-left: 3px solid var(--amber); padding-left: 1rem; }
.quote-card { background: #fff; color: var(--text); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.quote-card.big { border: 1px solid var(--line); }
.f-grid { display: grid; gap: 1rem 1.2rem; }
@media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-wide, .f-radios { grid-column: 1 / -1; } }
.f-row { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.f-row > label, .f-row legend { font-weight: 700; font-family: var(--font-head); font-size: .98rem; color: var(--ink); }
.req { font-weight: 400; color: var(--muted); font-size: .88em; }
.f-hint, .f-hint-inline { font-size: .88rem; color: var(--muted); margin: 0; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 2px solid #8b93a1; border-radius: 10px; padding: .7rem .85rem; min-height: 50px;
}
input[type=file] { padding: .55rem; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #b91c1c !important; }
.f-err { color: #b91c1c; font-weight: 700; font-size: .92rem; margin: 0; display: flex; gap: .3em; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio, .check { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.radio { border: 2px solid var(--line); border-radius: 10px; padding: .5rem .9rem; min-height: 46px; background: #fff; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--cream); }
.radio input, .check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.check { align-items: flex-start; font-size: .98rem; }
.f-row > label.check { font-family: var(--font-body); font-weight: 400; color: var(--text); }
.check input { margin-top: 2px; }
.f-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.f-note { font-size: .88rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.qform.compact .f-actions .btn { width: 100%; }
.err-summary { border: 3px solid #b91c1c; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; background: #fef2f2; }
.err-summary h2, .err-summary h3 { font-size: 1.15rem; color: #7f1d1d; margin: 0 0 .4rem; }
.err-summary ul { margin: 0; padding-left: 1.2rem; }
.err-summary a { color: #7f1d1d; font-weight: 700; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin: 0 0 1.2rem; font-weight: 600; }
.notice.ok { background: #ecfdf3; border: 2px solid var(--green); color: #14532d; }
.notice.warn { background: #fff7ed; border: 2px solid var(--ember); color: #7c2d12; }

/* CTA band */
.cta-band { background: var(--ink-2); color: var(--on-dark); padding: clamp(2.5rem, 5vw, 3.5rem) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 28px solid rgba(246, 166, 35, .13); }
.cta-in { position: relative; z-index: 1; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-actions { justify-content: flex-end; } }

/* Page heroes */
.page-hero { background: linear-gradient(180deg, var(--stone) 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-hero.slim { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.page-hero h1 { max-width: 18em; }
.ph-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .ph-split { grid-template-columns: 1.2fr .8fr; gap: 3rem; } }
.ph-photo { width: 100%; border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-lg); }
.ph-badge { position: relative; aspect-ratio: 4/3; border-radius: 22px; background: var(--ink); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.ph-badge .ic { width: 38%; height: 38%; color: var(--amber); position: relative; z-index: 1; }
.ph-badge .heat { position: absolute; inset: auto 0 0 0; height: 30%; background: repeating-linear-gradient(180deg, rgba(232, 93, 33, .55) 0 10px, transparent 10px 22px); mask-image: linear-gradient(0deg, #000, transparent); }
.ph-badge::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .08); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; }
.ticks li { display: flex; gap: .55rem; align-items: center; font-weight: 600; }
.ticks .ic { color: var(--green); }
.pg { font-size: .55em; color: var(--muted); font-weight: 600; }

/* Content + sidebar */
.content-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.2rem, 5vw, 3.5rem); }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; } }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.side-card.warm { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.side-card.warm h2 { color: #fff; }
.side-card p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) { .side-card.sticky { position: sticky; top: 100px; } }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: .5rem 0; border-bottom: 1px solid var(--stone); text-decoration: none; color: var(--ink); font-weight: 600; }
.side-links a[aria-current="page"] { color: var(--ember); }
.fact-card dl { margin: 0 0 1.2rem; display: grid; gap: .1rem; }
.fact-card dt { font: 700 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }
.fact-card dd { margin: 0; font-weight: 600; }
.list-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 12px; padding: 1.4rem 1.5rem; margin: 2rem 0; }
.list-card h2 { margin-top: 0 !important; font-size: 1.35rem; }
.check-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .55rem; }
@media (min-width: 700px) { .check-list { grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; } }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; margin: 0; }
.check-list .ic { color: var(--green); margin-top: .25em; }
.factor-list { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.factor-list li { background: var(--stone); border-radius: 10px; padding: .8rem 1rem; margin: 0; }
.factor-list strong { font-family: var(--font-head); color: var(--ink); display: block; }
.factor-list span { color: var(--muted); font-size: .98rem; }
.gas-notice { display: flex; gap: .9rem; align-items: flex-start; background: #fff7ed; border: 2px solid var(--ember); border-radius: 12px; padding: 1rem 1.2rem; margin: 2rem 0; font-size: .98rem; }
.gas-notice .ic { color: var(--ember); margin-top: .1em; }
.gas-notice p { margin: 0; }
.gas-notice a { font-weight: 700; }

/* Town */
.svc-list { display: grid; gap: 1rem; }
@media (min-width: 800px) { .svc-list { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.svc-row { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.svc-row h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.svc-row h3 a { color: var(--ink); }
.svc-row p { margin: 0; color: var(--muted); font-size: 1rem; }
.town-svcs, .useful { background: var(--stone); }
.useful { background: var(--cream); }
.q-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .q-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.q-card { background: #fff; border-radius: var(--radius); padding: 1.4rem; border-top: 5px solid var(--ink); box-shadow: var(--shadow); }
.q-card h3 { font-size: 1.15rem; }
.q-card p:last-child { margin: 0; }
.nearby { background: #fff; border-block: 1px solid var(--line); }
.nearby-in { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .nearby-in { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.map-embed iframe { width: 100%; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 18px; background: #e5e7eb; display: block; }
.map-credit { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.town-map { padding-top: 0; }
.tc-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tc-grid { grid-template-columns: repeat(3, 1fr); } }
.tc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.tc:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--text); }
.tc h3 { margin: .3rem 0 .3rem; }
.tc p { margin: 0; color: var(--muted); font-size: .97rem; }
.tc-dist { font: 700 .78rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.note-card { margin-top: 2rem; background: #fff; border-left: 5px solid var(--amber); border-radius: 12px; padding: 1.3rem 1.5rem; }

/* Gallery */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: .4rem; }

/* Blog */
.cat-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2rem 0 1.5rem; }
.cat-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.cat-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-nav span { color: inherit; opacity: .7; margin-left: .2em; }
.post-grid.big { margin: 1.5rem 0 2rem; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 3rem; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.pager span[aria-current] { background: var(--ink); color: #fff; }
.post-head { padding-top: 2rem; }
.post-meta { color: var(--muted); font-size: .95rem; }
.post-banner img { width: 100%; height: auto; border-radius: 18px; aspect-ratio: 3/1; object-fit: cover; margin: 1rem 0 2rem; }
.post-body { padding-bottom: 3rem; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; margin: 2rem 0; font-size: .98rem; }
.author-box p { margin: 0 0 .3rem; }
.blog-cta { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); border-radius: 18px; padding: 2rem; margin-top: 2.5rem; }
.blog-cta h2 { color: #fff; margin-top: 0 !important; }
.blog-cta p { color: var(--on-dark-muted); }
.bc-heat { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--heat); }
.bc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.bc-site { font-size: .9rem; margin: 0; }
.bc-site a { color: var(--amber); }
.case-figure { margin: 0 0 1.5rem; }
.case-figure img { border-radius: 16px; margin: 0; }
blockquote.pull { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--stone); border-radius: 14px; border-left: 5px solid var(--amber); font-size: 1.15rem; }
blockquote.pull footer { font-size: .95rem; color: var(--muted); margin-top: .5rem; }

/* Lists, sitemap, search, contact */
.link-list { columns: 2 220px; padding-left: 1.2rem; }
.link-desc { padding-left: 1.2rem; }
.link-desc li { margin-bottom: .7rem; }
.link-desc a { font-weight: 700; }
.sitemap-cols { display: grid; gap: 1rem 3rem; max-width: none; }
@media (min-width: 800px) { .sitemap-cols { grid-template-columns: repeat(2, 1fr); } }
.sitemap-cols h2 { font-size: 1.35rem; margin-top: 1rem !important; }
.search-form { margin-top: 1.5rem; max-width: 640px; }
.search-form label { font-weight: 700; display: block; margin-bottom: .35rem; }
.sf-row { display: flex; gap: .5rem; }
.results { list-style: none; padding: 0; }
.results li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.results a { font: 700 1.15rem var(--font-head); }
.results p { margin: .3rem 0 0; color: var(--muted); }
.contact-grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; } }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; }
.contact-list .ic { color: var(--ember); margin-top: .15em; }
.contact-list strong, .contact-list span, .contact-list a { display: block; }
.contact-list a { font-weight: 700; word-break: break-word; }
.mini-steps { padding-left: 1.2rem; margin: 0; color: var(--on-dark-muted); }
.mini-steps li { margin-bottom: .5rem; }
.thanks { text-align: center; }
.thanks .prose { margin: 0 auto 1.5rem; }
.big-tick { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 1rem; }
.big-tick .ic { width: 44px; height: 44px; }
.review-form-sec { background: var(--stone); }
.advice-group { padding: 2.5rem 0; }

/* Footer */
.site-footer { background: var(--ink-2); color: var(--on-dark-muted); position: relative; padding-bottom: 5rem; font-size: 1rem; }
@media (min-width: 1080px) { .site-footer { padding-bottom: 0; } }
.ft-scene { background: var(--ink); line-height: 0; }
.ft-scene svg { display: block; width: 100%; height: 90px; }
.ft-grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 700px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.ft-brand p { margin: 1rem 0; }
.ft-h { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.ft-h2 { margin-top: 1.5rem; }
.ft-links, .ft-contact, .ft-hours, .ft-social { list-style: none; margin: 0; padding: 0; }
.ft-links li { margin-bottom: .2rem; }
.ft-links a, .ft-contact a, .ft-social a { color: var(--on-dark); text-decoration: none; display: inline-block; padding: .3rem 0; }
.ft-links a:hover, .ft-contact a:hover, .ft-social a:hover { color: var(--amber); text-decoration: underline; }
.ft-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.ft-contact .ic { color: var(--amber); }
.ft-hours li { font-size: .95rem; margin-bottom: .2rem; }
.ft-social { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; }
.ft-tabs { border-top: 1px solid rgba(255, 255, 255, .12); }
.ft-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 1.2rem 0; }
.ft-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: .3rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.ft-tabs a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.2rem 1.5rem; font-size: .9rem; }
.ft-legal p { margin: 0; }
.ft-gas { color: var(--amber); font-weight: 700; }

/* Mobile quick bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(15, 27, 45, .97); transition: transform .25s; }
.mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; border-radius: 10px; font: 700 1rem var(--font-head); text-decoration: none; }
.mb-call { background: #fff; color: var(--ink); }
.mb-quote { background: var(--amber); color: var(--ink); }
.mbar.hide { transform: translateY(110%); }
@media (min-width: 1080px) { .mbar { display: none; } }
.nav-open .mbar { display: none; }

/* Maintenance / preview */
.maint-in { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.maint .brand { margin-bottom: 2rem; }
body.is-preview::before { content: "Preview – this page is not published yet"; position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: 8px; background: #b91c1c; color: #fff; padding: .4rem 1rem; border-radius: 999px; font: 700 .85rem var(--font-head); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .mbar, .cta-band, .latest, .site-footer, .quote-sec { display: none !important; }
  body { background: #fff; }
}
