/* Northside Heating & Air. Demo site, all business data is fictional. */

:root {
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --ink: #14202d;
  --muted: #4a5868;
  --action: #c2410c;       /* calls-to-action only */
  --action-hover: #9a3412;
  --paper: #f2f4f7;
  --card: #ffffff;
  --line: #dde2e8;
  --tint: #e8eef4;

  --radius: 6px;
  --max: 1200px;
  --gutter: 20px;
  --section: 56px;
  --shadow: 0 1px 2px rgba(15, 42, 68, .06), 0 4px 16px rgba(15, 42, 68, .06);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-stretch: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-stretch: 78%; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-call { background: var(--action); color: #fff; }
.btn-call:hover { background: var(--action-hover); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost.on-dark { border-color: #fff; color: #fff; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--navy); }

/* ---------- Emergency strip + header ---------- */
.strip { background: var(--ink); color: #fff; font-size: 15px; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.strip a { font-weight: 700; text-decoration: none; }
.strip a:hover { text-decoration: underline; }
.strip .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.strip .hours { color: #c9d3de; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-stretch: 80%; font-weight: 800; font-size: 21px; line-height: 1; }
.brand-name small { display: block; margin-top: 3px; font-stretch: 100%; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav ul { display: flex; gap: 28px; }
.nav a { font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--navy); }
.header-actions { display: none; align-items: center; gap: 20px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; text-align: right; line-height: 1.15; }
.header-phone span { font-size: 13px; color: var(--muted); }
.header-phone strong { font-size: 20px; color: var(--navy); }
.header-actions .btn { min-height: 48px; font-size: 16px; padding: 10px 18px; }

@media (max-width: 899px) { .strip .hours { display: none; } }
@media (min-width: 900px) {
  .nav, .header-actions { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 var(--section); }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(44px, 11vw, 80px); color: var(--navy); max-width: 13ch; }
.hero-lede { max-width: 44ch; margin: 20px 0 28px; font-size: 19px; color: var(--muted); }
.hero-actions { display: grid; gap: 12px; }
@media (min-width: 640px) { .hero-actions { display: flex; flex-wrap: wrap; } }
.proof { display: grid; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.proof li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.proof .icon { color: var(--navy-2); }
.stars { display: inline-flex; gap: 2px; color: var(--navy); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.hero-visual { position: relative; }
.tag {
  position: relative; margin: -56px 16px 0; padding: 20px 20px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.tag-status { display: flex; align-items: center; gap: 10px; font-stretch: 80%; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--navy); }
.tag-status .pulse { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #15803d; box-shadow: 0 0 0 4px rgba(21, 128, 61, .18); }
.tag-status.closed .pulse { background: var(--muted); box-shadow: 0 0 0 4px rgba(74, 88, 104, .18); }
.tag dl { margin: 12px 0 0; }
.tag dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.tag dt { color: var(--muted); }
.tag dd { margin: 0; font-weight: 700; text-align: right; }
.tag dd a { color: var(--action); }

@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  .proof { display: flex; flex-wrap: wrap; gap: 16px 32px; }
  .proof li { white-space: nowrap; }
  .tag { position: absolute; left: -48px; bottom: 32px; width: 300px; margin: 0; }
}

/* ---------- Photos ---------- */
.ph { position: relative; aspect-ratio: var(--ratio, 4 / 3); overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.owner .ph { --ratio: 4 / 3; }
@media (min-width: 900px) {
  .ph-hero { --ratio: 5 / 6; }
  .owner .ph { --ratio: 1 / 1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(36px, 7vw, 56px); color: var(--navy); }
.section-head p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 18px; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
}

/* Services */
.services { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; gap: 24px; }
.service { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.service:hover { border-color: var(--navy-2); box-shadow: var(--shadow); }
.service .ph { border-radius: 0; --ratio: 16 / 10; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 24px; }
.service h3 { display: flex; align-items: center; gap: 10px; font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.service h3 .icon { width: 24px; height: 24px; color: var(--navy-2); }
.service p { color: var(--muted); }
.service a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.service a:hover { color: var(--action); }
.service a .icon { width: 18px; height: 18px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

/* How it works + owner */
.how-grid { display: grid; gap: 48px; }
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-stretch: 75%; font-weight: 800; font-size: 36px; line-height: 1; color: var(--navy-2); }
.steps h3 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
.owner { display: grid; gap: 20px; align-content: start; }
.owner blockquote { margin: 0; font-stretch: 85%; font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.owner cite { display: block; margin-top: 12px; font-style: normal; font-size: 16px; font-weight: 400; color: var(--muted); font-stretch: 100%; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: 1.3fr .7fr; gap: 80px; }
}

/* Reviews */
.reviews { background: var(--navy); color: #fff; }
.reviews .section-head h2 { color: #fff; }
.reviews .section-head p { color: #c9d3de; }
.rating { display: flex; align-items: center; gap: 16px; }
.rating-score { font-stretch: 75%; font-weight: 800; font-size: 64px; line-height: 1; }
.rating .stars { color: #fff; }
.rating small { display: block; margin-top: 4px; color: #c9d3de; font-size: 15px; }
.review-grid { display: grid; gap: 20px; }
.review { display: flex; flex-direction: column; margin: 0; padding: 24px; background: var(--navy-2); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); }
.review .stars { color: #fff; margin-bottom: 14px; }
.review blockquote { margin: 0 0 20px; font-size: 18px; line-height: 1.5; }
.review figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; color: #c9d3de; }
.review figcaption strong { display: block; color: #fff; font-size: 17px; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

/* Service area */
.area-grid { display: grid; gap: 40px; }
.hoods { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hoods li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hoods .icon { width: 18px; height: 18px; color: var(--navy-2); }
.area-note { color: var(--muted); }
@media (min-width: 900px) {
  .area-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .hoods { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
}

/* Quote form */
.quote { background: var(--card); border-top: 1px solid var(--line); }
.quote-grid { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 20px; margin-top: 8px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.contact-list .icon { margin-top: 3px; color: var(--navy-2); }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-weight: 700; color: var(--action); }
.form { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid #9aa6b3; border-radius: var(--radius); background: #fff;
  font: inherit; color: var(--ink);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input, .field select, .field textarea { scroll-margin-top: 104px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2); }
.field [aria-invalid="true"] { border-color: #b42318; }
.error { min-height: 0; margin: 0; color: #b42318; font-size: 15px; font-weight: 600; }
.error:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.consent strong { color: var(--ink); }
.form .btn { width: 100%; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-done { padding: 32px 24px; border: 1.5px solid #15803d; border-radius: var(--radius); background: var(--paper); }
.form-done h3 { font-size: 30px; color: var(--navy); margin-bottom: 8px; }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 639px) { .form-row { display: grid; gap: 20px; } }
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .form { padding: 32px; }
}

/* Final call band */
.band { background: var(--ink); color: #fff; padding: 56px 0; }
.band .wrap { display: grid; gap: 24px; }
.band h2 { font-size: clamp(34px, 6vw, 52px); }
.band p { margin: 8px 0 0; color: #c9d3de; font-size: 18px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }

/* Footer */
.footer { background: #0b1a29; color: #c9d3de; padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer h3 { font-stretch: 100%; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer a { color: #fff; }
.footer li { padding: 3px 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.demo-note { color: #9fb0c2; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Mobile call bar (always reachable by thumb) */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 42, 68, .1);
}
.callbar .btn { min-height: 52px; font-size: 17px; padding: 10px 12px; }
body.has-callbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }
}

/* Legal pages */
.legal { padding: 48px 0 var(--section); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 8vw, 60px); color: var(--navy); margin-bottom: 8px; }
.legal h2 { font-size: 30px; color: var(--navy); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal li { padding: 3px 0; }
.legal .updated { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.title { font-size: clamp(36px, 7vw, 56px); color: var(--navy); margin-bottom: 16px; }

.footer-legal.solo { margin-top: 0; padding-top: 0; border-top: 0; }
