:root {
  --navy: #022b47;
  --navy-deep: #011a2e;
  --blue: #1d8fd8;
  --blue-light: #5eb8f5;
  --heat: #e53935;
  --heat-dark: #c62828;
  --silver: #94a3b8;
  --light: #f4f8fb;
  --white: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --border: #dbe4ee;
  --shadow: 0 18px 48px rgba(2, 43, 71, 0.14);
  --shadow-lg: 0 28px 70px rgba(2, 43, 71, 0.22);
  --radius: 18px;
  --radius-lg: 24px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ── Top bar & header ── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 700;
}

header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  height: clamp(52px, 7vw, 78px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.footer-logo {
  height: 72px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.98;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--blue-light); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav-dropdown-menu a:hover { background: var(--light); color: var(--blue); }

.mobile-nav {
  background: var(--navy-deep);
  padding: 12px 4% 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav[hidden] { display: none !important; }

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.mobile-nav-group strong {
  display: block;
  margin-top: 12px;
  color: var(--blue-light);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-nav-group a { padding-left: 8px; font-weight: 600; }

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--blue), #1565c0);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(29, 143, 216, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 143, 216, 0.42);
}

.button.heat {
  background: linear-gradient(135deg, var(--heat), var(--heat-dark));
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.32);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.button.outline {
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  border: 2px solid var(--navy);
}

.button.outline-light {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.button.outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(2, 43, 71, 0.92) 0%, rgba(2, 43, 71, 0.72) 45%, rgba(2, 43, 71, 0.55) 100%),
    url("hero-hvac.webp") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 720px;
}

.hero-tagline {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-sub {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.hero p {
  margin: 0 0 28px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-phone {
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
}

.hero-phone span { color: var(--blue-light); }

/* ── Service showcase (Air Magic style tiles) ── */
.service-showcase {
  padding: 56px 0;
  background: var(--white);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.showcase-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.showcase-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.showcase-card:hover .showcase-card-bg { transform: scale(1.04); }

.showcase-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 43, 71, 0.25) 0%, rgba(2, 43, 71, 0.88) 100%);
}

.showcase-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  min-height: 280px;
}

.showcase-card h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--white);
  letter-spacing: -0.02em;
}

.showcase-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 420px;
}

.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-light);
}

.showcase-cta:after { content: "→"; }

/* ── Sections ── */
section { padding: 64px 0; }

.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.section-head.center .lead { margin: 0 auto; }

.band { background: var(--light); }

.band-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: rgba(255, 255, 255, 0.88); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h2, .panel h3 { color: var(--navy); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.check-list.light li { color: rgba(255, 255, 255, 0.92); }
.check-list.light li:before { color: var(--blue-light); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(2, 43, 71, 0.06);
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.benefit-card p { margin: 0; color: var(--muted); font-size: 15px; }

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
  background: rgba(29, 143, 216, 0.12);
}

.benefit-icon.heat { background: rgba(229, 57, 53, 0.12); }

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(2, 43, 71, 0.06);
}

.review-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card p {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--text);
  font-size: 15px;
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

/* ── Contact card (service pages) ── */
.contact-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 20px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.contact-row:last-child { border-bottom: 0; }
.contact-row span { opacity: 0.75; font-weight: 600; }
.contact-row strong { color: var(--white); }

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, #034a7a 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}

.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.88); font-size: 18px; margin-bottom: 24px; }

.cta .hero-actions { justify-content: center; }

/* ── Sitemap / related ── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sitemap-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
}

.sitemap-group a {
  display: block;
  padding: 6px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.sitemap-group a:hover { text-decoration: underline; }

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.related-pill {
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--light);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}

.related-pill:hover { border-color: var(--blue); color: var(--blue); }

/* ── Page hero (service pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-hero p {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--blue-light);
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-section h2 {
  color: var(--navy);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}

.home-financing-strip {
  background: var(--light);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.home-financing-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  text-align: center;
}

.home-financing-inner p {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.home-preapprove {
  width: auto;
  min-height: 44px;
  font-size: 15px;
  padding: 10px 20px;
  white-space: nowrap;
}

.synchrony-card {
  max-width: 920px;
  margin: 0 auto;
}

.synchrony-card-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.synchrony-card-copy h3 {
  color: var(--navy);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px;
}

.synchrony-card-copy > p {
  margin: 0 0 8px;
  color: var(--text);
}

.synchrony-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.synchrony-card-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  text-align: center;
}

.synchrony-cta {
  width: auto;
  min-height: 48px;
  font-size: 15px;
  padding: 12px 22px;
}

.synchrony-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.synchrony-note a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.synchrony-note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .synchrony-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .synchrony-card-action {
    align-items: stretch;
  }
}

/* ── Footer ── */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-grid a:hover { color: var(--blue-light); }

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover { color: var(--blue-light); }

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  gap: 10px;
  padding: 12px 4%;
  background: rgba(1, 26, 46, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mobile-cta .button { flex: 1; min-height: 44px; font-size: 14px; }

/* ── FAQ ── */
.faq-grid { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq-item p { margin: 10px 0 0; color: var(--text); }

/* ── Quote form ── */
.quote-form-section { scroll-margin-top: 96px; }

.quote-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.quote-form-field input,
.quote-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--white);
}

.quote-form-field textarea { resize: vertical; min-height: 88px; }

.quote-form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.quote-form-sms-optin {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.quote-form-sms-optin legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px;
}

.quote-form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text);
}

.quote-form-consent input { margin-top: 3px; }
.quote-form-consent a { color: var(--blue); font-weight: 700; }

.quote-form .button { width: 100%; margin-top: 18px; }

.quote-form-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.quote-form-status--loading { background: var(--light); color: var(--muted); }
.quote-form-status--success { background: rgba(29, 143, 216, 0.12); color: #0c4a6e; }
.quote-form-status--error { background: rgba(229, 57, 53, 0.1); color: #991b1b; }

/* ── Policy pages ── */
.policy-page { padding: 48px 0 64px; background: var(--light); min-height: 60vh; }

.policy-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.policy-card h1 { color: var(--navy); font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.policy-card h2 { color: var(--navy); font-size: 22px; margin: 28px 0 10px; }
.policy-card p, .policy-card li { color: var(--text); line-height: 1.65; margin-bottom: 12px; }
.policy-card ul { padding-left: 1.4rem; margin-bottom: 16px; }
.policy-card a { color: var(--blue); font-weight: 700; }
.policy-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.policy-nav-min {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.policy-nav-min .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.policy-nav-min .brand-logo { height: 56px; }
.policy-nav-min a:last-child { font-weight: 800; color: var(--navy); text-decoration: none; }

/* ── Eric chat tweaks ── */
.am-chat-avatar img { object-fit: contain; background: transparent; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .showcase-grid, .benefits-grid, .reviews-grid, .sitemap-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .quote-form-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
