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

/* ==========================================================================
   Nelson HVAC Studio — nelsonhvac.xyz
   Editorial: cream paper, black type, one vermilion accent, serif headlines.
   A phone tab hangs from the header.
   01 Tokens · 02 Base · 03 Header & phone tab · 04 Hero & staggered row
   05 Page heads · 06 Buttons · 07 Columns & index · 08 Condo section (signature)
   09 FAQ · 10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --black: #141414; --text: #333; --muted: #5e5e5e; --rule: #141414; --soft: #d9d2c5;
  --cream: #f6f1e7; --white: #fffdf8; --stone: #ece5d8;
  --red: #d63b2a; --red-dark: #b02d1e; --red-soft: #f8ddd6;
  --focus: #b02d1e; --err: #a4161a; --ok: #1f6f3a;
  --serif: "Castoro", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); --f1: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --f2: clamp(2rem, 1.55rem + 2vw, 3.2rem); --f3: clamp(2.8rem, 1.9rem + 4.6vw, 6rem);
  --wrap: 1200px; --pad-y: clamp(3.4rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--cream); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--serif); font-weight: 400; color: var(--black); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--f3); line-height: 1; }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.18; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--black); }
strong, b { color: var(--black); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section-no { display: block; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.section-no b { color: var(--red); }
em { font-family: var(--serif); font-style: italic; }

/* 03 Header & phone tab */
.hd { position: sticky; top: 0; z-index: 90; background: var(--cream); border-bottom: 2px solid var(--rule); }
.hd .wrap { position: relative; display: flex; align-items: flex-end; gap: 1rem; min-height: 78px; }
.word { display: flex; align-items: baseline; gap: 0.6rem; padding-bottom: 0.9rem; color: var(--black); text-decoration: none; }
.word b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; }
.word span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hnav { display: none; }
.hnav a { position: relative; padding: 0 1rem 1rem; color: var(--black); text-decoration: none; font-size: 0.98rem; }
.hnav a:hover { color: var(--red-dark); }
.hnav a[aria-current="page"] { color: var(--red-dark); }
.hnav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 2px; height: 0.85rem; background: var(--red); }
.hd__end { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; padding-bottom: 0.7rem; }
.phone-tab { position: absolute; right: 0; top: 100%; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 2px; padding: 0.55rem 1rem 0.65rem; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; border-radius: 0 0 12px 12px; white-space: nowrap; }
.phone-tab svg { width: 16px; height: 16px; }
.phone-tab:hover { background: var(--red-dark); color: #fff; }
.phone-tab:focus-visible { outline-color: var(--black); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.7rem; border: 2px solid var(--black); border-radius: 0; background: transparent; color: var(--black); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1039px) {
  .hnav { position: absolute; left: -1rem; right: -1rem; top: 100%; margin-top: 2px; flex-direction: column; padding: 3rem 1.2rem 1.2rem; background: var(--cream); border-bottom: 2px solid var(--rule); }
  .hnav.is-open { display: flex; }
  .hnav a { padding: 0.9rem 0; border-bottom: 1px solid var(--soft); font-family: var(--serif); font-size: 1.4rem; }
  .hnav a[aria-current="page"]::after { left: auto; right: 0; bottom: 50%; width: 1.5rem; height: 2px; }
  .phone-tab { z-index: 2; }
}
@media (min-width: 1040px) {
  .hnav { display: flex; margin-left: auto; }
  .hd__end { margin-left: 0.6rem; }
  .nav-toggle { display: none; }
}
@media (max-width: 400px) { .word span { display: none; } .hd__end .btn { padding: 0.55rem 0.8rem; font-size: 0.88rem; } }

/* 04 Hero & staggered row */
.hero { padding-block: clamp(4rem, 3rem + 4vw, 7rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero h1 { max-width: 15ch; }
.hero h1 em { color: var(--red); }
.hero__foot { display: grid; gap: 1.5rem; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 1fr auto; align-items: end; } }
.hero__foot p { font-size: var(--f1); font-family: var(--serif); line-height: 1.4; max-width: 40ch; margin: 0; }
.stagger { display: grid; gap: 1rem; grid-template-columns: 1fr; padding-bottom: var(--pad-y); }
@media (min-width: 760px) { .stagger { grid-template-columns: 1fr 1fr 1fr; align-items: start; } .stagger figure:nth-child(2) { margin-top: 4rem; } .stagger figure:nth-child(3) { margin-top: 1.5rem; } }
.stagger figcaption { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.4rem; }
@media (max-width: 759px) { .stagger figure:nth-child(n+2) { display: none; } }

/* 05 Page heads */
.phead { padding-block: clamp(3.4rem, 2.6rem + 3vw, 5.4rem) clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4.4rem); max-width: 18ch; }
.phead p { font-family: var(--serif); font-size: var(--f1); line-height: 1.4; max-width: 46ch; }
.crumbs { display: flex; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "—"; margin-right: 0.5rem; color: var(--red); }

/* 06 Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border: 2px solid var(--black); border-radius: 0; font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 1em; height: 1em; }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--open { background: transparent; color: var(--black); }
.btn--open:hover { background: var(--black); color: #fff; }

/* 07 Columns & index */
.sec { padding-block: var(--pad-y); }
.sec--stone { background: var(--stone); }
.sec--black { background: var(--black); color: #cfc9be; }
.sec--black h2, .sec--black h3 { color: #fff; }
.sec--black .section-no { color: #a9a296; }
.sec--black a { color: #fff; }
.sec--black :focus-visible { outline-color: #fff; }
.index { display: grid; gap: 0 3rem; margin: 0; padding: 0; list-style: none; counter-reset: ix; border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .index { grid-template-columns: 1fr 1fr; } }
.index li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.8rem; padding: 1.1rem 0; border-bottom: 1px solid var(--soft); counter-increment: ix; margin: 0; }
.index li::before { content: counter(ix, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--red); }
.index b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.index span { font-size: var(--f-sm); color: var(--muted); }
.cols { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; gap: 0; } .cols > * + * { border-left: 1px solid var(--rule); padding-left: 3rem; } .cols > :first-child { padding-right: 3rem; } }
.cols > * { min-width: 0; }
.dropcap::first-letter { float: left; margin: 0.1rem 0.6rem 0 0; font-family: var(--serif); font-size: 4rem; line-height: 0.85; color: var(--red); }
.plain { margin: 1rem 0 1.4rem; padding: 0; list-style: none; border-top: 1px solid var(--soft); }
.plain li { padding: 0.6rem 0; border-bottom: 1px solid var(--soft); margin: 0; }
.statement { max-width: 28ch; font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 2vw, 3rem); line-height: 1.2; color: #fff; }
.statement em { color: var(--red); }
.map-mono { display: block; width: 100%; height: clamp(320px, 40vw, 460px); filter: grayscale(1) contrast(1.05); border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); background: var(--stone); }

/* 08 Condo section (signature) */
.condo { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .condo { grid-template-columns: 1fr 1fr; } }
.condo > * { min-width: 0; }
.condo svg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.opts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.opts li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--soft); margin: 0; }
.opts li > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--red); color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.opts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.opts p { margin: 0.2rem 0 0; font-size: var(--f-sm); }
.checks { margin: 0; padding: 0; list-style: none; counter-reset: ck; }
.checks li { position: relative; padding: 0.8rem 0 0.8rem 2.4rem; border-bottom: 1px solid var(--soft); counter-increment: ck; margin: 0; }
.checks li::before { content: counter(ck); position: absolute; left: 0; top: 0.8rem; font-family: var(--serif); font-size: 1.3rem; color: var(--red); }

