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

/* ==========================================================================
   Preston HVAC Experts — prestonhvac.xyz
   Cool white, river blue and wheat. Overlay-card hero, nav beside the logo.
   01 Tokens · 02 Base · 03 Header · 04 Action row (mobile) · 05 Buttons
   06 Hero · 07 Page heads · 08 Sections · 09 Heat-wave check (signature)
   10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --river: #1f5673; --river-2: #2a6d90; --river-soft: #e4eef3; --snow: #f4f7f9; --snow-2: #e8eef1; --white: #ffffff;
  --wheat: #c98f21; --wheat-dark: #9a6c12; --wheat-soft: #fbf0d9;
  --ink: #16242c; --text: #435159; --muted: #667680; --line: #d8e1e6;
  --focus: #1f5673; --err: #a32626; --ok: #2b6b52;
  --disp: "Amiko", "Trebuchet MS", 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.08rem); --f1: clamp(1.15rem, 1.04rem + 0.5vw, 1.4rem);
  --f2: clamp(1.7rem, 1.35rem + 1.6vw, 2.4rem); --f3: clamp(2rem, 1.5rem + 2.5vw, 3.3rem);
  --r: 6px; --wrap: 1140px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 5.6rem);
}

/* 02 Base */
body { background: var(--snow); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.72; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.22; 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); text-underline-offset: 3px; }
a:hover { color: var(--wheat-dark); }
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.7rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--wheat-dark); }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 3px solid var(--river); }
.hd .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 64px; }
.pr-logo { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; color: var(--ink); text-decoration: none; }
.pr-logo svg { width: 28px; height: 28px; flex: none; }
.pr-logo b { font-family: var(--disp); font-size: 1.22rem; font-weight: 700; }
.pr-logo small { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--river-2); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: auto; width: 44px; height: 42px; padding: 0; border: 1.5px solid var(--river); border-radius: var(--r); background: transparent; color: var(--river); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.pnav { display: none; }
.hd__tel { display: none; }
@media (max-width: 1019px) {
  .hd .btn { display: none; }
  .pnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--white); border-bottom: 3px solid var(--river); }
  .pnav.is-open { display: flex; }
  .pnav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.1rem; text-decoration: none; }
  .pnav a[aria-current="page"] { color: var(--wheat-dark); }
}
@media (max-width: 400px) { .pr-logo small { display: none; } }
@media (min-width: 1020px) {
  .hd .wrap { min-height: 76px; }
  .nav-toggle { display: none; }
  .pnav { display: flex; gap: 1.5rem; }
  .pnav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
  .pnav a:hover { color: var(--ink); }
  .pnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--wheat); }
  .hd__tel { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; color: var(--ink); font-family: var(--disp); font-size: 1.12rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .hd__tel svg { width: 17px; height: 17px; color: var(--river-2); }
  .hd .btn { display: inline-flex; }
}

