/* Clear Air Heating & Cooling: deep teal, clear sky, a warm signal color for heat. Atkinson Hyperlegible throughout. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../shared/fonts/AtkinsonHyperlegible-Regular-m1.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../shared/fonts/AtkinsonHyperlegible-Bold-m1.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #0B4651;
  --teal-2: #0F5D6B;
  --text: #17262B;
  --muted: #4E5F65;
  --sky: #E7F2F5;
  --sky-2: #CFE5EB;
  --white: #FFFFFF;
  --heat: #B93C0B;
  --heat-bg: #FCEEE6;
  --line: rgba(11, 70, 81, .16);
  --red: #B3261E;
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--white); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--heat); }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--teal); font-weight: 700; text-wrap: balance; letter-spacing: -.015em; }
::selection { background: var(--sky-2); color: var(--teal); }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; border-radius: 6px; }
input, select, textarea, button { font: inherit; color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--heat); color: var(--white); font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.btn:hover { background: #9C3209; color: var(--white); box-shadow: 0 6px 14px -6px rgba(23, 38, 43, .45); }
.btn:disabled { background: #B8C4C7; box-shadow: none; cursor: not-allowed; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-2); box-shadow: none; }

/* Header */
.hd { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 72px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); }
.brand__name { display: grid; font-size: 1.3125rem; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.brand__name small { font-size: .8125rem; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.hd__menu { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; color: var(--teal); cursor: pointer; }
.hd__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.hd__nav ul { display: flex; gap: 24px; }
.hd__nav ul a { text-decoration: none; color: var(--text); }
.hd__nav ul a:hover { color: var(--teal); text-decoration: underline; }
.hd__tel { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }

/* Hero: wide photo band with the promise card overlapping its foot */
.hero { position: relative; background: var(--sky); padding-bottom: 72px; }
.hero__media img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; object-position: 30% 22%; }
.hero__card { position: relative; margin-top: clamp(-220px, -14vw, -120px); max-width: 680px; padding: clamp(28px, 4vw, 48px); background: var(--white); border-radius: 20px; box-shadow: 0 2px 6px rgba(11, 70, 81, .06), 0 30px 60px -30px rgba(11, 70, 81, .35); }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.08; }
.hero__card > p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.hero__more { font-weight: 700; }

/* Triage */
.triage { background: var(--sky); padding-bottom: 88px; }
.triage h2, .services h2, .tune h2, .area h2, .request h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.12; }
.triage__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.triage__list a { display: grid; gap: 6px; height: 100%; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1); }
.triage__list a:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.triage__list svg { color: var(--heat); margin-bottom: 6px; }
.triage__list li:nth-child(2) svg { color: var(--teal-2); }
.triage__list b { font-size: 1.1875rem; color: var(--teal); }
.triage__list span { color: var(--muted); font-size: .975rem; }
.gas { margin-top: 24px; padding: 16px 20px; background: var(--heat-bg); border-radius: 12px; max-width: 80ch; }
.gas b { color: var(--heat); }

/* Services */
.services { padding-block: 96px; }
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.services__photo { border-radius: 20px; overflow: hidden; position: sticky; top: 104px; }
.services__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 36px; }
.col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid currentColor; }
.col--heat h3 { color: var(--heat); }
.col--cool h3, .col--air h3 { color: var(--teal-2); }
.col ul { margin-top: 12px; display: grid; gap: 8px; }
.col li { padding-left: 18px; position: relative; }
.col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); box-shadow: inset 0 0 0 2px var(--teal-2); }
.replace { margin-top: 44px; padding: 28px; background: var(--sky); border-radius: 16px; }
.replace h3 { font-size: 1.25rem; }
.replace p { margin-top: 8px; max-width: 62ch; }