/* 09 FAQ */
.faq { border-top: 1px solid var(--rule); }
.nq { border-bottom: 1px solid var(--soft); }
.nq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-family: var(--serif); font-size: 1.35rem; color: var(--black); list-style: none; line-height: 1.25; }
.nq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 1.6rem; line-height: 1; color: var(--red); }
.nq[open] summary::after { content: "−"; }
.nq > div { padding-bottom: 1.3rem; }

/* 10 Form & contact */
.form { display: grid; gap: 1.1rem 1.4rem; margin-top: 1.4rem; }
@media (min-width: 680px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--black); }
.req { color: var(--red-dark); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--black); background: var(--white); border: 1px solid var(--black); border-radius: 0; }
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='%23141414' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 15px; padding-right: 2.4rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.ledger { margin: 0; border-top: 1px solid var(--rule); }
.ledger div { display: grid; gap: 0.2rem 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--soft); }
@media (min-width: 560px) { .ledger div { grid-template-columns: 8rem 1fr; } }
.ledger dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ledger dd { margin: 0; }
.ledger .big { font-family: var(--serif); font-size: 2rem; color: var(--black); text-decoration: none; }

/* 11 Footer */
.ft { border-top: 2px solid var(--rule); background: var(--cream); font-size: var(--f-sm); }
.ft .wrap { display: grid; gap: 1.6rem; padding-block: 3rem 2rem; }
@media (min-width: 860px) { .ft .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); line-height: 1; color: var(--black); }
.ft h2 { margin-bottom: 0.6rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: var(--black); }
.ft__base { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--soft); font-size: 0.8rem; color: var(--muted); }
.ft__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: var(--stone); border: 1px dashed #a79f90; color: var(--muted); }
.img-placeholder b { color: var(--black); }
figure img, figure .img-placeholder { border-radius: 0; }
figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.mt { margin-top: 2rem; }
.cta-short { display: none; }
@media (max-width: 560px) { .cta-long, .nt-word { display: none; } .cta-short { display: inline; } }
