/* ===== SunState Insulation — Global Stylesheet ===== */

:root {
  --navy: #0A1628;
  --orange: #E8531A;
  --orange-light: #FF6B35;
  --white: #FFFFFF;
  --surface: #F8F7F4;
  --text-dark: #1A1A2E;
  --text-muted: #5A6478;
  --border-light: #E2E5EC;
  --navy-muted-text: #B8C4D4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
}

h1, h2, h3 { color: var(--text-dark); line-height: 1.25; }

h2.section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  h2.section-heading { font-size: 26px; }
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}

.section-head .section-sub { margin-left: auto; margin-right: auto; }

.accent-line {
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-head .accent-line { margin-left: auto; margin-right: auto; }

h3 {
  font-weight: 600;
  font-size: 20px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-block { width: 100%; }

/* ===== Header / Nav ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}

.logo .logo-main { color: var(--white); font-weight: 600; letter-spacing: 0.5px; }
.logo .logo-divider { width: 1px; height: 18px; background: var(--orange); display: inline-block; }
.logo .logo-sub { color: var(--orange); font-weight: 400; letter-spacing: 0.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--orange-light); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 500;
}

.nav-cta:hover { background: var(--orange-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
  transition: transform 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open {
    max-height: 420px;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta {
    margin: 16px 24px;
    border-radius: 4px;
    text-align: center;
    display: block;
  }
  .hamburger { display: flex; }
}

/* ===== Hero ===== */

.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 200px 0 100px;
}

.hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 52px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero .subhead {
  font-size: 20px;
  color: var(--navy-muted-text);
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-badges span {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.trust-badges span .check { color: var(--orange-light); margin-right: 6px; }

@media (max-width: 768px) {
  .hero { padding: 140px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero .subhead { font-size: 17px; }
}

/* Inner page hero (city pages) */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 160px 0 64px;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--white);
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.breadcrumb {
  color: var(--navy-muted-text);
  font-size: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--orange-light); }

@media (max-width: 768px) {
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1 { font-size: 30px; }
}

/* ===== Stats bar ===== */

.stats-bar {
  background: var(--surface);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-weight: 700;
  font-size: 38px;
  color: var(--orange);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ===== Cards ===== */

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
  padding: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--orange);
}

.service-icon svg { width: 100%; height: 100%; }

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }

.learn-link { color: var(--orange); font-weight: 500; font-size: 14px; }
.learn-link:hover { color: var(--orange-light); }

/* ===== Why section ===== */

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.why-grid p { color: var(--text-muted); font-size: 16px; margin-top: 16px; }

.why-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 40px;
}

.why-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}

.why-card ul li:last-child { border-bottom: none; }

.why-card ul li .check { color: var(--orange-light); flex-shrink: 0; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Areas grid ===== */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.area-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
}

.area-card .area-name { font-weight: 600; display: block; }
.area-card .area-tag { font-size: 13px; color: var(--text-muted); }
.area-card .arrow { color: var(--orange); font-size: 20px; }

.areas-extra {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}

.areas-extra strong { color: var(--text-dark); }

@media (max-width: 992px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* ===== FPL banner ===== */

.fpl-banner {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.fpl-banner h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.fpl-banner p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 16px;
  opacity: 0.95;
}

.btn-white {
  background: var(--white);
  color: var(--orange);
}

.btn-white:hover {
  background: var(--surface);
}

/* ===== Testimonials ===== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-card p.quote {
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 20px;
}

.testimonial-card .author {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== FAQ ===== */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--orange);
  font-size: 22px;
  font-weight: 400;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 14px;
  overflow: hidden;
}

/* ===== Contact form ===== */

.contact-section {
  background: var(--white);
}

.form-wrap {
  background: var(--surface);
  border-radius: 8px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .form-wrap { padding: 24px; }
}

.form-wrap .form-head { text-align: center; margin-bottom: 32px; }

.form-wrap h2 { font-size: 28px; margin-bottom: 8px; }

.form-wrap .form-sub { color: var(--text-muted); font-size: 15px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.field textarea { resize: vertical; min-height: 100px; }

.field-error {
  color: #C0392B;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #C0392B;
}

.field.has-error .field-error { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.consent-row input { width: auto; margin-top: 4px; }

.consent-row label { font-size: 13px; color: var(--text-muted); }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

.thank-you {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.thank-you.show { display: block; }

.thank-you h3 { font-size: 24px; margin-bottom: 12px; }
.thank-you p { color: var(--text-muted); }

.contact-form.hidden { display: none; }

.ghl-form-wrap {
  background: #F8F7F4;
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
  min-height: 700px;
  width: 100%;
}
.ghl-form-wrap iframe {
  display: block;
  width: 100%;
  min-height: 750px;
  border: none;
  border-radius: 8px;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-tagline {
  color: var(--navy-muted-text);
  margin: 16px 0 20px;
  font-size: 15px;
}

.nap {
  font-size: 14px;
  color: var(--navy-muted-text);
  line-height: 1.8;
}

.footer-grid h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--white);
}

.footer-grid ul li { margin-bottom: 10px; }

.footer-grid ul li a {
  color: var(--navy-muted-text);
  font-size: 14px;
}

.footer-grid ul li a:hover { color: var(--orange-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--navy-muted-text);
}

.footer-bottom .license {
  margin-top: 6px;
  opacity: 0.8;
}

/* ===== Mobile sticky call bar ===== */

.sticky-call-bar {
  display: none;
}

@media (max-width: 768px) {
  body { padding-bottom: 56px; }

  .sticky-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--orange);
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    z-index: 1000;
  }

  .sticky-call-bar svg { width: 18px; height: 18px; }
}

/* ===== Misc page sections ===== */

.intro-section p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }

.bulleted-services li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
}

.bulleted-services li strong { color: var(--text-dark); }

.bulleted-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.price-table th {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--surface);
}

.price-table td { color: var(--text-muted); }

.checklist-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.checklist-inline span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.checklist-inline span .check { color: var(--orange); margin-right: 6px; }

.alt-bg { background: var(--surface); }
