/* NorthDraft Heating & Cooling
   Mobile-first. Breakpoints: 480, 768, 900, 1200. */

:root {
  --slate: #1F3A34;
  --paper: #F6F2EA;
  --ember: #C8642B;
  --mist: #BFD8DC;
  --ink: #14211E;

  /* Derived for WCAG AA text use (ember itself is 3.5:1 on paper) */
  --ember-deep: #9E4A1C;  /* 5.45:1 on paper, 6.09:1 under white */
  --mist-deep: #4E7479;   /* 4.59:1 on paper */
  --muted: #4A5A56;       /* 6.51:1 on paper */
  --rule: rgba(31, 58, 52, .22);
  --rule-dark: rgba(191, 216, 220, .28);
  --paper-2: #EFE9DD;

  --f-head: "Roboto", "Roboto Fallback", Arial, sans-serif;
  --f-body: "Public Sans", "Public Sans Fallback", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.6vw, 4.4rem);

  --gutter: 1rem;
  --wrap: 72rem;
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 3px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* Metric-matched fallbacks: Google Fonts load non-blocking, so the swap must not shift layout */
@font-face { font-family: "Public Sans Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104.5%; ascent-override: 91%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 100.3%; ascent-override: 92.7%; descent-override: 24.4%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--slate);
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: min(var(--step-4), 3.75rem); letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: var(--step-3); letter-spacing: -.015em; }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--ember-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--slate); }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--ember-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--mist); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--slate); color: var(--paper);
  padding: .75rem 1rem; border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(1.125rem, 1.07rem + .3vw, 1.25rem); font-weight: 300; line-height: 1.55; color: var(--ink); max-width: 48ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: 600 1rem/1.2 var(--f-body);
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--ember-deep); color: #fff; }
.btn-primary:hover { background: var(--slate); color: #fff; }
.btn-line { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-line:hover { background: var(--slate); color: var(--paper); }
.on-dark .btn-line { color: var(--paper); border-color: var(--mist); }
.on-dark .btn-line:hover { background: var(--mist); color: var(--slate); }
.on-dark .btn-primary:hover { background: var(--paper); color: var(--slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); text-decoration: none; }
.brand svg { width: 168px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; min-width: 44px; padding: .5rem .85rem;
  background: transparent; color: var(--slate);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font: 600 .95rem/1 var(--f-body); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .2s var(--ease-out), opacity .2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5.25px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5.25px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: .5rem var(--gutter) 1.25rem;
}
.js .site-nav[data-open="false"] { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--rule); }
.site-nav a {
  display: flex; align-items: center; min-height: 52px;
  color: var(--slate); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.site-nav a[aria-current="page"] { color: var(--ember-deep); }
.site-nav .nav-call { margin-top: 1rem; width: 100%; color: #fff; font-size: 1rem; min-height: 48px; }
.site-nav .nav-call:hover { color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav[data-open="false"] {
    display: flex; align-items: center; gap: 1.75rem;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 1.6rem; }
  .site-nav li + li { border: 0; }
  .site-nav a { min-height: 44px; font-size: .98rem; position: relative; }
  .site-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
    background: var(--ember); transform: scaleX(0); transform-origin: left;
    transition: transform .2s var(--ease-out);
  }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-call { margin: 0; width: auto; min-height: 44px; font-size: .95rem; }
}

/* ---------- Sections ---------- */
main { position: relative; display: block; }
.section { position: relative; padding-block: var(--space-section); background: var(--paper); }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--paper-2); }
.on-dark { background: var(--slate); color: var(--paper); }
.on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark a:not(.btn) { color: var(--mist); }
.on-dark a:not(.btn):hover { color: #fff; }
.on-dark .muted { color: #C9D6D3; }
.section.on-dark + .section, .section + .section.on-dark { border-top: 0; }

/* Airflow wave where dark meets light: the lower section's own colour
   rises into the bottom padding of the one above. */
.on-dark + .section:not(.on-dark)::before,
.svc-run + .section:not(.on-dark)::before,
.section:not(.on-dark) + .section.on-dark::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: clamp(1.5rem, .75rem + 3vw, 3.5rem);
  background: inherit; pointer-events: none;
  -webkit-mask: var(--wave) center bottom / 100% 100% no-repeat;
          mask: var(--wave) center bottom / 100% 100% no-repeat;
}
.section:not(.on-dark) + .section.on-dark::before { transform: scaleX(-1); }
:root {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V44C180 44 300 14 560 12s420 32 600 32 200-18 280-20v36z'/%3E%3C/svg%3E");
}
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 44rem; }
.section-head p { color: var(--muted); }
.on-dark .section-head p { color: #C9D6D3; }

/* Sheet note: a drafting-style callout tying content to the drawing set */
.sheet-note {
  display: inline-flex; align-items: baseline; gap: .6rem;
  margin: 0 0 1rem; font-size: var(--step--1); color: var(--muted);
}
.sheet-note::before {
  content: ""; width: 28px; height: 1px; background: var(--ember); transform: translateY(-.3em);
}
.on-dark .sheet-note { color: #C9D6D3; }
.on-dark .sheet-note::before { background: var(--mist); }

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: center;
  min-height: 85vh; min-height: 85svh;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
/* Home hero: soft airflow texture, faded back behind the drawing */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/home-hero-bg-800.webp") center / cover no-repeat;
  opacity: .25;
}
@media (min-width: 800px) { .hero::before { background-image: url("../img/home-hero-bg-1600.webp"); } }
.hero > .wrap { max-width: 84rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--paper); }
.nowrap { white-space: nowrap; }
.hero .lede { margin-bottom: 1.75rem; color: var(--paper); }
.hero .emergency { border-top-color: var(--rule-dark); }
.emergency {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  max-width: 34rem; font-size: .98rem;
}
.emergency-mark {
  flex: none; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 4px rgba(200, 100, 43, .18);
}
.emergency p { margin: 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure figcaption { margin-top: .75rem; font-size: var(--step--1); color: #C9D6D3; max-width: 40rem; }
.key { display: inline-flex; align-items: center; gap: .4rem; margin-right: .9rem; font-weight: 600; color: var(--paper); }
.key::before { content: ""; width: 22px; height: 3px; background: var(--ember); }
.key-r::before { background: var(--mist); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: clamp(2rem, 4vw, 4rem); }
}

/* Hero drawing: section cut of a house, drawn in by js/hero.js. Every drawn path has
   pathLength="1", so CSS can hide it before the script measures anything. */
.hero-art { width: 100%; height: auto; aspect-ratio: 560 / 492; overflow: visible; }
.hero-art path { fill: none; stroke-linejoin: round; }
.hero-art .ln path { stroke: var(--paper); stroke-width: 1.75; }
.hero-art .ln-soft { stroke-opacity: .6; }
.hero-art .duct { stroke-width: 3.25; }
.hero-art .duct-s, .hero-art .air-e, .hero-art .air-exit { stroke: var(--ember); }
.hero-art .duct-r, .hero-art .air-m { stroke: var(--mist); }
.hero-art .air path, .hero-art .air-exit { stroke-width: 1.75; stroke-linecap: round; }
@media (max-width: 599px) {
  .hero-art .ln path, .hero-art .air path, .hero-art .air-exit { stroke-width: 2.5; }
  .hero-art .duct { stroke-width: 4.25; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-art .d { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .js .hero-art .air { opacity: 0; }
  .js .hero-art.is-static .d { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .hero-art.is-static .air { opacity: 1; }
  /* Real HTML text, animated in CSS so it never waits on the GSAP download (keeps LCP on the h1). */
  .hero h1 { animation: hero-up .7s var(--ease-out) both; }
  .hero .lede { animation: hero-up .8s var(--ease-out) .9s both; }
  .hero .btn-row { animation: hero-up .8s var(--ease-out) 1.05s both; }
  .hero .emergency { animation: hero-up .8s var(--ease-out) 1.2s both; }
  .hero-figure figcaption { animation: hero-up .8s var(--ease-out) 2.4s both; }
}
@keyframes hero-up { from { opacity: 0; transform: translateY(14px); } }

.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
/* Inner-page heroes: the Grand Rapids skyline, faded back to a watermark behind the text */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/grand-rapids-skyline-640.webp") center 65% / cover no-repeat;
  opacity: .12;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
@media (min-width: 640px) { .page-hero::before { background-image: url("../img/grand-rapids-skyline-1168.webp"); } }
.page-hero > .wrap { position: relative; z-index: 2; }
/* Hero titles run as wide as the lede under them (.lede is 48ch = 36.2rem at its max size) */
.hero h1, .page-hero h1 { max-width: 36.2rem; text-wrap: pretty; }
.breadcrumbs { margin-bottom: 1.5rem; font-size: var(--step--1); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); display: inline-block; padding-block: .75rem; min-width: 44px; }
.breadcrumbs [aria-current] { color: var(--ink); display: inline-block; padding-block: .6rem; }

/* ---------- Service schedule (home) ---------- */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slate); }
.schedule li { border-bottom: 1px solid var(--rule); }
.schedule a {
  display: grid; gap: .35rem 2rem; padding: 1.4rem 0;
  color: inherit; text-decoration: none;
}
.schedule h3 { margin: 0; font-size: var(--step-2); transition: color .2s; }
.schedule p { margin: 0; color: var(--muted); }
.schedule .tag { font-size: var(--step--1); color: var(--mist-deep); font-weight: 600; }
.schedule a:hover h3, .schedule a:focus-visible h3 { color: var(--ember-deep); }
.schedule .go { display: none; }
@media (min-width: 768px) {
  .schedule a { grid-template-columns: 4.5rem 14rem 1fr auto; align-items: baseline; padding: 1.75rem 0; }
  .schedule .go {
    display: block; width: 36px; height: 1px; background: var(--slate); position: relative; align-self: center;
    transition: width .2s var(--ease-out), background-color .2s;
  }
  .schedule .go::after {
    content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
    border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
    color: var(--slate);
  }
  .schedule a:hover .go { width: 56px; background: var(--ember-deep); }
  .schedule a:hover .go::after { color: var(--ember-deep); }
}

/* ---------- Why (three columns, ruled) ---------- */
.why-grid { display: grid; gap: 0; }
.why-item { padding: 1.75rem 0; border-top: 1px solid var(--rule-dark); }
.why-item h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.why-item p { margin: 0; color: #DCE6E3; }
.why-figure { font-family: var(--f-head); font-weight: 500; font-size: var(--step-3); color: var(--mist); line-height: 1; margin-bottom: 1rem; }
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item { padding: .25rem 2rem 0; border-top: 0; border-left: 1px solid var(--rule-dark); }
  .why-item:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Cards (reviews, plans, team) ---------- */
.card {
  background: #FBF9F4; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(31, 58, 52, .45); box-shadow: 0 10px 22px -16px rgba(20, 33, 30, .45); }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.review { display: flex; flex-direction: column; margin: 0; }
.review-label {
  align-self: flex-start; margin-bottom: 1.1rem; padding: .2rem .55rem;
  font-size: .8rem; font-weight: 600; color: var(--mist-deep);
  border: 1px solid currentColor; border-radius: 2px;
}
.review blockquote { margin: 0 0 1.5rem; font-family: var(--f-head); font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: var(--slate); }
.review blockquote p { margin: 0; }
.review h3 { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.3; color: var(--slate); }
.review > p { margin: 0; color: var(--muted); }
.review figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); }

/* ---------- Area teaser / lists ---------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-wide { grid-template-columns: 1.2fr 1fr; } }
.area-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.area-list li { border-bottom: 1px solid var(--rule); }
.area-list li:nth-child(odd) { border-right: 1px solid var(--rule); }
.area-list a { display: flex; align-items: center; min-height: 56px; padding: .5rem .9rem; color: var(--slate); font-weight: 600; text-decoration: none; }
.area-list li:nth-child(odd) a { padding-left: 0; }
.area-list a:hover { color: var(--ember-deep); }
.map-figure { margin: 0; }
.map-figure img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: #FBF9F4; }
.map-figure figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: #DCE6E3; }
.cta-band .btn-row { margin-top: 1.75rem; }

/* ---------- Services page ---------- */
.on-dark .breadcrumbs a, .on-dark .breadcrumbs li + li::before { color: #C9D6D3; }
.on-dark .breadcrumbs [aria-current] { color: var(--paper); }
.svc-hero { padding-block: clamp(1.5rem, 1rem + 2.5vw, 3rem) clamp(2rem, 1.5rem + 2.5vw, 3.25rem); }
.svc-hero h1 { color: var(--paper); }
.svc-hero .lede { color: var(--paper); }
.seasons { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-dark); max-width: 56rem; }
.seasons li { border-bottom: 1px solid var(--rule-dark); }
.seasons li:nth-child(odd) { border-right: 1px solid var(--rule-dark); }
.on-dark .seasons a {
  display: flex; flex-direction: column; gap: .15rem; min-height: 44px; height: 100%;
  padding: .85rem .9rem; color: var(--paper); text-decoration: none;
}
.on-dark .seasons li:nth-child(odd) a { padding-left: 0; }
.seasons a::before { content: ""; width: 22px; height: 3px; margin-bottom: .45rem; background: var(--ember); transition: width .2s var(--ease-out); }
.seasons .s-cool::before { background: var(--mist); }
.seasons .s-air::before { background: var(--paper); }
.seasons .s-maint::before { background: linear-gradient(90deg, var(--ember) 50%, var(--mist) 50%); }
.seasons strong { font-family: var(--f-head); font-size: 1.15rem; line-height: 1.2; }
.seasons span { font-size: var(--step--1); color: #C9D6D3; }
.on-dark .seasons a:hover { color: var(--paper); }
.seasons a:hover::before, .seasons a:focus-visible::before { width: 40px; }
@media (min-width: 768px) {
  .seasons { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule-dark); }
  .seasons li { border-bottom: 0; }
  .seasons li + li { border-left: 1px solid var(--rule-dark); }
  .seasons li:nth-child(odd) { border-right: 0; }
  .on-dark .seasons li:nth-child(3) a { padding-left: .9rem; }
}

/* Sticky service index: scroll-spy chips on mobile, a slim index bar on desktop (js/services.js) */
.svc-index {
  position: sticky; top: 64px; z-index: 30;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.svc-index .wrap { display: flex; align-items: center; gap: 1.5rem; padding-inline: 0; }
.svc-index-label { display: none; margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.svc-index ul {
  list-style: none; margin: 0; padding: .45rem var(--gutter); display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
}
.svc-index ul::-webkit-scrollbar { display: none; }
.svc-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .3rem 1rem; white-space: nowrap;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--slate); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.svc-index a:hover { border-color: var(--slate); color: var(--slate); }
.svc-index a[aria-current] { background: var(--slate); border-color: var(--slate); color: var(--paper); }
@media (min-width: 900px) {
  .svc-index .wrap { padding-inline: var(--gutter); }
  .svc-index-label { display: block; padding-right: 1.5rem; border-right: 1px solid var(--rule); line-height: 1.6; }
  .svc-index ul { padding: 0; gap: 1.75rem; overflow: visible; }
  .svc-index a { position: relative; padding: 0; border: 0; border-radius: 0; min-height: 52px; }
  .svc-index a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--ember); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease-out);
  }
  .svc-index a:hover { color: var(--ember-deep); }
  .svc-index a[aria-current] { background: none; color: var(--slate); }
  .svc-index a[aria-current]::after { transform: scaleX(1); }
}

