/* ==========================================================================
   Manring Heating & Air — site stylesheet
   One file, organised top-to-bottom:
   1. Font + tokens   2. Base   3. Layout + type utilities   4. Buttons/links
   5. Header, nav, action bar   6. Home hero + thermostat   7. Home sections
   8. Inner pages   9. CTA band + footer   10. Motion + reduced motion
   ========================================================================== */

/* 1. Font + tokens ------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
/* Client's pick for the hero headline's "&" (option 4 of the review): Inter 800, SIL OFL 1.1.
   The file holds only the "&" glyph (~1 KB); unicode-range makes every other character fall
   through to Archivo. */
@font-face {
  font-family: 'Inter Amp';
  src: url('/assets/fonts/inter-800-amp.woff2') format('woff2');
  font-weight: 800;
  unicode-range: U+0026;
  font-display: swap;
}

:root {
  /* Brand colors (from the existing site + logo) */
  --red: #ff0000;        /* logo red — heat, graphics */
  --red-ink: #e60000;    /* red behind white text (AA contrast) */
  --red-deep: #b80000;   /* hover / pressed */
  --blue: #0043f9;       /* logo royal blue — cool, links */
  --blue-deep: #0033c2;
  --navy: #0e2c8e;       /* site secondary — headings, bands */
  --navy-900: #06164a;   /* deepest navy — footer */
  --frost: #f2f5fd;      /* cool white ground */
  --mist: #e2e8f6;
  --line: rgba(14, 44, 142, 0.14);
  --ink: #0b1433;        /* body text */
  --slate: #4a5578;      /* secondary text */
  --white: #fff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --red-on-dark: #ff4a3d; /* brand red lifted for contrast on navy */

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.35rem, min(1.1rem + 3.9vw, 8.4svh), 4.6rem);
  --fs-h1: clamp(2.2rem, 1.2rem + 3.1vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.15rem + 2.35vw, 3.35rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
  --fs-lede: clamp(1.075rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* Space */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 5.25rem;

  --shadow-sm: 0 2px 6px -2px rgba(6, 22, 74, 0.18);
  --shadow-md: 0 18px 40px -22px rgba(6, 22, 74, 0.45), 0 4px 10px -4px rgba(6, 22, 74, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: var(--blue);
}

@media (max-width: 1023px) {
  :root { --header-h: 4.25rem; }
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: var(--navy) var(--frost);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role='list'], ol[role='list']) { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: 'Inter Amp', var(--font); /* Inter's "&" only (client pick); other characters stay Archivo */
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

::selection { background: var(--blue); color: var(--white); }

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

input, select, textarea, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--red-ink); }
button { cursor: pointer; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--frost); }
::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--frost); border-radius: 999px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  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: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* 3. Layout + type utilities --------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), 82.5rem);
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--frost { background: var(--frost); }
.section--navy { background: var(--navy); color: var(--white); --focus: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Run-in heading: the old eyebrow text leads the heading in brand red. */
.h-run { font-size: var(--fs-h2); max-width: 22ch; }
.h-run__lead { color: var(--red-ink); display: inline; }
.section--navy .h-run__lead { color: var(--red-on-dark); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.section-head p { color: var(--slate); max-width: 52ch; font-size: var(--fs-lede); line-height: 1.55; }
.section--navy .section-head p { color: var(--on-dark-muted); }

.lede { font-size: var(--fs-lede); line-height: 1.55; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.muted { color: var(--slate); }

.stack-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Service-area line (every page intro + footer): pin icon + the client's wording. */
.service-area { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; }
.service-area .icon { flex: none; width: 1.15em; height: 1.15em; margin-top: 0.15em; color: var(--red-ink); }
.page-hero .service-area { margin-top: 1rem; font-size: 1rem; color: var(--white); }
.site-footer .service-area { margin-top: 1rem; color: var(--white); }
.page-hero .service-area .icon { color: var(--red-on-dark); }

@media (max-width: 899px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 559px) {
  .stack-actions > .btn, .form-actions > .btn { width: 100%; }
}

/* 4. Buttons + links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; stroke-width: 2.2; transition: transform 0.3s var(--ease-out); }
.btn:hover .icon--go { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--red { background: var(--red-ink); color: var(--white); box-shadow: 0 12px 24px -16px rgba(6, 22, 74, 0.7); }
.btn--red:hover { background: var(--red-deep); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-900); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--frost); color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.05rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

.link-go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-stretch: 106%;
  color: var(--blue);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.link-go:hover { background-size: 100% 2px; color: var(--blue-deep); }
.link-go .icon { width: 1.05em; height: 1.05em; stroke-width: 2.2; transition: transform 0.3s var(--ease-out); }
.link-go:hover .icon { transform: translateX(3px); }

/* 5. Header, nav, action bar --------------------------------------------- */
.utility-bar {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  --focus: var(--white);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.5rem;
}
.utility-bar ul { display: flex; gap: 1.75rem; align-items: center; }
.utility-bar li { display: inline-flex; align-items: center; gap: 0.5rem; }
.utility-bar .icon { width: 1rem; height: 1rem; color: var(--red-on-dark); }
.utility-bar a { color: var(--white); text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; color: var(--white); }
@media (max-width: 1023px) { .utility-bar { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(6, 22, 74, 0.6); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  height: var(--header-h);
}

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: clamp(2.6rem, 2rem + 1.4vw, 3.35rem); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.25rem; }
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.8rem;
  font-weight: 650;
  font-stretch: 104%;
  font-size: 0.975rem;
  color: var(--navy);
  text-decoration: none;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a[aria-current='page']::after { transform: scaleX(1); }
.primary-nav a[aria-current='page'] { color: var(--ink); }

.header-call {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.15;
}
.header-call__icon {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--frost);
  color: var(--red-ink);
  transition: background-color 0.2s, color 0.2s;
}
.header-call__icon .icon { width: 1.15rem; height: 1.15rem; }
.header-call:hover .header-call__icon { background: var(--red-ink); color: var(--white); }
.header-call small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--slate); }
.header-call strong { font-size: 1.05rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; }
.header-call:hover { color: var(--navy); }

