/* =========================================================
   HVAC Service Line — design tokens & site styles
   Palette: cooling (duct blue / glacier) <-> heating (ember / amber)
   Display: Space Grotesk · Body: Inter · Utility/mono: IBM Plex Mono
   Signature motif: vent-grille slats + temperature-gauge arc
   ========================================================= */

:root {
  --ink: #10202f;
  --duct-blue: #1b5e7a;
  --duct-blue-dark: #12455c;
  --glacier: #6fb8d1;
  --ember: #d9662e;
  --ember-dark: #b84f1f;
  --amber: #f0a868;
  --frost: #f4f7f8;
  --frost-2: #e9eef0;
  --slate: #4a5a63;
  --slate-light: #7a8891;
  --line: #d7e0e3;
  --white: #ffffff;
  --success: #2f7d5e;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 47, 0.06), 0 1px 1px rgba(16, 32, 47, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 32, 47, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 32, 47, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }
.lede { font-size: 1.15rem; color: var(--slate); }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--frost { background: var(--frost); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p, .section--ink .slate { color: #b9c8ce; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--ember-dark);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}
.section--ink .eyebrow { color: var(--amber); }

.icon { display: inline-flex; width: 1em; height: 1em; }
.icon svg { width: 100%; height: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ember); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ember-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--duct-blue); border-color: var(--duct-blue); }
.btn-secondary:hover { background: var(--duct-blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--duct-blue) 0%, var(--duct-blue) 48%, var(--ember) 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
}
.main-nav a.nav-link:hover { background: var(--frost); color: var(--duct-blue-dark); }
.has-children { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 260px; padding: 8px;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-children:hover .dropdown,
.has-children:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.dropdown a:hover { background: var(--frost); color: var(--duct-blue-dark); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-family: var(--font-mono); font-size: 0.95rem; }
.header-phone .icon { color: var(--ember); width: 18px; height: 18px; }

.hamburger {
  display: none; flex-direction: column; gap: 4px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer;
  border-radius: 8px;
}
.hamburger span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger:hover { background: var(--frost); }

/* ---------- mobile nav ---------- */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone span.phone-text { display: none; }

  .mobile-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    z-index: 59;
    overflow-y: auto;
    padding: 8px 20px 100px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
  .mobile-nav a { display: block; padding: 16px 4px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
  .mobile-nav .mobile-children { display: none; padding-left: 12px; }
  .mobile-nav .mobile-children.is-open { display: block; }
  .mobile-nav .mobile-children a { font-weight: 400; font-size: 0.95rem; padding: 12px 4px; color: var(--slate); }
  .mobile-caret { float: right; transition: transform 0.2s ease; }
  .mobile-caret.is-open { transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 941px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 56px;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.hero-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--duct-blue-dark);
  background: var(--frost-2); padding: 7px 12px; border-radius: 999px;
}
.hero-badge .icon { width: 14px; height: 14px; color: var(--ember); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 0.85rem; color: var(--slate-light); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
}

/* ---------- sticky mobile call CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; padding: 10px 14px; background: var(--white);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16,32,47,0.12);
}
@media (max-width: 720px) { .sticky-cta { display: flex; gap: 10px; } }
.sticky-cta .btn { flex: 1; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--glacier); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--frost-2); color: var(--duct-blue); margin-bottom: 16px;
}
.card-icon .icon { width: 24px; height: 24px; }
.card--ember .card-icon { background: #fbe6d8; color: var(--ember-dark); }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.card p { font-size: 0.94rem; margin-bottom: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--duct-blue-dark); text-decoration: none; }
.card-link .icon { width: 14px; height: 14px; transition: transform 0.15s ease; }
.card-link:hover .icon { transform: translateX(3px); }

a.card-block { text-decoration: none; color: inherit; display: block; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; position: relative; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-num { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--ember); background: #fbe6d8; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ---------- vent divider (signature) ---------- */
.vent-divider { display: flex; align-items: center; gap: 3px; margin: 0 0 34px; }
.vent-divider span { width: 3px; height: 22px; background: var(--duct-blue); opacity: 0.18; border-radius: 2px; }
.vent-divider span:nth-child(3n) { opacity: 0.4; }
.vent-divider span:nth-child(5n) { background: var(--ember); opacity: 0.55; }

/* ---------- cross-section diagram ---------- */
.xsec-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.xsec-label { font-family: var(--font-mono); font-size: 12px; fill: var(--ink); font-weight: 600; }

/* ---------- section split (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split.rev .split-media { order: 2; }

/* ---------- lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.check-list .icon { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.plain-list li:last-child { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { font-size: 1.4rem; color: var(--ember); flex-shrink: 0; transition: transform 0.2s ease; font-family: var(--font-mono); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 20px; color: var(--slate); }

/* ---------- badges / labels ---------- */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.badge-cool { background: #e2f0f5; color: var(--duct-blue-dark); }
.badge-warm { background: #fbe6d8; color: var(--ember-dark); }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--slate-light); padding: 18px 0 0; }
.breadcrumb a { text-decoration: none; color: var(--slate-light); }
.breadcrumb a:hover { color: var(--duct-blue); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- market / coverage ---------- */
.market-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--white); }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0; }
.stat { background: var(--frost); border-radius: var(--radius-sm); padding: 12px 16px; min-width: 140px; }
.stat .stat-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-light); display: block; margin-bottom: 4px; }
.stat .stat-value { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--frost); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--duct-blue); background: var(--white); }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }
.form-consent { font-size: 0.78rem; color: var(--slate-light); margin-top: 16px; }
.form-consent a { color: var(--duct-blue); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfdadf; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #b9c8ce; text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #9db0b8; font-size: 0.88rem; max-width: 320px; }
.footer-disclaimer {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem; line-height: 1.7; color: #93a5ac;
}
.footer-disclaimer strong { color: #cfdadf; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: #7c8f97; }
.footer-bottom a { color: #7c8f97; text-decoration: underline; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w { max-width: 680px; }
.center-col { margin-left: auto; margin-right: auto; }
.section-head { max-width: 700px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.small { font-size: 0.85rem; color: var(--slate-light); }
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }

/* ---------- legal pages ---------- */
.legal-body h2 { margin-top: 2em; font-size: 1.35rem; }
.legal-body h3 { margin-top: 1.4em; font-size: 1.05rem; }
.legal-body ul { padding-left: 1.2em; color: var(--slate); }
.legal-body li { margin-bottom: 0.5em; }
.legal-meta { font-size: 0.85rem; color: var(--slate-light); margin-bottom: 2em; }

/* ---------- reviews ---------- */
.review-note {
  background: var(--frost-2); border: 1px dashed var(--slate-light);
  border-radius: var(--radius-md); padding: 24px; font-size: 0.94rem; color: var(--slate);
}
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars .icon { width: 16px; height: 16px; }

/* ---------- table ---------- */
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.compare th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-light); }

/* ---------- article ---------- */
.article-body h2 { margin-top: 1.6em; font-size: 1.3rem; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--slate-light); font-size: 0.85rem; font-family: var(--font-mono); margin-bottom: 8px; }
