/* Kestrel Heating & Plumbing: van-livery navy, safety orange, concrete grey.
   One family (Archivo), condensed for headings, normal width for reading. */
:root {
  --ink: #16202A;
  --ink-2: #1F2C39;
  --ink-3: #2B3A49;
  --orange: #C2410C;
  --orange-hot: #F06A22;
  --concrete: #EEF0F2;
  --paper: #FFFFFF;
  --steel: #5A6573;
  --line: #D6DBE1;
  --ok: #22A55A;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;

  --bk-accent: var(--orange);
  --bk-accent-ink: #fff;
  --bk-ink: var(--ink);
  --bk-muted: var(--steel);
  --bk-line: var(--line);
  --bk-surface: var(--paper);
  --bk-soft: #FFF1E8;
  --bk-radius: 14px;
  --bk-radius-sm: 8px;
  --bk-radius-btn: 8px;
  --bk-font: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 17px/1.6 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-stretch: 100%; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-stretch: 72%; font-weight: 800; line-height: 1; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 24px; font-stretch: 80%; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 16px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #A8370A; }
.btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; background: var(--ink); color: #fff; font-size: 15px; }
.btn-small:hover { background: var(--orange); }
button.btn { cursor: pointer; font-family: inherit; }

/* Utility bar and nav */
.utility { background: #0E161E; color: #C9D1DA; font-size: 14px; }
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility p { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8A96A3; }
[data-open] .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(34,165,90,.25); }
.utility-call { color: #fff; font-weight: 600; text-decoration: none; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: #fff; border-bottom: 1px solid var(--ink-3); }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-stretch: 85%; }
.brand b { font-weight: 800; }
.mark { width: 40px; height: 40px; flex: none; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: #C9D1DA; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.kicker { color: var(--orange-hot); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(54px, 8.4vw, 112px); font-stretch: 64%; font-weight: 900; line-height: .93; letter-spacing: -0.01em; }
.lede { margin-top: 24px; font-size: 19px; color: #C9D1DA; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--ink-3); padding-top: 22px; }
.proof li { font-size: 14px; color: #AEB8C3; line-height: 1.4; }
.proof b { display: block; color: #fff; font-size: 28px; font-stretch: 70%; font-weight: 800; line-height: 1.1; }

.panel { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 18px; overflow: hidden; }
.gauge-wrap { padding: 28px 28px 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #263646 0, var(--ink-2) 62%); }
.gauge { width: min(300px, 100%); height: auto; }
.g-track { fill: none; stroke: #33475A; stroke-width: 12; stroke-linecap: round; }
.g-low { fill: none; stroke: #B45309; stroke-width: 12; stroke-linecap: round; opacity: .55; }
.g-ok { fill: none; stroke: var(--ok); stroke-width: 12; }
.g-high { fill: none; stroke: #DC2626; stroke-width: 12; stroke-linecap: round; opacity: .55; }
.g-ticks line { stroke: #7C8B9A; stroke-width: 1.5; }
.g-ticks line.major { stroke: #DCE3EA; stroke-width: 2.5; }
.g-nums text { fill: #C9D1DA; font: 600 15px 'Archivo', sans-serif; text-anchor: middle; }
.g-needle { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(222.75deg); animation: needle 1.6s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
.g-needle path { fill: var(--orange-hot); }
.g-needle circle { fill: #E8EDF2; }
.g-needle .g-hub { fill: var(--ink); }
.g-read { fill: #fff; font: 800 34px 'Archivo', sans-serif; font-stretch: 70%; text-anchor: middle; font-variant-numeric: tabular-nums; }
.g-unit { fill: #AEB8C3; font: 500 13px 'Archivo', sans-serif; text-anchor: middle; }
@keyframes needle { from { transform: rotate(135deg); } }
.panel-body { padding: 8px 28px 24px; }
.panel-body h2 { font-size: 26px; font-stretch: 78%; line-height: 1.1; }
.panel-body p { margin-top: 10px; color: #AEB8C3; font-size: 15px; line-height: 1.55; }
.next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 18px 28px; background: var(--orange); color: #fff; text-decoration: none; }
.next:hover { background: #A8370A; }
.next-label { font-size: 13px; opacity: .85; grid-column: 1; }
.next-when { grid-column: 1; font-size: 18px; }
.next-when b { font-weight: 700; }
.next-go { grid-column: 2; grid-row: 1 / 3; font-weight: 700; border: 2px solid rgba(255,255,255,.55); border-radius: 8px; padding: 8px 14px; }
.next:not([data-state="ready"]) .next-when { opacity: .75; }

/* Section rhythm */
main > section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--steel); font-size: 18px; }

/* Checks */
.checks { background: var(--paper); }
.check-list { list-style: none; counter-reset: c; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.check-list li { counter-increment: c; padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.check-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.check-list li::before { content: counter(c); font-size: 64px; font-weight: 900; font-stretch: 62%; line-height: .9; color: var(--orange); }
.check-list p { color: var(--steel); font-size: 16px; }
.checks-cta { margin-top: 36px; padding: 18px 22px; background: var(--concrete); border-radius: 10px; font-size: 16px; }
.checks-cta a { font-weight: 600; color: var(--orange); }

/* Prices */
.price-table { background: var(--paper); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px 96px; gap: 20px; align-items: center; padding: 22px 26px; border-top: 1px solid var(--line); }
.pt-row > span:first-child { display: grid; gap: 4px; }
.pt-row b { font-size: 19px; font-weight: 700; }
.pt-row small { color: var(--steel); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.pt-head { border-top: 0; background: var(--ink); color: #C9D1DA; font-size: 13px; font-weight: 600; padding-block: 12px; }
.pt-time { color: var(--steel); font-variant-numeric: tabular-nums; }
.pt-price { font-size: 26px; font-weight: 800; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.pt-row > span:last-child { justify-self: end; }

/* Booking */
.book { background: var(--ink); color: #fff; }
.book-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.book-side { display: grid; gap: 18px; position: sticky; top: 110px; }
.book-side > p { color: #C9D1DA; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #E1E7ED; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--orange-hot); border-bottom: 3px solid var(--orange-hot); transform: rotate(-45deg); }
.book-call { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--ink-3); color: #AEB8C3; }
.book-call a { color: #fff; font-size: 30px; font-weight: 800; font-stretch: 70%; text-decoration: none; }
.book-widget .bk-powered { color: #AEB8C3; }

/* Areas */
.areas-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.areas-grid > div { display: grid; gap: 16px; }
.areas-grid > div p { color: var(--steel); font-size: 18px; }
.postcodes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.postcodes li { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 14px 16px; display: grid; gap: 2px; color: var(--steel); font-size: 15px; }
.postcodes b { color: var(--ink); font-size: 20px; font-weight: 800; font-stretch: 72%; }

/* Reviews */
.reviews { background: var(--paper); }
.reviews-head { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.score { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: 15px !important; }
.score b { font-size: 44px; font-weight: 900; font-stretch: 65%; color: var(--ink); line-height: 1; }
.stars { color: #E8A317; letter-spacing: 2px; font-size: 18px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { color: var(--steel); font-size: 14px; }
.review figcaption b { color: var(--ink); }
.review-lead { grid-row: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.review-lead blockquote { font-size: clamp(26px, 2.6vw, 34px); font-stretch: 78%; font-weight: 700; line-height: 1.2; }
.review-lead figcaption, .review-lead figcaption b { color: #C9D1DA; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { font-size: 19px; color: #3A4552; max-width: 36em; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.team li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; background: var(--paper); border-radius: 10px; padding: 14px 16px; border: 1px solid var(--line); }
.avatar { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-stretch: 75%; }
.team b { font-size: 18px; align-self: end; }
.team small { color: var(--steel); font-size: 14px; align-self: start; }

/* Quote */
.quote { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote-grid > div { display: grid; gap: 16px; }
.quote-grid > div p { color: var(--steel); font-size: 18px; }
.quote-grid .small { font-size: 16px; }
.quote-grid .small a { color: var(--orange); font-weight: 600; }
.quote-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--concrete); border-radius: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid #C3CAD2; border-radius: 8px; padding: 12px; width: 100%; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #FFE1CF; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 15px; }
.status[data-kind="ok"] { color: #15803D; font-weight: 600; }
.status[data-kind="error"] { color: #B42318; }

/* Footer */
.footer { background: #0E161E; color: #AEB8C3; padding-block: 56px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer a { color: #E1E7ED; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.foot-brand { color: #fff; font-size: 22px; font-stretch: 80%; margin-bottom: 10px; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 10px; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; max-width: 280px; }
.hours dd { margin: 0; color: #E1E7ED; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-base { margin-top: 40px; font-size: 13px; }
.foot-base p { padding-top: 20px; border-top: 1px solid #223040; }

.demo-note { background: #0B1117; color: #8C98A5; font-size: 13px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.demo-note a { color: #E1E7ED; }
.demo-note b { color: #C9D1DA; font-weight: 600; }

/* Narrow screens */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav-book { margin-left: auto; }
  .hero-grid, .book-grid, .areas-grid, .about-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .book-side { position: static; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-lead { grid-column: 1 / -1; grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .utility-row { font-size: 13px; }
  .brand { font-size: 16px; }
  .brand span { max-width: 9.5em; line-height: 1.15; }
  .nav-row { min-height: 64px; gap: 12px; }
  .nav-book { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .proof li { display: flex; align-items: baseline; gap: 10px; }
  .proof b { display: inline; font-size: 22px; flex: none; }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .check-list li, .check-list li + li { padding: 24px 0 16px; border-left: 0; }
  .check-list li + li { border-top: 1px solid var(--line); }
  .pt-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 18px; }
  .pt-head { display: none; }
  .pt-row > span:first-child { grid-column: 1 / -1; }
  .pt-time { grid-column: 1; }
  .pt-price { grid-column: 2; grid-row: 2; text-align: right; }
  .pt-row > span:last-child { grid-column: 1 / -1; justify-self: stretch; }
  .pt-row .btn-small { width: 100%; }
  .postcodes { grid-template-columns: minmax(0, 1fr); }
  .reviews-head { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .next { padding: 16px 20px; }
  .gauge-wrap { padding: 20px 20px 0; }
  .panel-body { padding: 4px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-needle { animation: none; }
  .btn { transition: none; }
}