.menu-toggle, .header-phone-btn {
  display: none;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--frost);
  color: var(--navy);
}
.menu-toggle .icon, .header-phone-btn .icon { width: 1.45rem; height: 1.45rem; stroke-width: 2; }
.header-phone-btn { background: var(--red-ink); color: var(--white); }
.menu-toggle .icon--close { display: none; }
.nav-open .menu-toggle .icon--menu { display: none; }
.nav-open .menu-toggle .icon--close { display: block; }

@media (max-width: 1279px) { .header-call small { display: none; } }
@media (max-width: 1179px) { .header-call__text { display: none; } }
@media (max-width: 1023px) {
  .primary-nav, .header-call, .header-cta { display: none; }
  .menu-toggle, .header-phone-btn { display: grid; }
  .header-phone-btn { margin-left: auto; }
}

/* Full-screen mobile menu */
.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--navy-900);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  --focus: var(--white);
}
.nav-open .nav-overlay { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
.nav-overlay ul { display: grid; gap: 0.25rem; }
.nav-overlay a.nav-overlay__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.nav-overlay a.nav-overlay__link[aria-current='page'] { color: var(--red-on-dark); }
.nav-overlay__link .icon { width: 1.6rem; height: 1.6rem; opacity: 0.6; }
.nav-overlay__foot { display: grid; gap: 0.75rem; }
.nav-overlay__meta { color: var(--on-dark-muted); font-size: 0.9375rem; }
html.nav-open { overflow: hidden; }
@media (min-width: 1024px) { .nav-overlay { display: none; } }

/* Sticky call/book bar on phones */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -18px rgba(6, 22, 74, 0.45);
  view-transition-name: action-bar;
}
.action-bar .btn { min-height: 3rem; padding-inline: 0.75rem; }
@media (max-width: 767px) {
  body { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .action-bar { display: none; } }

/* Back-to-top arrow on phones (button is added by main.js), sits above the call/book bar */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 1.35rem; height: 1.35rem; }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 768px) { .to-top { display: none; } }

/* 6. Home hero + thermostat ---------------------------------------------- */
.hero {
  --heat: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: #030b26;
  --focus: var(--white);
}
.js .hero { --heat: 1; } /* JS cools it down from 116° on load */

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 50% 42%; }
.hero__img--hot { z-index: 0; }
.hero__img--cool { z-index: 1; }
/* With JS the cool photo is revealed as "cool air" spreading out from the thermostat.
   --cool-r / --feather / --cx / --cy are set by main.js from the dial's position. */
.js .hero__img--cool {
  -webkit-mask-image: radial-gradient(circle at var(--cx, 78%) var(--cy, 50%), #000 calc(var(--cool-r, 1px) - var(--feather, 200px)), transparent var(--cool-r, 1px));
  mask-image: radial-gradient(circle at var(--cx, 78%) var(--cy, 50%), #000 calc(var(--cool-r, 1px) - var(--feather, 200px)), transparent var(--cool-r, 1px));
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 6, 22, 0.72) 0%, rgba(2, 6, 22, 0.5) 34%, rgba(2, 6, 22, 0.08) 62%, rgba(2, 6, 22, 0) 100%),
    linear-gradient(0deg, rgba(2, 6, 22, 0.55) 0%, rgba(2, 6, 22, 0) 32%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: min(calc(100svh - var(--header-h) - 2.5rem), 58rem);
  padding-block: clamp(2.5rem, 6vh, 6rem);
}

.hero__title {
  font-family: 'Inter Amp', var(--font);
  font-size: var(--fs-hero);
  font-stretch: 110%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--white);
  max-width: 13em;
}
.hero__title .place { white-space: nowrap; color: #fff; color: color-mix(in srgb, #ff8f82 calc(var(--heat) * 100%), #ffffff); }

.hero__lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { margin-top: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.4; color: #7fa4ff; }

.hero__dial { justify-self: center; }

@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 2.25rem; padding-block: 1.75rem 3.25rem; }
  .hero__dial { order: -1; }
  .thermo { --size: min(64vw, 16rem); gap: 1rem; }
  .hero__img img { object-position: 50% 30%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(2, 6, 22, 0.7) 0%, rgba(2, 6, 22, 0.45) 45%, rgba(2, 6, 22, 0.25) 70%, rgba(2, 6, 22, 0.6) 100%);
  }
}

