/* Thornrigg Roofing & Guttering — concept site by Northpin Studio
   Palette: Welsh slate, heather slate, lead, Pennine mist, lichen.
   Type: Source Serif 4 (display, opsz) + Work Sans (text/UI).
   Both font files are trimmed for speed: weights 400-900 only, and Source Serif keeps optical sizes 20-60. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-opsz20-60-wght400-900.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-wght400-900.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #1B1F29;
  --slate-2: #262B38;
  --slate-line: #363D4E;
  --heather: #4B4F6B;
  --lead: #9AA1AA;
  --lead-text: #B9BFC6;
  --mist: #EEF0F1;
  --paper: #FFFFFF;
  --lichen: #F2B830;
  --lichen-hover: #FFC84A;
  --lichen-deep: #7D5600;
  --ink: #1B1F29;
  --ink-2: #4A505C;
  --line: #D5DADE;
  --line-strong: #A3AAB2;
  --ok: #1D6B3F;
  --bad: #A12B20;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --r-lg: 10px;
  --max: 1240px;
  --gutter: clamp(18px, 5vw, 48px);
  --focus: var(--slate);
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 1.45rem + 3.9vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.16rem; line-height: 1.3; font-weight: 650; }

svg:where(:not([viewBox]):not(.sprite)) { width: 1.2em; height: 1.2em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  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: -100px; z-index: 100;
  background: var(--slate); color: #fff; padding: 12px 16px; border-radius: var(--r);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; --focus: var(--lichen); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 10vw, 136px); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--lichen-deep);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; flex: none; width: 22px; height: 3px; background: var(--lichen);
}
.eyebrow--lichen { color: var(--lichen); }
.eyebrow__more { display: none; }
.lead {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.18rem);
  color: var(--ink-2);
  max-width: 58ch;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: var(--r);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 24px; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }
.btn--primary { background: var(--lichen); color: var(--slate); }
.btn--primary:hover { background: var(--lichen-hover); }
.btn--dark { background: var(--slate); color: #fff; }
.btn--dark:hover { background: var(--heather); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: #fff; }
.btn--text {
  background: none; border: 0; color: var(--ink); padding: 12px 10px;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn--block { width: 100%; }
.btn--block-sm { width: 100%; }

/* Northpin ribbon */
.ribbon {
  background: #0E1117; color: #C3C8CF;
  font: 500 0.8125rem/1.45 var(--sans);
}
.ribbon__in {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: 7px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 18px; text-align: center;
}
.ribbon p { margin: 0; }
.ribbon__links { display: flex; gap: 18px; }
.ribbon a {
  position: relative; white-space: nowrap;
  color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  --focus: var(--lichen);
}
.ribbon a::after { content: ""; position: absolute; inset: -12px -8px; }
@media (max-width: 419px) {
  .ribbon { font-size: 0.78rem; }
  .ribbon__in { padding-block: 6px; }
}
@media (min-width: 960px) {
  .ribbon__in { justify-content: space-between; text-align: left; }
}
.is-clean .ribbon { display: none; }

/* Emergency strip */
.alert { background: var(--lichen); color: var(--slate); }
.alert__in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding-block: 6px;
}
.alert p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 0.97rem; line-height: 1.3; }
.alert strong { white-space: nowrap; }
.alert__more { display: none; }
.pulse {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--slate);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 31, 41, .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(27, 31, 41, 0); }
}
.alert__call {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r);
  background: var(--slate); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  --focus: var(--slate);
}
.alert__call:hover { background: var(--heather); }
.alert__num { display: none; }
.alert__moon { width: 20px; height: 20px; color: var(--lichen); }

