/* Layout: navy airflow band up top, cool light ground below, one 1120px column with wrapping two-up rows */
:root {
  --ground: #F4F7FA;
  --surface: #FFFFFF;
  --ink: #0F2A44;
  --muted: #4A5F73;
  --line: #D6E1EB;
  --link: #1F6FA3;
  --band: #0F2A44;
  --band-ink: #FFFFFF;
  --band-muted: #B9CCDD;
  --sky: #5EC8F2;
  --cta: #F2B84B;
  --cta-ink: #1B1A12;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B1724; --surface: #12243A; --ink: #E8F0F7; --muted: #A9BCCE;
    --line: #23394F; --link: #7CC4EA; --band: #08182A; --band-ink: #FFFFFF;
    --band-muted: #A9BCCE; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0B1724; --surface: #12243A; --ink: #E8F0F7; --muted: #A9BCCE;
  --line: #23394F; --link: #7CC4EA; --band: #08182A; --band-ink: #FFFFFF;
  --band-muted: #A9BCCE; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--band);
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--link);
}
.band .eyebrow { color: var(--sky); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--band); color: var(--band-ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--band-ink); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { display: block; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--sky); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--band-ink); text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px; font-weight: 700;
  font-family: var(--body); font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
}
.btn-call { background: var(--cta); color: var(--cta-ink); }
.btn-call:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sky); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-header details[open] .nav-links { display: flex; }
  .menu-toggle {
    display: inline-flex; list-style: none; cursor: pointer; color: var(--band-ink);
    min-height: 44px; align-items: center; padding: 0 12px; border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); font-weight: 600;
  }
  .menu-toggle::-webkit-details-marker { display: none; }
  .header-call { display: none; }
  .site-header details { order: 3; width: 100%; }
}
@media (min-width: 861px) {
  .site-header details > summary { display: none; }
  .site-header details .nav-links { display: flex; }
}

/* Hero band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none; opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C 300 20, 600 120, 1200 60' fill='none' stroke='%235EC8F2' stroke-width='3'/%3E%3Cpath d='M0 100 C 320 60, 640 150, 1200 95' fill='none' stroke='%235EC8F2' stroke-width='2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px; padding-block: 64px 88px; align-items: start; position: relative; z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .lede { color: var(--band-muted); font-size: 1.15rem; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--band-muted); font-size: 0.95rem; list-style: none; padding: 0; margin: 0; }
.hero-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-right: 8px; vertical-align: middle; }
.page-hero .wrap { padding-block: 48px 72px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.page-hero .lede { color: var(--band-muted); font-size: 1.1rem; max-width: 40em; }
.crumbs { font-size: 0.9rem; color: var(--band-muted); }
.crumbs a { color: var(--band-muted); }

/* Checklist card: the parts of an HVAC system we clean */
.system-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 24px; min-width: 0;
}
.system-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.system-card p { color: var(--band-muted); font-size: 0.95rem; margin-bottom: 14px; }
.system-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.system-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.system-list li:first-child { border-top: 0; }
.system-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--sky); }
.system-list strong { display: block; font-weight: 600; }
.system-list span { color: var(--band-muted); font-size: 0.9rem; }

/* Sections */
main section { padding-block: 64px; }
main section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 44em; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 42em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--link); }
.service p { color: var(--muted); }
.service .more { margin-top: auto; font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tag-row li { font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1rem;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--band); color: var(--sky); margin-bottom: 4px;
}
.steps p { color: var(--muted); font-size: 0.97rem; }

.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; list-style: none; padding: 0; margin: 0; }
.signs li { padding-left: 18px; border-left: 3px solid var(--sky); min-width: 0; }
.signs strong { display: block; }
.signs span { color: var(--muted); font-size: 0.97rem; }

.faq { display: flex; flex-direction: column; gap: 0; max-width: 48em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--link); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.areas a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.areas a:hover { border-color: var(--link); color: var(--link); }
.areas small { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.plain-areas { color: var(--muted); margin-top: 16px; }

.nap { display: grid; gap: 14px; }
.nap dt { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--display); font-weight: 600; }
.nap dd { margin: 2px 0 0; font-size: 1.05rem; }
.nap .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.3rem; }

.cta-band .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.cta-band p { color: var(--band-muted); margin-top: 6px; }

/* Form */
.quote-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.quote-form label { font-weight: 600; font-size: 0.95rem; display: flex; flex-direction: column; gap: 6px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-status { font-weight: 600; color: var(--link); }
.btn-submit { background: var(--band); color: var(--band-ink); justify-self: start; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--band-ink); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 4px; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px; font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero .wrap, .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services-grid, .signs, .steps, .areas, .quote-form .row { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 40px 72px; }
  main section { padding-block: 48px; }
}

/* Checklist on light surfaces */
.system-list.incl li { border-top-color: var(--line); }
.system-list.incl svg { color: var(--link); }
.system-list.incl strong { font-weight: 500; }

/* Top bar */
.topbar { background: var(--band); color: var(--band-muted); font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 6px; }
.topbar a { color: var(--band-ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .topbar .wrap span { display: none; } .topbar .wrap { justify-content: center; } }

/* Panels and lists */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.panel .btn { align-self: flex-start; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.check-list svg { width: 20px; height: 20px; color: var(--link); margin-top: 3px; }
.prose h3 { margin-top: 8px; }
.link-tags a { text-decoration: none; color: var(--ink); }
.link-tags li:hover { border-color: var(--link); }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }

/* Map */
.map-embed { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-card { display: flex; gap: 14px; align-items: center; padding: 24px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.map-card svg { width: 32px; height: 32px; color: var(--link); flex: none; }
.map-card span span { display: block; color: var(--link); font-weight: 600; }

/* Blog */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-card h2, .post-card h3 { font-size: 1.15rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--link); }
.post-card p { color: var(--muted); }
.post-card .more { margin-top: auto; font-weight: 600; }
.post-date { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.post h2 { font-size: 1.4rem; margin-top: 12px; }
.byline { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 14px; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

/* Form extras */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* Mobile call bar */
.mobile-call { display: none; }
@media (max-width: 860px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .mobile-call {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    align-items: center; justify-content: center; gap: 8px; min-height: 52px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--cta); color: var(--cta-ink); font-weight: 700; text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
  body { padding-bottom: 56px; }
}
@media (max-width: 560px) { .posts-grid { grid-template-columns: minmax(0, 1fr); } }

/* Job photos and video */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.photo { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-width: 100%; height: auto; }
.photo figcaption { padding: 12px 14px; font-size: 0.92rem; color: var(--muted); }
.photo-feature img { aspect-ratio: 4 / 3; }
.photo-panel img { aspect-ratio: 4 / 3; }
.photo-panel { border-radius: 6px; }
.ba-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.ba-before { background: #7A2E1F; color: #FFFFFF; }
.ba-after { background: #0F2A44; color: #5EC8F2; }
.video { margin: 24px 0 0; max-width: 720px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.video video { display: block; width: 100%; height: auto; max-width: 100%; background: #000; }
.video figcaption { padding: 12px 14px; font-size: 0.92rem; color: var(--muted); }
.footer-logo { width: 72px; height: 72px; margin-bottom: 12px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .video video { animation: none; } }
