/* 00  Core — resets and behaviour hooks only. Every visual decision for this
       site lives in the sections below, starting with the design tokens.    */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
iframe { border: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 999; transform: translateY(-160%); padding: 0.8rem 1.2rem; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field__error { margin: 0; min-height: 1rem; font-size: 0.82rem; font-weight: 700; color: var(--err); }
.field.is-invalid :where(input, select, textarea) { border-color: var(--err); }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; padding: 1rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.img-placeholder b { display: block; font-size: 0.92rem; letter-spacing: 0; text-transform: none; word-break: break-all; }
:target { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Capital HVAC & Surface Specialists — capitalhvac.xyz
   Off-white, slate and canyon rust; a plains slab.
   01 Tokens · 02 Base · 03 Header · 04 Number pill (mobile) · 05 Buttons
   06 Hero · 07 Page heads · 08 Sections · 09 Dust check (signature)
   10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --slate: #2f3a40; --slate-2: #3d4a52; --paper: #f6f3ee; --paper-2: #eae5dc; --white: #ffffff;
  --rust: #a04b2a; --rust-dark: #823b20; --rust-soft: #f7e6de;
  --ink: #23292d; --text: #444d52; --muted: #626b70; --line: #ded7cc;
  --focus: #823b20; --err: #a3281f; --ok: #2c6a4f;
  --slab: "Hepta Slab", "Rockwell", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem); --f1: clamp(1.18rem, 1.06rem + 0.5vw, 1.45rem);
  --f2: clamp(1.8rem, 1.4rem + 1.7vw, 2.6rem); --f3: clamp(2.2rem, 1.55rem + 3vw, 3.8rem);
  --r: 4px; --wrap: 1150px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 5.8rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--slab); color: var(--ink); font-weight: 700; line-height: 1.18; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--rust-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.over { display: block; margin-bottom: 0.8rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-dark); }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--slate); color: #c6ced3; }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-height: 68px; }
