:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --navy: #0c4a6e;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --gold: #f59e0b;
  --success: #047857;
  --danger: #b91c1c;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

#siteHeader.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.logo span {
  color: var(--primary);
}

#navToggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

#navToggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#navToggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#navToggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

#navToggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#siteNav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
}

#siteNav.is-open {
  display: flex;
}

#siteNav a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
}

#siteNav a:hover,
#siteNav a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  text-align: center;
}

#contactForm button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#contactForm button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* Hero */
.hero {
  padding: 40px 0 28px;
}

.hero-inner {
  display: grid;
  gap: 28px;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.trust-badges {
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .trust-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-panel {
  background: linear-gradient(160deg, var(--navy), var(--primary));
  color: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.hero-panel p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.hero-panel ul {
  margin: 0;
  padding-left: 18px;
}

/* Stats */
.stats {
  padding: 8px 0 36px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.stat {
  text-align: center;
  padding: 18px 10px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.stat p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 28px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 40rem;
}

.services-grid,
.reviews-grid {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* About */
.about-grid {
  display: grid;
  gap: 20px;
}

.hvac-art {
  background: linear-gradient(180deg, #bae6fd, #e0f2fe 55%, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 280px;
  display: grid;
  place-items: end center;
  padding: 24px;
  overflow: hidden;
}

.condenser {
  width: min(260px, 100%);
}

.about-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-copy li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
}

.about-copy li span {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item.is-open .faq-q::after {
  content: "–";
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a p {
  margin: 0;
}

/* Reviews */
.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.review-meta strong {
  color: var(--navy);
}

.review-meta span {
  color: var(--muted);
}

/* Contact */
.contact-wrap {
  display: grid;
  gap: 18px;
}

.contact-card,
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.err-msg {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
}

.err-msg.is-visible {
  display: block;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

/* Footer */
.site-footer {
  padding: 36px 0 110px;
  background: var(--navy);
  color: #e0f2fe;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin: 0 0 8px;
}

.site-footer p,
.site-footer li {
  color: #bae6fd;
}

.site-footer ul {
  margin: 0;
  padding-left: 18px;
}

.copyright {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

/* Mobile sticky bar */
.mobile-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
}

.mobile-sticky a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.4);
}

@media (min-width: 768px) {
  #navToggle {
    display: none;
  }

  .header-inner {
    gap: 24px;
  }

  #siteNav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    inset: auto;
    border: 0;
    padding: 0;
    background: transparent;
    gap: 4px;
    margin-left: auto;
  }

  #siteNav a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .btn-nav {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    white-space: nowrap;
  }

  .hero-inner,
  .about-grid,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .stats-grid,
  .services-grid,
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-sticky {
    display: none;
  }

  .site-footer {
    padding-bottom: 36px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 64px 0 40px;
  }

  .section {
    padding: 48px 0;
  }
}