/* Tune-ups */
.tune { padding-block: 88px; background: var(--teal); color: #DCEBEE; }
.tune h2 { color: var(--white); }
.tune__lede { margin-top: 10px; max-width: 56ch; }
.tune__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.season { padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.season h3 { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.3125rem; }
.season h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.season--spring h3::before { background: #7FC8D6; }
.season--fall h3::before { background: #F09A6E; }
.season ul { margin-top: 14px; display: grid; gap: 8px; }
.season li { padding-left: 26px; position: relative; }
.season li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: #9FD7E1; }
.season a { display: inline-block; margin-top: 20px; color: var(--white); font-weight: 700; }
.season a:hover { color: #FFD9C4; }

/* Area */
.area { padding-block: 96px; }
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 64px; align-items: start; }
.area__grid > div > p { margin-top: 10px; color: var(--muted); }
.area__cols { columns: 3; column-gap: 32px; margin-top: 24px; }
.area__cols li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.zip { padding: 28px; background: var(--sky); border-radius: 20px; }
.zip h3 { font-size: 1.25rem; }
.zip label { display: block; margin-top: 14px; font-weight: 700; }
.zip__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.zip__row input { flex-basis: 8em; }
.zip__row input { flex: 1; min-width: 0; }
.zip__out { margin-top: 14px; min-height: 1.6em; }
.zip[data-result="yes"] .zip__out { color: #17603E; font-weight: 700; }
.zip[data-result="error"] .zip__out { color: var(--red); }

/* Request */
.request { padding-block: 96px; background: var(--sky); }
.request__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.request__copy p { margin-top: 12px; color: var(--muted); max-width: 40ch; }
.request__hours { margin-top: 28px !important; color: var(--text) !important; }
.request__tel { display: inline-block; margin-top: 8px; font-size: 1.25rem; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px); background: var(--white); border-radius: 20px; box-shadow: 0 1px 3px rgba(11, 70, 81, .08), 0 24px 48px -28px rgba(11, 70, 81, .3); }
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.f label, .f legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--teal); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #9BB0B5; border-radius: 10px; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 93, 107, .18); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.f__err { margin-top: 6px; color: var(--red); font-weight: 700; font-size: .95rem; }
.f__hint { margin-top: -8px; color: var(--muted); font-size: .95rem; }
.f .f__hint { margin-top: 6px; }
.when { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.when legend { width: 100%; }
.when label { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1.5px solid #9BB0B5; border-radius: 999px; font-weight: 400; color: var(--text); cursor: pointer; }
.when label:has(:checked) { border-color: var(--teal); background: var(--sky); font-weight: 700; color: var(--teal); }
.when input { accent-color: var(--teal); width: 18px; height: 18px; }
.form__summary { padding: 12px 16px; border-radius: 10px; background: #FCEAE8; color: var(--red); font-weight: 700; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__note { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.form__done:empty { display: none; }
.form__done { padding: 16px 18px; border-radius: 12px; background: var(--sky); color: var(--teal); font-weight: 700; }

/* Footer */
.ft { padding-block: 56px 40px; background: #082F37; color: #BFD3D8; font-size: .95rem; }
.ft a { color: var(--white); }
.ft a:hover { color: #FFD9C4; }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 64px; }
.ft__name { color: var(--white); font-weight: 700; font-size: 1.1875rem; margin-bottom: 6px; }
.ft__links { display: grid; gap: 8px; align-content: start; }
.ft__context { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); color: #B2D0D6; font-size: .875rem; max-width: 92ch; }

@media (max-width: 1040px) {
  .triage__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid, .area__grid, .request__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .services__photo { position: static; }
  .services__photo img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
}
@media (max-width: 899px) {
  .hd__menu { display: inline-flex; }
  .hd__nav { display: none; }
  .menu-open .hd__nav { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px -14px rgba(11, 70, 81, .3); }
  .menu-open .hd__nav ul { flex-direction: column; gap: 0; }
  .menu-open .hd__nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .hd { position: static; }
  html:not(.js) .hd__in { flex-wrap: wrap; padding-bottom: 14px; }
  html:not(.js) .hd__nav { display: flex; flex-wrap: wrap; width: 100%; margin-left: 0; gap: 12px 20px; }
  html:not(.js) .hd__nav ul { flex-wrap: wrap; gap: 6px 18px; }
  html:not(.js) .hd__menu { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__media img { height: 300px; object-position: 22% 18%; }
  .hero__card { margin-top: -64px; border-radius: 16px; }
  .hero__actions .btn { width: 100%; }
  .triage__list, .cols, .tune__grid, .form__pair { grid-template-columns: minmax(0, 1fr); }
  .area__cols { columns: 2; }
  .services, .area, .request, .tune { padding-block: 64px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
