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

/* ==========================================================================
   BlueCrest Finishes HVAC Solutions — bluecresthvac.xyz
   Coastal and clear: ocean blue, foam white, a wave crest as the motif.
   01 Tokens · 02 Base · 03 Announcement bar & header · 04 Buttons · 05 Hero
   06 Page heads · 07 Sections & split band · 08 CO2 page (signature)
   09 FAQ · 10 Form & contact · 11 Footer · 12 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --ocean: #075985; --ocean-dark: #0c4a6e; --deep: #082f49; --sea: #0e7490;
  --foam: #f0f9ff; --foam-2: #e0f2fe; --sand: #fdf8ef; --white: #ffffff;
  --ink: #0b2233; --text: #334955; --muted: #566b77; --rule: #d3e3ec;
  --coral: #f97360; --amber: #b45309; --green: #047857;
  --focus: #075985; --err: #b42318; --ok: #047857;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sm: 0.94rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem); --f1: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  --f2: clamp(1.8rem, 1.4rem + 1.6vw, 2.7rem); --f3: clamp(2.3rem, 1.6rem + 3vw, 4.2rem);
  --wrap: 1180px; --pad-y: clamp(3.2rem, 2.3rem + 4vw, 6rem); --r: 14px;
}

/* 02 Base */
body { background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--f0); font-weight: 300; line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.5em; color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); font-weight: 500; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--ocean); text-underline-offset: 3px; font-weight: 500; }
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; }
.eyebrow { display: block; margin-bottom: 0.7rem; color: var(--sea); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* 03 Announcement bar & header */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--deep); color: #d6ecf8; font-size: 0.92rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-height: 46px; }
.topbar p { margin: 0; }
.topbar__note { display: none; }
.topbar__acts { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; width: 100%; }
.topbar__tel { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 500; text-decoration: none; white-space: nowrap; }
.topbar__tel svg { width: 16px; height: 16px; }
.topbar__tel:hover { color: var(--foam-2); text-decoration: underline; }
.topbar .topbar__cta { margin-left: auto; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.topbar :focus-visible { outline-color: #7dd3fc; }
@media (min-width: 760px) {
  .topbar__note { display: block; }
  .topbar__acts { width: auto; gap: 1.2rem; }
  .topbar .topbar__cta { margin-left: 0; }
}
.hd { background: var(--white); border-bottom: 1px solid var(--rule); }
.hd .wrap { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.crest { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.crest svg { width: 46px; height: 30px; flex: none; }
.crest b { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.05; }
.crest small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em; }
.hnav { display: none; }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--foam); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 999px) {
  .hnav { position: absolute; top: 100%; left: -1rem; right: -1rem; z-index: 30; flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 30px -24px rgba(8,47,73,0.45); }
  .hnav.is-open { display: flex; }
  .hnav a { padding: 0.8rem 1rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
  .hnav a[aria-current="page"] { background: var(--foam-2); color: var(--ocean-dark); }
}
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .hnav { display: flex; gap: 0.3rem; margin-left: auto; padding: 0.3rem; border-radius: 999px; background: var(--foam); }
  .hnav a { padding: 0.5rem 1rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
  .hnav a:hover { background: var(--foam-2); }
  .hnav a[aria-current="page"] { background: var(--ocean); color: #fff; }
}

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

/* 05 Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--foam) 0%, var(--foam-2) 100%); overflow: hidden; }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1fr 1fr; } }
.hero .wrap > * { min-width: 0; }
.hero h1 { max-width: 14ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; max-width: 38ch; color: var(--ink); }
.hero figure img, .hero figure .img-placeholder { border-radius: 200px 200px var(--r) var(--r); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 5vw, 70px); color: var(--white); }
.wave--foam { color: var(--foam); }

/* 06 Page heads */
.phead { position: relative; background: linear-gradient(180deg, var(--foam) 0%, var(--foam-2) 100%); }
.phead .wrap { padding-block: clamp(2.2rem, 1.8rem + 2.4vw, 3.8rem) clamp(3.6rem, 3rem + 3vw, 5.2rem); }
.phead h1 { font-size: clamp(2rem, 1.5rem + 2.3vw, 3.4rem); max-width: 20ch; }
.phead p { font-size: 1.12rem; max-width: 56ch; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.88rem; }
.crumbs li + li::before { content: "~"; margin-right: 0.5rem; color: var(--sea); }

/* 07 Sections & split band */
.sec { padding-block: var(--pad-y); }
.sec--sand { background: var(--sand); }
.sec--foam { background: var(--foam); }
.sec--deep { background: var(--deep); color: #c7dfee; }
.sec--deep h2, .sec--deep h3 { color: #fff; }
.sec--deep .eyebrow { color: #7dd3fc; }
.sec--deep a:not(.btn) { color: #7dd3fc; }
.sec--deep :focus-visible { outline-color: #7dd3fc; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.pair { display: grid; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > section { padding: clamp(2.6rem, 2rem + 3vw, 4.6rem) clamp(1rem, 0.5rem + 4vw, 4.4rem); }
.pair__biz { background: var(--ocean-dark); color: #d4ebf8; }
.pair__biz h2, .pair__biz h3 { color: #fff; }
.pair__biz .eyebrow { color: #7dd3fc; }
.pair__biz :focus-visible { outline-color: #7dd3fc; }
.pair__home { background: var(--sand); }
.pair figure { margin-bottom: 1.6rem; }
.pair ul { margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.pair li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; border-bottom: 1px solid rgba(125,211,252,0.2); }
.pair__home li { border-color: var(--rule); }
.pair li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1.1rem; height: 0.4rem; border-radius: 0 0 1rem 1rem; border: 2px solid currentColor; border-top: 0; opacity: 0.6; }
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.split--top { align-items: start; }
.steps { display: grid; gap: 1.2rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 1.6rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); counter-increment: s; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; border-radius: 50%; background: var(--foam-2); color: var(--ocean-dark); font-weight: 600; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; font-size: var(--f-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); font-size: 0.92rem; }
.map { width: 100%; height: clamp(300px, 38vw, 440px); border: 0; border-radius: var(--r); background: var(--foam); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.list h3 { font-size: 1.12rem; margin-bottom: 0.2rem; }
.list p { margin: 0; font-size: var(--f-sm); }

/* 08 CO2 page (signature) */
.chart { padding: clamp(1rem, 0.6rem + 1.6vw, 1.8rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); }
.chart svg { display: block; width: 100%; height: auto; }
.chart figcaption { margin-top: 0.8rem; }
.key { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0.8rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.key li { display: inline-flex; align-items: center; gap: 0.5rem; }
.key i { width: 24px; height: 4px; border-radius: 2px; }
.key .k1 { background: var(--coral); }
.key .k2 { background: var(--ocean); }
.key .k3 { height: 0; border-top: 2px dashed var(--amber); }
.calc { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--r); background: var(--foam); border: 1px solid var(--rule); }
.calc__grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .calc__grid { grid-template-columns: 1fr 1fr; } }
.calc__grid .full { grid-column: 1 / -1; }
.calc label { display: block; margin-bottom: 0.35rem; font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.calc output { display: block; margin-top: 1.4rem; padding: 1.3rem; border-radius: var(--r); background: var(--deep); color: #d6ecf8; }
.calc output[hidden] { display: none; }
.calc output b { display: block; color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.levels { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.levels li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: start; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--green); margin: 0; }
.levels li:nth-child(2) { border-left-color: var(--amber); }
.levels li:nth-child(3) { border-left-color: var(--coral); }
.levels strong { font-size: 1.05rem; }
.levels p { margin: 0; font-size: var(--f-sm); }
@media (max-width: 480px) { .levels li { grid-template-columns: 1fr; gap: 0.2rem; } }
.fine { font-size: 0.88rem; color: var(--muted); }

/* 09 FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.bq { border-bottom: 1px solid var(--rule); }
.bq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0.2rem; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.bq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ocean); border-bottom: 2px solid var(--ocean); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.bq[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.bq > div { padding: 0 0.2rem 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: 500; color: var(--ink); font-size: 0.95rem; }
.req { color: var(--ocean); }
.opt { font-weight: 300; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.8rem 1rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid #b5ccd9; border-radius: 10px; }
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='%23075985' stroke-width='2.4'%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: 16px; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ocean); }
.form-status { margin: 0.8rem 0 0; }
.form-note { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--muted); }
.panel { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); border-radius: var(--r); background: var(--white); border: 1px solid var(--rule); box-shadow: 0 24px 40px -34px rgba(8,47,73,0.5); }
.tide { display: grid; gap: 0.8rem; }
.tide > div { padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--foam); }
.tide > div:first-child { background: var(--ocean); color: #d6ecf8; }
.tide > div:first-child h2 { color: #fff; }
.tide > div:first-child a { color: #fff; }
.tide > div:first-child :focus-visible { outline-color: #7dd3fc; }
.tide h2 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.tide .num { font-size: 1.9rem; font-weight: 600; text-decoration: none; }

/* 11 Footer */
.ft { position: relative; background: var(--deep); color: #b9d4e3; font-size: var(--f-sm); }
.ft .wrap { display: grid; gap: 2rem; padding-block: 3.2rem 1.6rem; }
@media (min-width: 820px) { .ft .wrap { grid-template-columns: 1.6fr 1fr 1fr; } }
.ft h2 { color: #fff; font-size: 1.05rem; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #7dd3fc; }
.ft__base { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.ft__base p { margin: 0; max-width: none; }

/* 12 Images */
.img-placeholder { background: var(--foam-2); border: 1px dashed #7fb3cf; color: var(--muted); }
.img-placeholder b { color: var(--ink); }
figure img, figure .img-placeholder { border-radius: var(--r); }
figcaption { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.pair__biz figcaption { color: #b9d4e3; }
.mt { margin-top: 2rem; }
