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

/* ==========================================================================
   WhiteRock HVAC & Color — whiterockhvac.xyz
   Quiet luxury: white, chalk, granite, lake blue; a classical serif.
   01 Tokens · 02 Base · 03 Header & toolbar · 04 Buttons · 05 Hero
   06 Page heads · 07 Sections · 08 Running cost (signature) · 09 FAQ
   10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --white: #ffffff; --chalk: #f3f3f1; --stone: #e4e4e0; --granite: #2e2f33; --granite-2: #45474d;
  --lake: #1b6ca8; --lake-dark: #155685; --lake-soft: #e6f0f7;
  --ink: #1f2023; --text: #45474d; --muted: #66686e; --line: #dcdcd7;
  --focus: #1b6ca8; --err: #b3261e; --ok: #2e6b3a;
  --serif: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.93rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --f2: clamp(1.8rem, 1.4rem + 1.7vw, 2.7rem); --f3: clamp(2.3rem, 1.6rem + 3.2vw, 4.2rem);
  --wrap: 1120px; --pad-y: clamp(3.6rem, 2.6rem + 4.6vw, 7rem);
}

/* 02 Base */
body { background: var(--white); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.75; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.18; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--lake); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.small-caps { display: block; margin-bottom: 1rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* 03 Header & toolbar */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.hd__row { display: flex; align-items: center; gap: 1.4rem; min-height: 78px; }
.wr-logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.wr-logo svg { width: 34px; height: 34px; flex: none; }
.wr-logo b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.02em; }
.wr-logo small { display: block; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.wnav { display: none; }
.hd__end { display: none; }
.tools { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.tools a, .tools button { display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0 0.5rem; border: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.tools > * + * { border-left: 1px solid var(--line); }
.tools .t-book { background: var(--granite); color: #fff; }
.tools svg { width: 17px; height: 17px; }
.tools :focus-visible { outline-offset: -4px; }
@media (max-width: 1019px) {
  .wnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.6rem 1.4rem 1.6rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -26px rgba(31,32,35,0.5); }
  .wnav.is-open { display: flex; }
  .wnav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
  .wnav a[aria-current="page"] { color: var(--lake); }
}
@media (min-width: 1020px) {
  .tools { display: none; }
  .wnav { display: flex; gap: 1.8rem; margin-left: auto; }
  .wnav a { position: relative; color: var(--text); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
  .wnav a:hover { color: var(--ink); }
  .wnav a[aria-current="page"] { color: var(--ink); }
  .wnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0.2em; bottom: -0.45rem; height: 1px; background: var(--ink); }
  .hd__end { display: flex; align-items: center; gap: 1.2rem; margin-left: 1rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }
  .hd__tel { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
}

/* 04 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem 1.6rem; border: 1px solid var(--granite); border-radius: 0; background: var(--granite); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn:hover { background: var(--lake); border-color: var(--lake); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--lake { background: var(--lake); border-color: var(--lake); }
.btn--lake:hover { background: var(--lake-dark); border-color: var(--lake-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.center .btns { justify-content: center; }

/* 05 Hero */
.hero { padding-top: clamp(3rem, 2.4rem + 3vw, 5.6rem); text-align: center; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero p.lede { font-size: var(--f1); line-height: 1.55; max-width: 42ch; margin-inline: auto; color: var(--ink); }
.hero .btns { justify-content: center; }
.frame { margin: clamp(2.4rem, 1.8rem + 3vw, 4rem) auto 0; padding: 12px; border: 1px solid var(--line); width: min(100% - 2rem, 1320px); }
.frame img, .frame .img-placeholder { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* 06 Page heads */
.phead { padding-block: clamp(3rem, 2.4rem + 3vw, 5.2rem) clamp(2rem, 1.6rem + 2vw, 3.4rem); text-align: center; border-bottom: 1px solid var(--line); }
.phead h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem); max-width: 20ch; margin-inline: auto; }
.phead p { font-size: 1.1rem; max-width: 52ch; margin-inline: auto; }
.crumbs { display: flex; justify-content: center; gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "—"; margin-right: 0.6rem; }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--chalk { background: var(--chalk); }
.sec--granite { background: var(--granite); color: #cfd0d4; }
.sec--granite h2, .sec--granite h3, .sec--granite b { color: #fff; }
.sec--granite .small-caps { color: #a8aab0; }
.sec--granite a:not(.btn) { color: #fff; }
.sec--granite .btn { background: #fff; border-color: #fff; color: var(--ink); }
.sec--granite .btn:hover { background: var(--lake); border-color: var(--lake); color: #fff; }
.sec--granite :focus-visible { outline-color: #fff; }
.pair { display: grid; gap: 3rem; }
@media (min-width: 880px) { .pair { grid-template-columns: 1fr 1px 1fr; gap: 3.4rem; } }
.pair > * { min-width: 0; }
.pair__rule { display: none; background: var(--line); }
@media (min-width: 880px) { .pair__rule { display: block; } }
.pair figure { margin-bottom: 1.6rem; }
.pair ul, .svc ul { margin: 1rem 0 1.6rem; padding: 0; list-style: none; }
.pair li, .svc li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sample { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .sample { grid-template-columns: 1fr 1fr; } }
.sample__card { padding: 2rem; border: 1px solid #5b5d63; text-align: center; }
.sample__card b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1.1; }
.sample__card span { font-size: var(--f-sm); color: #a8aab0; }
.svc { display: grid; gap: 3rem; }
@media (min-width: 880px) { .svc { grid-template-columns: 1fr 1fr; } }
.svc h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.svc li { display: grid; gap: 0.1rem; }
.svc li b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.svc li span { font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 440px); border: 0; background: var(--chalk); filter: grayscale(1); }
.mapframe { padding: 12px; border: 1px solid var(--line); }

/* 08 Running cost (signature) */
.calc { align-self: start; padding: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); border: 1px solid var(--line); background: var(--white); }
.calc__grid { display: grid; gap: 1.2rem 1.4rem; }
@media (min-width: 620px) { .calc__grid { grid-template-columns: 1fr 1fr; } }
.calc label { display: block; margin-bottom: 0.35rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.calc output { display: grid; gap: 0.3rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: center; }
.calc output[hidden] { display: none; }
.calc output .kwh { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); color: var(--ink); line-height: 1.1; }
.calc output .cost { font-family: var(--serif); font-size: 1.5rem; color: var(--lake); }
.calc output span { font-size: var(--f-sm); color: var(--muted); }
.notes { margin: 0; padding: 0; list-style: none; }
.notes li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.notes h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.notes p { margin: 0; font-size: var(--f-sm); }

/* 09 FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.wq { border-bottom: 1px solid var(--line); }
.wq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); cursor: pointer; list-style: none; }
.wq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.wq[open] summary::after { content: "−"; }
.wq > div { padding: 0 0 1.3rem; }

/* 10 Form & contact */
.form { display: grid; gap: 1.2rem 1.4rem; margin-top: 1.4rem; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--lake); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.85rem 1rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c9c9c3; 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='%232e2f33' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; padding-right: 2.4rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-grid > * { min-width: 0; }
.card { padding: 2rem; border: 1px solid var(--line); text-align: center; }
.card .big { display: block; margin: 0.4rem 0 1rem; font-family: var(--serif); font-size: 2rem; color: var(--ink); text-decoration: none; }

/* 11 Footer */
.ft { background: var(--chalk); border-top: 1px solid var(--line); font-size: var(--f-sm); }
.ft .wrap { display: grid; gap: 2rem; padding-block: 3.4rem 1.6rem; text-align: center; }
.ft__name { margin: 0; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.ft nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; }
.ft nav a { color: var(--ink); text-decoration: none; }
.ft p { margin-inline: auto; }
.ft__base { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* 12 Images */
.img-placeholder { background: var(--chalk); border: 1px dashed #bdbdb6; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
.mt { margin-top: 2rem; }