/* 04 Action row (mobile) — sits directly under the sticky header */
.actionrow { position: sticky; top: 64px; z-index: 29; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.actionrow a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.75rem 0.5rem; background: var(--river); color: #fff; font-weight: 700; font-size: 0.96rem; text-decoration: none; }
.actionrow a + a { background: var(--wheat-dark); }
.actionrow svg { width: 16px; height: 16px; }
.actionrow a:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
@media (min-width: 1020px) { .actionrow { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border: 0; border-radius: var(--r); background: var(--river); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--wheat { background: var(--wheat-dark); }
.btn--wheat:hover { background: var(--ink); }
.btn--line { background: transparent; color: var(--river); box-shadow: inset 0 0 0 2px var(--river); }
.btn--line:hover { background: var(--river); color: #fff; }
.btn--snow, .sec--river a.btn--snow, .verdict a.btn--snow { background: var(--white); color: var(--ink); }
.btn--snow:hover, .sec--river a.btn--snow:hover, .verdict a.btn--snow:hover { background: var(--snow-2); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* 06 Hero — photograph with an overlapping white card */
.hero { position: relative; padding-bottom: var(--pad-y); background: var(--snow); }
.hero__img { position: relative; }
.hero__img img, .hero__img .img-placeholder { display: block; width: 100%; height: clamp(230px, 38vw, 460px); object-fit: cover; }
.hero__card { position: relative; margin-top: -2.4rem; padding: clamp(1.6rem, 1.1rem + 2.4vw, 2.8rem); background: var(--white); border-top: 4px solid var(--wheat); border-radius: var(--r); box-shadow: 0 24px 46px -34px rgba(22,36,44,0.7); }
@media (min-width: 900px) { .hero__card { max-width: 760px; margin-top: -5rem; } }
.hero__card h1 { max-width: 18ch; }
.hero__card p.lede { font-size: var(--f1); line-height: 1.55; color: var(--ink); max-width: 46ch; }
.stats { display: grid; gap: 1.2rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.stats li { padding-left: 1rem; border-left: 3px solid var(--river); font-size: var(--f-sm); }
.stats b { display: block; font-family: var(--disp); font-size: 1.1rem; color: var(--ink); }

/* 07 Page heads */
.phead { padding-block: clamp(2.4rem, 1.9rem + 2.6vw, 3.8rem); background: var(--river); color: #cfe0e9; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.06rem; max-width: 56ch; }
.phead a:not(.btn) { color: #fff; }
.phead .over { color: #f0cc84; }
.phead :focus-visible { outline-color: #f0cc84; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.85rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--snow { background: var(--snow-2); }
.sec--river { background: var(--river); color: #cfe0e9; }
.sec--river h2, .sec--river h3, .sec--river b { color: #fff; }
.sec--river .over { color: #f0cc84; }
.sec--river a:not(.btn) { color: #fff; }
.sec--river :focus-visible { outline-color: #f0cc84; }
.head { max-width: 620px; margin-bottom: 2.4rem; }
.grid2 { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
.card { padding: 1.7rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.sec--white .card { background: var(--snow); border-color: transparent; }
.card h3 { font-size: 1.28rem; }
.card ul { margin: 0.8rem 0 1.3rem; padding: 0; list-style: none; font-size: var(--f-sm); }
.card li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; }
.card li::before { content: ""; position: absolute; left: 0.1rem; top: 1rem; width: 8px; height: 2px; background: var(--wheat); }
.split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.2rem; } .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); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.steps li { position: relative; padding: 0.9rem 0 0.9rem 2.8rem; border-bottom: 1px solid var(--line); }
.sec--river .steps li { border-bottom-color: rgba(255,255,255,0.2); }
.steps li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--wheat-soft); color: var(--wheat-dark); font-size: 0.82rem; font-weight: 700; }
.sec--river .steps li::before { background: rgba(255,255,255,0.15); color: #fff; }
.steps b { display: block; font-family: var(--disp); font-size: 1.08rem; }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 400px); border-radius: var(--r); background: var(--river-soft); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; } }

/* 09 Heat-wave check (signature) */
.hw { display: grid; gap: 1.8rem; }
@media (min-width: 900px) { .hw { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.hw__form { padding: clamp(1.4rem, 1rem + 2vw, 2rem); background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.hw__form .row { margin-bottom: 1.2rem; }
.hw__form .row:last-child { margin-bottom: 0; }
.hw__form label { display: block; margin-bottom: 0.35rem; font-weight: 700; color: var(--ink); }
.hw__form .hint { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.temps { display: grid; gap: 1rem; }
@media (min-width: 520px) { .temps { grid-template-columns: 1fr 1fr; } }
.verdict { padding: clamp(1.4rem, 1rem + 2vw, 2rem); background: var(--river); color: #cfe0e9; border-radius: var(--r); }
.verdict h2 { color: #fff; font-size: 1.22rem; }
.verdict :focus-visible { outline-color: #f0cc84; }
.ver .tag { display: inline-block; margin-bottom: 0.7rem; padding: 0.28rem 0.8rem; border-radius: 99px; background: #f0cc84; color: var(--ink); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ver h3 { color: #fff; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
.ver p { font-size: var(--f-sm); }
.ver ul { margin: 0.8rem 0 0; padding-left: 1.2em; font-size: var(--f-sm); }
.ver li { margin-bottom: 0.35rem; }
.notecard { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .notecard { grid-template-columns: repeat(2, 1fr); } }
.notecard li { padding: 1.4rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); font-size: var(--f-sm); }
.sec--white .notecard li { background: var(--snow); border-color: transparent; }
.notecard b { display: block; font-family: var(--disp); font-size: 1.06rem; color: var(--ink); }

/* 10 FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 860px; }
.pq { padding: 0.2rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.pq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; font-family: var(--disp); font-size: 1.08rem; font-weight: 700; color: var(--ink); list-style: none; cursor: pointer; }
.pq summary::after { content: "+"; flex: none; color: var(--wheat-dark); }
.pq[open] summary::after { content: "–"; }
.pq > div { padding: 0 0 1rem; }

/* 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, .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.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c3d0d7; 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='%231f5673' 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(--river); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
.picks legend { margin-bottom: 0.5rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.5rem 0.95rem; border: 1px solid #c3d0d7; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--river); border-color: var(--river); 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.4rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3.2rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.4rem 1.5rem; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.side__card h2 { font-size: 1.08rem; }
.side__card .big { display: block; margin: 0.2rem 0 0.3rem; font-family: var(--disp); font-size: 1.45rem; color: var(--ink); text-decoration: none; }

/* 12 Footer */
.ft { background: var(--ink); color: #b3c2c9; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #f0cc84; }
.ft__row { display: grid; gap: 1.6rem; 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(--disp); font-size: 1.25rem; color: #fff; }
.ft h2 { margin: 0 0 0.6rem; font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f0cc84; }
.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.15); font-size: 0.82rem; }

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