/* Day / night variants (night = 10pm to 7am UK time, when the leak line is closed) */
html:not(.is-night) .only-night, .is-night .only-day { display: none !important; }
.is-night .alert { background: var(--slate-2); color: #fff; }
.is-night .alert__call { background: var(--lichen); color: var(--slate); --focus: var(--lichen); }
.is-night .alert__call:hover { background: var(--lichen-hover); }

/* Header: sticky everywhere; below 1100px it slides away on the way down and back on the way up */
.header {
  position: sticky; top: 0; z-index: 40; background: var(--mist);
  transition: transform .28s ease, box-shadow .2s;
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(27, 31, 41, .5); }
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.header__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  margin-right: auto; color: var(--slate); text-decoration: none;
}
.logo__mark { width: 46px; height: 35px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo__name { font: 700 1.5rem/1 var(--serif); letter-spacing: -0.015em; }
.logo__sub {
  margin-top: 5px; font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.logo--light { color: #fff; }
.logo--light .logo__sub { color: var(--lead-text); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1.5px solid var(--slate); border-radius: var(--r);
  background: transparent; color: var(--slate); font-weight: 600; font-size: 0.95rem;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 4px var(--gutter) 22px;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(27, 31, 41, .35);
}
.nav.is-open { display: block; }
.nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.nav li a {
  display: flex; align-items: center; min-height: 54px;
  border-bottom: 1px solid var(--line);
  font: 600 1.2rem/1.2 var(--serif); color: var(--ink); text-decoration: none;
}
.nav__ctas { display: grid; gap: 10px; margin-top: 20px; }
.header__cta { display: none; }
.header__phone {
  display: none; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.header__phone svg { color: var(--lichen-deep); }
.header__phone:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero { background: var(--mist); padding: clamp(14px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.hero__in { display: grid; gap: 36px; }
.hero h1 { margin-bottom: 20px; max-width: 13em; }
.hero__lede {
  font-size: clamp(1.07rem, 1rem + 0.4vw, 1.24rem);
  color: var(--ink-2); max-width: 35em; margin-bottom: 28px; text-wrap: pretty;
}
.hero__ctas { display: flex; flex-direction: column; gap: 12px; }
.assure {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.97rem; font-weight: 500;
}
.assure li { display: flex; align-items: center; gap: 7px; }
.assure svg { color: var(--ok); }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; padding: 8px 14px 8px 12px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.93rem; font-weight: 500; line-height: 1.3;
}
.status--hero { margin-top: 22px; }
.status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lead); }
.status[data-state="open"] .status__dot { background: #22A05A; box-shadow: 0 0 0 3px rgba(34, 160, 90, .2); }
.status[data-state="emergency"] .status__dot { background: #E0A106; box-shadow: 0 0 0 3px rgba(224, 161, 6, .22); }
.status[data-state="night"] .status__dot { background: var(--heather); box-shadow: 0 0 0 3px rgba(75, 79, 107, .18); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 40% 62%;
  border-radius: var(--r-lg);
}
.hero__media figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 6px 10px; border-radius: 4px;
  background: rgba(27, 31, 41, .84); color: #fff; font-size: 0.84rem; line-height: 1.35;
}

/* Signature: Leeds roofline (stepped terraces, chimney pots, a mill chimney, a spire) */
.roofline {
  height: clamp(88px, 8.5vw, 128px);
  margin-bottom: -1px;
  background: url("../img/roofline.svg") center bottom / cover no-repeat, var(--mist);
}
.roofline--footer { background-image: url("../img/roofline-static.svg"); background-position: 30% bottom; }

/* Proof band */
.proof { background: var(--slate); color: #fff; padding: 4px 0 clamp(52px, 6vw, 84px); --focus: var(--lichen); }
.proof__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.proof__list li { border-top: 1px solid var(--slate-line); padding-top: 16px; }
.proof__list strong {
  display: block; margin-bottom: 8px;
  font: 700 clamp(1.65rem, 1.25rem + 1.6vw, 2.5rem)/1 var(--serif);
  color: var(--lichen); letter-spacing: -0.015em;
}
.proof__list span { display: block; color: var(--lead-text); font-size: 0.95rem; line-height: 1.45; }

/* Prices */
.prices__grid { display: grid; gap: 40px; }
.prices__photo { margin-top: 28px; }
.prices__photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 55%; border-radius: var(--r-lg); }
.prices__photo figcaption, .process__photo figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.pricelist__group {
  margin: 40px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--slate);
  font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-2);
}
.pricelist__group:first-child { margin-top: 0; }
.pricelist ul { list-style: none; padding: 0; }
/* Phones: one tappable line per job (title, "from" price, chevron). The whole row opens the estimator. */
.price {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px;
  grid-template-areas: "main from est";
  align-items: center; gap: 12px;
  min-height: 66px; padding: 12px 0; border-bottom: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}
.price__main { grid-area: main; }
.price__main h4 { margin: 0; font-size: 1.06rem; line-height: 1.25; }
.price__main p { display: none; color: var(--ink-2); font-size: 0.98rem; }
.price__from {
  grid-area: from; margin: 0; white-space: nowrap;
  font: 700 1.28rem/1 var(--serif); color: var(--slate);
  font-variant-numeric: lining-nums tabular-nums;
}
.price__from span { margin-right: 4px; font: 500 0.8125rem var(--sans); color: var(--ink-2); }
.price__est {
  grid-area: est; justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  width: 20px; padding: 0; border: 0; background: transparent;
  font-weight: 600; font-size: 0.92rem; color: var(--ink-2);
  transition: border-color .2s, background-color .2s;
}
.price__est::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.price__est:focus-visible { outline: none; }
.price__est:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.price:active { background: rgba(27, 31, 41, .05); }
.price__est-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price__arrow { display: none; }
.price__chev { width: 20px; height: 20px; }
.price__est:hover { border-color: var(--slate); background: var(--paper); }

/* Estimator */
.estimator { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--split { max-width: none; display: grid; gap: 4px 56px; }
.est {
  display: grid; border-radius: 12px;
  border: 1px solid var(--line); background: var(--slate);
}
.est__inputs { padding: clamp(20px, 3vw, 36px); display: grid; gap: 30px; align-content: start; background: var(--mist); border-radius: 11px 11px 0 0; }
.est__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.est__set legend { padding: 0; margin-bottom: 14px; font: 700 1.18rem/1.3 var(--serif); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: center; height: 100%;
  min-height: 54px; padding: 10px 10px; text-align: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; color: var(--slate);
  transition: background-color .15s, border-color .15s, color .15s;
}
.opt:hover span { border-color: var(--slate); }
.opt input:checked + span {
  background: var(--slate); border-color: var(--slate); color: #fff;
  box-shadow: inset 0 -4px 0 var(--lichen);
}
.opt input:focus-visible + span { outline: 3px solid var(--slate); outline-offset: 2px; }

/* Price bar: on phones and tablets it pins to the bottom of the estimator while options are chosen,
   then settles into place as the top of the result panel. Same size in both states, so nothing jumps. */
.est__bar {
  position: sticky; bottom: 0; z-index: 5;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--slate); color: #fff; --focus: var(--lichen);
  transition: box-shadow .2s;
}
.est__bar.is-stuck { box-shadow: 0 -14px 30px -10px rgba(27, 31, 41, .5); }
.est__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.est__mini {
  margin: 0 0 4px; font: 500 0.9375rem/1.3 var(--sans); color: var(--lead-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.est__go {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); background: var(--lichen); color: var(--slate);
  font-weight: 600; text-decoration: none;
  visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s;
}
.est__go svg { display: none; }
.est__bar.is-stuck .est__go { visibility: visible; opacity: 1; transition: opacity .2s; }
.est__result {
  display: flex; flex-direction: column; gap: 18px;
  padding: 6px 20px 24px; border-radius: 0 0 11px 11px;
  background: var(--slate); color: #fff; --focus: var(--lichen);
}
.est__for { display: none; margin: 0; color: var(--lead-text); font-size: 0.98rem; text-wrap: pretty; }
.est__for span { color: #fff; font-weight: 500; }
.est__price {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline;
  font: 700 clamp(1.5rem, 1.2rem + 1.5vw, 2rem)/1.02 var(--serif);
  color: var(--lichen); letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  transition: opacity .25s;
}
.est__price.is-updating { opacity: .35; }
.est__dash { margin: 0 .12em; }
.est__facts { margin: 0; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--slate-line); }
.est__facts div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; font-size: 0.95rem; }
.est__facts dt { color: var(--lead-text); }
.est__facts dd { margin: 0; font-weight: 500; }
.est__note { margin: 0; font-size: 0.86rem; color: var(--lead-text); }

/* Work: before/after */
.ba {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-lg); background: #C9CED3;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba .ba__img, .ba .ba__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  padding: 6px 10px; border-radius: 4px;
  background: rgba(27, 31, 41, .86); color: #fff;
  font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; background: var(--lichen); color: var(--slate); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 48px; margin-left: -24px;
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; outline: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(27, 31, 41, .2);
}
.ba__grip {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lichen); color: var(--slate);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.ba__handle:focus-visible .ba__grip { outline: 3px solid #fff; outline-offset: 3px; }
.ba.is-dragging .ba__grip { transform: scale(1.08); }
.ba__facts { margin: 20px 0 0; display: grid; gap: 14px; }
.ba__facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.ba__facts dt {
  font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 4px;
}
.ba__facts dd { margin: 0; font-weight: 500; }
.jobs { display: grid; gap: 20px; margin-top: clamp(44px, 6vw, 72px); }
.job { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.job img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.job:nth-child(2) img { object-position: 50% 28%; }
.job__body { padding: 20px 22px 24px; }
.job__where {
  margin: 0 0 6px; font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--lichen-deep);
}
.job h3 { margin-bottom: 8px; }
.job p { color: var(--ink-2); }

/* Emergency */
.emergency { position: relative; background: var(--slate); color: #fff; overflow: hidden; --focus: var(--lichen); }
.emergency__bg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 40%; }
.emergency__in { padding-block: 36px 64px; }
.emergency h2 { color: #fff; }
.steps-mini { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 14px; counter-reset: s; }
.steps-mini li {
  position: relative; counter-increment: s; min-height: 34px; padding: 4px 0 0 50px;
  color: #D3D7DC; line-height: 1.5;
}
.steps-mini li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--lichen); color: var(--lichen); font: 700 1rem/1 var(--serif);
}
.steps-mini strong { color: #fff; }
.emergency__hours { margin-top: 14px; font-size: 0.92rem; color: var(--lead-text); }
.emergency__night {
  margin: 0 0 24px; padding: 16px 18px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--slate-line);
}
.emergency__clock { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; color: #fff; }
.emergency__clock svg { width: 22px; height: 22px; color: var(--lichen); }
.emergency__clock strong { color: var(--lichen); font-variant-numeric: tabular-nums; white-space: nowrap; }
.emergency__night p:last-child { color: #D3D7DC; font-size: 0.97rem; }

/* Guarantee */
.guarantee__grid { display: grid; gap: 52px; }
.terms { list-style: none; padding: 0; margin: 28px 0; }
.terms li {
  display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.terms li:last-child { border-bottom: 1px solid var(--line); }
.terms__yrs { font: 700 1.35rem/1 var(--serif); color: var(--slate); white-space: nowrap; }
.guarantee__insure {
  padding: 14px 16px; border-left: 3px solid var(--lichen); border-radius: 4px;
  background: var(--paper); font-size: 0.95rem; color: var(--ink-2);
}
.cert {
  position: relative; width: 100%; max-width: 520px; justify-self: center;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(27, 31, 41, .45);
}
.cert::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid #DDE1E4; border-radius: 3px;
}
.cert__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--slate); }
.cert__mark { width: 52px; height: 40px; }
.cert__no { margin: 0; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.1em; color: var(--ink-2); }
.cert__title {
  margin: 18px 0; padding-bottom: 14px; border-bottom: 2px solid var(--slate);
  font: 700 clamp(1.45rem, 1.2rem + 1vw, 1.9rem)/1.15 var(--serif); letter-spacing: -0.015em;
}
.cert__rows { margin: 0; }
.cert__rows div {
  display: grid; grid-template-columns: 118px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed #C4CAD0; font-size: 0.94rem;
}
.cert__rows dt { font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.cert__rows dd { margin: 0; font-weight: 500; }
.cert__foot { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: end; margin-top: 20px; }
.cert__sig { width: 140px; height: 40px; color: var(--heather); grid-column: 1; }
.cert__foot p { grid-column: 1; margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.cert__seal {
  grid-column: 2; grid-row: 1 / span 2;
  display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
  background: var(--lichen); color: var(--slate); text-align: center;
  box-shadow: inset 0 0 0 5px var(--lichen), inset 0 0 0 6.5px rgba(27, 31, 41, .55);
  font: 700 1.7rem/1 var(--serif);
}
.cert__seal small { display: block; margin-top: 3px; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }

/* Process */
.process { background: var(--paper); }
.process__grid { display: grid; gap: 44px; }
.process__photo { margin-top: 28px; }
.process__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 34px 72px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px;
  background: var(--slate); color: var(--lichen); font: 700 1.3rem/1 var(--serif);
}
.steps li::after {
  content: ""; position: absolute; left: 23px; top: 50px; bottom: 6px; width: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

/* Family */
.family__grid { display: grid; gap: 36px; }
.family__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.family__copy > p { color: var(--ink-2); max-width: 52ch; }
.facts { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; }
.facts li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 8px; background: var(--paper);
  color: var(--ink-2); font-size: 0.95rem; line-height: 1.35;
}
.facts strong { min-width: 32px; font: 700 2rem/1 var(--serif); color: var(--slate); }

/* Reviews */
.reviews { background: var(--paper); }
.reviews__note {
  justify-self: start; align-self: end; margin: 0;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-2);
}
.quotes { display: grid; gap: 16px; }
.quote {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--mist);
}
.quote::before {
  content: "\201C"; position: absolute; top: 10px; right: 20px;
  font: 700 3.6rem/1 var(--serif); color: var(--lichen);
}
.quote .sample {
  align-self: flex-start; margin: 0 0 -8px;
  padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 600 0.75rem/1.3 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); background: var(--paper);
}
.reviews__note strong { color: var(--ink); font-weight: 700; margin-right: 4px; }
@media (max-width: 639px) { .reviews__note { border-radius: 12px; } }
.quote blockquote { margin: 0; }
.quote blockquote p { padding-right: 28px; font: 450 1.14rem/1.5 var(--serif); color: var(--ink); }
.quote figcaption { font-size: 0.9rem; color: var(--ink-2); }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.quotes__hint { display: none; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.quotes__hint svg { width: 18px; height: 18px; }
.quotes:focus-visible { outline-offset: -3px; }

/* Areas */
.areas__grid { display: grid; gap: 40px; }
.pc {
  margin-top: 24px; padding: 20px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.pc__label { display: block; margin-bottom: 8px; font-weight: 600; }
.pc__row { display: flex; gap: 8px; }
.pc__row .btn { flex: none; min-height: 52px; }
.pc__result { margin: 0; font-size: 0.98rem; font-weight: 500; }
.pc__result:not(:empty) { margin-top: 14px; }
.pc__result.is-yes { color: var(--ok); }
.pc__result.is-maybe { color: var(--lichen-deep); }
.pc__result.is-no, .pc__result.is-err { color: var(--bad); }
.areas__also { margin-top: 18px; font-size: 0.95rem; color: var(--ink-2); }
.pc__book { margin-top: 14px; }
.districts-box { min-width: 0; }
.districts-box__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper);
  font-weight: 600; color: var(--slate);
}
.districts-box__sum::-webkit-details-marker { display: none; }
.districts-box__sum::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0;
  border-right: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.districts-box[open] > .districts-box__sum { margin-bottom: 8px; }
