/* ==========================================================================
   Kestrel Plumbing & Heating — demo site
   Self-contained stylesheet, no external fonts or dependencies.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0d1726;
  --ink-2: #16243a;
  --ink-3: #22334d;
  --paper: #f7f4ef;
  --paper-2: #efe9e0;
  --card: #fffdf9;
  --line: #e3dbcf;
  --text: #1a2232;
  --muted: #4f5a6d;
  --rust: #b4441b;        /* 5.4:1 with white */
  --rust-600: #973713;
  --rust-50: #fbeee6;
  --amber: #f2a541;
  --amber-soft: #f7c98a;
  --on-dark: #f4f1ec;
  --on-dark-muted: #b9c1cf; /* 8.6:1 on --ink */
  --success: #146c43;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 3vw, 2rem);
  --radius: 22px;
  --radius-sm: 14px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(13, 23, 38, .06), 0 2px 8px rgba(13, 23, 38, .05);
  --shadow: 0 2px 4px rgba(13, 23, 38, .05), 0 12px 32px -8px rgba(13, 23, 38, .14);
  --shadow-lg: 0 30px 60px -20px rgba(13, 23, 38, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  /* Last-resort safety net only; layout below is built not to overflow.
     `clip` (unlike `hidden`) keeps the sticky header working. */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: 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-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--amber);
  color: var(--ink);
  font-size: var(--fs-sm);
  text-align: center;
  padding: .45rem var(--gutter);
  line-height: 1.4;
}

.tag-demo {
  display: inline-block;
  vertical-align: middle;
  padding: .12em .5em;
  margin-left: .25em;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink);
  background: var(--amber-soft);
  border: 1px solid rgba(13, 23, 38, .18);
  border-radius: 999px;
}
.tag-demo-light { background: var(--amber); border-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover > .icon:last-child { transform: translateX(3px); }

.btn-sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .95rem; }
.btn-lg { min-height: 58px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { --btn-bg: var(--rust); }
.btn-primary:hover { --btn-bg: var(--rust-600); box-shadow: 0 10px 24px -10px rgba(180, 68, 27, .7); }

.btn-emergency {
  --btn-bg: var(--rust);
  box-shadow: 0 0 0 0 rgba(242, 165, 65, .0), 0 14px 30px -12px rgba(180, 68, 27, .8);
}
.btn-emergency:hover { --btn-bg: var(--rust-600); }

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, .06);
  --btn-fg: var(--on-dark);
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }

.btn-ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { --btn-bg: var(--ink-3); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--line); }

