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

/* ==========================================================================
   Atlantic Crest HVAC Interiors — atlantichvac.xyz
   THE DEVICE: the outline. Content is numbered 1, 1.1, 1.2 down a vertical
   indent guide, the way a specification or a manual is numbered. Everything
   on the site has an address you can quote back over the phone.
   01 Tokens · 02 Base · 03 Header · 04 Outline contact strip · 05 Buttons
   06 Hero · 07 Page heads · 08 The outline · 09 Sections
   10 Thermostat (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #fbfaf8; --paper-2: #eef0f1; --white: #ffffff;
  --sea: #123a5e; --sea-2: #1d557f; --sea-soft: #cfdde8;
  --cyan: #0d9dc7; --cyan-dark: #0a7597; --cyan-soft: #ddf0f7;
  --ink: #0b1c2c; --text: #45525c; --muted: #6a7680; --line: #d7dcdf;
  --focus: #0a7597; --err: #a02820;
  --disp: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.91rem; --f-xs: 0.77rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  --f1: clamp(1.13rem, 1.03rem + 0.46vw, 1.3rem);
  --f2: clamp(1.5rem, 1.28rem + 1.2vw, 2.05rem); --f3: clamp(1.9rem, 1.45rem + 2.3vw, 2.95rem);
  --r: 2px; --wrap: 1120px; --pad-y: clamp(2.6rem, 2.1rem + 3vw, 4.3rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.42em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.22; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 0.95em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan-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; }
.sig { display: block; margin-bottom: 0.45rem; font-family: var(--disp); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-dark); }
.sec--sea .sig, .phead .sig, .hero .sig { color: #7ed3ea; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 56px; }
.at-logo { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.at-logo svg { width: 25px; height: 25px; flex: none; }
.at-logo b { display: block; font-family: var(--disp); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.at-logo small { display: block; margin-top: -0.12em; font-size: 0.53rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-dark); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.atnav { display: none; }
@media (max-width: 939px) {
  .hd__bar .btn { display: none; }
  .atnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--white); border-bottom: 1px solid var(--line); counter-reset: nn; }
  .atnav.is-open { display: flex; }
  .atnav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.06rem; font-weight: 700; text-decoration: none; }
  .atnav a::before { counter-increment: nn; content: counter(nn) ".\00a0"; color: var(--cyan-dark); }
  .atnav a[aria-current="page"] { color: var(--cyan-dark); }
}
@media (max-width: 400px) { .at-logo small { display: none; } }
@media (min-width: 940px) {
  .hd__bar .wrap { min-height: 68px; gap: 1.4rem; }
  .nav-toggle { display: none; }
  .atnav { display: flex; gap: 1.4rem; counter-reset: nn; }
  .atnav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .atnav a::before { counter-increment: nn; content: counter(nn) "\00a0"; font-size: 0.72rem; font-weight: 700; color: var(--cyan-dark); vertical-align: 0.35em; }
  .atnav a:hover { color: var(--ink); }
  .atnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cyan); }
}

/* 04 Outline contact strip — phones only; numbered 0.1 and 0.2 */
.strip0 { display: grid; grid-template-columns: 1fr 1fr; background: var(--sea-soft); border-top: 1px solid var(--line); }
.strip0 a { display: block; padding: 0.5rem 0.9rem; color: var(--ink); text-decoration: none; }
.strip0 a + a { border-left: 1px solid var(--white); }
.strip0 .n { display: block; font-family: var(--disp); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--cyan-dark); }
.strip0 .t { display: block; font-family: var(--disp); font-size: 0.98rem; font-weight: 700; white-space: nowrap; }
.strip0 a:hover { background: var(--white); }
@media (min-width: 940px) { .strip0 { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.66rem 1.3rem; border: 0; border-radius: var(--r); background: var(--sea); color: #fff; font-family: var(--disp); font-size: 0.99rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--cyan { background: var(--cyan); color: #04222c; }
.btn--cyan:hover { background: #7ed3ea; color: #04222c; }
.btn--line { background: transparent; color: var(--sea); box-shadow: inset 0 0 0 2px var(--sea); }
.btn--line:hover { background: var(--sea); color: #fff; }
.btn--paper, .phead a.btn--paper, .sec--sea a.btn--paper, .hero a.btn--paper, .th__out a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .phead a.btn--paper:hover, .sec--sea a.btn--paper:hover, .hero a.btn--paper:hover, .th__out a.btn--paper:hover { background: #fff; color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.5rem, 2rem + 2.9vw, 4.2rem); background: var(--sea); color: #a4bed1; }
.hero h1 { color: #fff; max-width: 19ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.55; color: #dbe7ef; max-width: 52ch; }
.hero :focus-visible { outline-color: #7ed3ea; }

/* 07 Page heads */
.phead { padding-block: clamp(2rem, 1.6rem + 2.1vw, 3.1rem); background: var(--sea); color: #a4bed1; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.03rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #7ed3ea; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.83rem; }
.crumbs li + li::before { content: "\203a"; margin-right: 0.45rem; color: #7ed3ea; }

/* 08 The outline — the device */
.outline { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: lv1; }
.outline > li { position: relative; counter-increment: lv1; padding: 0 0 1.4rem 3.2rem; }
.outline > li::before { content: counter(lv1) "."; position: absolute; left: 0; top: 0; width: 2.4rem; font-family: var(--disp); font-size: 1.02rem; font-weight: 700; color: var(--cyan-dark); }
.sec--sea .outline > li::before { color: #7ed3ea; }
.outline > li > h2, .outline > li > h3 { margin-bottom: 0.3rem; }
.sub { margin: 0.9rem 0 0; padding: 0 0 0 1.4rem; list-style: none; counter-reset: lv2; border-left: 1px solid var(--line); }
.sec--sea .sub { border-left-color: rgba(255,255,255,0.28); }
.sub > li { position: relative; counter-increment: lv2; padding: 0 0 0.85rem 3.2rem; }
.sub > li:last-child { padding-bottom: 0; }
.sub > li::before { content: counter(lv1) "." counter(lv2); position: absolute; left: 0; top: 0.1rem; width: 2.8rem; font-family: var(--disp); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.sec--sea .sub > li::before { color: #8fa9bd; }
.sub b { color: var(--ink); }
.sec--sea .sub b { color: #fff; }
.sub p { margin: 0.15rem 0 0; font-size: var(--f-sm); }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--tint { background: var(--paper-2); }
.sec--sea { background: var(--sea); color: #a4bed1; }
.sec--sea h2, .sec--sea h3, .sec--sea b { color: #fff; }
.sec--sea a:not(.btn) { color: #fff; }
.sec--sea :focus-visible { outline-color: #7ed3ea; }
.head { max-width: 660px; }
.twin { display: grid; gap: 2rem; }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.twin > * { min-width: 0; }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.figbox img, .figbox .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--paper-2); border-radius: var(--r); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* 10 Thermostat (signature) */
.th { display: grid; gap: 1.8rem; }
@media (min-width: 980px) { .th { grid-template-columns: 0.85fr 1.15fr; gap: 2.8rem; align-items: start; } .th__set { position: sticky; top: 6rem; } }
.th__set { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--white); border-top: 4px solid var(--cyan); }
.th__set fieldset { margin: 0 0 1.3rem; padding: 0; border: 0; }
.th__set fieldset:last-of-type { margin-bottom: 0; }
.th__set legend { display: block; margin-bottom: 0.55rem; padding: 0; font-family: var(--disp); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.rows { display: grid; gap: 0.35rem; }
.rows label { position: relative; }
.rows input { position: absolute; opacity: 0; }
.rows span { display: block; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--f-sm); font-weight: 600; cursor: pointer; }
.rows input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.rows input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.th__out { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--sea); color: #a4bed1; border-radius: var(--r); }
.th__out h2 { color: #fff; font-size: 1.04rem; }
.th__out b { color: #fff; }
.th__verdict { display: inline-block; margin: 0.35rem 0 0.7rem; padding: 0.2rem 0.7rem; border-radius: var(--r); font-family: var(--disp); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--cyan); color: #04222c; }
.th__title { display: block; margin-bottom: 0.6rem; font-family: var(--disp); font-size: clamp(1.35rem, 1.15rem + 1.1vw, 1.9rem); font-weight: 700; color: #fff; line-height: 1.2; }
.th__out ul { margin: 0.8rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); }
.th__out li { margin-bottom: 0.42rem; }
.th__note { margin-top: 1.2rem; padding: 0.95rem 1.1rem; background: rgba(126,211,234,0.15); border-left: 4px solid #7ed3ea; font-size: var(--f-sm); }
.th__note b { display: block; margin-bottom: 0.2rem; }
.th__out .caveat { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.25); font-size: 0.86rem; color: #869db0; }
.th__out :focus-visible { outline-color: #7ed3ea; }

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

/* 12 Form & contact */
.form { display: grid; gap: 1rem 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.94rem; }
.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.72rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b6bec4; 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='%23123a5e' 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(--sea); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.44rem 0.9rem; border: 1px solid #b6bec4; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--sea); border-color: var(--sea); 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.84rem; 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.2rem 1.35rem; background: var(--white); border-left: 4px solid var(--cyan); }
.side__card h2 { font-size: 1.04rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #8b98a3; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #7ed3ea; }
.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.14rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7ed3ea; }
.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.8rem; }

/* 14 Images */
.img-placeholder { background: var(--paper-2); border: 1px dashed #b0b8be; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