.districts-box[open] > .districts-box__sum::after { transform: rotate(-135deg); margin-top: 4px; }
.districts { list-style: none; padding: 0; columns: 2; column-gap: 20px; font-size: 0.9rem; line-height: 1.35; }
.districts li {
  display: flex; gap: 8px; break-inside: avoid;
  padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--ink-2);
  border-radius: 4px; transition: background-color .3s;
}
.districts b { flex: none; min-width: 40px; font: 700 0.95rem/1.35 var(--serif); color: var(--slate); }
.districts li.is-hit { background: var(--lichen); color: var(--slate); }

/* FAQ */
.faq { background: var(--paper); }
.faq__grid { display: grid; gap: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; margin-top: 18px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--slate); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.pill svg { color: var(--lichen); }
.pill:hover { background: var(--heather); }
/* Inline text links: taller hit area without changing the line layout */
.faq__list details a, .footer__legal a, .bform__callout a { padding-block: 14px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 650 1.12rem/1.35 var(--serif);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--slate);
  background:
    linear-gradient(var(--slate), var(--slate)) center / 12px 2px no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 2px 12px no-repeat;
  transition: transform .2s;
}
.faq__list details[open] summary::after {
  background: linear-gradient(var(--slate), var(--slate)) center / 12px 2px no-repeat;
  transform: rotate(180deg);
}
.faq__list summary:hover { color: var(--heather); }
.faq__list details p { margin: 0; padding: 0 44px 22px 0; color: var(--ink-2); }

