/* Axiom HVAC — site-level styles, built on the Axiom Design System tokens. */

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--text-body-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  border: var(--border-width-strong) solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: transparent; border-color: var(--ink-900); color: var(--ink-900); }
.btn-ghost:hover { background: var(--ink-900); color: var(--white); }
.btn-invert { background: var(--white); border-color: var(--white); color: var(--ink-900); }
.btn-invert:hover { background: var(--ink-100); color: var(--ink-900); }
.btn-outline-invert { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-invert:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--white);
  border-bottom: var(--border-hairline);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.brand img { height: 26px; }
.brand-tagline {
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 10px;
  letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--ink-500);
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: var(--space-8); }
.main-nav a { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--text-body-sm); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--ink-800); }
.main-nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: var(--space-6); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink-900);
  color: var(--white);
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 11px; letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--red-300); margin-bottom: var(--space-6);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.hero h1 { color: var(--white); font-size: var(--text-display-l); line-height: var(--lh-tight); margin-bottom: var(--space-6); }
.hero h1 span { color: var(--red-500); }
.hero p.lead { font-size: var(--text-body-lg); color: var(--ink-200); max-width: 46ch; margin-bottom: var(--space-8); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-art .spec-chip {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white); color: var(--ink-900);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono); font-size: 12px;
}
.hero-art .spec-chip b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--red-500); text-transform: uppercase; }

/* ---------- Stat bar ---------- */
.stat-bar { background: var(--ink-800); border-top: 1px solid rgba(255,255,255,0.08); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-8) var(--space-6); text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--text-display-m); color: var(--white); letter-spacing: var(--ls-tight); }
.stat span { font-family: var(--font-sans); font-size: 12px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--ink-300); }

/* ---------- Section headers ---------- */
.section { padding: var(--space-24) 0; }
.section-sunken { background: var(--color-bg-sunken); }
.section-head { max-width: 640px; margin: 0 auto var(--space-12); text-align: center; }
.section-head .axm-overline { display: block; margin-bottom: var(--space-3); }
.section-head h2 { font-size: var(--text-display-m); margin-bottom: var(--space-4); }
.section-head p { color: var(--text-muted); font-size: var(--text-body-lg); margin: 0; }

/* ---------- Service cards (real photos, not icons) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card .photo .tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: var(--red-500); color: var(--white);
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 11px; letter-spacing: var(--ls-wider); text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm);
}
.service-card .body { padding: var(--space-6); }
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--text-muted); font-size: var(--text-body-sm); margin-bottom: var(--space-4); }
.service-card .more { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: 13px; letter-spacing: var(--ls-wide); text-transform: uppercase; }

/* ---------- Divisions (Commercial / Residential) ---------- */
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.division-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-md);
}
.division-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.division-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19,19,19,0) 20%, rgba(19,19,19,0.92) 90%);
}
.division-card .content { position: relative; z-index: 2; padding: var(--space-8); color: var(--white); }
.division-card .bar { width: 40px; height: 4px; margin-bottom: var(--space-4); }
.division-card.heat .bar { background: var(--heat); }
.division-card.cool .bar { background: var(--cool); }
.division-card h3 { color: var(--white); font-size: var(--text-h1); margin-bottom: var(--space-2); }
.division-card p { color: var(--ink-200); max-width: 40ch; margin-bottom: var(--space-5); }

/* ---------- About / team ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); align-items: center; }
.about-photo { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.checklist { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: var(--fw-semibold); color: var(--text-heading); }
.checklist .mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-50); color: var(--red-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: var(--fw-bold);
}
.mini-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-8); }
.mini-photo-row .mini { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.mini-photo-row .mini img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.mini-photo-row .mini:hover img { transform: scale(1.06); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--red-500); color: var(--white); padding: var(--space-16) 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-banner p { color: var(--red-50); font-size: var(--text-body-lg); max-width: 50ch; margin: 0 auto var(--space-8); }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.footer-brand img { height: 26px; filter: brightness(0) invert(1); margin-bottom: var(--space-2); }
.footer-brand .brand-tagline { display: block; color: var(--ink-500); margin-bottom: var(--space-4); }
.footer-brand p { color: var(--ink-400); font-size: var(--text-body-sm); max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: var(--ls-wider); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer-col a { color: var(--ink-300); font-size: var(--text-body-sm); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom small { color: var(--ink-500); font-family: var(--font-mono); font-size: 11px; }

/* ---------- Page hero (subpages, e.g. Financing) ---------- */
.page-hero { background: var(--ink-900); color: var(--white); padding: var(--space-16) 0; text-align: center; }
.page-hero .wrap { max-width: 720px; }
.page-hero .hero-badge { margin: 0 auto var(--space-6); }
.page-hero h1 { color: var(--white); font-size: var(--text-display-m); margin-bottom: var(--space-4); }
.page-hero h1 span { color: var(--red-500); }
.page-hero p.lead { color: var(--ink-200); font-size: var(--text-body-lg); margin: 0 auto var(--space-8); max-width: 56ch; }
.page-hero .hero-actions { justify-content: center; }

/* ---------- Financing page ---------- */
.financing-intro { max-width: 640px; margin: 0 auto var(--space-10); text-align: center; }
.financing-intro p { color: var(--text-muted); font-size: var(--text-body-lg); }
.financing-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: var(--space-8); align-items: start; }
.calculator-card, .banner-card {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.calculator-card h3 { margin-bottom: var(--space-4); }
.calculator-card iframe#hearth-widget_calculator_v1 { width: 100%; border: 0; min-height: 480px; display: block; }
.banner-card { text-align: center; position: sticky; top: calc(var(--header-height) + var(--space-6)); }
.banner-card img { width: 100%; max-width: 310px; height: auto; margin: 0 auto var(--space-3); border-radius: var(--radius-sm); }
.banner-card .disclaimer { color: var(--text-faint); font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .service-grid { grid-template-columns: 1fr; }
  .division-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .financing-grid { grid-template-columns: 1fr; }
  .banner-card { position: static; max-width: 310px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .header-bar { height: auto; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .brand img { height: 22px; }
  .header-cta .btn { padding: var(--space-2) var(--space-3); font-size: 11px; }
  .hero-art .spec-chip { left: var(--space-3); bottom: var(--space-3); padding: var(--space-3) var(--space-4); }
  .hero-badge { flex-wrap: wrap; }
  .mini-photo-row { grid-template-columns: repeat(3, 1fr); }
}
