/*
  Air Surgeon stylesheet.
  Values come from docs/design-spec.md; the reference pages are the source of truth.

  Sizing: .page is a size container, so cqw units and @container rules follow the
  width of the page wrapper. The pinned Call and Book bar sits outside the wrapper
  and uses an ordinary media query.

  There is deliberately no global box-sizing reset. The reference pages rely on the
  browser defaults, and a reset would change button and field heights.
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800-italic.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --navy: #1B2A4E;
  --navy-deep: #14203B;
  --navy-line: #2E3D5F;        /* hairlines and the thermometer tube on navy-deep */
  --orange: #F26A1B;           /* always with ink text on it, never white */
  --orange-text: #C2500A;      /* orange text on white or ice */
  --orange-light: #F8935A;     /* orange on navy */
  --orange-wash: #FFF1E8;      /* the emergency checkbox row */
  --ice: #EAF1F7;
  --mist: #F6F9FC;
  --ink: #131A2A;
  --slate: #2B3650;
  --line: #DCE4EE;
  --line-mid: #B9C6D8;
  --line-strong: #7C8CA6;
  --on-navy: #DCE4EE;          /* body text on navy-deep */
  --on-navy-muted: #B8C4D9;    /* small labels on navy-deep */
  --county: #CFDDEA;
  --county-on: #7FA6CC;
  --neighbor: #ECF1F6;
  --map-muted: #5A6B85;
  --comfort: #8FD3B0;
  --comfort-zone: rgba(143, 211, 176, 0.3);
  --warming: #9CC3E8;          /* thermometer while heating up */

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;

  --pad-x: clamp(24px, 5cqw, 80px);
  --pad-y: clamp(72px, 9cqw, 128px);
  --content: 1240px;
  --content-narrow: 860px;
}

/* ---------- Base ---------- */
body { margin: 0; }
[hidden] { display: none !important; }

.page {
  container-type: inline-size;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
}

a { color: var(--navy); }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
summary { cursor: pointer; }

.page h1,
.page h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  color: var(--navy);
}
.page h1 { font-size: clamp(40px, 5.2cqw, 76px); line-height: 0.98; text-wrap: balance; }
.page h1.h1-home { font-size: clamp(42px, 5.8cqw, 84px); line-height: 0.96; }
.page h2 { font-size: clamp(34px, 4cqw, 56px); line-height: 1; }

.page h3,
.step-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
}

.page p { margin: 0; }
.lede { max-width: 40em; color: var(--slate); }
.muted { color: var(--slate); }

.list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Layout ---------- */
.section { padding: var(--pad-y) var(--pad-x); }
.section-flush-top { padding-top: 0; }
.bg-ice { background: var(--ice); }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy-deep); color: #FFFFFF; }

.wrap { max-width: var(--content); margin: 0 auto; }
.wrap-narrow { max-width: var(--content-narrow); margin: 0 auto; }
.stack { display: flex; flex-direction: column; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.gap-32 { gap: 32px; }
.gap-44 { gap: 44px; }

/* ---------- Buttons ---------- */
.btn {
  box-shadow: 0 2px 0 rgba(10, 16, 32, .3), 0 8px 18px rgba(20, 32, 59, .2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(10, 16, 32, .3), 0 14px 26px rgba(20, 32, 59, .26); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(10, 16, 32, .3), 0 3px 8px rgba(20, 32, 59, .2); }

.btn-md,
.btn-lg {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.btn-md { min-height: 48px; padding: 0 22px; }
.btn-lg { justify-content: center; min-height: 56px; padding: 0 28px; font-size: 19px; }
.btn-start { align-self: flex-start; }

.btn-primary, .btn-primary:hover { background: var(--orange); color: var(--ink); }
.btn-navy, .btn-navy:hover { background: var(--navy); color: #FFFFFF; }
.btn-outline, .btn-outline:hover { border: 2px solid var(--navy); color: var(--navy); }
.btn-white { background: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text links with a full-height tap target. */
.tap-link { display: inline-flex; align-items: center; min-height: 44px; }

button.btn-submit {
  align-self: flex-start;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
}

/* Pills and time-window buttons. The selected state comes from aria-pressed. */
.toggle { border: 2px solid var(--line-strong); background: #FFFFFF; color: var(--navy); }
.toggle[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 32, 59, .16);
}
.pill-county { padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 14px;
  padding: 0 16px;
  background: var(--navy-deep);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
}
.banner-note { display: inline-flex; align-items: center; gap: 8px; }
.banner a, .banner a:hover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #FFFFFF;
  font-weight: 600;
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange-light); }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(16px, 5cqw, 80px);
}
.brand, .brand:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
}
.brand-word span { color: var(--orange-text); }

.nav-wide { display: none; gap: 22px; font-weight: 500; font-size: 16px; }
.nav-wide a { text-decoration: none; white-space: nowrap; }

.hdr-actions { display: flex; gap: 10px; align-items: center; }
.hdr-call, .hdr-call:hover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--navy);
  cursor: pointer;
}