/* Thermostat dial — the hero's signature.
   Angles use CSS conic convention: 0deg = 12 o'clock, clockwise.
   Scale: 40°F at 225deg (bottom-left) → 120°F at 135deg (bottom-right), 270deg sweep. */
.thermo {
  --size: clamp(17rem, 27vw, 25rem);
  --t-color: var(--blue);
  --sweep: 108deg;   /* (temp - 40) * 3.375deg */
  --angle: 333deg;   /* 225deg + sweep */
  --wdth: 92;
  display: grid;
  justify-items: center;
  gap: 1.35rem;
}
.js .thermo { opacity: 0; }

.thermo__device {
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #ffffff 0%, #f6f8fe 42%, #dde5f5 100%);
  box-shadow:
    0 44px 80px -34px rgba(0, 0, 0, 0.75),
    0 14px 28px -14px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 #ffffff,
    inset 0 -10px 22px rgba(14, 44, 142, 0.14);
  color: var(--ink);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.thermo__device.is-dragging { cursor: grabbing; }

.thermo__ticks {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  pointer-events: none;
  -webkit-mask: var(--ring), var(--arc);
  -webkit-mask-composite: source-in;
  mask: var(--ring), var(--arc);
  mask-composite: intersect;
}
.thermo__ticks--minor {
  --ring: radial-gradient(closest-side, transparent 80%, #000 80.5%, #000 92%, transparent 92.5%);
  --arc: conic-gradient(from 225deg, #000 0deg 271deg, transparent 271deg);
  background: repeating-conic-gradient(from 224.6deg, #c3cde4 0deg 0.8deg, transparent 0.8deg 6.75deg);
}
.thermo__ticks--major {
  --ring: radial-gradient(closest-side, transparent 74%, #000 74.5%, #000 92%, transparent 92.5%);
  --arc: conic-gradient(from 225deg, #000 0deg 271deg, transparent 271deg);
  background: repeating-conic-gradient(from 224.4deg, #8e9cbf 0deg 1.2deg, transparent 1.2deg 33.75deg);
}
.thermo__ticks--active {
  --ring: radial-gradient(closest-side, transparent 80%, #000 80.5%, #000 92%, transparent 92.5%);
  --arc: conic-gradient(from 225deg, #000 0deg calc(var(--sweep) + 0.9deg), transparent 0);
  background: repeating-conic-gradient(from 224.6deg, var(--t-color) 0deg 0.8deg, transparent 0.8deg 6.75deg);
}

.thermo__num {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--size) * -0.3)) rotate(calc(var(--a) * -1));
  font-size: calc(var(--size) * 0.034);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #5d6a8f;
  pointer-events: none;
}

.thermo__face {
  position: absolute;
  inset: 23%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.2em;
  border-radius: 50%;
  background: linear-gradient(165deg, #ffffff 0%, #eef2fb 100%);
  box-shadow: inset 0 3px 8px rgba(14, 44, 142, 0.14), 0 1px 0 #ffffff;
  text-align: center;
  pointer-events: none;
}
.thermo__label {
  font-size: calc(var(--size) * 0.031);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.thermo__temp {
  display: flex;
  align-items: flex-start;
  font-size: calc(var(--size) * 0.2);
  font-weight: 800;
  font-stretch: calc(var(--wdth) * 1%);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--t-color);
}
.thermo__deg { font-size: 0.42em; margin-top: 0.08em; margin-left: 0.04em; font-stretch: 100%; }
.thermo__sub {
  font-size: calc(var(--size) * 0.036);
  font-weight: 700;
  color: var(--t-color);
}

.thermo__arm {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  pointer-events: none;
}
.thermo__knob {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--size) * 0.452);
  width: calc(var(--size) * 0.075);
  aspect-ratio: 1;
  min-width: 1.75rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 4px solid var(--t-color);
  box-shadow: 0 6px 14px -4px rgba(6, 22, 74, 0.5);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  --focus: var(--navy);
}
.thermo__knob:focus-visible { outline-offset: 4px; }
/* "Try me" rings while the knob nudges after the intro (JS adds .is-nudging). */
.thermo__knob::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 3px solid var(--t-color);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.thermo__knob.is-nudging::after { animation: knob-ring 1s ease-out 3; }

.thermo__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.1rem 0.75rem 0.8rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-stretch: 106%;
  text-decoration: none;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7);
  transition: background-color 0.2s;
}
.thermo__cta:hover { background: var(--frost); color: var(--navy); }
.thermo__cta-icon {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--cta-color, var(--blue));
  color: var(--white);
}
.thermo__cta-icon .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }
.thermo__cta > .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.4; color: var(--slate); transition: transform 0.3s var(--ease-out); }
.thermo__cta:hover > .icon { transform: translateX(3px); }
.thermo__hint { display: none; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); text-align: center; }
.js .thermo__hint { display: block; } /* the dial only works with JS */

/* 7. Home sections -------------------------------------------------------- */