.svc { scroll-margin-top: 116px; }
.section.svc + .section.svc { border-top: 0; }
.svc-heat { background: #F8EDE3; }
.svc-grid { display: grid; gap: 2rem 4.5rem; align-items: center; }
.svc-copy h2 { margin-bottom: .35em; }
.svc-copy .sheet-note { margin-bottom: .75rem; }
.svc-art { order: -1; margin: 0; width: 100%; max-width: 21rem; justify-self: center; }
.svc-art svg { width: 100%; height: auto; aspect-ratio: 400 / 340; overflow: visible; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .svc-flip .svc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svc-art { order: 0; max-width: 30rem; }
  .svc-flip .svc-art { order: -1; }
}

/* Line art: ink on light grounds, paper on slate; ember is warm air, mist is cool air.
   Mist itself is too pale to read on the light grounds, so they use --mist-deep. */
.svc-art path, .svc-art circle { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-art .soft { stroke-opacity: .5; }
.svc-art .em { stroke: var(--ember); }
.svc-art .mi { stroke: var(--mist-deep); }
.svc-art .fan { vector-effect: non-scaling-stroke; }
.on-dark .svc-art path, .on-dark .svc-art circle { stroke: var(--paper); }
.on-dark .svc-art .em { stroke: var(--ember); }
.on-dark .svc-art .mi { stroke: var(--mist); }
.svc-art .tick { stroke-width: 2.2; }
@media (max-width: 599px) { .svc-art path, .svc-art circle { stroke-width: 2.1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .svc-art .d { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .js .svc-art .air { opacity: 0; }
  .js .svc-art.is-static .d { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .svc-art.is-static .air { opacity: 1; }
}

/* Service lists: two columns on wider screens, a copper tick that draws in left to right */
.svc-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--rule); display: grid; column-gap: 2rem; }
.svc-list li { position: relative; padding: .75rem 0 .75rem 1.75rem; border-bottom: 1px solid var(--rule); }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 1.2rem; width: 14px; height: 11px;
  background: var(--ember);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l3.5 3.5 7.5-7.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l3.5 3.5 7.5-7.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .svc-list, .on-dark .svc-list li { border-color: var(--rule-dark); }
.on-dark .svc-copy p { color: #DCE6E3; }
@media (min-width: 600px) { .svc-list { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .js .svc-list li::before { clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease-out); }
  .js .svc.is-drawn .svc-list li::before { clip-path: inset(0); }
  .js .svc.is-drawn .svc-list li:nth-child(2)::before { transition-delay: .08s; }
  .js .svc.is-drawn .svc-list li:nth-child(3)::before { transition-delay: .16s; }
  .js .svc.is-drawn .svc-list li:nth-child(4)::before { transition-delay: .24s; }
  .js .svc.is-drawn .svc-list li:nth-child(5)::before { transition-delay: .32s; }
}

.faq { border-top: 1px solid var(--slate); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 500; font-size: var(--step-1); color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; margin: 0; }

.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: var(--step-2); margin-bottom: .25rem; }
.plan-price { font-family: var(--f-head); font-weight: 500; font-size: var(--step-2); color: var(--ember-deep); margin: .75rem 0 .25rem; }
.plan-price span { font-family: var(--f-body); font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 1rem 0 1.5rem; padding: 0; border-top: 1px solid var(--rule); }
.plan li { padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.plan .btn { margin-top: auto; }
.plan { position: relative; }
.plan-icon { width: 36px; height: 36px; margin-bottom: 1rem; fill: none; stroke: var(--slate); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plan-featured { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.plan-featured:hover { border-color: var(--slate); box-shadow: 0 14px 28px -16px rgba(20, 33, 30, .7); }
.plan-featured h3 { color: var(--paper); }
.plan-featured .plan-icon { stroke: var(--paper); }
.plan-featured .muted, .plan-featured .plan-price span { color: #C9D6D3; }
.plan-featured .plan-price { color: var(--paper); }
.plan-featured ul, .plan-featured li { border-color: var(--rule-dark); }
.plan-featured .btn-primary:hover { background: var(--paper); color: var(--slate); }
.plan-featured :focus-visible { outline-color: var(--mist); }
.plan-tag {
  position: absolute; top: 1.75rem; right: 1.75rem; margin: 0; padding: .2rem .6rem;
  font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--slate); background: var(--mist); border-radius: 2px;
}

/* ---------- Service areas ---------- */
.area-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.area-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
  border: 1px solid var(--rule); border-radius: 999px; color: var(--slate); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.area-index a:hover { border-color: var(--slate); }
.on-dark .area-index a { color: var(--paper); border-color: var(--rule-dark); }
.on-dark .area-index a:hover { border-color: var(--mist); color: var(--paper); }
.on-dark .map-figure img { border-color: var(--rule-dark); }
.on-dark .map-figure figcaption { color: #C9D6D3; }
.area { display: grid; gap: 1rem 3rem; scroll-margin-top: 80px; }
.area + .area { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--rule); }
.area-meta { list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--muted); }
.area-meta li { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.area-meta li:first-child { border-top: 1px solid var(--slate); }
.area-meta strong { color: var(--ink); }
@media (min-width: 900px) { .area { grid-template-columns: 1.4fr 1fr; } .area h2 { grid-column: 1 / -1; } }

/* ---------- About ---------- */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slate); }
.facts li { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facts span { font-size: var(--step--1); color: var(--muted); }
@media (min-width: 480px) { .facts li { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.team { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person { margin: 0; padding: 0; overflow: hidden; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.person figcaption { padding: 1rem 1.25rem 1.25rem; }
.person strong { display: block; font-family: var(--f-head); font-size: 1.2rem; color: var(--slate); }
.person span { font-size: .95rem; color: var(--muted); }
.plate { margin: 0; }
.plate img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }
.plate figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--muted); }
.split > div > .plate { margin-top: 2rem; }
.plate-band { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.plate-lead { margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.on-dark .plate img { border-color: var(--rule-dark); }
.on-dark .plate figcaption { color: #C9D6D3; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 4.5rem; } }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-weight: 600; color: var(--slate); }
.field .hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: #FFFDF9; border: 1px solid rgba(31, 58, 52, .5); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(158, 74, 28, .35); }
.field [aria-invalid="true"] { border-color: #A3271B; }
.error { margin: 0; font-size: .92rem; font-weight: 600; color: #A3271B; }
.error:empty { display: none; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { margin: 0; padding: 1rem 1.15rem; border: 1px solid var(--slate); border-left: 3px solid var(--ember); background: #FBF9F4; border-radius: var(--radius); }
.form-status:empty { display: none; }
.contact-aside > * + * { margin-top: 2.25rem; }
.call-big { display: inline-block; font-family: var(--f-head); font-weight: 600; font-size: var(--step-3); color: var(--slate); text-decoration: none; line-height: 1.1; padding-block: .25rem; }
.call-big:hover { color: var(--ember-deep); }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours th { color: var(--muted); padding-right: 1rem; }
.hours caption { text-align: left; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D5DEDB; padding-block: 3.5rem 2rem; font-size: .98rem; }
.site-footer a { color: #E8EFED; text-decoration: none; display: inline-block; padding-block: .55rem; }
.site-footer a:hover { color: var(--mist); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand svg { width: 180px; color: var(--paper); margin-bottom: 1rem; }
a[href^="mailto:"] { overflow-wrap: anywhere; } /* the long subdomain address must wrap at 320px */
.site-footer h2 { font-size: 1.05rem; color: var(--paper); margin-bottom: .5rem; font-family: var(--f-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(191, 216, 220, .2); display: grid; gap: .5rem; font-size: .9rem; color: #B9C6C3; }
.footer-base p { margin: 0; max-width: none; }
@media (min-width: 768px) { .footer-base { grid-template-columns: 1fr auto; } }
.footer-base a { color: var(--mist); padding-block: 0; text-decoration: underline; }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--slate); border-top: 1px solid var(--rule-dark);
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s var(--ease-out), visibility 0s linear .3s;
}
.callbar.is-visible { transform: none; visibility: visible; transition: transform .3s var(--ease-out), visibility 0s; }
.callbar .btn { min-height: 48px; padding-inline: .5rem; }
.callbar .btn-line { color: var(--paper); border-color: var(--mist); }
body.has-callbar { padding-bottom: 72px; }
@media (min-width: 900px) { .callbar { display: none; } body.has-callbar { padding-bottom: 0; } }

/* ---------- Airflow line ---------- */
.airflow {
  position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: visible;
}
.airflow path { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section > .wrap, .hero > .wrap { position: relative; z-index: 2; }
@media (max-width: 899px) { .airflow { opacity: .5; } }
@media (max-width: 479px) { .airflow { display: none; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .card:hover { transform: none; }
}

@media (min-width: 480px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2.5rem; } }
