/* All Star Air Quality inc. — multipage site
   Brand: navy #0B2C6B, royal blue #1657C4, red #D42027, gold stars #F5B301.
   Font: Rubik (matches the reference landing page). Pill buttons.
   GENERATED assets/pages via build.py — edit there, not in the built HTML. */

:root {
  --navy: #0b2c6b;
  --blue: #1657c4;
  --blue-dark: #0e3f94;
  --blue-tint: #eaf1fb;
  --red: #d42027;
  --red-dark: #a81319;
  --gold: #f5b301;
  --gold-dark: #d99a00;
  --ink: #14213a;
  --gray: #56607a;
  --line: #e2e6ee;
  --light: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(11, 44, 107, 0.12);
  --radius: 10px;
  --wrap: 1180px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--ink); line-height: 1.6;
  background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-align: center; color: var(--navy); font-weight: 800; }
.section-sub { text-align: center; color: var(--gray); max-width: 660px; margin: 14px auto 0; font-size: 1.05rem; }

section { padding: 72px 0; }
.eyebrow { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; }

/* ---------- buttons (rounded pills, matching the reference) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; padding: 15px 34px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: 2px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 24px; font-size: 0.82rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(212, 32, 39, 0.35); }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(22, 87, 196, 0.35); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 179, 1, 0.4); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #fff5f4; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 0.86rem; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 14px; }
.topbar .tag { display: flex; align-items: center; gap: 8px; }
.topbar .tag b { color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.topbar a { font-weight: 700; }
.topbar .topbar-right { display: flex; gap: 22px; align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a.navlink { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.nav a.navlink:hover, .nav a.navlink.active { color: var(--blue); }
.header-call { display: flex; align-items: center; gap: 14px; }
.header-call .phone-lg { font-weight: 700; font-size: 1.12rem; color: var(--navy); white-space: nowrap; }
.header-call .phone-lg small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--gray); letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; color: #fff; padding: 0;
  background: linear-gradient(115deg, rgba(9,26,58,.92) 0%, rgba(14,63,148,.80) 60%, rgba(22,87,196,.66) 100%), url("/assets/resedential-repair.jpg") center/cover no-repeat;
}
.hero .wrap { padding-top: 92px; padding-bottom: 92px; }
.hero-grid { max-width: 800px; }
.hero .stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); margin-top: 12px; font-weight: 800; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.18rem; margin-top: 18px; color: #e7eef8; max-width: 600px; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero trust badges (ribbon / group / thumbs) */
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges .badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px 9px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero-badges .badge img { width: 28px; height: 28px; }
.hero-badges .badge span { font-size: 0.8rem; font-weight: 700; line-height: 1.15; }

/* ---------- stats strip ---------- */
.stats { background: var(--light); padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 34px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--gray); font-weight: 500; font-size: 0.92rem; }

