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

/* ==========================================================================
   ClearStone Color & HVAC — clearstonehvac.xyz
   Coastal village: limestone, harbour navy, signal-flag orange, pebble shapes.
   01 Tokens · 02 Base · 03 Header & contact stack · 04 Buttons · 05 Hero
   06 Page heads · 07 Sections · 08 Door planner (signature) · 09 FAQ
   10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --stone: #f2efe9; --stone-2: #e6e0d5; --pebble: #d8d0c2; --white: #ffffff;
  --navy: #1f3a5f; --navy-dark: #152a45; --ink: #1d2530; --text: #3b4450; --muted: #5d6672;
  --flag: #d64933; --flag-dark: #b43a26; --flag-soft: #fbe6e1;
  --focus: #1f3a5f; --err: #b3261e; --ok: #26734d;
  --font: "Afacad", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.98rem; --f0: clamp(1.06rem, 1.02rem + 0.2vw, 1.16rem); --f1: clamp(1.3rem, 1.18rem + 0.55vw, 1.7rem);
  --f2: clamp(2rem, 1.55rem + 2vw, 3.1rem); --f3: clamp(2.6rem, 1.8rem + 3.8vw, 4.9rem);
  --wrap: 1180px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem);
  --pebble-r: 58% 42% 50% 50% / 46% 52% 48% 54%;
}

/* 02 Base */
body { background: var(--stone); 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.05; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--f3); font-weight: 700; }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-underline-offset: 3px; font-weight: 500; }
a:hover { color: var(--flag-dark); }
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; }
.kick { display: inline-block; margin-bottom: 0.8rem; padding: 0.2rem 0.9rem; border-radius: var(--pebble-r); background: var(--pebble); color: var(--ink); font-size: 0.95rem; font-weight: 600; }

/* 03 Header & contact stack */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); box-shadow: 0 1px 0 var(--pebble); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 80px; }
.cs-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.cs-logo svg { width: 42px; height: 34px; flex: none; }
.cs-logo b { display: block; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.cs-logo small { display: block; color: var(--muted); font-size: 0.82rem; }
.snav { display: none; }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-left: auto; }
.stack a { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.stack svg { width: 14px; height: 14px; }
.stack .st-call { background: var(--stone); color: var(--navy); border: 1px solid var(--pebble); }
.stack .st-book { background: var(--flag-dark); color: #fff; }
.stack .st-book:hover { background: var(--navy); color: #fff; }
.stack .st-num { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: var(--pebble-r); background: var(--navy); color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1039px) {
  .snav { position: absolute; top: 100%; left: -1rem; right: -1rem; z-index: 30; flex-wrap: wrap; gap: 0.5rem; padding: 1rem; background: var(--white); box-shadow: 0 20px 30px -24px rgba(29,37,48,0.5); }
  .snav.is-open { display: flex; }
  .snav a { padding: 0.7rem 1.1rem; border-radius: var(--pebble-r); background: var(--stone); color: var(--ink); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
  .snav a[aria-current="page"] { background: var(--navy); color: #fff; }
}
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .snav { display: flex; gap: 0.3rem; margin-left: auto; }
  .snav a { padding: 0.5rem 1rem; border-radius: var(--pebble-r); color: var(--ink); text-decoration: none; font-weight: 500; }
  .snav a:hover { background: var(--stone); }
  .snav a[aria-current="page"] { background: var(--pebble); color: var(--ink); }
  .stack { margin-left: 1.2rem; }
  .stack .st-call { background: transparent; border: 0; padding-block: 0; }
  .stack .st-word { display: none; }
  .stack .st-num { display: inline; }
}

/* 04 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn svg { width: 1em; height: 1em; }
.btn--flag { background: var(--flag-dark); color: #fff; }
.btn--flag:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--stone { background: var(--stone); color: var(--ink); }
.btn--stone:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 05 Hero */
.hero { background: var(--stone-2); overflow: hidden; }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(2.6rem, 2rem + 3vw, 5rem); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero .wrap > * { min-width: 0; }
.hero p.lede { font-size: var(--f1); line-height: 1.4; color: var(--ink); max-width: 36ch; }
.pebble img, .pebble .img-placeholder { border-radius: var(--pebble-r); }
.hero .pebble { position: relative; }
.hero .pebble::after { content: ""; position: absolute; width: 28%; aspect-ratio: 1; right: -4%; bottom: 4%; border-radius: var(--pebble-r); background: var(--flag); z-index: -0; opacity: 0.9; }
.hero .pebble img, .hero .pebble .img-placeholder { position: relative; z-index: 1; }
.hero .pebble::after { z-index: 2; mix-blend-mode: multiply; }

/* 06 Page heads */
.phead { background: var(--stone-2); }
.phead .wrap { padding-block: clamp(2.4rem, 2rem + 2.6vw, 4.4rem); }
.phead h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.8rem); max-width: 18ch; }
.phead p { font-size: var(--f1); line-height: 1.4; max-width: 46ch; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.92rem; }
.crumbs li + li::before { content: "•"; margin-right: 0.5rem; color: var(--flag); }

/* 07 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--navy { background: var(--navy); color: #d7e0ec; }
.sec--navy h2, .sec--navy h3, .sec--navy b { color: #fff; }
.sec--navy .kick { background: rgba(255,255,255,0.12); color: #fff; }
.sec--navy a:not(.btn) { color: #fff; }
.sec--navy :focus-visible { outline-color: #fff; }
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split--top { align-items: start; }
.stones { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .stones { grid-template-columns: repeat(3, 1fr); } }
.stones li { position: relative; padding: 1.8rem 1.6rem 1.6rem; border-radius: 28px; background: var(--white); margin: 0; }
.stones li::before { content: ""; display: block; width: 46px; height: 36px; margin-bottom: 1rem; border-radius: var(--pebble-r); background: var(--pebble); }
.stones li:nth-child(2)::before { background: var(--navy); }
.stones li:nth-child(3)::before { background: var(--flag); }
.stones h3 { font-size: 1.25rem; }
.stones p { margin: 0; font-size: var(--f-sm); }
.sec--navy .stones li { background: rgba(255,255,255,0.08); }
.sec--navy .stones li::before { background: rgba(255,255,255,0.3); }
.ticks { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.45rem 0 0.45rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.8rem; width: 14px; height: 11px; border-radius: var(--pebble-r); background: var(--flag); }
.sec--navy .ticks li::before { background: #fff; }
.area { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.area li { padding: 0.6rem 1.2rem; border-radius: var(--pebble-r); background: var(--white); font-weight: 600; color: var(--ink); }
.area li:nth-child(odd) { background: var(--pebble); }
.map { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 0; border-radius: 36px; background: var(--stone-2); }
.band { background: var(--flag-dark); color: #fde8e3; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); }
.band h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.band :focus-visible { outline-color: #fff; }

/* 08 Door planner (signature) */
.planner { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: 32px; background: var(--white); }
.planner fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
.planner legend { margin-bottom: 0.6rem; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 0.5rem 1rem; border-radius: var(--pebble-r); background: var(--stone); font-weight: 600; color: var(--ink); }
.chips input:checked + span { background: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--flag); outline-offset: 2px; }
.advice { margin-top: 0.4rem; padding: 1.4rem; border-radius: 24px; background: var(--flag-soft); }
.advice[hidden] { display: none; }
.advice h3 { font-size: 1.2rem; color: var(--flag-dark); }
.advice ol { margin: 0; padding-left: 1.3rem; }
.advice li { margin: 0.35rem 0; }
.door-svg { width: 100%; height: auto; }

/* 09 FAQ */
.faq { max-width: 820px; }
.cq { margin-bottom: 0.6rem; border-radius: 22px; background: var(--white); }
.cq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; font-weight: 600; font-size: 1.1rem; color: var(--ink); cursor: pointer; list-style: none; }
.cq summary::after { content: ""; flex: none; width: 22px; height: 16px; border-radius: var(--pebble-r); background: var(--pebble); transition: background-color 0.2s, transform 0.2s; }
.cq[open] summary::after { background: var(--flag); transform: rotate(90deg); }
.cq > div { padding: 0 1.4rem 1.2rem; }