/* Service area ticker: two copies of the list side by side; JS slides the track with scroll. */
.area-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(1rem, 0.7rem + 1vw, 1.6rem);
}
.area-band__track { display: flex; width: max-content; }
.area-band__list { display: flex; flex-shrink: 0; }
.area-band__list li {
  display: flex;
  align-items: center;
  font-size: clamp(1.35rem, 0.9rem + 2vw, 2.6rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  white-space: nowrap;
}
/* Small red dot between items (and after the last, so the two copies join seamlessly). */
.area-band__list li::after {
  content: '';
  width: 0.28em;
  height: 0.28em;
  margin-inline: 0.9em;
  border-radius: 50%;
  background: var(--red-on-dark);
}
/* Pause/play for all self-running motion (ticker + Book-button pulse). Shown only once the ticker runs. */
.area-band__toggle {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 0.6rem var(--navy); /* keeps passing words off the button */
  color: var(--white);
  cursor: pointer;
  --focus: var(--white);
}
.area-band__toggle:not([hidden]) { display: grid; }
.area-band__toggle:hover { border-color: var(--white); }
.area-band__toggle .icon { width: 1rem; height: 1rem; }

/* Intro: "Trusted. Experienced. Local." */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: end;
}
.intro__media { position: relative; }
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mist);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--portrait { aspect-ratio: 3 / 4; }
.photo figcaption, .photo__caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(6, 22, 74, 0.82);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}
.intro__body { display: grid; gap: 1.75rem; padding-bottom: 1rem; }
.intro__body .h-run { max-width: 16ch; }
.license-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--frost);
  max-width: 30rem;
}
.license-card .icon { width: 2rem; height: 2rem; color: var(--blue); stroke-width: 1.6; }
.license-card strong { display: block; color: var(--navy); font-stretch: 106%; }
.license-card span { font-size: 0.9rem; color: var(--slate); }

@media (max-width: 899px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { max-width: 32rem; }
}

/* Services: expanding photo panels */
.svc-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.svc-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--navy);
  --focus: var(--white);
}
.svc-panel__img { position: absolute; inset: 0; z-index: -2; }
.svc-panel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 11, 38, 0) 30%, rgba(3, 11, 38, 0.55) 58%, rgba(3, 11, 38, 0.92) 100%);
}
.svc-panel__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--panel-color, var(--blue));
}
.svc-panel__icon .icon { width: 1.4rem; height: 1.4rem; }
.svc-panel h3 { font-size: var(--fs-h3); color: var(--white); max-width: 14ch; }
.svc-panel h3 a { color: inherit; text-decoration: none; }
.svc-panel h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svc-panel p { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.86); font-size: 0.975rem; max-width: 34ch; }
.svc-panel__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.svc-panel__more .icon { width: 1rem; height: 1rem; stroke-width: 2.4; transition: transform 0.3s var(--ease-out); }
.svc-panel:hover .svc-panel__img img { transform: scale(1.05); }
.svc-panel:hover .svc-panel__more .icon { transform: translateX(4px); }
.svc-panel:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.svc-panel h3 a:focus-visible { outline: none; }

@media (hover: hover) and (min-width: 1024px) {
  .svc-panels { display: flex; height: clamp(32rem, 68vh, 40rem); }
  .svc-panel { flex: 1 1 0; min-height: 0; transition: flex-grow 0.7s var(--ease-out); }
  .svc-panel.is-active { flex-grow: 1.9; }
  .svc-panels:hover .svc-panel, .svc-panels:focus-within .svc-panel { flex-grow: 1; }
  .svc-panels .svc-panel:hover, .svc-panels .svc-panel:focus-within { flex-grow: 1.9; }
  .svc-panel p, .svc-panel__more {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  }
  .svc-panel.is-active p, .svc-panel.is-active .svc-panel__more,
  .svc-panels .svc-panel:hover p, .svc-panels .svc-panel:hover .svc-panel__more,
  .svc-panels .svc-panel:focus-within p, .svc-panels .svc-panel:focus-within .svc-panel__more {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
  }
  .svc-panels:hover .svc-panel.is-active:not(:hover) p,
  .svc-panels:hover .svc-panel.is-active:not(:hover) .svc-panel__more { opacity: 0; transition-delay: 0s; }
}
@media (max-width: 899px) {
  .svc-panels { grid-template-columns: 1fr; }
  .svc-panel { min-height: 26rem; }
}

.after-panels { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; }
.after-panels p { color: var(--slate); max-width: 50ch; }

/* Why choose us */
.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
}
.why__media { position: sticky; top: calc(var(--header-h) + 2rem); }
.why__body > p { margin-top: 1.5rem; font-size: var(--fs-lede); color: var(--slate); max-width: 52ch; }
.feature-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.feature__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--frost);
  color: var(--blue);
}
.feature__icon .icon { width: 1.5rem; height: 1.5rem; }
.section--frost .feature__icon { background: var(--white); }
.feature h3 { font-size: 1.3rem; font-stretch: 110%; align-self: end; }
.feature p { color: var(--slate); max-width: 48ch; }
.why__actions { margin-top: 2.5rem; }