.btn-icon-ring {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  position: relative;
}
.btn-icon-ring::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, .55);
  animation: ring 2.2s var(--ease) infinite;
}
.btn-stack { display: grid; text-align: left; }
.btn-kicker { font-size: .78rem; font-weight: 600; opacity: .9; letter-spacing: .02em; }
.btn-main { font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.btn-lg.btn-emergency:has(.btn-stack) { padding: .55rem 1.6rem .55rem .6rem; }

@keyframes ring {
  0% { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 23, 38, .88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(13, 23, 38, .96); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }

.site-nav ul { display: flex; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  color: var(--on-dark-muted);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="true"] { color: #fff; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: grid;
  text-align: right;
  text-decoration: none;
  line-height: 1.15;
}
.header-phone-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-weight: 700; }
.header-phone-num { font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.header-phone:hover .header-phone-num { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(196, 82, 31, .32), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(242, 165, 65, .14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 3rem + 6vw, 7.5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 40%;
}
/* Darken the photo so copy and the emergency card stay readable */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(196, 82, 31, .22), transparent 60%),
    linear-gradient(90deg, rgba(13, 23, 38, .92) 0%, rgba(13, 23, 38, .7) 42%, rgba(13, 23, 38, .25) 100%),
    linear-gradient(180deg, rgba(13, 23, 38, 0) 55%, rgba(22, 36, 58, .7) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
}
.hero .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow { color: var(--amber); }
.eyebrow-live {
  padding: .45rem .9rem .45rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--on-dark);
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: live 2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}
.hero h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.4rem;
}
.hero h1 em { color: var(--amber); }
.lede {
  font-size: var(--fs-lg);
  color: var(--on-dark-muted);
  max-width: 36rem;
  margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.8rem;
  font-size: .94rem;
  color: var(--on-dark-muted);
}
.hero-proof li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-proof strong { color: #fff; }
.hero-proof > li > .icon { color: var(--amber); }

.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars .icon { width: 1rem; height: 1rem; }
.stars-lg .icon { width: 1.3rem; height: 1.3rem; }
.star-off { color: rgba(13, 23, 38, .18); }

/* Emergency card */
.emergency-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.emergency-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.emergency-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem;
  background: var(--rust);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.emergency-badge .icon { width: 1rem; height: 1rem; }
.emergency-status { font-size: .85rem; color: #86efac; font-weight: 600; }
.emergency-card h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-bottom: .6rem; }
.emergency-card > p { color: var(--on-dark-muted); margin-bottom: 1.1rem; }
.check-list { display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.check-list li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.check-list .icon {
  width: 1.4rem; height: 1.4rem;
  padding: .2rem;
  border-radius: 50%;
  background: rgba(242, 165, 65, .16);
  color: var(--amber);
}
.emergency-card .btn-block { min-height: 56px; font-size: 1.1rem; }
.emergency-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.emergency-meta > div { display: grid; gap: .1rem; }
.meta-num { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.meta-num small { font-size: .9rem; font-weight: 600; margin-left: .15rem; color: var(--on-dark-muted); }
.meta-label { font-size: .85rem; color: var(--on-dark-muted); }
.gas-note {
  display: flex; gap: .6rem;
  margin-top: 1.2rem;
  padding: .8rem .9rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--on-dark);
  background: rgba(0, 0, 0, .22);
  border-radius: var(--radius-sm);
}
.gas-note .icon { color: var(--amber); margin-top: .1rem; }
.gas-tel {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-underline-offset: 3px;
}
.gas-tel:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(196, 82, 31, .18), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.section-head h2 em { color: var(--rust); }
.section-dark .section-head h2 em, .cta-band h2 em { color: var(--amber); }
.section-lede { font-size: var(--fs-lg); color: var(--muted); }
.section-dark .section-lede { color: var(--on-dark-muted); }
.section-lede a { color: var(--rust); font-weight: 600; }
.section-head-split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head-split > div:first-child { max-width: 40rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6cbbb; }
.service-media {
  margin: -1.8rem -1.8rem 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--paper-2);
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.04); }
.service-feature .service-media { aspect-ratio: auto; flex: 1 1 200px; min-height: 200px; max-height: 420px; }
/* Last card would sit alone on its row: stretch it into a wide, horizontal card */
@media (min-width: 641px) {
  .service-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 2rem;
    align-items: start;
  }
  .service-card:last-child .service-media {
    grid-row: 1 / -1;
    margin: -1.8rem 0 -1.8rem -1.8rem;
    aspect-ratio: auto;
    height: calc(100% + 3.6rem);
    min-height: 240px;
    border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
  }
  .service-card:last-child .service-icon { margin-top: 0; }
  .service-card:last-child .service-link { align-self: end; }
}
.service-icon {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-top: -26px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--rust-50);
  color: var(--rust);
  box-shadow: 0 0 0 4px var(--card);
}
.service-icon .icon { width: 1.6rem; height: 1.6rem; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.4rem; }
.service-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700;
  color: var(--rust);
  text-decoration: none;
}
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-link .icon { transition: transform .25s var(--ease); }
.service-card:hover .service-link .icon { transform: translateX(4px); }
.service-link:focus-visible { outline: none; }
.service-link:focus-visible::after { outline: 3px solid var(--amber); outline-offset: 3px; }