/* Booking */
.book__grid { display: grid; gap: 40px; }
.bform {
  margin-top: 28px; padding: clamp(20px, 3.5vw, 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 60px -44px rgba(27, 31, 41, .5);
}
.bform__progress { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.bform__progress li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.bform__progress span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); font-size: 0.82rem; }
.bform__progress .is-current { color: var(--ink); border-color: var(--slate); }
.bform__progress .is-current span { background: var(--slate); color: #fff; }
.bform__progress .is-done { border-color: var(--lichen); }
.bform__progress .is-done span { background: var(--lichen); color: var(--slate); }
.bform__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.field--radios > legend { margin-bottom: 6px; }
.opt-tag { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); }
.field input, .field select, .field textarea, .pc__input {
  display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid #858C95; border-radius: var(--r); background: #fff; color: var(--ink);
  font-size: 1rem; line-height: 1.3;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231B1F29' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field input[type="date"] { text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus, .field textarea:focus, .pc__input:focus {
  outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px var(--lichen);
}
.field [aria-invalid="true"], .pc__input[aria-invalid="true"] { border-color: var(--bad); }
.field__err { margin: 0; color: var(--bad); font-size: 0.9rem; font-weight: 500; }
.field__err:empty { display: none; }
.field__hint { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.field-row { display: grid; gap: 0 16px; }
.radios { display: grid; gap: 8px; }
.radios--inline { grid-template-columns: 1fr 1fr; }
.radio { position: relative; display: block; }
.radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.radio span {
  position: relative; display: flex; align-items: center; height: 100%; min-height: 52px;
  padding: 12px 14px 12px 46px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  font-weight: 500; line-height: 1.3; background: #fff;
}
.radio span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 2px solid #858C95; border-radius: 50%; background: #fff;
}
.radio input:checked + span { border-color: var(--slate); background: #F5F6F7; }
.radio input:checked + span::before { border-color: var(--slate); background: var(--slate); box-shadow: inset 0 0 0 4px #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--slate); outline-offset: 2px; }
.radios.is-invalid .radio span { border-color: var(--bad); }
.bform__callout {
  margin: -4px 0 18px; padding: 12px 14px; border-left: 3px solid var(--lichen); border-radius: 4px;
  background: #FFF5D6; font-size: 0.95rem;
}
.bform__callout a { font-weight: 700; white-space: nowrap; }
.bform__nav { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; margin-top: 8px; }
.bform__small { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-2); }
.bform__done { outline: none; }
.bform__tick { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--lichen); color: var(--slate); }
.bform__done h3 { margin: 16px 0 10px; font-size: 1.6rem; }
.bform__done p { color: var(--ink-2); }
.bform__demo { padding: 12px 14px; border-radius: var(--r); background: var(--mist); font-size: 0.95rem; }
.bform__demo strong { color: var(--ink); }
.bform { scroll-margin-top: 76px; }