@media (max-width: 899px) {
  .why { grid-template-columns: 1fr; }
  .why__media { position: relative; top: 0; max-width: 32rem; }
}

/* How it works (navy band) */
.process__wrap { position: relative; }
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  counter-reset: step;
}
.process__line {
  position: absolute;
  top: 2.25rem;
  left: 2.25rem;
  right: calc((100% - 2 * clamp(1.5rem, 4vw, 4rem)) / 3 - 2.25rem);
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.process__line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red), #ff6b5e 30%, #7fa4ff 70%, #ffffff);
  transform-origin: left;
}
.step { position: relative; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 115%;
  color: var(--white);
}
.step__icon {
  position: absolute;
  top: 2.8rem; left: 3.2rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--red-ink);
  color: var(--white);
}
.step__icon .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
.step h3 { margin-top: 1.75rem; font-size: var(--fs-h3); }
.step p { margin-top: 0.75rem; color: var(--on-dark-muted); max-width: 32ch; }
.process__cta { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.process__cta p { color: var(--on-dark-muted); }
.process__cta a.tel-link { color: var(--white); font-weight: 800; text-decoration: none; }
.process__cta a.tel-link:hover { text-decoration: underline; color: var(--white); }

@media (max-width: 899px) {
  .process__steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .process__line { top: 2.25rem; bottom: 2.25rem; left: 2.25rem; right: auto; width: 2px; height: auto; }
  .process__line span { transform-origin: top; background: linear-gradient(180deg, var(--red), #ff6b5e 30%, #7fa4ff 70%, #ffffff); }
  .step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1.5rem; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 0.4rem; }
}

/* On the job gallery */
.gallery { overflow: hidden; }
.gallery__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - 82.5rem) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track {
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  width: max-content;
  padding-inline: max(var(--gutter), (100vw - 82.5rem) / 2);
  padding-bottom: 0.5rem;
}
.gallery__item { flex: none; width: clamp(15rem, 23vw, 21rem); scroll-snap-align: start; }
.gallery__item .photo { aspect-ratio: 2 / 3; }
.gallery__item figcaption { margin-top: 0.85rem; font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.gallery__item figcaption span { display: block; font-weight: 500; font-size: 0.875rem; color: var(--slate); }
.gallery__hint { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; color: var(--slate); }
.gallery__hint .icon { width: 1rem; height: 1rem; }
.gallery.is-pinned .gallery__viewport { overflow: visible; }
.gallery.is-pinned .gallery__hint { display: none; }
.gallery__hint .hint-touch { display: none; }
@media (hover: none) { .gallery__hint .hint-touch { display: inline; } .gallery__hint .hint-mouse { display: none; } }
.gallery.is-pinned { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.gallery.is-pinned .gallery__head { margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }
.gallery.is-pinned .gallery__item { width: calc(min(52vh, 32rem) * 2 / 3); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.quote { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.quote__mark { font-size: 4.5rem; line-height: 0.6; height: 2.2rem; font-weight: 800; color: var(--red); }
.quote blockquote p { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; font-weight: 500; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; font-weight: 700; color: var(--navy); }
.quote__initials {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-stretch: 110%;
  letter-spacing: 0.02em;
}
@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; } }

/* 8. Inner pages ---------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(26rem, 60vh, 36rem);
  padding-block: clamp(6rem, 12vh, 8rem) clamp(3rem, 7vh, 4.5rem);
  color: var(--white);
  background: #030b26;
  --focus: var(--white);
}
.page-hero__bg, .page-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero__bg img { object-fit: cover; object-position: 50% 45%; }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 22, 0.7) 0%, rgba(2, 6, 22, 0.35) 55%, rgba(2, 6, 22, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 6, 22, 0.6) 0%, rgba(2, 6, 22, 0) 45%);
}
.page-hero h1 { font-size: var(--fs-h1); color: var(--white); max-width: 17ch; }
.page-hero p { margin-top: 1.25rem; max-width: 48ch; font-size: var(--fs-lede); color: rgba(255, 255, 255, 0.88); }
.page-hero .stack-actions { margin-top: 2rem; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; font-size: 0.875rem; font-weight: 600; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.72); }
.breadcrumb li + li::before { content: '/'; color: rgba(255, 255, 255, 0.4); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--white); }

/* Services page */
.offer-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.offer-intro p { color: var(--slate); font-size: var(--fs-lede); }
@media (max-width: 899px) { .offer-intro { grid-template-columns: 1fr; } }

.svc-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.svc-index { position: sticky; top: calc(var(--header-h) + 2rem); }
.svc-index__group + .svc-index__group { margin-top: 1.75rem; }
.svc-index__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.5rem; }
.svc-index ul { display: grid; }
.svc-index a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.svc-index a::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.svc-index a:hover { color: var(--blue); }
.svc-index a.is-active { color: var(--ink); }
.svc-index a.is-active::before { background: var(--red); transform: scale(1.3); }
.svc-index__call { margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.svc-index__call p { font-size: 0.9rem; color: var(--on-dark-muted); }
.svc-index__call a { display: block; margin-top: 0.35rem; font-size: 1.35rem; font-weight: 800; font-stretch: 108%; color: var(--white); text-decoration: none; }
.svc-index__call a:hover { color: var(--white); text-decoration: underline; }

.svc-group + .svc-group { margin-top: clamp(4rem, 8vw, 6rem); }
.svc-group__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.svc-group__head h2 { font-size: var(--fs-h2); }
.svc-group__head p { color: var(--slate); max-width: 34ch; text-align: right; }

.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.svc .photo { aspect-ratio: 4 / 5; }
.svc__tag { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--frost); color: var(--svc-color, var(--blue)); }
.svc__tag .icon { width: 1.4rem; height: 1.4rem; }
.svc h3 { margin-top: 0.9rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.svc__body > p { margin-top: 1rem; color: var(--slate); max-width: 56ch; }
.points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--frost);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
}
.points .icon { width: 1rem; height: 1rem; stroke-width: 2.6; color: var(--blue); }
.svc__actions { margin-top: 1.75rem; }

.repair-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block: 1.5rem 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--red-ink);
  color: var(--white);
  --focus: var(--white);
}
.repair-callout p { font-weight: 650; }
.repair-callout a { color: var(--white); font-weight: 800; font-stretch: 108%; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.repair-callout a:hover { color: var(--white); text-decoration: underline; }

.svc-chips { display: none; }

@media (max-width: 1023px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-index { display: none; }
  .svc-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.5rem; scrollbar-width: none; }
  .svc-chips::-webkit-scrollbar { display: none; }
  .svc-chips a { flex: none; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 650; font-size: 0.9rem; text-decoration: none; }
}
@media (max-width: 699px) {
  .svc { grid-template-columns: 1fr; }
  .svc .photo { aspect-ratio: 4 / 3; }
  .svc-group__head { flex-direction: column; align-items: start; }
  .svc-group__head p { text-align: left; }
}

