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

/* ==========================================================================
   Bluewater HVAC Services — bluewaterhvac.xyz
   THE DEVICE: the season switch. The home page carries a Summer / Winter
   control that swaps a whole band of content — built from radio inputs and
   sibling selectors, so it works with JavaScript switched off. The site's
   information architecture is split the same way: a winter page and a summer
   page instead of a residential page and a commercial page.
   01 Tokens · 02 Base · 03 Header · 04 Corner buttons · 05 Buttons
   06 Hero · 07 Season switch · 08 Page heads · 09 Sections
   10 Ice dams (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --bark: #33302b; --bark-2: #4a453e; --bark-soft: #e4e0d9; --linen: #f6f3ee; --linen-2: #ece7df; --white: #ffffff;
  --lake: #2d6fa8; --lake-dark: #215486; --lake-soft: #dfecf7;
  --ink: #221f1b; --text: #4b4740; --muted: #6d675e; --line: #ddd7cc;
  --focus: #215486; --err: #a02820; --ok: #215486;
  --disp: "Figtree", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.07rem);
  --f1: clamp(1.15rem, 1.04rem + 0.5vw, 1.4rem);
  --f2: clamp(1.7rem, 1.32rem + 1.7vw, 2.5rem); --f3: clamp(2.05rem, 1.45rem + 3vw, 3.55rem);
  --r: 8px; --wrap: 1150px; --pad-y: clamp(3rem, 2.3rem + 3.6vw, 5.2rem);
  --corner: 0px;
}

/* 02 Base */
body { background: var(--linen); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; padding-bottom: var(--corner); }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.16; letter-spacing: -0.028em; 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: 65ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--lake-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.over { display: block; margin-bottom: 0.65rem; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lake-dark); }
.sec--bark .over, .phead .over { color: #93c4e8; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--linen); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 64px; }
.bw-logo { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.bw-logo svg { width: 30px; height: 30px; flex: none; }
.bw-logo b { font-family: var(--disp); font-size: 1.16rem; font-weight: 700; letter-spacing: -0.035em; }
.bw-logo small { display: block; font-size: 0.57rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lake-dark); }
.hd__tel { display: none; align-items: center; gap: 0.4rem; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd__tel svg { width: 16px; height: 16px; color: var(--lake); flex: none; }
.hd__tel:hover { color: var(--lake-dark); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--bark); cursor: pointer; }
.nav-toggle svg { width: 19px; height: 19px; }
.bwnav { display: none; }
@media (max-width: 1019px) {
  .hd .btn { display: none; }
  .bwnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--linen); border-bottom: 1px solid var(--line); }
  .bwnav.is-open { display: flex; }
  .bwnav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
  .bwnav a[aria-current="page"] { color: var(--lake-dark); }
  :root { --corner: 84px; }
}
@media (max-width: 420px) { .bw-logo small { display: none; } }
@media (min-width: 1020px) {
  .hd .wrap { min-height: 76px; gap: 1.4rem; }
  .nav-toggle { display: none; }
  .hd__tel { display: inline-flex; }
  .bwnav { display: flex; gap: 1.4rem; }
  .bwnav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .bwnav a:hover { color: var(--ink); }
  .bwnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lake); }
}

