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

/* ==========================================================================
   Sierra Building Finishes & HVAC — sierrahvac.xyz
   Limestone, cypress green and river blue; a warm text serif.
   01 Tokens · 02 Base · 03 Header & river rule · 04 Mobile action row
   05 Buttons · 06 Hero · 07 Page heads · 08 Sections
   09 Rental readiness (signature) · 10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --cypress: #2d5546; --cypress-dark: #1f3d32; --cypress-soft: #e4ede8;
  --river: #2a7ea6; --river-dark: #1d6285;
  --limestone: #f6f2e8; --limestone-2: #ece5d6; --white: #ffffff;
  --ink: #1f2621; --text: #3f4a44; --muted: #5d6862; --line: #ded6c4;
  --focus: #1d6285; --err: #a8261b; --ok: #2d5546;
  --serif: "Faustina", "Iowan Old Style", 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.08rem); --f1: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --f2: clamp(1.8rem, 1.4rem + 1.7vw, 2.7rem); --f3: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);
  --r: 4px; --wrap: 1140px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 6rem);
}

/* 02 Base */
body { background: var(--limestone); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.68; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; 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: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--river-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
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; }
.tag { display: block; margin-bottom: 0.8rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cypress); }
.mt { margin-top: 2rem; }

/* 03 Header & river rule */
.hd { position: sticky; top: 0; z-index: 30; background: var(--limestone); }
.hd__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.si-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.si-logo svg { width: 40px; height: 34px; flex: none; }
.si-logo b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.si-logo small { display: block; margin-top: 0.15rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.river { display: block; width: 100%; height: 12px; color: var(--cypress); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.snav, .hd__end { display: none; }
@media (max-width: 1019px) {
  .snav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.4rem 1rem 1.2rem; background: var(--limestone); border-bottom: 3px solid var(--cypress); }
  .snav.is-open { display: flex; }
  .snav a { padding: 0.8rem 0.3rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }
  .snav a[aria-current="page"] { color: var(--cypress); }
}
@media (max-width: 380px) { .si-logo small { display: none; } .si-logo b { font-size: 1.2rem; } }
@media (min-width: 1020px) {
  .hd__row { min-height: 78px; }
  .nav-toggle { display: none; }
  .snav { display: flex; gap: 1.5rem; margin-left: auto; }
  .snav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
  .snav a:hover { color: var(--ink); }
  .snav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--river); }
  .hd__end { display: flex; align-items: center; gap: 1rem; margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }
  .hd__tel { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
}

