/* 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; } }

/* ==========================================================================
   Nolan HVAC n Brush Studio — nolanhvac.xyz
   Swiss grid: paper, ink, one electric blue. Numbers, rules, big type.
   01 Tokens · 02 Base · 03 Header · 04 Hero · 05 Page heads · 06 Index rows
   07 Sections · 08 Studio load (signature) · 09 FAQ · 10 Form & contact
   11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #f5f5f2; --white: #ffffff; --ink: #111111; --text: #2b2b2b; --muted: #5f5f5a; --rule: #111111; --hair: #d6d6d0;
  --blue: #2448ff; --blue-dark: #1a36cc; --blue-soft: #e8ecff;
  --focus: #2448ff; --err: #c01f1f; --ok: #1d6b37;
  --font: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
  --f2: clamp(2rem, 1.5rem + 2.2vw, 3.4rem); --f3: clamp(2.8rem, 1.8rem + 5vw, 6.6rem);
  --wrap: 1240px; --pad-y: clamp(3.2rem, 2.2rem + 4.4vw, 6.4rem); --gut: clamp(1rem, 0.6rem + 1.6vw, 2rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--font); font-size: var(--f0); line-height: 1.6; }
h1, h2, h3 { margin: 0 0 0.45em; color: var(--ink); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h1 { font-size: var(--f3); font-weight: 650; }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
strong, b { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.num { font-feature-settings: "tnum"; color: var(--blue); font-weight: 600; }
.tag { display: block; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 2px solid var(--rule); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.mark { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1; }
.mark b { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.04em; }
.mark small { margin-top: 0.2rem; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.idx { display: none; }
.hd__act { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.hd__act a { font-weight: 600; white-space: nowrap; text-decoration-line: underline; }
.hd__act .t-num { display: none; }
.hd__act .t-book { color: var(--blue); }
.nav-toggle { padding: 0.45rem 0.7rem; border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.nav-toggle svg { display: none; }
@media (max-width: 1019px) {
  .idx { position: absolute; top: calc(100% + 2px); left: -1rem; right: -1rem; z-index: 30; flex-direction: column; padding: 0.5rem 1rem 1.2rem; background: var(--paper); border-bottom: 2px solid var(--rule); }
  .idx.is-open { display: flex; }
  .idx a { display: grid; grid-template-columns: 3rem 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
  .idx a span { color: var(--blue); font-size: 0.9rem; padding-top: 0.45rem; }
  .idx a[aria-current="page"] { color: var(--blue); }
}
@media (min-width: 560px) { .hd__act .t-num { display: inline; } .hd__act .t-call { display: none; } }
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .idx { display: flex; gap: 1.6rem; margin-left: 3rem; }
  .idx a { display: flex; align-items: baseline; gap: 0.35rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
  .idx a span { color: var(--muted); font-size: 0.75rem; font-feature-settings: "tnum"; }
  .idx a:hover { color: var(--blue); }
  .idx a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .idx a[aria-current="page"] span { color: var(--blue); }
}

/* 04 Hero */
.hero { padding-top: clamp(2.4rem, 1.8rem + 3vw, 5rem); }
.hero h1 { grid-column: 1 / -1; max-width: 16ch; }
.hero__meta { margin: 0; border-top: 2px solid var(--rule); }
.hero__meta div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); font-size: var(--f-sm); }
.hero__meta dt { color: var(--muted); }
.hero__meta dd { margin: 0; color: var(--ink); font-weight: 500; }
.hero__lede { font-size: var(--f1); line-height: 1.4; color: var(--ink); }
@media (min-width: 900px) {
  .hero__lede { grid-column: 1 / 7; }
  .hero__meta { grid-column: 8 / -1; }
}
.hero figure { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero figure img, .hero figure .img-placeholder { border-radius: 0; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.3rem; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn svg { width: 1em; height: 1em; }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 05 Page heads */
.phead { padding-block: clamp(2.4rem, 1.8rem + 3vw, 4.6rem) clamp(1.6rem, 1.2rem + 2vw, 3rem); border-bottom: 2px solid var(--rule); }
.phead h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 5rem); max-width: 18ch; }
.phead p { font-size: var(--f1); line-height: 1.4; color: var(--ink); max-width: 44ch; }
.crumbs { display: flex; gap: 0.6rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "→"; margin-right: 0.6rem; color: var(--blue); }

