/* ============================================
   A. RUSSO ELECTRIC — Design System
   Clean. Professional. Minimal.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --red: #B32017;
  --red-dark: #8C1912;
  --red-light: #D4342A;

  /* Neutrals */
  --black: #111111;
  --dark: #1C1C1C;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #444444;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-400: #AAAAAA;
  --gray-300: #CCCCCC;
  --gray-200: #E5E5E5;
  --gray-100: #F2F2F2;
  --white: #FFFFFF;

  /* Typography */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --max-w: 1200px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--gray-600); max-width: 600px; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 100px 0; } }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .overline {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { margin: 0 auto; font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: var(--black);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--gray-800);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gray-300);
}
.btn-outline-dark:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 250ms ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height 200ms ease;
}

.site-header.scrolled .logo-img {
  height: 42px;
}

.header-cta-btn {
  display: none;
}
@media (min-width: 768px) {
  .header-cta-btn { display: inline-flex; }
}

.site-header:not(.scrolled) .header-cta-btn {
  background: var(--white);
  color: var(--red);
}
.site-header:not(.scrolled) .header-cta-btn:hover {
  background: var(--gray-100);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 150ms ease;
  letter-spacing: 0.01em;
}

.site-header:not(.scrolled) .nav-desktop a { color: rgba(255,255,255,0.8); }
.site-header:not(.scrolled) .nav-desktop a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-header.scrolled .nav-desktop a { color: var(--gray-700); }
.site-header.scrolled .nav-desktop a:hover { color: var(--black); background: var(--gray-100); }

/* Dropdown Nav */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 200ms ease;
  z-index: 1000;
  border: 1px solid var(--gray-200);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  font-size: 13px !important;
  color: var(--gray-600) !important;
  border-radius: 0 !important;
  background: none !important;
  transition: all 150ms ease;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--red) !important;
  background: var(--gray-100) !important;
}
.nav-dropdown-menu a.active {
  color: var(--red) !important;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
@media (min-width: 768px) { .header-phone { display: flex; } }

.site-header:not(.scrolled) .header-phone { color: var(--white); }
.site-header.scrolled .header-phone { color: var(--black); }

.header-phone svg { width: 16px; height: 16px; }
.site-header:not(.scrolled) .header-phone svg { stroke: var(--white); }
.site-header.scrolled .header-phone svg { stroke: var(--red); }

.generac-tag {
  display: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
}
@media (min-width: 1200px) { .generac-tag { display: inline-block; } }
.site-header:not(.scrolled) .generac-tag {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* Mobile Nav */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 201;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  transition: all 250ms ease;
}

.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }
.site-header.scrolled .nav-toggle span { background: var(--black); }

.nav-toggle.active span { background: var(--white); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.nav-mobile.active { opacity: 1; pointer-events: auto; }

.nav-mobile a {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}
.nav-mobile a:hover { color: var(--gray-400); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.7) 100%
  );
}

/* Mobile-specific hero image positioning */
@media (max-width: 767px) {
  .hero-bg {
    background-position: 65% center;
    background-size: cover;
  }
  .hero {
    min-height: 85vh;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item { text-align: left; }

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--gray-100);
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.trust-item svg { width: 18px; height: 18px; stroke: var(--red); flex-shrink: 0; }

/* ========== AI OVERVIEW WIDGET ========== */
.ai-overview-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

@media (min-width: 1024px) {
  .ai-overview-widget {
    grid-template-columns: 1.5fr 1fr;
    padding: 24px 40px;
  }
}

.ai-overview-widget::before {
  content: 'AI Insights';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.ai-overview-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-overview-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-sparkle {
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-sparkle svg { width: 16px; height: 16px; }

.ai-overview-header h3 { margin: 0; font-size: 18px; color: var(--black); }

.ai-overview-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}

.ai-overview-content b { color: var(--black); font-weight: 700; }

.ai-overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.ai-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 80px;
}

.ai-stat .val { font-weight: 700; font-size: 16px; color: var(--red); }
.ai-stat .lbl { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.02em; }

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.service-card .icon-wrap {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--red);
}

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

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

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 150ms ease;
}
.service-card .link:hover { gap: 8px; }

.service-card.featured {
  background: var(--dark);
  border-color: var(--dark);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: var(--gray-400); }
.service-card.featured .icon-wrap { color: var(--white); }
.service-card.featured .link { color: var(--white); }
.service-card.featured:hover { box-shadow: var(--shadow-lg); }

.service-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 16px;
  background: rgba(179,32,23,0.1);
  color: var(--red);
}

.service-card.featured .tag {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ========== FEATURE SPLIT (Pool + Generac) ========== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .feature-split { grid-template-columns: 1fr 1fr; gap: 80px; } }

.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .feature-img img { height: 480px; }
}

.feature-content .overline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.feature-content h2 { margin-bottom: 16px; }
.feature-content > p { font-size: 16px; margin-bottom: 24px; }

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 28px;
}
@media (min-width: 480px) { .check-list { grid-template-columns: 1fr 1fr; } }

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 0;
}

.check-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--red);
}

.callout-box {
  background: var(--gray-100);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout-box h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--red);
}

.callout-box p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

/* Generac dark section */
.section-dark {
  background: var(--dark);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--gray-400); }
.section-dark .overline { color: rgba(255,255,255,0.4); }
.section-dark .section-header .overline { color: rgba(255,255,255,0.4); }

.section-dark .check-list li { color: var(--gray-300); }
.section-dark .check-list li svg { stroke: var(--white); }