.ka-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.ka-logo svg { width: 34px; height: 34px; flex: none; }
.ka-logo b { color: #fff; display: block; font-family: var(--slab); font-size: 1.28rem; font-weight: 700; line-height: 1; }
.ka-logo small { display: block; margin-top: 0.2rem; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #e6a98f; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; min-height: 42px; padding: 0 0.8rem; border: 1px solid #55626a; border-radius: var(--r); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.nav-toggle svg { width: 19px; height: 19px; }
.hd :focus-visible { outline-color: #e6a98f; }
.knav { display: none; }
.hd__tel { display: none; }
@media (max-width: 1019px) {
  .knav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.4rem 1rem 1.2rem; background: var(--slate-2); }
  .knav.is-open { display: flex; }
  .knav a { padding: 0.85rem 0.3rem; border-bottom: 1px solid #4b5860; color: #fff; font-family: var(--slab); font-size: 1.12rem; text-decoration: none; }
  .knav a[aria-current="page"] { color: #e6a98f; }
  .hd .btn { padding: 0.65rem 0.85rem; font-size: 0.88rem; }
}
@media (max-width: 400px) { .ka-logo small { display: none; } .ka-logo b { font-size: 1.12rem; } .hd .wrap { gap: 0.45rem; } }
@media (min-width: 1020px) {
  .hd .wrap { min-height: 80px; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .knav { display: flex; gap: 1.5rem; margin-left: auto; }
  .knav a { padding: 0.3rem 0; color: #c6ced3; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
  .knav a:hover { color: #fff; }
  .knav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rust); }
  .hd__tel { display: inline-block; color: #fff; font-family: var(--slab); font-weight: 600; text-decoration: none; white-space: nowrap; }
}

/* 04 Number pill (mobile) */
.numpill { position: fixed; left: 12px; bottom: 12px; z-index: 40; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.15rem; border-radius: 99px; background: var(--rust-dark); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(35,41,45,0.75); }
.numpill svg { width: 18px; height: 18px; }
.numpill:hover { background: var(--ink); color: #fff; }
.numpill:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 1020px) { .numpill { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.82rem 1.4rem; border: 0; border-radius: var(--r); background: var(--rust); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn:hover { background: var(--rust-dark); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--slate { background: var(--slate); }
.btn--slate:hover { background: var(--ink); }
.btn--line { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 2px var(--slate); }
.btn--line:hover { background: var(--slate); color: #fff; }
.btn--paper, .phead a.btn--paper, .sec--slate a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .phead a.btn--paper:hover, .sec--slate a.btn--paper:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.8rem, 2.2rem + 3vw, 4.6rem) var(--pad-y); background: var(--paper-2); }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 3.4rem; } }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 40ch; }
.hero img, .hero .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.swing { display: grid; gap: 0.6rem; margin-top: 1.8rem; padding: 0; list-style: none; }
@media (min-width: 560px) { .swing { grid-template-columns: repeat(2, 1fr); } }
.swing li { padding: 0.9rem 1.1rem; background: var(--white); border-left: 4px solid var(--rust); font-size: var(--f-sm); }
.swing b { display: block; font-family: var(--slab); color: var(--ink); }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem); background: var(--slate); color: #c6ced3; }
.phead h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); max-width: 20ch; }
.phead p { font-size: 1.08rem; max-width: 58ch; }
.phead a { color: #fff; }
.phead .over { color: #e6a98f; }
.phead :focus-visible { outline-color: #e6a98f; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #e6a98f; }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--paper { background: var(--paper-2); }
.sec--slate { background: var(--slate); color: #c6ced3; }
.sec--slate h2, .sec--slate h3, .sec--slate b { color: #fff; }
.sec--slate .over { color: #e6a98f; }
.sec--slate a:not(.btn) { color: #fff; }
.sec--slate :focus-visible { outline-color: #e6a98f; }
.head { max-width: 640px; margin-bottom: 2.4rem; }
.pair { display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .pair { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.pair article { display: flex; flex-direction: column; padding: 1.8rem; background: var(--white); border-top: 4px solid var(--slate); }
.sec--white .pair article, .sec--white .notes li, .sec--white .side__card { background: var(--paper); }
.pair article + article { border-top-color: var(--rust); }
.pair h3 { font-size: 1.35rem; }
.pair ul { margin: 0.6rem 0 1.4rem; padding: 0; list-style: none; font-size: var(--f-sm); }
.pair li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.pair .btns { margin-top: auto; }
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.4rem; } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split img, .split .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rows b { font-family: var(--slab); font-size: 1.1rem; }
.rows span { font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 420px); border-radius: var(--r); background: var(--rust-soft); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }

/* 09 Dust check (signature) */
.dust { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .dust { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.dust__form { padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); background: var(--white); }
.dust__form fieldset { margin: 0 0 1.3rem; padding: 0; border: 0; }
.dust__form fieldset:last-of-type { margin-bottom: 0; }
.dust__form legend { margin-bottom: 0.7rem; padding: 0; font-family: var(--slab); font-size: 1.15rem; color: var(--ink); }
.dchk { position: relative; display: block; margin-bottom: 0.5rem; }
.dchk input { position: absolute; opacity: 0; }
.dchk span { display: block; padding: 0.85rem 1rem 0.85rem 2.8rem; background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.dchk span::before { content: ""; position: absolute; left: 0.95rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--slate); background: var(--white); }
.dchk input:checked + span { background: var(--rust-soft); }
.dchk input:checked + span::before { background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--rust); }
.dchk input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.dust__form select { margin-top: 0.3rem; }
.score { padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); background: var(--slate); color: #c6ced3; }
.score h2 { color: #fff; font-size: 1.3rem; }
.score .level { display: block; margin: 0.4rem 0 0.2rem; font-family: var(--slab); font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem); color: #f0b898; }
.score .days { display: block; margin-bottom: 0.9rem; font-weight: 700; color: #fff; }
.score ul { margin: 1rem 0 0; padding-left: 1.2em; font-size: var(--f-sm); }
.score li { margin-bottom: 0.4rem; }
.score :focus-visible { outline-color: #f0b898; }
.notes { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(2, 1fr); } }
.notes li { padding: 1.3rem; background: var(--white); font-size: var(--f-sm); }
.notes b { display: block; font-family: var(--slab); font-size: 1.08rem; color: var(--ink); }

/* 10 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; border-top: 2px solid var(--slate); }
.kq { border-bottom: 1px solid var(--line); }
.kq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-family: var(--slab); font-size: 1.08rem; color: var(--ink); list-style: none; }
.kq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 700; color: var(--rust-dark); }
.kq[open] summary::after { content: "–"; }
.kq > div { padding: 0 0 1.1rem; }

/* 11 Form & contact */
.form { display: grid; gap: 1.1rem 1.4rem; margin-top: 1.2rem; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c8c0b4; border-radius: var(--r); }
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='%232f3a40' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 15px; padding-right: 2.4rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--slate); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
.picks legend { margin-bottom: 0.5rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.5rem 0.9rem; border: 1px solid #c8c0b4; background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.15fr 0.85fr; gap: 3.2rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.5rem; background: var(--white); border-left: 4px solid var(--rust); }
.side__card h2 { font-size: 1.12rem; }
.side__card .big { display: block; margin: 0.2rem 0 0.3rem; font-family: var(--slab); font-size: 1.5rem; color: var(--ink); text-decoration: none; }

/* 12 Footer */
.ft { background: var(--ink); color: #b9c0c5; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #f0b898; }
.ft__row { display: grid; gap: 1.6rem; padding-block: 3rem 1.8rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.5rem; font-family: var(--slab); font-size: 1.3rem; color: #fff; }
.ft h2 { margin: 0 0 0.6rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: #f0b898; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft__base { padding-block: 1rem 5.4rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; }
@media (min-width: 1020px) { .ft__base { padding-bottom: 1rem; } }

/* 13 Images */
figure { margin: 0; }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r); }
.img-placeholder { background: var(--rust-soft); border: 1px dashed #d3ab97; border-radius: var(--r); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
