/* ===================================================
   All City A/C & Heating — Main Stylesheet
   2026 design refresh
   =================================================== */

/* --- Design tokens -------------------------------- */
:root {
  --ink: #101820;
  --muted: #4e5c68;
  --line: #dce5ec;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --navy: #102f4a;
  --blue: #176ea8;
  --blue-dark: #0f5280;
  --orange: #f58220;
  --orange-dark: #d85f13;
  --green: #188a5a;
  --shadow-sm: 0 2px 8px rgba(16, 47, 74, .10);
  --shadow: 0 20px 56px rgba(16, 47, 74, .16);
  --shadow-hover: 0 28px 72px rgba(16, 47, 74, .22);
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --transition: 200ms var(--ease);
}

/* --- Reset & base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Accessibility: focus-visible only ------------ */
*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid rgba(23, 110, 168, .55);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand img { width: 154px; }
.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav a,
.header-call,
.button,
.site-footer a,
.contact-card a,
.service-link { text-decoration: none; }

.nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--soft); color: var(--blue); }

.header-call {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.header-call:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 130, 32, .35);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8, 30, 48, .97) 0%, rgba(10, 42, 68, .90) 44%, rgba(10, 42, 68, .52) 100%),
    var(--hero-image) center / cover no-repeat;
}
.hero-copy { max-width: 790px; }

.eyebrow {
  margin: 0 0 10px;
  color: #ffb066;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
  font-weight: 800;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 700;
}
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.25; font-weight: 700; }

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 4px 14px rgba(245, 130, 32, .28);
}
.button-primary:hover {
  box-shadow: 0 8px 24px rgba(245, 130, 32, .42);
}

.button-secondary {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.button-secondary:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .8);
}

.button-dark {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(16, 47, 74, .28);
}
.button-dark:hover {
  background: #0a2035;
  box-shadow: 0 8px 24px rgba(16, 47, 74, .38);
}

/* ===================================================
   PROOF PILLS
   =================================================== */
.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.proof-list li {
  padding: 7px 14px;
  color: #fff;
  font-size: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ===================================================
   QUOTE / LEAD PANEL
   =================================================== */
.quote-panel {
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}
.quote-panel h2 { font-size: clamp(26px, 3vw, 36px); }
.quote-panel p,
.service-card p,
.step-card p,
.section-copy p,
.benefit-list span,
.location-band p,
.fine-print { color: var(--muted); }

.lead-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.spanish-page .form-grid { grid-template-columns: 1fr 1fr; }
.spanish-page .hero { grid-template-columns: minmax(0, .95fr) minmax(420px, .72fr); }

label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #cbd5df;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:hover, select:hover, textarea:hover {
  border-color: #a8b8c5;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 110, 168, .18);
  outline: none;
}
textarea { resize: vertical; }

.form-button { width: 100%; min-height: 54px; font-size: 16px; }
.fine-print { margin: 0; font-size: 13px; line-height: 1.5; }

/* ===================================================
   SECTION LAYOUTS
   =================================================== */
.section,
.split-section,
.location-band {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
}
.section { background: #fff; }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 360px);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}
.section-header p { color: var(--muted); font-size: 17px; }

/* ===================================================
   SERVICE / STEP CARDS
   =================================================== */
.service-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card,
.step-card {
  min-height: 210px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover,
.step-card:hover {
  border-color: #b8cdd9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.service-card strong,
.step-card strong {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { color: var(--blue-dark); gap: 8px; }
.service-link::after { content: "→"; }

/* ===================================================
   SPLIT SECTION
   =================================================== */
.split-section {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-section.alt { background: #fff; }
.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.media-frame:hover img { transform: scale(1.02); }
.section-copy { max-width: 720px; }

.benefit-list { display: grid; gap: 14px; margin-top: 24px; }
.benefit-list div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.benefit-list div:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}
.alt .benefit-list div { background: var(--soft); }

/* ===================================================
   REVIEW / TRUST BAND
   =================================================== */
.review-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: clamp(36px, 5vw, 60px) clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: #fff;
}
.review-band div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  transition: background var(--transition), border-color var(--transition);
}
.review-band div:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .25);
}
.review-band strong { display: block; margin-bottom: 6px; font-size: 20px; }
.review-band span { color: rgba(255, 255, 255, .74); font-size: 15px; }

/* ===================================================
   STATS STRIP
   =================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 36px);
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
  background: var(--soft);
}
.testimonials-header { margin-bottom: 36px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.testimonial-author span {
  font-size: 13px;
  color: var(--muted);
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-section {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
  background: #fff;
}
.faq-section .section-header { margin-bottom: 36px; }
.faq-list { max-width: 860px; display: grid; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--blue);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}
.faq-answer {
  display: none;
  padding: 0 4px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.faq-answer p { margin: 0; }
.faq-item.open .faq-answer { display: block; }

/* ===================================================
   LOCATION BAND
   =================================================== */
.mobile-call-bar { display: none; }

.location-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  color: #fff;
  background: #0c253b;
}
.contact-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card a {
  color: var(--blue);
  font-weight: 700;
  transition: color var(--transition);
}
.contact-card a:hover { color: var(--blue-dark); }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, .72);
  background: #081e30;
  font-size: 14px;
}
.site-footer a {
  color: #fff;
  font-weight: 600;
  transition: color var(--transition);
}
.site-footer a:hover { color: #ffb066; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================================
   CONTENT PAGES (about, contact, privacy)
   =================================================== */
.content-page { background: #fff; }

.page-hero {
  padding: clamp(52px, 7vw, 86px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8, 30, 48, .97), rgba(8, 30, 48, .76)),
    var(--hero-image) center / cover no-repeat;
}
.page-hero h1 { max-width: 950px; }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 56px);
}
.content-main { max-width: 840px; }
.content-main h2 {
  margin-top: 36px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.01em;
}
.content-main h2:first-child { margin-top: 0; }
.content-main p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.content-main ul { padding-left: 22px; }
.content-main li { margin-bottom: 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.content-main strong { color: var(--ink); }

.side-panel {
  align-self: start;
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.side-panel a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}
.side-panel a:hover { color: var(--blue-dark); }

.mini-hero {
  padding: clamp(52px, 7vw, 86px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8, 30, 48, .97), rgba(8, 30, 48, .76)),
    var(--hero-image) center / cover no-repeat;
}
.mini-hero h1 { max-width: 980px; }
.mini-hero .hero-lede { max-width: 820px; }

/* ===================================================
   RESPONSIVE — TABLET
   =================================================== */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero,
  .spanish-page .hero,
  .split-section,
  .location-band,
  .content-wrap,
  .section-header { grid-template-columns: 1fr; }
  .service-grid,
  .steps-grid,
  .review-band,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--line); }
}

/* ===================================================
   RESPONSIVE — MOBILE
   =================================================== */
@media (max-width: 660px) {
  body { padding-bottom: 72px; }
  .site-header { gap: 12px; min-height: 70px; }
  .brand img { width: 120px; }
  .header-call { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 36px; padding-bottom: 36px; }
  .form-grid,
  .spanish-page .form-grid,
  .service-grid,
  .steps-grid,
  .review-band,
  .testimonials-grid,
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: none; }
  .proof-list li,
  .button { width: 100%; justify-content: center; }
  .faq-question { font-size: 16px; }

  .mobile-call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 28px rgba(245, 130, 32, .45);
  }
}

/* ===================================================
   UTILITY
   =================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