/* About page */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
}
.split--media-right .split__media { order: 2; }
.split__body h2 { font-size: var(--fs-h2); }
.split__body .prose { margin-top: 1.5rem; color: var(--slate); font-size: var(--fs-lede); line-height: 1.6; }
.split__body .stack-actions { margin-top: 2rem; }
.values { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.values li { display: flex; align-items: center; gap: 0.9rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-weight: 700; font-stretch: 106%; color: var(--navy); }
.values .icon { width: 1.25rem; height: 1.25rem; color: var(--red-ink); stroke-width: 2.4; }

.statement { max-width: 60rem; }
.statement h2 { font-size: var(--fs-h2); }
.statement p { margin-top: 1.5rem; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5; color: var(--ink); max-width: 44ch; }

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .split__media { max-width: 32rem; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-grid h2 { font-size: var(--fs-h2); }
.contact-grid .prose { margin-top: 1.5rem; color: var(--slate); font-size: var(--fs-lede); }

.contact-methods { display: grid; gap: 0.75rem; margin-top: 2.25rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-method:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: var(--navy); }
.contact-method__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--frost); color: var(--blue); flex: none; }
.contact-method--call .contact-method__icon { background: var(--red-ink); color: var(--white); }
.contact-method__icon .icon { width: 1.2rem; height: 1.2rem; }
.contact-method small { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--slate); }
.contact-method strong { font-size: 1.1rem; font-weight: 800; font-stretch: 106%; }
/* Desktop: the photo grows to fill the height the form leaves over, so both columns end together. */
.contact-aside { align-self: stretch; display: flex; flex-direction: column; }
.contact-photo { flex: 1 1 auto; min-height: 12rem; margin-top: 0.75rem; }
.contact-photo img { position: absolute; inset: 0; object-position: 50% 60%; }
/* ...and if the photo's minimum makes the left side taller, the message box grows instead. */
@media (min-width: 900px) {
  .form-card { align-self: stretch; display: flex; flex-direction: column; }
  .form-grid { flex: 1 1 auto; grid-template-rows: auto auto auto 1fr; }
  .field--grow { grid-template-rows: auto 1fr; }
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.form-card__note { margin-top: 0.6rem; color: var(--slate); }
.form-card__note a { font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; margin-top: 1.75rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.field label .req { color: var(--red-ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #7f8bb0; /* ≥3:1 against white (WCAG 1.4.11) */
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2c8e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7596; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 67, 249, 0.16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-ink); }
.field__error { font-size: 0.85rem; font-weight: 600; color: var(--red-ink); }
.field--captcha { margin-top: 1.5rem; min-height: 78px; } /* reserve the widget's height so nothing jumps when it loads */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-actions p { font-size: 0.875rem; color: var(--slate); }
.form-card__privacy { margin-top: 1rem; font-size: 0.875rem; color: var(--slate); }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #e8f7ee; color: #0b5a2a; }
.form-status.is-error { background: #fdeceb; color: #9c0b0b; }
.btn[aria-busy='true'] { opacity: 0.75; pointer-events: none; }

.reach {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
.reach h2 { font-size: var(--fs-h2); }
.reach dl { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.reach dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.reach dt { font-weight: 700; color: var(--navy); }
.reach dd { margin: 0; color: var(--ink); }
.reach dd a { font-weight: 700; }
.map-frame { position: relative; min-height: 24rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame iframe[hidden] { display: none; }

/* Stands in for the Google embed until marketing cookies are accepted. */
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.75rem;
  padding: var(--gutter);
  font-size: var(--fs-small);
  color: var(--slate);
}
.map-consent[hidden] { display: none; }
.map-consent p { margin: 0; max-width: 34ch; }
.map-consent__addr { color: var(--navy); font-weight: 700; font-size: var(--fs-body); }
.map-consent a { font-weight: 700; }

@media (max-width: 899px) {
  .contact-grid, .reach { grid-template-columns: 1fr; }
  .contact-photo { display: none; } /* stacked layout: no gap to fill */
  .form-grid { grid-template-columns: 1fr; }
  .reach dl div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Cookie policy / legal pages */
.legal { max-width: 60rem; }
.legal h2 { font-size: var(--fs-h2); }
.legal .prose { margin-top: 1.5rem; color: var(--slate); font-size: var(--fs-lede); line-height: 1.6; }
.legal .prose h3 { margin-top: 2rem; color: var(--navy); }
.legal .prose h3 + p { margin-top: 0.5rem; }
.legal .prose ul { margin-top: 0.75em; padding-left: 1.25em; }
.legal .prose li + li { margin-top: 0.35em; }
.legal .prose ul + p { margin-top: 1em; }
.legal .prose + .cookie-table + .prose { margin-top: 2rem; }
.legal .prose + .stack-actions, .legal .stack-actions + .prose { margin-top: 1.5rem; }
.cookie-table { width: 100%; margin-top: 2rem; border-collapse: collapse; text-align: left; font-size: var(--fs-small); }
.cookie-table th, .cookie-table td { padding: 0.9rem 1.25rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table thead th { color: var(--navy); border-bottom: 2px solid var(--line); white-space: nowrap; }
.cookie-table tbody th { color: var(--navy); font-weight: 700; }
.cookie-table td { color: var(--slate); }
@media (max-width: 639px) {
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td, .cookie-table th { display: block; }
  .cookie-table thead { display: none; }
  .cookie-table tr { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .cookie-table th, .cookie-table td { border: 0; padding: 0.15rem 0; }
}

/* 404 */
.not-found { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; padding-block: var(--section); }
.not-found h1 { font-size: var(--fs-h1); max-width: 16ch; }
.not-found p { color: var(--slate); font-size: var(--fs-lede); max-width: 46ch; }

/* 9. CTA band + footer ----------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
  background: var(--navy);
  color: var(--white);
  --focus: var(--white);
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(60rem 40rem at 88% 50%, rgba(0, 67, 249, 0.5), transparent 70%);
}
/* The phone number sits inside a faint thermostat ring (same construction as the hero dial, resting at 72°). */
.cta-band__call { position: relative; isolation: isolate; }
.cta-band__call::before,
.cta-band__call::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 64%;
  z-index: -1;
  width: 128%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  --ring: radial-gradient(closest-side, transparent 84%, #000 84.5%, #000 96%, transparent 96.5%);
}
.cta-band__call::before {
  background: repeating-conic-gradient(from 224.6deg, rgba(255, 255, 255, 0.2) 0deg 0.6deg, transparent 0.6deg 6.75deg);
  -webkit-mask: var(--ring), conic-gradient(from 225deg, #000 0deg 271deg, transparent 271deg);
  -webkit-mask-composite: source-in;
  mask: var(--ring), conic-gradient(from 225deg, #000 0deg 271deg, transparent 271deg);
  mask-composite: intersect;
}
.cta-band__call::after {
  background: repeating-conic-gradient(from 224.6deg, rgba(127, 164, 255, 0.85) 0deg 0.6deg, transparent 0.6deg 6.75deg);
  -webkit-mask: var(--ring), conic-gradient(from 225deg, #000 0deg 108.9deg, transparent 108.9deg);
  -webkit-mask-composite: source-in;
  mask: var(--ring), conic-gradient(from 225deg, #000 0deg 108.9deg, transparent 108.9deg);
  mask-composite: intersect;
}
@media (max-width: 899px) {
  .cta-band__call::before, .cta-band__call::after { display: none; }
}
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 4vw, 4rem); align-items: end; }
.cta-band h2 { font-size: var(--fs-h2); color: var(--white); max-width: 18ch; }
.cta-band .h-run__lead { color: var(--red-on-dark); }
.cta-band p { font-size: var(--fs-lede); color: var(--on-dark-muted); max-width: 44ch; }
.cta-band .stack-actions { margin-top: 1.75rem; }
.cta-band__phone { display: block; margin-top: 0.4rem; font-size: clamp(2rem, 0.6rem + 3.2vw, 4rem); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; color: var(--white); text-decoration: none; white-space: nowrap; }
.cta-band__phone:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.cta-band__label { font-size: 0.9rem; font-weight: 600; color: var(--on-dark-muted); }
@media (max-width: 899px) { .cta-band__inner { grid-template-columns: 1fr; } }

.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  --focus: var(--white);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.footer-brand { display: inline-block; padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--white); line-height: 0; }
.footer-brand img { height: 3.25rem; width: auto; }
.site-footer p { margin-top: 1rem; max-width: 40ch; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.footer-contact .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; color: var(--red-on-dark); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); transition: background-color 0.2s, border-color 0.2s; }
.socials a:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.socials .icon { width: 1.15rem; height: 1.15rem; }
/* 24/7 call-out: sits under Quick links + Contact info so those columns match the logo column. */
.footer-callout {
  grid-column: 2 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}
.site-footer .footer-callout p { display: flex; align-items: center; gap: 0.75rem; margin: 0; max-width: 30ch; }
.footer-callout strong { color: var(--white); }
.footer-callout__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.site-footer .footer-callout .btn { text-decoration: none; }
/* "On call" dot: a soft ring keeps pinging out of it. */
.live-dot { position: relative; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--red-on-dark); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red-on-dark); animation: live-ping 2s ease-out infinite; }
@keyframes live-ping { to { transform: scale(2.8); opacity: 0; } }
@media (max-width: 767px) { .footer-callout { display: none; } } /* phones: the sticky Call/Book bar already does this job */
@media (min-width: 900px) {
  .site-footer__grid { row-gap: 1.5rem; }
  .footer-about { grid-row: span 2; }
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}
.site-footer__bottom p { margin: 0; max-width: none; }
.site-footer__bottom a { text-decoration: underline; text-underline-offset: 0.2em; }
.powered { display: inline-flex; align-items: center; gap: 0.6rem; }
.powered img { height: 2rem; width: auto; background: var(--white); border-radius: var(--radius); padding: 0.2rem 0.35rem; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .footer-about, .footer-callout { grid-column: 1 / -1; } }
@media (max-width: 559px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  /* Phones: the logo card spans the column, logo centered and as large as it fits. */
  .footer-brand { display: block; text-align: center; }
  .footer-brand img { width: 100%; max-width: 480px; height: auto; }
}

/* Cookie consent banner (vendor: assets/css/vendor/cookieconsent.css).
   Scoped to #cc-main so it outranks the library's :root defaults. */
#cc-main {
  --cc-font-family: var(--font);
  --cc-bg: var(--white);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--slate);
  --cc-link-color: var(--blue);
  --cc-modal-border-radius: var(--radius-lg);
  --cc-btn-border-radius: var(--radius);
  --cc-btn-primary-bg: var(--navy);
  --cc-btn-primary-color: var(--white);
  --cc-btn-primary-border-color: var(--navy);
  --cc-btn-primary-hover-bg: var(--navy-900);
  --cc-btn-primary-hover-color: var(--white);
  --cc-btn-primary-hover-border-color: var(--navy-900);
  --cc-btn-secondary-bg: var(--frost);
  --cc-btn-secondary-color: var(--navy);
  --cc-btn-secondary-border-color: var(--mist);
  --cc-btn-secondary-hover-bg: var(--mist);
  --cc-btn-secondary-hover-color: var(--navy);
  --cc-btn-secondary-hover-border-color: var(--mist);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--blue);
  --cc-cookie-category-block-bg: var(--frost);
  --cc-cookie-category-block-border: var(--frost);
  --cc-cookie-category-block-hover-bg: var(--mist);
  --cc-cookie-category-block-hover-border: var(--mist);
  --cc-footer-bg: var(--frost);
  --cc-footer-color: var(--slate);
  --cc-footer-border-color: var(--line);
}
/* Phones: sit above the fixed Call / Book bar, never over it (PRODUCT.md: phone one glance away). */
@media (max-width: 767px) {
  #cc-main .cm--bottom { bottom: calc(4.3rem + env(safe-area-inset-bottom) + var(--cc-modal-margin)); }
}

/* 10. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.25s ease both vt-out; }
  ::view-transition-new(root) { animation: 0.45s var(--ease-out) both vt-in; }
}
/* Hero "Book an appointment": after the dial's intro + nudge, three soft red rings, repeated
   every 10s, three times, then it rests. Paused with the ticker's pause button. */
@media (prefers-reduced-motion: no-preference) {
  .js .btn--pulse { position: relative; }
  .js .btn--pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    animation: cta-pulse 10s ease-out 7s 3;
  }
  .motion-paused .btn--pulse::after { animation: none; }
}
@keyframes cta-pulse {
  0%, 12%, 24% { box-shadow: 0 0 0 0 rgba(255, 74, 61, 0.7); }
  11.9%, 23.9%, 35.9% { box-shadow: 0 0 0 1rem rgba(255, 74, 61, 0); }
  36%, 100% { box-shadow: 0 0 0 0 rgba(255, 74, 61, 0); }
}
@keyframes knob-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.4); opacity: 0; }
}

@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lenis smooth scrolling helpers */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* SplitText line masks: extra room so descenders aren't clipped mid-animation */
.split-line-mask { padding-bottom: 0.16em; margin-bottom: -0.16em; }
/* Hero headline lines from splitRenderedLines() in main.js (spans, so they need block display + the clip) */
.hero__title .split-line-mask { display: block; overflow: clip; }
.hero__title .split-line { display: block; }