/* 10 Form & contact */
.form { display: grid; gap: 1rem 1.2rem; 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: 600; color: var(--ink); }
.req { color: var(--flag-dark); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; padding: 0.8rem 1.1rem; font: inherit; color: var(--ink); background: var(--stone); border: 2px solid transparent; border-radius: 18px; }
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='%231f3a5f' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.6rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); background: #fff; }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.box { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); border-radius: 36px; background: var(--white); }
.pebbles { display: grid; gap: 0.8rem; }
.pebbles > div { padding: 1.4rem 1.6rem; border-radius: 40px 28px 36px 24px; background: var(--white); }
.pebbles > div:first-child { background: var(--navy); color: #d7e0ec; }
.pebbles > div:first-child h2 { color: #fff; }
.pebbles > div:first-child a { color: #fff; }
.pebbles > div:first-child :focus-visible { outline-color: #fff; }
.pebbles h2 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.pebbles .num { font-size: 2rem; font-weight: 700; text-decoration: none; }

/* 11 Footer */
.ft { background: var(--ink); color: #c3cad3; font-size: var(--f-sm); }
.ft .wrap { display: grid; gap: 2rem; padding-block: 3rem 1.6rem; }
@media (min-width: 820px) { .ft .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.ft h2 { color: #fff; font-size: 1.15rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #fff; }
.ft__stones { display: flex; gap: 6px; margin-bottom: 1rem; }
.ft__stones i { width: 28px; height: 20px; border-radius: var(--pebble-r); background: var(--pebble); }
.ft__stones i:nth-child(2) { background: var(--navy); width: 22px; }
.ft__stones i:nth-child(3) { background: var(--flag); width: 16px; }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #3a4452; font-size: 0.86rem; }
.ft__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: var(--pebble); border: 1px dashed #a89f8f; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: 28px; }
.mt { margin-top: 2rem; }
.nav-toggle { flex: none; }
.stack { flex: none; }
.stack .st-short { display: none; }
@media (max-width: 479px) {
  .stack .st-long { display: none; }
  .stack .st-short { display: inline; }
  .stack a { padding-inline: 1rem; }
  .cs-logo svg { width: 34px; height: 28px; }
  .cs-logo b { font-size: 1.25rem; }
}