/* ---------- about / overview ---------- */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.overview-grid img { border-radius: 14px; box-shadow: var(--shadow); }
.overview-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 10px; color: var(--navy); font-weight: 800; }
.overview-grid p { color: var(--gray); margin-top: 16px; }
.checklist { margin-top: 20px; display: grid; gap: 10px; }
.checklist li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist li::before { content: "✓"; color: #fff; background: var(--blue); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; flex: 0 0 22px; margin-top: 2px; font-weight: 700; }
.overview-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- services grid ---------- */
.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; transition: .2s; border-top: 4px solid var(--blue); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h3 { margin-top: 12px; font-size: 1.16rem; color: var(--navy); font-weight: 700; }
.service-card p { color: var(--gray); font-size: 0.94rem; margin-top: 8px; flex: 1; }
.service-card .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- features (why choose) ---------- */
.features { background: var(--navy); color: #fff; }
.features h2.section-title { color: #fff; }
.features .section-sub { color: #c3d2ea; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px; }
.feature h3 { margin-top: 16px; font-size: 1.16rem; font-weight: 700; }
.feature p { margin-top: 8px; color: #cfdcf0; font-size: 0.96rem; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.step { text-align: center; }
.step .num { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; border: 2px solid var(--blue); }
.step h3 { font-size: 1.12rem; color: var(--navy); font-weight: 700; }
.step p { color: var(--gray); font-size: 0.94rem; margin-top: 8px; }

/* ---------- gallery ---------- */
.gallery { background: var(--light); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.gallery-grid figure { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: .82rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(11,44,107,.85)); }

/* ---------- testimonials ---------- */
.reviews-head { text-align: center; }
.reviews-badge { display: inline-flex; align-items: center; gap: 10px; margin: 14px auto 0; background: var(--blue-tint); color: var(--navy); font-weight: 700; padding: 10px 18px; border-radius: 40px; font-size: .95rem; }
.reviews-badge .stars { color: var(--gold); letter-spacing: 1px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.testi .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.testi p { margin-top: 12px; color: #2c2c2c; font-style: italic; }
.testi .who { margin-top: 16px; font-weight: 700; color: var(--navy); }
.testi .who small { display: block; color: var(--gray); font-weight: 500; font-style: normal; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 44px auto 0; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .sign { color: var(--blue); font-size: 1.4rem; font-weight: 700; flex: 0 0 auto; transition: transform .2s ease; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--gray); }
.faq-a p { padding: 0 22px 20px; }

/* ---------- areas / hours ---------- */
.areas { background: var(--navy); color: #fff; }
.areas .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.areas h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.areas p { color: #c3d2ea; margin-top: 14px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area-chips span, .area-chips a { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 30px; font-size: .9rem; font-weight: 500; transition: .18s; }
.area-chips a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hours-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.hours-card h3 { color: var(--navy); font-size: 1.2rem; font-weight: 700; }
.hours-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.hours-card .row:last-of-type { border-bottom: 0; }
.hours-card .row b { color: var(--red); font-weight: 700; }
.hours-card .btn { width: 100%; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.cta-band p { margin-top: 12px; font-size: 1.1rem; color: #ffe2e1; }
.cta-band .cta-btns { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- service subpage hero + layout ---------- */
.subhero { position: relative; color: #fff; }
.subhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(9,26,58,.93) 0%, rgba(14,63,148,.82) 100%), var(--bg) center/cover no-repeat; z-index: -1; }
.subhero .wrap { padding: 72px 22px; }
.subhero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; max-width: 820px; }
.subhero p { margin-top: 14px; color: #e7eef8; max-width: 620px; font-size: 1.1rem; }
.subhero .hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }

.svc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.svc-body h2 { color: var(--navy); font-size: 1.6rem; margin-top: 6px; font-weight: 800; }
.svc-body h3 { color: var(--navy); font-size: 1.25rem; margin: 34px 0 4px; font-weight: 700; }
.svc-body p { color: var(--gray); margin-top: 14px; }
.svc-body > img { border-radius: 16px; box-shadow: var(--shadow); margin: 26px auto 0; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.offer { display: flex; gap: 12px; align-items: flex-start; background: var(--light); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.offer .tick { color: #fff; background: var(--blue); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; flex: 0 0 24px; margin-top: 2px; font-weight: 700; }
.offer b { color: var(--navy); font-weight: 700; font-size: .98rem; }
.offer span { display: block; color: var(--gray); font-size: .88rem; margin-top: 2px; }

.svc-side { position: sticky; top: 98px; display: grid; gap: 22px; }
.side-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.side-card.call { background: var(--navy); color: #fff; text-align: center; }
.side-card.call h3 { color: #fff; font-weight: 700; font-size: 1.2rem; }
.side-card.call p { color: #c3d2ea; font-size: .92rem; margin: 8px 0 16px; }
.side-card.call .phone { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.side-card.call .btn { width: 100%; }
.side-card h4 { color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: 14px; }
.side-links { list-style: none; display: grid; gap: 10px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: var(--ink); font-size: .95rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--blue); }
.side-links a.active { color: var(--blue); font-weight: 700; }
.side-links a::after { content: "→"; color: var(--blue); }

/* ---------- area / location pages ---------- */
.place-group { margin-top: 26px; }
.place-group h4 { color: var(--navy); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; font-weight: 700; }
.place-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.place-chips span { background: var(--light); border: 1px solid var(--line); color: var(--navy); padding: 8px 14px; border-radius: 30px; font-size: .9rem; font-weight: 500; }
.svc-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.svc-links-grid a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; color: var(--navy); transition: .18s; }
.svc-links-grid a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }

.region-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.region-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; border-top: 4px solid var(--blue); box-shadow: var(--shadow); }
.region-card h3 { color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.region-card p { color: var(--gray); font-size: .95rem; margin-top: 10px; }
.region-card .place-chips { margin-top: 18px; }
.region-card .place-chips span { font-size: .82rem; padding: 6px 12px; }
.region-card .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- footer ---------- */
.site-footer { background: #081d43; color: #b6c2da; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.footer-brand .footer-logo { display: flex; width: fit-content; margin-inline: auto; background: #fff; padding: 10px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.footer-brand .footer-logo img { height: 72px; width: auto; display: block; }
.footer-brand p { max-width: 300px; margin-top: 14px; }
.footer-loc { margin-bottom: 16px; }
.footer-loc strong { color: #fff; display: block; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 700; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #7d8bab; }

/* ---------- floating mobile call ---------- */
.fab-call { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
}
@media (max-width: 960px) {
  .overview-grid, .areas .wrap { grid-template-columns: 1fr; }
  .feature-grid, .process-grid, .service-grid, .testi-grid, .region-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-call .phone-lg { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 78px; left: 0; right: 0; background: #fff; padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
}
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .feature-grid, .process-grid, .service-grid, .testi-grid, .offer-grid, .svc-side, .region-cards, .svc-links-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .topbar-right { display: none; }
  .topbar .wrap { justify-content: center; }
  .header-call .btn { display: none; }
  .fab-call { display: flex; }
  body { padding-bottom: 76px; }
  .hero { text-align: center; }
  .hero-grid { margin-left: auto; margin-right: auto; }
  .hero-cta, .subhero .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .subhero .hero-cta .btn { width: 100%; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .overview-cta { flex-direction: column; align-items: stretch; }
  .overview-cta .btn { width: 100%; }
  .overview-cta .phone-lg { text-align: center; width: 100%; }
}