.nav-compact {
  display: flex;
  flex-direction: column;
  padding: 4px clamp(24px, 5cqw, 80px) 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 19px;
}
.nav-compact a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--ice);
  text-decoration: none;
}

/* Full navigation from 1260px, hamburger below it. Tighter header under 480px. */
@container (min-width: 1260px) {
  .nav-wide { display: flex; }
  .menu-toggle, .nav-compact { display: none !important; }
}
@container (max-width: 480px) {
  .hdr-call, .hdr-call:hover { padding: 0 10px; font-size: 15px; }
  .brand-word { font-size: 22px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ice); padding: clamp(48px, 7cqw, 96px) var(--pad-x); }
.hero-top {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4cqw, 56px);
}
.hero-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 2.7cqw, 38px);
  line-height: 1.1;
  color: var(--orange-text);
}
.hero-lede { font-size: clamp(18px, 1.5cqw, 21px); max-width: 34em; color: var(--slate); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-buttons .btn-lg { flex: 1 1 220px; max-width: 320px; }
.hero-note { font-weight: 500; color: var(--slate); }

.hero-art { flex: 1 1 300px; min-width: 0; display: grid; place-items: center; overflow: hidden; }
.fan {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 540px;
  height: auto;
  fill: var(--county);
  transform-origin: 50% 50%;
  animation: spin 16s linear infinite;
}
.fan circle { fill: none; stroke: var(--county); stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo { grid-area: 1 / 1; position: relative; width: 84%; max-width: 460px; height: auto; }

/* Monitor band: temperature readout, thermometer, four readouts. */
.monitor {
  max-width: var(--content);
  margin: clamp(36px, 5cqw, 64px) auto 0;
  background: var(--navy-deep);
  border-radius: 16px;
  padding: clamp(22px, 3cqw, 36px);
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3cqw, 40px);
}
.monitor-read { flex: 0 0 auto; min-width: 170px; }
.monitor-label { font-size: 15px; color: var(--on-navy-muted); }
.monitor-temp {
  font-family: var(--display);
  font-weight: 700;
  font-size: 68px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.monitor-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 600;
  color: var(--orange-light);
}

.thermo { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.thermo-row { display: flex; align-items: center; }
.thermo-bulb {
  flex: none;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  background: var(--orange-light);
  margin-right: -8px;
  position: relative;
  z-index: 1;
  transition: background-color .4s ease;
}
.thermo-tube {
  position: relative;
  flex: 1 1 auto;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid #FFFFFF;
  border-radius: 0 12px 12px 0;
  background: var(--navy-line);
  overflow: hidden;
}
/* Starting point before the script counts: 84 degrees when cooling, 58 when heating. */
.merc {
  height: 100%;
  width: 75.6%;
  background: var(--orange-light);
  transition: width .28s linear, background-color .4s ease;
}
[data-season="heating"] .merc { width: 17.8%; background: var(--warming); }
[data-season="heating"] .thermo-bulb,
[data-season="heating"] .monitor-status .dot { background: var(--warming); }
[data-season="heating"] .monitor-status { color: var(--warming); }

.thermo-zone,
.thermo-key span {
  background: var(--comfort-zone);
  border-left: 2px dashed #FFFFFF;
  border-right: 2px dashed #FFFFFF;
}
.thermo-zone { position: absolute; top: 0; bottom: 0; left: 40%; width: 17.8%; }
.thermo-scale,
.thermo-key { display: flex; padding-left: 36px; font-size: 14px; color: var(--on-navy-muted); }
.thermo-scale { justify-content: space-between; }
.thermo-key { align-items: center; gap: 8px; }
.thermo-key span { width: 16px; height: 12px; }

.monitor-facts {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--navy-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 28px;
}
.monitor-facts dt { font-size: 15px; color: var(--on-navy-muted); }
.monitor-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; }

/* ---------- Symptom checker ---------- */
.panel { padding: clamp(26px, 3.4cqw, 44px); background: var(--ice); border-radius: 12px; }
.panel-cols { display: flex; flex-wrap: wrap; gap: clamp(20px, 3cqw, 48px); }
.panel-col { flex: 1 1 280px; min-width: 0; }
.panel-col h3 { margin-bottom: 10px; }
.panel-col.stack { gap: 14px; }
.panel-col.stack h3 { margin-bottom: 0; }

/* Fade and rise when the panel, town list or mobile menu changes. */
.swap { animation: swap .35s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Service cards ---------- */
.card-row { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 320px;
  min-width: 0;
  border-top: 6px solid var(--orange);
  background: var(--mist);
  padding: clamp(26px, 3.2cqw, 44px);
}
.card-navy { border-top-color: var(--navy); }
.page .card h3 { margin-bottom: 14px; font-size: 32px; }
.card .list { margin-bottom: 18px; }
.link-strong { font-weight: 600; }

/* ---------- Landlord band ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4cqw, 64px); }
.page .band h2 {
  flex: 1 1 320px;
  min-width: 0;
  font-size: clamp(36px, 4.6cqw, 64px);
  line-height: 0.98;
  color: inherit;
}
.band-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.band-copy p { color: var(--on-navy); }

/* ---------- Visit steps ---------- */
.track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar { height: 100%; width: 100%; background: var(--orange); transition: width 1.8s ease-out; }
.rv-on .bar { width: 0; }   /* the script draws it across when it scrolls into view */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.page .steps p { margin-top: 8px; }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(24px, 4cqw, 64px); }
.about-photo { flex: 3 1 340px; min-width: 0; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(20, 32, 59, 0.2);
}
.about-copy { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-copy p { max-width: 38em; }

/* ---------- Service map ---------- */
.map-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(24px, 4cqw, 56px); }
.map-panel {
  flex: 3 1 420px;
  min-width: 0;
  background: var(--mist);
  border-radius: 16px;
  padding: clamp(8px, 2cqw, 24px);
}
.map { display: block; width: 100%; height: auto; border-radius: 10px; }
.map-neighbors { pointer-events: none; }
.map-neighbors path { fill: var(--neighbor); stroke: #FFFFFF; stroke-width: 2; stroke-linejoin: round; }
.map-neighbors text { font-size: 13px; text-anchor: middle; fill: var(--map-muted); }
.county {
  fill: var(--county);
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .25s ease;
}
.county.on { fill: var(--county-on); }
.map-county-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-anchor: middle;
  fill: var(--navy);
  pointer-events: none;
}
.map-dot { fill: var(--orange); stroke: #FFFFFF; stroke-width: 2; pointer-events: none; }
.map-labels { display: none; }
.map-labels text { font-size: 15px; font-weight: 500; fill: var(--ink); pointer-events: none; }
@container (min-width: 600px) { .map-labels { display: inline; } }

.map-side { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.page .map-side h3 { font-size: 36px; line-height: 1.05; }
.town-list { margin: 0; padding: 0; list-style: none; }
.town-list a,
.town-list span {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}
.town-list span { color: var(--slate); }   /* a town whose page is not published yet */
.county-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- FAQ ---------- */
.page .faq-title { margin-bottom: 10px; }
.faq { border-bottom: 1px solid var(--line-mid); padding: 6px 0 14px; }
.faq summary { font-weight: 600; font-size: 19px; padding: 10px 0; }
.page .faq p { margin-top: 6px; }

/* ---------- Appointment form ---------- */
.notice { padding: 24px; background: var(--ice); border-left: 6px solid var(--navy); font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 18px; }
.urgent-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--orange-wash);
  border: 1px solid var(--orange);
  border-radius: 8px;
  font-weight: 600;
}
.form input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--navy); }
.urgent-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--navy-deep);
  color: #FFFFFF;
  border-radius: 8px;
}
.urgent-box span { flex: 1 1 220px; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}
.field input,
.field select { min-height: 48px; padding: 0 12px; }
.field select { background: #FFFFFF; }
.field textarea { padding: 12px; }

.windows { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.windows legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.window-row { display: flex; flex-wrap: wrap; gap: 8px; }
.window {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; }

/* What to fix, shown above the fields after a request that did not go through. */
.form-errors {
  padding: 18px 20px;
  background: #FFFFFF;
  border-left: 6px solid var(--orange);
  font-weight: 500;
}
.form-errors ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }
.field [aria-invalid="true"] { border-color: var(--orange-text); box-shadow: 0 0 0 1px var(--orange-text); }
/* Ink, not orange: orange text is too faint at this size on the ice background. */
.field-error { font-weight: 600; font-size: 15px; color: var(--ink); }

/* A field for bots only. People never see or reach it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages: breadcrumb, hero, facts ---------- */
.crumbs { padding: 6px var(--pad-x); border-bottom: 1px solid var(--line); font-size: 15px; }
.crumbs ol {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs [aria-current] { font-weight: 600; }

.hero-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4cqw, 64px);
}
.hero-main { flex: 3 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-aside { flex: 2 1 300px; min-width: 0; }
.inner-lede { font-size: clamp(18px, 1.5cqw, 20px); max-width: 36em; color: var(--slate); }

.facts {
  margin: 0;
  background: var(--navy-deep);
  color: #FFFFFF;
  border-radius: 16px;
  padding: clamp(22px, 3cqw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-line);
}
.facts dt { color: var(--on-navy-muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.map-card { background: var(--mist); border-radius: 16px; padding: 12px; }
.map-static .county { cursor: auto; }
.map-town-name { font-size: 16px; font-weight: 600; fill: var(--ink); }

/* ---------- Tiles: problem cards, town facts, county town cards ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.tile { border-top: 6px solid var(--orange); background: var(--mist); padding: 24px; }
.tile-roomy { padding: clamp(22px, 2.6cqw, 32px); }
.page .tile p { margin-top: 8px; }
.tile-stack { display: flex; flex-direction: column; gap: 8px; }
.page .tile-stack p { margin-top: 0; }
.strong { font-weight: 600; }

.page h2.h2-spaced { margin-top: 40px; }
.cover-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
}
.cover-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

.card-white { background: #FFFFFF; }
.page .card-white h3 { font-size: 28px; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.also span.tap-link { color: var(--slate); }   /* a town whose page is not published yet */
.text-lg { font-size: 19px; }

/* ---------- Repair-or-replace checker ---------- */
.checker { display: flex; flex-wrap: wrap; gap: clamp(24px, 4cqw, 56px); align-items: stretch; }
.checker-inputs { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.range { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.range input { width: 100%; height: 44px; accent-color: var(--orange); }
.verdict-card {
  flex: 1 1 300px;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 16px;
  border-top: 6px solid var(--county-on);
  padding: clamp(24px, 3cqw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(20, 32, 59, 0.12);
}
.verdict-sum { color: var(--slate); }
.verdict { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--navy); }
.verdict-card .btn-md { justify-content: center; font-size: 17px; }

/* ---------- Closing call band ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.page .cta h2 {
  flex: 1 1 360px;
  min-width: 0;
  font-size: clamp(34px, 4.4cqw, 60px);
  color: inherit;
}

/* ---------- Page not found ---------- */
.wrap-404 { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.ekg { background: var(--navy-deep); border-radius: 16px; padding: 20px clamp(18px, 3cqw, 36px); }
.ekg svg { display: block; width: 100%; height: 64px; }
.ekg path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.page h1.h1-404 { font-size: clamp(46px, 7cqw, 96px); line-height: 0.95; text-wrap: wrap; }
.lede-404 { font-size: 20px; max-width: 34em; color: var(--slate); }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: clamp(56px, 6cqw, 88px) var(--pad-x); }
.footer-grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.footer-word { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1; color: #FFFFFF; }
.footer-word span { color: var(--orange-light); }
.footer-head { font-weight: 600; color: #FFFFFF; }
.page .site-footer p { margin-top: 8px; }
.page .site-footer .footer-about { margin-top: 10px; }
.site-footer a, .site-footer a:hover { color: #FFFFFF; }

/* ---------- Call and Book bar, pinned to the bottom of the screen on phones only ---------- */
.callbar { display: none; }
.callbar a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.callbar .btn-outline { background: #FFFFFF; }
@media (max-width: 700px) {
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #FFFFFF;
    border-top: 1px solid var(--line-mid);
    font-family: var(--body);
  }
  body { padding-bottom: 73px; }
}

/* ---------- Scroll reveal ---------- */
.rv-on .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv-on .rv.in { opacity: 1; transform: none; }

/* ---------- All motion stops when the visitor asks for less ---------- */
@media (prefers-reduced-motion: reduce) {
  .fan, .pulse, .swap { animation: none; }
  .bar, .btn, .merc, .thermo-bulb, .county { transition: none; }
}