/* Estimate carried over from the estimator */
.chip {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 10px 6px 10px 14px; border-radius: var(--r);
  background: var(--slate); color: #fff; --focus: var(--lichen);
}
.chip p { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.4; }
.chip__k { display: block; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lead-text); }
.chip strong { color: var(--lichen); white-space: nowrap; }
.chip__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--r); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1;
}
.chip__x:hover { background: rgba(255, 255, 255, .12); }
.field__note {
  margin: 2px 0 0; padding: 10px 12px; border-left: 3px solid var(--lichen); border-radius: 4px;
  background: #FFF5D6; font-size: 0.92rem; line-height: 1.45; color: var(--ink);
}
.field__note:empty { display: none; }
.bform__callout p { margin: 0; }

/* Two-hour slots */
.radios--slots { grid-template-columns: 1fr 1fr; }
.radios--slots .radio span { justify-content: center; padding: 10px 8px; text-align: center; font-weight: 600; white-space: nowrap; }
.radios--slots .radio span::before { display: none; }
.radios--slots .radio input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; box-shadow: inset 0 -4px 0 var(--lichen); }
.radio.is-off span { background: var(--mist); color: #6B717C; border-style: dashed; text-decoration: line-through; }
.radio input:disabled { cursor: not-allowed; }

/* Optional photo: previewed locally, never uploaded */
.field--photo { position: relative; gap: 8px; }
.field .photo__input {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0;
  border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%);
}
.photo {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  border: 1.5px dashed #858C95; border-radius: var(--r); background: var(--mist);
  cursor: pointer; line-height: 1.3;
}
.photo svg { width: 24px; height: 24px; color: var(--slate); }
.photo strong { font-weight: 600; }
.photo:hover { border-color: var(--slate); }
.photo__input:focus-visible + .photo { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo__preview { display: flex; align-items: center; gap: 14px; }
.photo__preview img { width: 88px; height: 88px; flex: none; object-fit: cover; border-radius: var(--r); background: var(--mist); }
.photo__preview p { min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.photo__preview .btn--text { min-height: 44px; padding: 10px 0; }

/* Success: a mini version of the guarantee certificate */
.receipt {
  position: relative; overflow: hidden; margin-bottom: 20px; padding: 22px 20px 70px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 1px 0 var(--line), 0 24px 44px -30px rgba(27, 31, 41, .45);
}
.receipt::before { content: ""; position: absolute; inset: 6px; border: 1px solid #DDE1E4; border-radius: 3px; pointer-events: none; }
.receipt__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt .bform__tick { width: 46px; height: 46px; padding: 10px; }
.bform__done .receipt__no { margin: 0; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.06em; color: var(--ink-2); }
.bform__done .receipt h3 { margin: 14px 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--slate); font-size: 1.4rem; }
.receipt__rows { margin: 0; }
.receipt__rows div { display: grid; grid-template-columns: 7.4em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #C4CAD0; font-size: 0.95rem; }

.receipt__rows dt { font: 600 0.8125rem/1.5 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.receipt__rows dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.receipt__stamp {
  position: absolute; right: 18px; bottom: 18px; padding: 5px 12px; pointer-events: none;
  border: 3px solid rgba(161, 43, 32, .72); border-radius: 6px;
  color: rgba(161, 43, 32, .8); font: 800 1.25rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  transform: rotate(-11deg); mix-blend-mode: multiply;
}

.contact { display: grid; gap: 20px; align-content: start; }
.contact__phone {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--slate); color: #fff; text-decoration: none;
  font: 700 1.6rem/1.1 var(--serif); letter-spacing: -0.01em; --focus: var(--slate);
}
.contact__phone svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--lichen); color: var(--slate); }
.contact__phone small { display: block; margin-bottom: 4px; font: 500 0.85rem/1.2 var(--sans); letter-spacing: 0; color: var(--lead-text); }
.contact__phone:hover { background: var(--heather); }
.contact__line {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; overflow-wrap: anywhere;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.contact__line svg { color: var(--lichen-deep); }
.contact__block { padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.contact__block h3 { margin-bottom: 12px; font-size: 1.2rem; }
.contact__block .status { background: var(--mist); border-color: transparent; }
.hours { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.95rem; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours th { padding: 8px 0; text-align: left; font-weight: 500; color: var(--ink-2); }
.hours td { padding: 8px 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }
.hours .today-tag {
  margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--lichen);
  font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);
}
.contact__note { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }
.contact address { margin-bottom: 6px; font-style: normal; }

/* Footer */
.footer { background: var(--slate); color: var(--lead-text); --focus: var(--lichen); }
.footer__body { padding: 20px 0 calc(40px + 76px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin: 16px 0 20px; max-width: 34ch; }
.footer__h {
  margin-bottom: 10px; font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--lichen);
}
.footer__list { list-style: none; padding: 0; display: grid; gap: 2px; font-size: 0.97rem; }
.footer__list li { padding: 4px 0; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px;
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
}
.footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: 44px; font-size: 0.86rem; }
.footer__legal p { padding-top: 20px; border-top: 1px solid var(--slate-line); }
.footer__legal a { color: #fff; }
.footer__legal .footer__credit { margin-top: 6px; padding-top: 0; border-top: 0; }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(27, 31, 41, .97); border-top: 1px solid var(--slate-line);
  transition: transform .25s ease, visibility 0s;
  --focus: var(--lichen);
}
.actionbar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; text-decoration: none;
}
.actionbar__btn--call { background: var(--lichen); color: var(--slate); }
.actionbar__btn--book { background: #fff; color: var(--slate); }
.is-typing .actionbar, .actionbar.is-tucked { transform: translateY(115%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.is-booked .actionbar { grid-template-columns: 1fr; }
.is-booked .actionbar__btn--book { display: none; }

/* ---------- Breakpoints ---------- */
@media (max-width: 399px) {
  .logo { gap: 8px; }
  .logo__mark { width: 40px; height: 30px; }
  .logo__sub { letter-spacing: 0.1em; }
  .menu-btn { padding: 0 12px; gap: 8px; }
}
@media (max-width: 559px) {
  /* Photo first on phones, so the fetchpriority image is actually above the fold */
  .hero__in { gap: 20px; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; max-height: 38vh; object-position: 45% 58%; }
  .hero__media figcaption { left: 10px; bottom: 10px; font-size: 0.8125rem; }
  .hero h1 { margin-bottom: 16px; }
  .hero__lede { margin-bottom: 22px; }
}
@media (max-width: 639px) {
  .pricelist__group { margin-top: 30px; }
  /* Reviews become a swipeable row instead of four stacked cards */
  .quotes {
    grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: start; }
  .quotes__hint { display: flex; }
}
@media (min-width: 420px) {
  .eyebrow__more { display: inline; }
  .alert__num { display: inline; }
  .alert__short { display: none; }
}
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .btn--block-sm { width: auto; }
  .hero__media img { aspect-ratio: 5 / 4; }
  .nav__ctas { grid-template-columns: 1fr 1fr; }
  /* Landscape phones and tablets: a compact, centred action bar instead of a full-width slab */
  .actionbar {
    max-width: 520px; margin-inline: auto;
    border: 1px solid var(--slate-line); border-bottom: 0; border-radius: 12px 12px 0 0;
  }
}
@media (max-height: 500px) {
  .actionbar { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .actionbar__btn { min-height: 44px; font-size: 0.95rem; }
  .est__bar { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
}
@media (min-width: 640px) {
  .price { grid-template-columns: 1fr auto; grid-template-areas: "main from" "main est"; align-items: start; gap: 10px 28px; min-height: 0; padding: 22px 0; }
  .price:active { background: none; }
  .price__main h4 { margin-bottom: 6px; font-size: 1.16rem; line-height: 1.3; }
  .price__main p { display: block; }
  .price__from { justify-self: end; padding-top: 2px; font-size: 1.55rem; }
  .price__est {
    width: auto; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--line-strong); border-radius: var(--r); color: var(--slate);
  }
  .price__est::after { content: none; }
  .price__est:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .price__est-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .price__arrow { display: block; }
  .price__chev { display: none; }
  .prices__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); column-gap: 32px; align-items: start; }
  .prices__head > * { grid-column: 1; }
  .prices__head > .prices__photo { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .prices__photo img { aspect-ratio: 4 / 5; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .bform__nav { flex-direction: row; justify-content: space-between; align-items: center; }
  .bform__nav:only-child, [data-step="1"] .bform__nav { justify-content: flex-end; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { display: block; padding: 16px; }
  .facts strong { display: block; margin-bottom: 6px; }
  .ba { aspect-ratio: 3 / 2; }
  .ba__facts { grid-template-columns: 1fr 1fr; gap: 18px 28px; }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact > .contact__phone, .contact > .contact__line { grid-column: 1 / -1; }
  .districts-box__sum { display: none; }
  .districts { columns: 3; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .proof__list { gap: 32px 28px; }
  .est__bar, .est__result { padding-inline: clamp(24px, 3.5vw, 44px); }
}
@media (min-width: 760px) {
  .jobs { grid-template-columns: 1fr 1fr; }
  .opts--jobs { grid-template-columns: repeat(4, 1fr); }
  .opts--homes { grid-template-columns: repeat(3, 1fr); }
  [data-step="1"] .radios { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .emergency__bg img { aspect-ratio: 21 / 9; }
  /* Tablet: side-by-side layouts instead of a stretched phone column */
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
  .hero__media img { aspect-ratio: 2 / 3; max-height: 640px; object-position: 45% 50%; }
  .guarantee__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 40px; align-items: center; }
  .process__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
  .process__photo img { aspect-ratio: 4 / 5; }
  .steps { padding-top: 8px; }
}
@media (min-width: 760px) and (max-width: 959px) {
  .hero .eyebrow__more { display: none; }
  .hero h1 { font-size: 2.7rem; }
  .hero__ctas { flex-direction: column; }
  .process__head h2 { font-size: 2.05rem; }
  .cert { padding: 22px; }
  .cert__rows div { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 900px) {
  .alert__more { display: inline; }
}
@media (min-width: 960px) {
  .ba__facts { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
  .actionbar { display: none; }
  .footer__body { padding-bottom: 48px; }
  html { scroll-padding-top: 84px; }
  .bform { scroll-margin-top: 0; }
  .header { background: rgba(238, 240, 241, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .header.is-hidden { transform: none; }
  .header__cta { display: flex; align-items: center; gap: 18px; }
  .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero__media img { aspect-ratio: 4 / 5; max-height: 720px; }
  .hero__media figcaption { left: 16px; bottom: 16px; }
  .proof__list { grid-template-columns: repeat(4, 1fr); }
  .prices__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .prices__head { display: block; position: sticky; top: 104px; }
  .prices__head > .prices__photo { margin-top: 28px; }
  .prices__photo img { aspect-ratio: 4 / 3.6; }
  /* Estimator: options left, price and details right */
  .est { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "in bar" "in res"; }
  .est__inputs { grid-area: in; border-radius: 11px 0 0 11px; }
  .est__bar { grid-area: bar; position: static; padding: clamp(24px, 3.5vw, 44px) clamp(24px, 3.5vw, 44px) 0; border-radius: 0 11px 0 0; }
  .est__bar.is-stuck { box-shadow: none; }
  .est__for { display: block; margin-bottom: 18px; }
  .est__mini, .est__go { display: none; }
  .est__price { font-size: clamp(2.2rem, 1.55rem + 3vw, 3.9rem); }
  .est__result { grid-area: res; padding-top: 18px; padding-bottom: clamp(24px, 3.5vw, 44px); border-radius: 0 0 11px 0; }
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head--split h2 { margin-bottom: 0; }
  .reviews__note { justify-self: end; }
  .emergency__bg { position: absolute; inset: 0; }
  .emergency__bg img { height: 100%; aspect-ratio: auto; object-position: 25% 45%; }
  .emergency__in { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(96px, 10vw, 150px); }
  .emergency__card {
    max-width: 560px; padding: 44px; border-radius: 12px;
    background: rgba(18, 21, 29, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .guarantee__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; }
  .cert { transform: rotate(-1.2deg); }
  .process__grid { gap: 80px; }
  .process__head { position: sticky; top: 104px; }
  .process__photo img { aspect-ratio: 3 / 2; }
  .family__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .areas__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: 104px; }
  .book__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .contact { position: sticky; top: 104px; margin-top: 8px; }
}
@media (min-width: 1100px) {
  html { scroll-padding-top: 92px; }
  .menu-btn { display: none; }
  .nav { display: flex; position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; gap: 2px; }
  .nav li a {
    min-height: 44px; padding: 0 11px; border: 0; border-radius: 4px;
    font: 500 0.95rem/1 var(--sans);
  }
  .nav li a:hover { background: rgba(27, 31, 41, .07); }
  .nav .nav__extra, .nav__ctas { display: none; }
  .header__cta { margin-left: 8px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}
@media (min-width: 1240px) {
  .header__phone { display: inline-flex; }
}

@media (hover: none) {
  .price__est:hover { background: transparent; border-color: var(--line-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .roofline { background-image: url("../img/roofline-static.svg"); }
  .pulse { animation: none; }
}