.service-feature {
  grid-row: span 2;
  background:
    radial-gradient(400px 300px at 100% 0%, rgba(242, 165, 65, .25), transparent 60%),
    linear-gradient(160deg, var(--rust) 0%, #8f3412 100%);
  color: #fff;
  border-color: transparent;
}
.service-feature .service-icon { background: #a03c17; color: #fff; box-shadow: 0 0 0 4px var(--rust); }
.service-feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.service-feature p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.service-feature .service-link { color: #fff; }
.tick-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.tick-row li {
  padding: .35rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-copy h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.about-copy h2 em { color: var(--rust); }
.about-copy .section-lede { margin-bottom: 1.8rem; }
.about-points { display: grid; gap: .9rem; }
.about-points li { display: flex; gap: .75rem; align-items: flex-start; color: var(--muted); }
.about-points strong { color: var(--text); }
.about-points .icon {
  width: 1.5rem; height: 1.5rem;
  padding: .25rem;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--rust-50);
  color: var(--rust);
}
.about-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: .9rem;
}
.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-photo:not(.about-photo-main) { height: clamp(170px, 20vw, 260px); }

/* ---------- Trust ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.why-grid .section-head { margin-bottom: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.5rem 1.6rem;
  background: var(--ink);
}
.stats dt { color: var(--on-dark-muted); font-size: .92rem; }
.stats dd {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.badges-title { font-size: var(--fs-h3); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.badges {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .9rem;
}
.badge {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .35rem;
  padding: 1.7rem 1rem 1.3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px dashed rgba(242, 165, 65, .45);
}
.badge > .icon {
  width: 2.6rem; height: 2.6rem;
  padding: .55rem;
  margin-bottom: .3rem;
  border-radius: 50%;
  color: var(--amber);
  background: rgba(242, 165, 65, .12);
  border: 1px solid rgba(242, 165, 65, .3);
}
.badge-demo {
  position: absolute;
  top: .55rem; right: .55rem;
  padding: .1rem .45rem;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border-radius: 6px;
}
.badge-name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.badge-meta { font-size: .78rem; color: var(--on-dark-muted); }
.badges-note { margin-top: 1rem; font-size: .85rem; color: var(--on-dark-muted); }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.steps li {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .07);
}
.step-num {
  display: block;
  margin-bottom: 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--amber);
  line-height: 1;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.steps p { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- Reviews ---------- */
.rating-summary { display: flex; align-items: center; gap: 1rem; }
.rating-big { font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rating-sub { display: block; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.rating-summary .stars { color: #c77a12; }
.reviews-note { margin: -1.8rem 0 2rem; font-size: .88rem; color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.review figure {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.review .stars { color: #c77a12; }
.review blockquote { flex: 1; font-size: 1.02rem; }
.review-feature { grid-column: span 2; }
.review-feature figure {
  background: var(--ink);
  color: var(--on-dark);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.review-feature figure::before {
  content: "“";
  position: absolute;
  right: 1.5rem; top: -1.8rem;
  font-family: var(--font-serif);
  font-size: 12rem;
  line-height: 1;
  color: rgba(242, 165, 65, .15);
  pointer-events: none;
}
.review-feature .stars { color: var(--amber); }
.review-feature blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -.005em;
}
.review figcaption { display: flex; align-items: center; gap: .8rem; }
.review figcaption > span:last-child { display: grid; line-height: 1.3; }
.avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 800;
  color: var(--rust-600);
  background: var(--rust-50);
}
.review-feature .avatar { background: rgba(242, 165, 65, .18); color: var(--amber); }
.review-meta { font-size: .85rem; color: var(--muted); }
.review-feature .review-meta { color: var(--on-dark-muted); }

/* ---------- Area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.area-copy .section-lede { margin-bottom: 1.8rem; }
.area-copy h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.area-copy h2 em { color: var(--rust); }
.postcode-check {
  padding: 1.3rem;
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.postcode-check label { display: block; font-weight: 700; margin-bottom: .5rem; }
.postcode-row { display: flex; gap: .6rem; }
.postcode-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.postcode-row input::placeholder { text-transform: none; }
.postcode-result { min-height: 1.5em; margin-top: .7rem; font-weight: 600; font-size: .95rem; }
.postcode-result.is-yes { color: var(--success); }
.postcode-result.is-no { color: var(--rust-600); }
.towns-title { font-size: 1rem; margin-bottom: .8rem; }
.towns { display: flex; flex-wrap: wrap; gap: .45rem; }
.towns li {
  padding: .35rem .8rem;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.area-map { margin: 0; }
.area-map svg {
  width: 100%; height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.area-map figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); text-align: center; }
.towns-dots circle { fill: var(--ink); }
.hq-pulse { transform-origin: 260px 260px; animation: hq 2.4s var(--ease) infinite; }
@keyframes hq {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* ---------- Quote ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quote-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.quote-aside h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.quote-aside h2 em { color: var(--rust); }
.quote-aside .section-lede { margin-bottom: 2rem; }
.emergency-strip {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.3rem 1rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.emergency-strip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.emergency-strip .btn-icon-ring { background: var(--rust); width: 48px; height: 48px; }
.emergency-strip > span:last-child { display: grid; line-height: 1.2; }
.strip-kicker { font-size: .85rem; color: var(--on-dark-muted); }
.strip-num { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.contact-list { display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--muted); }
.contact-list .icon { color: var(--rust); margin-top: .15rem; }
.contact-list a { color: var(--text); font-weight: 600; }

.form-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.form-demo-note {
  margin-bottom: 1.6rem;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--text);
  background: #fdf3e2;
  border: 1px solid #f1d6a8;
  border-radius: var(--radius-sm);
}
.form-demo-note .tag-demo { margin: 0 .3rem 0 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { margin: 0 0 1.15rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.req { color: var(--rust); }
.optional { font-weight: 400; color: var(--muted); font-size: .88rem; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  background: #fff;
  border: 1.5px solid #cfc5b6;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7a8292; }
input:hover, select:hover, textarea:hover { border-color: #a99d8b; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 4px rgba(180, 68, 27, .16);
}
[aria-invalid="true"] { border-color: #b42318 !important; background: #fff8f7; }
.field-error { min-height: 0; font-size: .85rem; color: #a3200f; font-weight: 600; margin-top: .3rem; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select { padding-right: 2.5rem; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; max-width: 100%; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: .6rem 1.05rem;
  font-weight: 600;
  font-size: .92rem;
  border-radius: 999px;
  border: 1.5px solid #cfc5b6;
  background: #fff;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: #a99d8b; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.field-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .7rem; align-items: start; }
.field-check input {
  width: 22px; height: 22px;
  margin: .1rem 0 0;
  accent-color: var(--rust);
  cursor: pointer;
}
.field-check label { font-weight: 500; margin: 0; cursor: pointer; }
.field-check .field-error { grid-column: 2; }
.form-foot { margin-top: .8rem; font-size: .82rem; color: var(--muted); text-align: center; }

.form-success { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem; }
.form-success:focus { outline: none; }
.success-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: #e3f4ea;
  color: var(--success);
  animation: pop .5s var(--ease) both;
}
.success-icon .icon { width: 2.2rem; height: 2.2rem; }
.form-success h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .7rem; }
.form-success p { color: var(--muted); max-width: 28rem; margin: 0 auto 1.6rem; }
@keyframes pop {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq-list { display: grid; gap: .7rem; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: box-shadow .3s, border-color .3s;
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: #d6cbbb; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon {
  width: 1.9rem; height: 1.9rem;
  padding: .4rem;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--rust);
  transition: transform .35s var(--ease), background-color .2s;
}
.faq-list details[open] summary .icon { transform: rotate(45deg); background: var(--rust); color: #fff; }
.faq-list summary:hover .icon { background: var(--rust-50); }
.faq-list details[open] summary:hover .icon { background: var(--rust-600); }
.faq-body { padding: 0 1.3rem 1.25rem; color: var(--muted); }
.faq-list details[open] .faq-body { animation: faq-in .35s var(--ease); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--on-dark);
  background:
    radial-gradient(600px 300px at 10% 100%, rgba(242, 165, 65, .2), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(196, 82, 31, .4), transparent 60%),
    var(--ink);
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); max-width: 34rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08101c;
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; color: var(--on-dark); }
.footer-brand p { max-width: 22rem; }
.footer-title {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.site-footer nav a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
}
.northops {
  font-weight: 700;
  color: var(--amber);
}

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Visible by default. Only hidden when the <head> script has added .js, and
   .reveal-all (set after ~1.5s) force-shows everything as a safety net.
   Uses `translate` so card hover `transform`s keep working. The fade is only
   applied to elements JS is actually watching (.reveal-anim); anything already
   in view on load is shown instantly. */
.js .reveal:not(.is-in) { opacity: 0; translate: 0 22px; }
.js .reveal-anim {
  transition: opacity .8s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms);
}
.js.reveal-all .reveal { opacity: 1; translate: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .header-quote { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a { padding: .9rem 1rem; font-size: 1.1rem; border-radius: 12px; }
  .nav-cta-mobile { display: block; margin-top: .6rem; }
  .nav-cta-mobile .btn { width: 100%; color: #fff; }

  .hero-grid,
  .about-grid,
  .why-grid,
  .area-grid,
  .quote-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-aside { position: static; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(13, 23, 38, .55) 0%, rgba(13, 23, 38, .85) 40%, var(--ink-2) 70%);
  }
  .hero-photo { height: 70%; object-position: 65% 30%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-feature { grid-row: auto; grid-column: span 2; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-map { max-width: 560px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .brand-sub { font-size: .66rem; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg.btn-emergency:has(.btn-stack) { justify-content: flex-start; }
  .services-grid, .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .service-feature, .review-feature { grid-column: auto; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .stats > div { padding: 1.2rem; }
  .stats dd { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero h1 { letter-spacing: -0.03em; }
  .eyebrow-live { max-width: 100%; }
  .emergency-meta { gap: .75rem; }
  .meta-num { font-size: 1.6rem; }
  .reviews-note { margin-top: -1.5rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }

  .mobile-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    z-index: 40;
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -15px rgba(13, 23, 38, .3);
  }
  .mobile-bar .btn { min-height: 52px; min-width: 0; padding-inline: .9rem; white-space: nowrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal:not(.is-in) { opacity: 1; translate: none; }
  .hq-pulse, .btn-icon-ring::after { display: none; }
  .service-card:hover .service-media img { transform: none; }
  .live-dot { box-shadow: none; }
  .btn:hover, .service-card:hover, .emergency-strip:hover { transform: none; }
}

/* ---------- Forced colours / high contrast ---------- */
@media (forced-colors: active) {
  .btn, .badge, .service-card, .review figure, .faq-list details, .form-card { border: 1px solid CanvasText; }
  .tag-demo, .badge-demo { border: 1px solid CanvasText; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .hero-bg, .demo-banner, .cta-band { display: none; }
  .hero, .section-dark { background: none; color: #000; }
  .js .reveal:not(.is-in) { opacity: 1; translate: none; }
}