/* 04 Mobile action row — sticky under the header */
.actions { position: sticky; top: 68px; z-index: 29; display: grid; grid-template-columns: 4rem 1fr; border-top: 1px solid var(--line); }
.actions a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; font-weight: 700; text-decoration: none; }
.actions__tel { background: var(--white); color: var(--cypress-dark); border-right: 1px solid var(--line); }
.actions__tel svg { width: 21px; height: 21px; }
.actions__book { background: var(--cypress); color: #fff; }
.actions :focus-visible { outline-offset: -5px; }
.actions__book:focus-visible { outline-color: #fff; }
@media (min-width: 1020px) { .actions { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 2px solid var(--cypress); border-radius: var(--r); background: var(--cypress); color: #fff; font: inherit; font-weight: 650; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background: var(--cypress-dark); border-color: var(--cypress-dark); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--line { background: transparent; color: var(--cypress-dark); }
.btn--line:hover { background: var(--cypress); color: #fff; }
.btn--river { background: var(--river-dark); border-color: var(--river-dark); }
.btn--river:hover { background: var(--ink); border-color: var(--ink); }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white:hover { background: var(--limestone-2); border-color: var(--limestone-2); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero */
.hero { padding-bottom: var(--pad-y); }
.hero__img img, .hero__img .img-placeholder { width: 100%; aspect-ratio: 16 / 9; max-height: 540px; object-fit: cover; }
@media (max-width: 700px) { .hero__img img, .hero__img .img-placeholder { aspect-ratio: 3 / 2; } }
.hero__card { position: relative; margin-top: clamp(-6rem, -3rem - 4vw, -2rem); margin-right: auto; max-width: 720px; padding: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); background: var(--limestone); border-top: 4px solid var(--river); }
@media (max-width: 700px) { .hero__card { margin-top: -1.6rem; } }
.hero__card h1 { margin-bottom: 0.4em; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 44ch; }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem); background: var(--cypress); color: #d6e3dd; }
.phead h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem); max-width: 20ch; }
.phead p { font-size: 1.1rem; max-width: 56ch; }
.phead a { color: #fff; }
.phead :focus-visible { outline-color: #fff; }
.phead + .river { color: var(--cypress); transform: scaleY(-1); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.87rem; }
.crumbs li + li::before { content: "~"; margin-right: 0.5rem; }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--stone { background: var(--limestone-2); }
.sec--cypress { background: var(--cypress); color: #d6e3dd; }
.sec--cypress h2, .sec--cypress h3, .sec--cypress b { color: #fff; }
.sec--cypress .tag { color: #a9cbbd; }
.sec--cypress a:not(.btn) { color: #fff; }
.sec--cypress :focus-visible { outline-color: #fff; }
.lead-in { max-width: 640px; margin-bottom: 2.4rem; }
.three { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .three { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.three article { display: flex; flex-direction: column; padding-top: 1.2rem; border-top: 3px solid var(--cypress); }
.three article:nth-child(2) { border-top-color: var(--river); }
.three article:nth-child(3) { border-top-color: #9a7b3c; }
.three h3 { font-size: 1.35rem; }
.three ul { margin: 0.6rem 0 1.4rem; padding: 0; list-style: none; font-size: var(--f-sm); }
.three li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.three .btns { margin-top: auto; }
.band { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 1fr; gap: 3.6rem; } }
.band > * { min-width: 0; }
.band img, .band .img-placeholder { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.svc { display: grid; gap: 1.4rem 3rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .svc { grid-template-columns: 1fr 1fr; } }
.svc li { display: grid; gap: 0.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.svc b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.note { padding: 1.4rem 1.6rem; background: var(--cypress-soft); border-left: 4px solid var(--cypress); }
.note h2, .note h3 { font-size: 1.25rem; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 420px); background: var(--cypress-soft); }
.where { display: grid; gap: 1.6rem; }
@media (min-width: 880px) { .where { grid-template-columns: 0.8fr 1.2fr; gap: 2.6rem; align-items: center; } }

/* 09 Rental readiness (signature) */
.ready { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .ready { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.ready__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.ready__list li { padding: 0; }
.rchk { position: relative; display: block; }
.rchk input { position: absolute; opacity: 0; }
.rchk span { display: block; padding: 1rem 1.2rem 1rem 3rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.rchk span small { display: block; font-size: var(--f-sm); font-weight: 400; color: var(--muted); }
.rchk span::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 20px; height: 20px; border: 2px solid var(--cypress); background: var(--white); }
.rchk input:checked + span { background: var(--cypress-soft); }
.rchk input:checked + span::before { background: var(--cypress) 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 / 13px no-repeat; }
.rchk input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.score { position: sticky; top: 140px; padding: 1.8rem; background: var(--cypress); color: #d6e3dd; }
.score h2 { color: #fff; font-size: 1.25rem; }
.score .count { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 600; color: #fff; line-height: 1; }
.score .of { font-size: var(--f-sm); }
.score .bar { height: 8px; margin: 1rem 0; background: rgba(255,255,255,0.22); }
.score .bar i { display: block; height: 100%; width: 0; background: #9fd0b8; transition: width 0.3s; }
.score p { font-size: var(--f-sm); }
.score :focus-visible { outline-color: #fff; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: 0.5rem; }

/* 10 FAQ */
.faq { display: grid; gap: 0 3rem; }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1fr; } }
.sq { border-bottom: 1px solid var(--line); }
.sq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); list-style: none; }
.sq summary::after { content: "+"; flex: none; color: var(--river-dark); font-family: var(--sans); font-size: 1.3rem; line-height: 1.2; }
.sq[open] summary::after { content: "–"; }
.sq > div { padding: 0 0 1.2rem; }

/* 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 { font-weight: 650; 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 #c8c0ac; 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='%232d5546' 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(--cypress); }
.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: 900px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 3.4rem; } }
.contact > * { min-width: 0; }
.card { padding: 1.8rem; background: var(--white); border: 1px solid var(--line); }
.card .big { display: block; margin: 0.2rem 0 1rem; font-family: var(--serif); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 600; color: var(--ink); text-decoration: none; }
.card dl { margin: 0; }
.card dt { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cypress); }
.card dd { margin: 0.15rem 0 0; }

/* 12 Footer */
.ft { background: var(--cypress-dark); color: #c3d4cd; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #fff; }
.ft__row { display: grid; gap: 1.8rem; 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(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; }
.ft h2 { margin: 0 0 0.6rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9fc3b3; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft__base { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.82rem; }

/* 13 Images */
.img-placeholder { background: var(--cypress-soft); border: 1px dashed #a9bdb3; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