.section-dark .feature-content .overline {
  color: rgba(255,255,255,0.5);
}

.section-light { background: var(--gray-100); }

/* ========== WHY CHOOSE US ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item { text-align: center; padding: 24px 16px; }

.why-item .icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.why-item .icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
}

.why-item:hover .icon-circle {
  border-color: var(--red);
  background: var(--red);
}
.why-item:hover .icon-circle svg { stroke: var(--white); }

.why-item h4 { margin-bottom: 8px; }
.why-item p { font-size: 14px; margin: 0 auto; }

/* ========== PROCESS ========== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    position: relative;
  }
  .process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 28px);
    right: calc(16.67% + 28px);
    height: 1px;
    background: var(--gray-300);
  }
}

.process-step { text-align: center; }

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--white);
  position: relative;
  z-index: 2;
  transition: all 200ms ease;
}

.process-step:hover .step-num {
  border-color: var(--red);
  color: var(--red);
}

.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 14px; margin: 0 auto; }

/* ========== REVIEWS ========== */
#reviews {
  padding: 100px 0;
  background: var(--gray-100);
}

.reviews-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.reviews-wrapper .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-wrapper .section-header p {
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }

.review-card {
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 200ms ease;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.review-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.review-stars {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card blockquote {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author .avatar {
  width: 36px;
  height: 36px;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
}

.review-author .name { font-weight: 600; font-size: 14px; }
.review-author .source { font-size: 12px; color: var(--gray-500); }

.reviews-cta { text-align: center; margin-top: 40px; }

/* ========== SERVICE AREAS ========== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(5, 1fr); } }

.area-item {
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 150ms ease;
  text-align: center;
}
.area-item:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ========== FINAL CTA ========== */
.cta-section {
  background: var(--red);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 { color: var(--white); margin-bottom: 12px; }
.cta-inner > p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  margin: 0 auto 32px;
}

.cta-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  min-height: 627px;
}

.cta-form-wrapper iframe {
  width: 100%;
  min-height: 627px;
  border: none;
}

.cta-phone {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.cta-phone a {
  color: var(--white);
  font-weight: 700;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand { max-width: 300px; }

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-brand > p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a,
.footer-contact span {
  font-size: 14px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 150ms ease;
}

.footer-contact a:hover { color: var(--white); }
.footer-contact svg { width: 14px; height: 14px; stroke: var(--gray-500); flex-shrink: 0; }

.footer-generac-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.footer-generac-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  line-height: 1.4;
}

.footer-column h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-column ul { display: flex; flex-direction: column; gap: 10px; }

.footer-column ul a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color 150ms ease;
}
.footer-column ul a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p { font-size: 13px; color: var(--gray-600); }

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.stagger > .reveal:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

/* Newsletter Width Refinement */
.footer-column .newsletter-wrap {
  margin-top: 12px;
  width: 100% !important;
  max-width: 500px;
}

.footer-newsletter-iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 25px;
  background: rgba(255,255,255,0.03);
}

@media (min-width: 1024px) {
  .footer-column:last-child {
    grid-column: span 1 !important;
    min-width: 400px;
  }
}

/* ========== POPUP STYLING ========== */
#ghl-popup-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
}

#ghl-popup-wrapper.active {
  display: block;
}

#ghl-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}

#ghl-popup-overlay.active {
  display: block;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: all 200ms ease;
}

.popup-close:hover { background: var(--gray-200); transform: rotate(90deg); }

@media (max-width: 480px) {
  #ghl-popup-wrapper {
    width: 95%;
    max-height: 85vh;
  }
}

/* ============================================
   AREA / SERVICE AREA PAGES
   ============================================ */

/* Area hero */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.92) 0%, rgba(28,28,28,0.85) 50%, rgba(179,32,23,0.15) 100%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-content { max-width: 700px; }
.page-hero-content .overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-light);
  margin-bottom: 12px;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero-content p {
  font-size: 17px;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Area content layout */
.area-content .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.area-main h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.area-main h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--dark);
}
.area-main p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Area services grid */
.area-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.area-service-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--dark);
  transition: all 250ms ease;
  border: 1px solid transparent;
}
.area-service-card:hover {
  border-color: var(--red);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.area-service-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.area-service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Area why grid */
.area-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.area-why-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.area-why-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.area-why-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Area CTA box */
.area-cta-box {
  margin-top: 48px;
  padding: 36px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
}
.area-cta-box h3 {
  color: var(--white);
  margin-top: 0;
  font-size: 24px;
}
.area-cta-box p {
  color: var(--gray-300);
  margin-bottom: 24px;
}
.area-cta-box .hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Area sidebar */
.area-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.sidebar-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}
.sidebar-details {
  list-style: none;
}
.sidebar-details li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-details li:last-child { border-bottom: none; }
.sidebar-details li strong {
  color: var(--dark);
  display: inline-block;
  min-width: 80px;
}
.sidebar-details li a {
  color: var(--red);
  text-decoration: none;
}
.sidebar-details li a:hover { text-decoration: underline; }
.sidebar-areas {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-areas li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 200ms ease;
}
.sidebar-areas li a:hover {
  background: var(--white);
  color: var(--red);
}

/* Area page responsive */
@media (max-width: 900px) {
  .area-content .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .area-services-grid,
  .area-why-grid {
    grid-template-columns: 1fr;
  }
  .page-hero { padding: 100px 0 60px; }
}