/* 06 Index rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--rule); counter-reset: r; }
.rows li { margin: 0; border-bottom: 1px solid var(--hair); counter-increment: r; }
.rows a, .rows .row { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; color: var(--ink); text-decoration: none; }
.rows a::before, .rows .row::before { content: counter(r, decimal-leading-zero); color: var(--blue); font-weight: 600; font-feature-settings: "tnum"; }
.rows a:hover { color: var(--blue); }
.rows b { font-size: var(--f1); font-weight: 600; letter-spacing: -0.02em; }
.rows em { font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rows p { grid-column: 2 / -1; margin: 0; font-size: var(--f-sm); color: var(--text); }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--blue { background: var(--blue); color: #e6eaff; }
.sec--blue h2, .sec--blue h3, .sec--blue b { color: #fff; }
.sec--blue .tag { color: #c9d2ff; }
.sec--blue a:not(.btn) { color: #fff; text-decoration-color: #fff; }
.sec--blue :focus-visible { outline-color: #fff; }
.sec--ink { background: var(--ink); color: #cfcfcf; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--ink :focus-visible { outline-color: #fff; }
.sec-head { border-top: 2px solid var(--rule); padding-top: 1rem; margin-bottom: 2.4rem; }
.sec--blue .sec-head, .sec--ink .sec-head { border-color: currentColor; }
@media (min-width: 900px) {
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .span-6 { grid-column: span 6; }
  .span-4 { grid-column: span 4; }
  .span-8 { grid-column: span 8; }
  .push-1 { grid-column-start: 2; }
}
figure img, figure .img-placeholder { border-radius: 0; }
figcaption { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.sec--blue figcaption { color: #c9d2ff; }
.facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.facts li { padding: 0.9rem 0; border-bottom: 1px solid rgba(127,127,127,0.35); }
.facts h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.facts p { margin: 0; font-size: var(--f-sm); }
.cols3 { display: grid; gap: var(--gut); }
@media (min-width: 820px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.cols3 > div { border-top: 2px solid currentColor; padding-top: 1rem; }
.cols3 p { font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 460px); border: 2px solid var(--rule); background: var(--white); filter: grayscale(1) contrast(1.05); }

/* 08 Studio load (signature) */
.load { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); background: var(--white); border: 2px solid var(--rule); }
.load__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .load__grid { grid-template-columns: 1fr 1fr; } }
.load label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.load output { display: grid; gap: 0.2rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 2px solid var(--rule); }
.load output[hidden] { display: none; }
.load output b { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.bars { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; font-size: var(--f-sm); }
.bars i { display: block; height: 14px; background: var(--ink); }
.bars li:nth-child(1) i { width: 40%; }
.bars li:nth-child(2) i { width: 65%; }
.bars li:nth-child(3) i { width: 100%; background: var(--blue); }
@media (max-width: 480px) { .bars li { grid-template-columns: 1fr; gap: 0.3rem; } }

/* 09 FAQ */
.faq { border-top: 2px solid var(--rule); }
.nq { display: grid; gap: 0.3rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 820px) { .nq { grid-template-columns: 5fr 7fr; } }
.nq h3 { font-size: 1.12rem; margin: 0; }
.nq p { margin: 0; font-size: var(--f-sm); }

/* 10 Form & contact */
.form { display: grid; gap: 1.4rem 1.6rem; margin-top: 1.6rem; }
@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: 600; color: var(--ink); font-size: 0.9rem; }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.7rem 0; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; }
select { appearance: none; padding-right: 2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.2rem center / 16px; }
.load select, .load input { background-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--blue); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.84rem; color: var(--muted); }
.dl { margin: 0; border-top: 2px solid var(--rule); }
.dl div { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.dl dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dl dd { margin: 0.25rem 0 0; color: var(--ink); }
.dl .big { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 650; letter-spacing: -0.03em; text-decoration: none; }

/* 11 Footer */
.ft { background: var(--ink); color: #bdbdbd; font-size: var(--f-sm); }
.ft .wrap { padding-block: 3rem 1.4rem; }
.ft__word { margin: 0 0 2rem; color: #fff; font-size: clamp(4rem, 2rem + 12vw, 13rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; }
.ft__cols { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .ft__cols { grid-template-columns: 2fr 1fr 1fr; } }
.ft h2 { color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: #fff; text-decoration-color: var(--blue); }
.ft :focus-visible { outline-color: #fff; }
.ft__base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #333; font-size: 0.82rem; }
.ft__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: #e7e7e2; border: 1px solid var(--hair); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
.sec--blue .img-placeholder { background: #3a5bff; border-color: #6d86ff; color: #e6eaff; }
.sec--blue .img-placeholder b { color: #fff; }
.mt { margin-top: 2rem; }
@media (max-width: 560px) { .rows a, .rows .row { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.2rem 0.8rem; } .rows em { grid-column: 2; white-space: normal; } }
