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

/* ==========================================================================
   Harbor City HVAC Solutions — harborcityhvac.xyz
   Slate blue, harbour yellow and off-white; a sturdy slab serif.
   01 Tokens · 02 Base · 03 Two-row header · 04 Corner stack (mobile)
   05 Buttons · 06 Hero & plate card · 07 Page heads · 08 Sections
   09 Nameplate reader (signature) · 10 FAQ · 11 Form & contact · 12 Footer · 13 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --slate: #38618c; --slate-dark: #274664; --slate-soft: #e8eef5;
  --yellow: #f2b705; --yellow-soft: #fdf3d6;
  --paper: #fbfaf7; --white: #ffffff; --ink: #16202c; --text: #3c4653; --muted: #5b6672; --line: #e0ddd5;
  --focus: #274664; --err: #a8261b; --ok: #1f6b45;
  --slab: "Besley", "Rockwell", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.92rem; --f0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem); --f1: clamp(1.18rem, 1.06rem + 0.5vw, 1.45rem);
  --f2: clamp(1.75rem, 1.35rem + 1.7vw, 2.55rem); --f3: clamp(2.2rem, 1.55rem + 3vw, 3.8rem);
  --r: 8px; --wrap: 1180px; --pad-y: clamp(3.2rem, 2.4rem + 4vw, 5.8rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.68; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--slab); color: var(--ink); font-weight: 600; line-height: 1.16; 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(--slate-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 650; }
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.8rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.mt { margin-top: 2rem; }

/* 03 Two-row header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 3px solid var(--slate); }
.hd__top { display: none; background: var(--slate); color: #d5e2ef; font-size: 0.85rem; }
.hd__top .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; }
.hd__top a { color: #fff; }
.hd__top :focus-visible { outline-color: var(--yellow); }
.hd__main { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.hb-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.hb-logo svg { width: 38px; height: 38px; flex: none; }
.hb-logo b { display: block; font-family: var(--slab); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.hb-logo small { display: block; margin-top: 0.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; min-height: 44px; padding: 0 0.9rem; border: 2px solid var(--slate); border-radius: var(--r); background: transparent; color: var(--slate-dark); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.hnav, .hd__tel { display: none; }
.hd__main .btn { display: none; }
@media (max-width: 1019px) {
  .hnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.5rem 1rem 1.2rem; background: var(--paper); border-bottom: 3px solid var(--yellow); }
  .hnav.is-open { display: flex; }
  .hnav a { padding: 0.8rem 0.3rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--slab); font-size: 1.15rem; text-decoration: none; }
  .hnav a[aria-current="page"] { color: var(--slate-dark); }
}
@media (min-width: 1020px) {
  .hd__top { display: block; }
  .hd__main { min-height: 78px; }
  .nav-toggle { display: none; }
  .hnav { display: flex; gap: 1.6rem; margin-left: auto; }
  .hnav a { padding: 0.35rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
  .hnav a:hover { color: var(--ink); }
  .hnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--yellow); }
  .hd__tel { display: block; margin-left: 1.8rem; font-family: var(--slab); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
  .hd__main .btn { display: inline-flex; margin-left: 1rem; }
}

/* 04 Corner stack (mobile) */
.corner { position: fixed; right: 12px; bottom: 12px; z-index: 40; display: grid; gap: 8px; }
.corner a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); text-decoration: none; font-size: 0.68rem; font-weight: 700; line-height: 1.1; text-align: center; box-shadow: 0 8px 18px -8px rgba(22,32,44,0.55); }
.corner svg { width: 20px; height: 20px; margin-bottom: 2px; }
.corner__tel { background: var(--slate); color: #fff; }
.corner__book { background: var(--yellow); color: var(--ink); }
.corner :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.corner__tel:focus-visible { outline-color: var(--yellow); }
@media (min-width: 1020px) { .corner { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border: 0; border-radius: var(--r); background: var(--slate); color: #fff; font: inherit; font-weight: 650; 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.1em; height: 1.1em; flex: none; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--slate-dark); box-shadow: inset 0 0 0 2px var(--slate); }
.btn--line:hover { background: var(--slate); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* 06 Hero & plate card */
.hero { padding-block: clamp(2.6rem, 2rem + 3vw, 4.6rem) var(--pad-y); background: linear-gradient(180deg, var(--slate-soft), var(--paper)); }
.hero .wrap { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 3.4rem; } }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: var(--ink); max-width: 40ch; }
.plate { padding: 1.4rem; background: var(--ink); border-radius: var(--r); color: #cbd6e2; box-shadow: 0 24px 44px -30px rgba(22,32,44,0.8); }
.plate h2 { color: #fff; font-size: 1.1rem; margin-bottom: 0.8rem; }
.plate__strip { display: grid; gap: 0.5rem; padding: 1rem; background: #22303f; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.plate__strip span { display: flex; justify-content: space-between; gap: 1rem; }
.plate__strip b { color: #fff; }
.plate__strip .hi { color: var(--yellow); }
.plate p { margin: 0.9rem 0 0; font-size: var(--f-sm); }
.plate a { color: #fff; }
.plate :focus-visible { outline-color: var(--yellow); }

/* 07 Page heads */
.phead { padding-block: clamp(2.6rem, 2rem + 3vw, 4.2rem); background: var(--slate-soft); border-bottom: 1px solid var(--line); }
.phead h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem); max-width: 20ch; }
.phead p { font-size: 1.1rem; max-width: 58ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--slate); }

/* 08 Sections */
.sec { padding-block: var(--pad-y); }
.sec--white { background: var(--white); }
.sec--slate { background: var(--slate); color: #d5e2ef; }
.sec--slate h2, .sec--slate h3, .sec--slate b { color: #fff; }
.sec--slate .over { color: var(--yellow); }
.sec--slate a:not(.btn) { color: #fff; }
.sec--slate :focus-visible { outline-color: var(--yellow); }
.head { max-width: 640px; margin-bottom: 2.4rem; }
.cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); }
.card:nth-child(even) { border-top-color: var(--yellow); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.card p { margin: 0; font-size: var(--f-sm); }
.two { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 3.4rem; } .two--flip > :first-child { order: 2; } }
.two > * { min-width: 0; }
.two img, .two .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.ticks { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 3px; background: var(--yellow); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 420px); border-radius: var(--r); background: var(--slate-soft); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }

/* 09 Nameplate reader (signature) */
.reader { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 940px) { .reader { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.reader__form { padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.reader label { display: block; margin-bottom: 0.4rem; font-weight: 650; color: var(--ink); }
.reader .line { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.reader input { width: 8rem; font-size: 1.3rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; }
.reader__hint { margin-top: 0.8rem; font-size: var(--f-sm); color: var(--muted); }
.out { margin-top: 1.4rem; padding: 1.4rem; background: var(--slate-soft); border-radius: var(--r); }
.out .tons { display: block; font-family: var(--slab); font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1.1; }
.out .btu { display: block; font-weight: 650; color: var(--slate-dark); }
.out p { margin: 0.7rem 0 0; font-size: var(--f-sm); }
.out--warn { background: var(--yellow-soft); }
.fields { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.fields li { display: grid; gap: 0.15rem; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.fields b { font-family: var(--slab); font-size: 1.05rem; }
.fields span { font-size: var(--f-sm); }

/* 10 FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 880px; }
.hq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.hq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--slab); font-weight: 600; color: var(--ink); list-style: none; }
.hq summary::after { content: "+"; flex: none; color: var(--slate); font-family: var(--sans); font-size: 1.3rem; line-height: 1.1; }
.hq[open] summary::after { content: "–"; }
.hq[open] { border-left: 4px solid var(--yellow); }
.hq > div { padding: 0 1.2rem 1.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 { font-weight: 650; 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"], select, textarea { width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c4c9cf; 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='%2338618c' 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(--slate); }
.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: 0.8fr 1.2fr; gap: 3.2rem; } }
.contact > * { min-width: 0; }
.detail { padding: 1.8rem; background: var(--ink); color: #cbd6e2; border-radius: var(--r); }
.detail h2 { color: #fff; font-size: 1.2rem; }
.detail .big { display: block; margin: 0.2rem 0 1rem; font-family: var(--slab); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); color: #fff; text-decoration: none; }
.detail a { color: #fff; }
.detail dt { margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.detail dd { margin: 0.15rem 0 0; }
.detail dl { margin: 0; }
.detail :focus-visible { outline-color: var(--yellow); }

/* 12 Footer */
.ft { background: var(--ink); color: #b7c2cf; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: var(--yellow); }
.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(--slab); font-size: 1.4rem; color: #fff; }
.ft h2 { margin: 0 0 0.6rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.ft__base { padding-block: 1rem 6rem; border-top: 1px solid rgba(255,255,255,0.13); font-size: 0.82rem; }
@media (min-width: 1020px) { .ft__base { padding-bottom: 1rem; } }

/* 13 Images */
.img-placeholder { background: var(--slate-soft); border: 1px dashed #a8bcd1; border-radius: var(--r); color: var(--muted); }
.img-placeholder b { color: var(--ink); }
.strip img, .strip .img-placeholder { width: 100%; aspect-ratio: 16 / 7; max-height: 420px; object-fit: cover; }
@media (max-width: 700px) { .strip img, .strip .img-placeholder { aspect-ratio: 3 / 2; } }
