/* Sunshine State Heating and Air Conditioning
   Palette: real brand blue + brand gold, pulled from the business's live
   site (sunshinestateac.com) on 2026-07-29 — see NOTES.md "Branding update"
   for source values. Matches their snowflake/sun logo mark.
   Type: confident geometric sans headings, clean humanist sans body
   Layout note: sun-arc motif used sparingly as a graphic device (radial burst
   behind hero stat, curved section dividers) rather than literal sun icons —
   keeps the "Sunshine State" idea tasteful, not campy. */

:root {
  --sky-900: #223dae;
  --sky-800: #1e4bc0;
  --sky-700: #175dc6;
  --sky-600: #2f7ed6;
  --sky-500: #4a9ae3;
  --sky-100: #e4edfb;
  --sky-50: #f3f7fd;
  --gold-600: #a67c00;
  --gold-500: #fce802;
  --gold-400: #ffe94d;
  --gold-100: #fff9d6;
  --ink: #14293a;
  --ink-soft: #3f5568;
  --paper: #fffdf7;
  --white: #ffffff;
  --line: rgba(34, 61, 174, 0.14);
  --shadow: 0 14px 34px rgba(34, 61, 174, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font-head: "Segoe UI", "Century Gothic", "Futura", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--sky-900);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw + 0.8rem, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.3vw + 0.7rem, 1.35rem); font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--sky-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
  display: inline-block;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sky-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--sky-900);
  color: #cfe6f5;
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-icon { color: var(--gold-400); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sky-900);
  min-height: 44px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--sky-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(166, 124, 0, 0.4);
}
.brand-mark svg { width: 26px; height: 26px; }

/* Real logo (pulled from sunshinestateac.com, see NOTES.md) */
.logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  flex-shrink: 0;
}
.footer-brand .logo {
  height: 40px;
  max-height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 4px 6px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--sky-900); }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.main-nav a {
  color: var(--sky-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--sky-600);
  border-bottom-color: var(--gold-500);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-500);
  color: var(--sky-900);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 999px;
  min-height: 44px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(252, 232, 2, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}
.call-btn:hover { background: var(--gold-400); transform: translateY(-1px); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sky-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 899px) {
  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--sky-900);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 28px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,0.25);
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a {
    color: #eaf4fb;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 14px 4px;
    width: 100%;
  }
  nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
    color: var(--gold-400);
    border-bottom-color: rgba(255,255,255,0.12);
  }
  nav.main-nav .call-btn {
    margin-top: 16px;
    justify-content: center;
  }
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(34,61,174,0.5);
    z-index: 400;
  }
  .nav-scrim.open { display: block; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  nav.main-nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--sky-900) 0%, var(--sky-800) 50%, var(--sky-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,233,77,0.5), rgba(255,233,77,0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 56px 0 68px;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding: 92px 0 104px; }
}
.hero h1 { color: #fff; }
.hero .lede {
  font-size: 1.12rem;
  color: #d7ecfa;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold-500); color: var(--sky-900); box-shadow: 0 8px 20px rgba(252,232,2,0.4); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); color: var(--sky-900); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-sky { background: var(--sky-900); color: #fff; }
.btn-sky:hover { background: var(--sky-700); color: #fff; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: #d7ecfa;
  font-size: 0.92rem;
}
.trust-row strong { color: #fff; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(2px);
}
.hero-card .rating {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.hero-card .rating .num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--gold-400); }
.hero-card .stars { color: var(--gold-400); letter-spacing: 2px; font-size: 1.15rem; }
.hero-card .rating-sub { color: #cfe6f5; font-size: 0.88rem; }
.hero-card ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: #eaf4fb; font-size: 0.95rem; }
.hero-card li .ico { color: var(--gold-400); flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-sky { background: var(--sky-900); color: #dcecf6; }
.bg-sky h2, .bg-sky h3 { color: #fff; }
.bg-sky p { color: #b8d5e8; }
.bg-tint { background: var(--sky-50); }
.bg-gold-tint { background: var(--gold-100); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.service-card { padding: 26px; }
.service-card .ico {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--sky-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.service-card li { margin-bottom: 6px; }

.stat-card {
  text-align: center;
  padding: 24px 14px;
}
.stat-card .n {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-600);
}
.stat-card .l { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* Big trust banner (1,201 reviews / 4.9 rating) */
.trust-banner {
  background: linear-gradient(120deg, var(--sky-900), var(--sky-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.trust-banner::before {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,233,77,0.35), transparent 70%);
}
.trust-banner .big-num {
  position: relative;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--gold-400);
  line-height: 1;
}
.trust-banner .stars-lg { position: relative; color: var(--gold-400); font-size: 1.5rem; letter-spacing: 4px; margin: 10px 0; }
.trust-banner p { position: relative; color: #d7ecfa; max-width: 56ch; margin: 10px auto 0; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--sky-900), var(--sky-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 28px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d7ecfa; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }

/* Testimonials (static / noscript fallback) */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial .stars { color: var(--gold-600); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial .who { font-weight: 700; color: var(--sky-900); margin-top: 10px; font-size: 0.92rem; }

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-100);
  color: var(--sky-800);
  border: 1px solid rgba(74,154,227,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-gold {
  background: var(--gold-100);
  color: #7a5407;
  border-color: rgba(166,124,0,0.4);
}

/* Map */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact form */
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 700; font-size: 0.9rem; color: var(--sky-900); display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .row-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-form .row-2 { grid-template-columns: 1fr 1fr; } }
.contact-form button.btn { border: none; cursor: pointer; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sky-100); color: var(--sky-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-list a { color: var(--sky-900); font-weight: 700; text-decoration: none; }
.info-list a:hover { color: var(--sky-600); }

/* Footer */
footer.site-footer {
  background: var(--sky-900);
  color: #b8d5e8;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-name { color: #fff; }
footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: #b8d5e8; text-decoration: none; }
footer a:hover { color: var(--gold-400); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(155deg, var(--sky-900), var(--sky-700));
  color: #fff;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,233,77,0.4), rgba(255,233,77,0) 70%);
}
.page-hero h1 { color: #fff; margin-bottom: 8px; position: relative; }
.page-hero p { color: #d7ecfa; margin: 0; max-width: 60ch; position: relative; }
.breadcrumb { font-size: 0.85rem; color: #a9cbe3; margin-bottom: 14px; position: relative; }
.breadcrumb a { color: #a9cbe3; }

.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;
}

/* Sun-arc divider graphic (tasteful literal touch, used once per page) */
.sun-divider {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 20px, transparent 20px 30px);
  margin: 0 0 40px;
  border-radius: 2px;
}

/* ---------- Service tabs (React island) ---------- */
.st-root { }
.st-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.st-tab {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--sky-800);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.st-tab:hover { border-color: var(--sky-500); }
.st-tab.active {
  background: var(--sky-900);
  border-color: var(--sky-900);
  color: var(--gold-400);
}
.st-panel {
  display: grid;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .st-panel { grid-template-columns: 1fr 1fr; align-items: start; }
}
.st-panel h3 { display: flex; align-items: center; gap: 12px; }
.st-panel .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-100); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.st-panel ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.st-panel li { margin-bottom: 8px; }
