/* HVAC GC - site styles */

:root {
  --red: #c8371f;
  --red-dark: #a62c17;
  --blue: #1f6fb2;
  --blue-dark: #174f80;
  --navy: #14212e;
  --ink: #1d2730;
  --body: #46525d;
  --muted: #6b7782;
  --line: #dfe3e7;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --radius: 4px;
  --max: 1180px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* Top bar */
.topbar { background: var(--navy); color: #c9d2da; font-size: .92rem; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 84px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 74px; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--head); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header-phone small {
  display: block; font-family: var(--text); font-weight: 400;
  font-size: .78rem; color: var(--muted); letter-spacing: .02em;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: var(--navy) url("../images/technician-gauges.webp") center right / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,33,46,.94) 0%, rgba(20,33,46,.85) 45%, rgba(20,33,46,.35) 100%);
}
.hero .container { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero-content { max-width: 620px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #dbe2e8; margin-bottom: 30px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: .95rem; color: var(--red);
  margin-bottom: 10px;
}
.hero .eyebrow { color: #ff8a73; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #c9d2da; font-size: 1.15rem; max-width: 680px; margin: 0; }
.breadcrumb { font-size: .9rem; color: #9fb0bf; margin-bottom: 12px; }
.breadcrumb a { color: #c9d2da; }

/* Trust strip */
.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-strip ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-strip li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.trust-strip svg { flex: 0 0 auto; color: var(--blue); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split-media { position: relative; }
.media-badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--red); color: #fff; padding: 16px 22px; border-radius: var(--radius);
  font-family: var(--head); line-height: 1.1;
}
.media-badge strong { display: block; font-size: 2rem; }
.media-badge span { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.card.heat { border-top-color: var(--red); }
.card h3 { margin-bottom: .4em; }
.card p { flex: 1; }
.card-link {
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; text-decoration: none; color: var(--ink);
}
.card-link:hover { color: var(--red); }
.card-link::after { content: " \203A"; }

.extras { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 30px; color: var(--ink); }
.extras strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 44px; }
.reason h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.reason .num {
  font-size: 1rem; color: var(--red); border: 2px solid var(--red);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: 0 0 auto;
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process li {
  list-style: none; padding: 0 24px 0 0; position: relative;
}
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--line);
  line-height: 1; margin-bottom: 8px;
}
.process h3 { font-size: 1.25rem; }
.process ol { margin: 0; padding: 0; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #fde3dd; font-size: 1.1rem; }
.cta-band .btn-light { background: #fff; color: var(--red); }
.cta-band .btn-light:hover { background: var(--navy); color: #fff; }
.cta-band .btn-outline:hover { color: var(--red); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 1.3rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 14px; }

/* Reviews */
.stars { display: inline-flex; gap: 2px; color: #f2a900; vertical-align: middle; }
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  color: #dbe2e8; text-decoration: none; font-size: 1rem;
}
.hero-rating strong { color: #fff; }
.hero-rating:hover { color: #fff; }
.hero-rating:hover span { text-decoration: underline; }

.reviews-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.reviews-head h2 { margin-bottom: 0; }
.rating-summary {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px;
}
.rating-score { font-family: var(--head); font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--ink); }
#reviews { scroll-margin-top: 80px; }
.rating-summary div > span:not(.stars) { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; display: flex; flex-direction: column;
}
.review blockquote { margin: 16px 0 22px; flex: 1; }
.review blockquote p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.review figcaption { border-top: 1px solid var(--line); padding-top: 16px; }
.review figcaption strong { display: block; font-family: var(--head); font-size: 1.2rem; color: var(--ink); }
.review figcaption span { font-size: .9rem; color: var(--muted); }
.reviews-cta { margin-top: 36px; text-align: center; }

.info-rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.info-rating:hover span { text-decoration: underline; }

/* Areas */
.area-preview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.area-columns { columns: 3; column-gap: 28px; list-style: none; padding: 0; margin: 0 0 24px; }
.area-columns li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--line); color: var(--ink); }
.area-group { margin-bottom: 48px; }
.area-group h2 { font-size: 1.8rem; padding-bottom: 10px; border-bottom: 3px solid var(--red); display: inline-block; }
.area-columns.wide { columns: 4; }
.zip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.zip-list li {
  border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: var(--radius);
  font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600;
}

/* Services page */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail.reverse .service-media { order: 2; }
.service-detail img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-nav { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.service-nav ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.service-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.service-nav a:hover { color: var(--red); }
.tag {
  display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; font-size: .9rem; color: var(--blue); margin-bottom: 6px;
}
.tag.heat { color: var(--red); }
.signs { background: var(--bg-alt); border-left: 3px solid var(--red); padding: 18px 22px; margin: 0 0 1.4em; }
.signs h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.signs ul { margin: 0; padding-left: 20px; }

.maint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.maint-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: var(--radius); padding: 34px 32px; scroll-margin-top: 100px;
}
.maint-card.heat { border-top-color: var(--red); }
.maint-card h3 { font-size: 1.7rem; }
.maint-card h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; margin: 1.4em 0 .8em; }

.split-top { align-items: start; }
.commitments li { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.commitments li:last-child { border-bottom: 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .97rem; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c4cbd2; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field .error { display: none; color: var(--red); font-size: .88rem; margin-top: 5px; }
.field.invalid .error { display: block; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.form-status.success { display: block; background: #e8f3ea; color: #1f5a2b; border: 1px solid #b9dcc0; }
.form-status.fail { display: block; background: #fbeae6; color: #8a2414; border: 1px solid #f1c3b8; }
.hp-field { position: absolute; left: -9999px; }

.contact-info { background: var(--navy); color: #c9d2da; padding: 36px; border-radius: var(--radius); }
.contact-info h2 { color: #fff; font-size: 1.8rem; }
.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .08em;
  font-size: .95rem; color: #ff8a73; margin-top: 22px;
}
.contact-info dd { margin: 4px 0 0; color: #fff; font-size: 1.08rem; }
.contact-info a { color: #fff; }
.contact-info .big { font-family: var(--head); font-size: 1.8rem; font-weight: 700; text-decoration: none; }
.map-wrap { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Prose (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b6c2; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 20px 48px; }
.site-footer h4 { color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6dee5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--head); font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: .02em; }
.footer-brand .r { color: #ef5a3f; }
.footer-brand .b { color: #4ea3e6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 20px; font-size: .9rem; }

/* Mobile call bar */
.mobile-callbar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .header-phone small { display: none; }
  .main-nav a { padding: 10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; box-shadow: 0 8px 16px rgba(20,33,46,.08);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--line); }
  .site-header .container { position: static; }
  .site-header { position: sticky; }

  .trust-strip ul { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .split, .area-preview, .service-detail, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse .service-media { order: 0; }
  .card-grid, .reasons { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .area-columns.wide { columns: 3; }
  .media-badge { left: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .site-header .container { min-height: 70px; }
  .brand img { width: 60px; }
  .header-phone { font-size: 1.15rem; }
  .hero { background-position: 70% center; }
  .hero::before { background: rgba(20,33,46,.86); }
  .hero .container { padding-top: 64px; padding-bottom: 72px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 60px 0; }
  .trust-strip ul { grid-template-columns: 1fr; gap: 14px; }
  .card-grid, .reasons, .process, .maint-grid, .review-grid { grid-template-columns: 1fr; }
  .review { padding: 24px 20px 20px; }
  .rating-summary { width: 100%; }
  .hero-rating { font-size: .95rem; }
  .maint-card { padding: 26px 20px; }
  .area-columns, .area-columns.wide { columns: 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .contact-info { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px 32px; }
  .cta-actions, .cta-actions .btn { width: 100%; }

  .mobile-callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  }
  .mobile-callbar a {
    display: flex; align-items: center; justify-content: center; height: 60px;
    font-family: var(--head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: .04em; text-decoration: none; color: #fff;
  }
  .mobile-callbar .call { background: var(--red); }
  .mobile-callbar .quote { background: var(--navy); }
}

@media (max-width: 380px) {
  .header-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