/* 04 Corner buttons — phones only, one in each bottom corner */
.corner { position: fixed; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(34,31,27,0.3); }
.corner svg { width: 23px; height: 23px; }
.corner--tel { left: 16px; background: var(--bark); }
.corner--cta { right: 16px; background: var(--lake-dark); }
.corner:hover { background: var(--ink); color: #fff; }
.corner:focus-visible { outline-color: #93c4e8; }
@media (min-width: 1020px) { .corner { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.78rem 1.4rem; border: 0; border-radius: var(--r); background: var(--bark); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s; }
.btn:hover { background: var(--lake-dark); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--lake { background: var(--lake-dark); }
.btn--lake:hover { background: var(--bark); }
.btn--line { background: transparent; color: var(--bark); box-shadow: inset 0 0 0 2px var(--bark); }
.btn--line:hover { background: var(--bark); color: #fff; }
.btn--linen, .phead a.btn--linen, .sec--bark a.btn--linen, .ice__note a.btn--linen { background: var(--linen); color: var(--ink); }
.btn--linen:hover, .phead a.btn--linen:hover, .sec--bark a.btn--linen:hover, .ice__note a.btn--linen:hover { background: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.4rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 3.2rem; } }
.hero h1 { max-width: 16ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.55; color: var(--ink); max-width: 46ch; }
.hero img, .hero .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* 07 The season switch — radios and sibling selectors, no script */
.season { padding-block: var(--pad-y); background: var(--bark); color: #c6c0b6; }
.season fieldset { margin: 0; padding: 0; border: 0; }
.season h2 { color: #fff; }
.season input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.season__tabs { display: inline-flex; gap: 4px; margin-bottom: 2rem; padding: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; }
.season__tabs label { display: inline-block; padding: 0.55rem 1.4rem; border-radius: 999px; font-family: var(--disp); font-weight: 700; color: #c6c0b6; cursor: pointer; }
.season__tabs label:hover { color: #fff; }
.season__panel { display: none; }
#se-sum:checked ~ .season__body .season__panel[data-p="sum"] { display: block; }
#se-win:checked ~ .season__body .season__panel[data-p="win"] { display: block; }
#se-sum:checked ~ .season__tabs label[for="se-sum"],
#se-win:checked ~ .season__tabs label[for="se-win"] { background: var(--lake); color: #fff; }
#se-sum:focus-visible ~ .season__tabs label[for="se-sum"],
#se-win:focus-visible ~ .season__tabs label[for="se-win"] { outline: 3px solid #93c4e8; outline-offset: 2px; }
.season__panel h3 { color: #fff; font-size: 1.5rem; }
.season__grid { display: grid; gap: 1.2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .season__grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.season__grid li { padding-top: 0.9rem; border-top: 3px solid var(--lake); font-size: var(--f-sm); }
.season__grid b { display: block; margin-bottom: 0.2rem; font-family: var(--disp); font-size: 1.08rem; color: #fff; }
.season a:not(.btn) { color: #fff; }

/* 08 Page heads */
.phead { padding-block: clamp(2.2rem, 1.8rem + 2.4vw, 3.4rem); background: var(--bark); color: #c6c0b6; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.05rem; max-width: 56ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #93c4e8; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.84rem; }
.crumbs li + li::before { content: "\203A"; margin-right: 0.5rem; color: #93c4e8; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--linen { background: var(--linen-2); }
.sec--bark { background: var(--bark); color: #c6c0b6; }
.sec--bark h2, .sec--bark h3, .sec--bark b { color: #fff; }
.sec--bark a:not(.btn) { color: #fff; }
.sec--bark :focus-visible { outline-color: #93c4e8; }
.head { max-width: 620px; margin-bottom: 2.2rem; }

.stack { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 780px) { .stack { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
.stack li { padding: 1.3rem 1.4rem; background: var(--white); border-radius: var(--r); border-left: 4px solid var(--lake); font-size: var(--f-sm); }
.sec--white .stack li { background: var(--linen); }
.stack b { display: block; margin-bottom: 0.25rem; font-family: var(--disp); font-size: 1.1rem; color: var(--ink); }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } .split--flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split img, .split .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.plainlist { margin: 0; padding: 0; list-style: none; }
.plainlist li { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.sec--bark .plainlist li { border-bottom-color: rgba(255,255,255,0.22); }
.plainlist b { font-family: var(--disp); font-size: 1.06rem; }
.plainlist span { font-size: var(--f-sm); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 400px); border-radius: var(--r); background: var(--bark-soft); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }

/* 10 Ice dams (signature) */
.ice { display: grid; gap: 1.8rem; }
@media (min-width: 1000px) { .ice { grid-template-columns: 0.82fr 1.18fr; gap: 2.6rem; align-items: start; } }
.ice__form { padding: clamp(1.3rem, 1.1rem + 1.4vw, 1.9rem); background: var(--white); border-radius: var(--r); }
.ice__form legend { display: block; margin-bottom: 0.6rem; font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.ice__form fieldset { margin: 0; padding: 0; border: 0; }
.ticks { display: grid; gap: 0.45rem; }
.tk { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--linen); font-size: var(--f-sm); cursor: pointer; }
.tk input { margin: 0.22rem 0 0; accent-color: #2d6fa8; flex: none; }
.tk:hover { border-color: var(--lake); }
.ice__view { display: grid; gap: 1.4rem; }
.ice__svg { width: 100%; height: auto; background: var(--white); border-radius: var(--r); }
.ice__svg .sky { fill: #f0f4f7; }
.ice__svg .z { fill: #e6e1d8; transition: fill 0.25s; }
.ice__svg .st { fill: none; stroke: #33302b; stroke-width: 3; stroke-linejoin: round; }
.ice__svg .snow { fill: #ffffff; stroke: #c9ccd0; stroke-width: 2; }
.ice__svg .icemass { fill: #a8cfe8; stroke: #2d6fa8; stroke-width: 2; }
.ice__svg .lbl { font-family: system-ui, sans-serif; font-size: 12px; fill: #6d675e; }
[data-hot~="attic"] #i-attic-hatch, [data-hot~="duct"] #i-duct, [data-hot~="fan"] #i-fan,
[data-hot~="soffit"] #i-soffit, [data-hot~="ins"] #i-ins, [data-hot~="lights"] #i-lights { fill: #f0a23c; }
.ice__note { padding: clamp(1.3rem, 1.1rem + 1.4vw, 1.9rem); background: var(--bark); color: #c6c0b6; border-radius: var(--r); }
.ice__note h2 { color: #fff; font-size: 1.05rem; }
.ice__note b { color: #fff; }
.ice__note .count { display: block; margin: 0.2rem 0 0.9rem; font-family: var(--disp); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700; color: #93c4e8; line-height: 1.2; }
.ice__note ul { margin: 0; padding-left: 1.15em; font-size: var(--f-sm); }
.ice__note li { margin-bottom: 0.6rem; }
.ice__note .who { display: inline-block; margin-top: 0.25rem; padding: 0.1rem 0.45rem; border-radius: 3px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ice__note .who--us { background: rgba(147,196,232,0.22); color: #93c4e8; }
.ice__note .who--them { background: rgba(240,162,60,0.22); color: #f0a23c; }
.ice__note .caveat { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.24); font-size: 0.86rem; color: #a49d92; }
.ice__note :focus-visible { outline-color: #93c4e8; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 880px; border-top: 3px solid var(--bark); }
.bwq { border-bottom: 1px solid var(--line); }
.bwq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.06rem; color: var(--ink); list-style: none; cursor: pointer; }
.bwq summary::after { content: "+"; flex: none; color: var(--lake-dark); }
.bwq[open] summary::after { content: "\2013"; }
.bwq > div { padding: 0 0 1.1rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1.05rem 1.3rem; 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: 700; 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"], input[type="number"], select, textarea { width: 100%; padding: 0.76rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #cac4b7; border-radius: 6px; }
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='%2333302b' 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.85rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--bark); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.45rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid #cac4b7; border-radius: 999px; background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--bark); border-color: var(--bark); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.3rem 1.4rem; background: var(--white); border-radius: var(--r); border-top: 4px solid var(--lake); }
.side__card h2 { font-size: 1.06rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #a49d92; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #93c4e8; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.8rem 1.6rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.45rem; font-family: var(--disp); font-size: 1.2rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #93c4e8; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.81rem; }

/* 14 Images */
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.img-placeholder { background: var(--bark-soft); border: 1px dashed #bab4a8; border-radius: var(--r); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
