/* Direction A "Local editorial" (ticket 15, locked 2026-10-19). One action color per niche,
   set per site as --action in the page head. The action color is for Call and form buttons only. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --canvas: #faf7f2;
  --surface: #ffffff;
  --sunk: #f2ede4;
  --text: #1d1c1a;
  --muted: #5d5850;
  --hairline: #e4ddd1;
  --action: #355132;
  --action-hover: #2a4128;
  --action-ink: #ffffff;
  --focus: #b5651d;
  --radius: 10px;
  --pill: 999px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --gutter: 20px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  padding-bottom: calc(var(--bar-h) + 12px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.brand small { display: block; font: 400 0.75rem/1.2 var(--sans); color: var(--muted); }
.btn.header-call { display: none; }
.nav { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav a { display: inline-block; padding: 10px 0; text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Buttons: the only place the action color appears */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--pill);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--action); background: var(--action); color: var(--action-ink);
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--text); }
.btn-quiet:hover { background: var(--sunk); border-color: var(--text); }
.btn .num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.rec-line { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }

/* Hero: one local photo with one card */
.hero { position: relative; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 300px; object-fit: cover; }
.hero-inner { position: relative; }
.hero-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hairline);
  padding: 22px 20px; margin: -72px 0 0; position: relative;
}
.hero-card .lede { font-size: 1.05rem; color: var(--muted); }
.hero-card .places { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-form { margin-top: 20px; }
.hvac .hero-photo img { height: 210px; }
.hvac .hero-card { margin-top: -48px; padding-top: 18px; }

/* Disclosure strip */
.disclosure { background: var(--sunk); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.disclosure p { margin: 0; padding: 14px 0; font-size: 0.92rem; }

/* Sections */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section h2 { max-width: var(--measure); }
.intro { max-width: var(--measure); color: var(--muted); }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " \2192"; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px 18px 16px 58px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--text); font: 600 0.9rem/25px var(--sans); text-align: center; }
.steps strong { display: block; }
.figure { margin: 18px 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* Cost table */
.costs { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.costs th, .costs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.costs thead th { background: var(--sunk); font-weight: 600; }
.costs td.range { white-space: nowrap; font-variant-numeric: tabular-nums; }
.costs tr:last-child td { border-bottom: 0; }
.sources { font-size: 0.85rem; color: var(--muted); }
.sources li { margin: 0.15em 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--hairline); padding: 12px 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }

/* Pro card (trial and rented states) */
.pro-card { display: grid; gap: 6px; }
.pro-card .license { font-variant-numeric: tabular-nums; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; }
.form-card h2, .form-card h3 { font-size: 1.35rem; }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px;
  font: 400 1rem/1.4 var(--sans); background: #fff; color: var(--text);
}
.field textarea { min-height: 84px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; margin: 0; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid #cfc6b8; border-radius: var(--pill); cursor: pointer; font-size: 0.92rem; background: #fff; }
.chips input:checked + span { border-color: var(--text); background: var(--sunk); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.85rem; color: var(--muted); margin: 10px 0 12px; }
.form-disclosure { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 14px; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status[data-kind="error"] { color: #8a1f11; }
.form-card button[type="submit"] { width: 100%; }
.turnstile { margin: 6px 0 4px; min-height: 0; }
.more-fields { margin: 0 0 12px; }
.more-fields summary { cursor: pointer; font-size: 0.92rem; font-weight: 600; margin-bottom: 10px; }

/* Render tool */
.render-tool { display: grid; gap: 18px; }
.render-out img { border-radius: var(--radius); border: 1px solid var(--hairline); }
.render-out .label { font-size: 0.85rem; color: var(--muted); }

/* Final call block */
.final { background: var(--surface); }
.final .grid { display: grid; gap: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 24px; font-size: 0.9rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.site-footer a { color: var(--text); }

/* Fixed bottom bar: wide Call with the number, narrow Form. Nothing else floats. */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--canvas);
  border-top: 1px solid var(--hairline);
}
.call-bar .btn { min-height: 48px; }
.call-bar .btn-quiet { padding: 12px 18px; }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .final .grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .render-tool { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .btn.header-call { display: inline-flex; }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo img, .hvac .hero-photo img { height: 100%; }
  .hero-inner { padding: 72px 0; min-height: 520px; display: flex; align-items: center; }
  .hvac .hero-inner { padding: 48px 0; min-height: 440px; }
  .hero-inner .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
  .hero-card, .hvac .hero-card { margin: 0; padding: 30px 30px 26px; }
  .hero-form { margin-top: 0; }
  .hero.no-form .hero-inner .wrap { grid-template-columns: 0.62fr 0.38fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .call-bar, .nav, .hero-form { display: none; } }
.render-attach .check { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-weight: 600; cursor: pointer; }
.render-attach .check input { width: 22px; height: 22px; accent-color: var(--text); margin: 0; }
