/* ============================================
   Alpharetta Water Heater Pros — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* ---- Hero ---- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 58, 95, 0.82) 50%,
    rgba(15, 23, 42, 0.75) 100%
  );
}

/* ---- Card Interactions ---- */
.service-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.12);
}

.brand-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1);
  border-color: #e86c2e;
}

.area-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.1);
  border-color: #e86c2e;
}

/* ---- Dropdown Navigation ---- */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- FAQ Accordion ---- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer.open {
  max-height: 600px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* ---- Section Divider ---- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #1e3a5f, #e86c2e);
  border-radius: 2px;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #1e3a5f 0%, #3b6ea5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Pulse CTA ---- */
@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 108, 46, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232, 108, 46, 0); }
}
.cta-glow {
  animation: subtle-glow 2.5s ease-in-out infinite;
}

/* ---- Star Rating ---- */
.star-rating {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* ---- Mobile CTA Bar ---- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }
  body {
    padding-bottom: 68px;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e3a5f;
}

/* ---- Trust Badge Ribbon ---- */
.trust-badge {
  position: relative;
}
.trust-badge::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e86c2e;
  transition: width 0.3s ease;
}
.trust-badge:hover::after {
  width: 80%;
}

/* ---- Map Container ---- */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* ---- Testimonial Card ---- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(30, 58, 95, 0.1);
}

/* ---- Mobile Menu ---- */
.mobile-menu-panel {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
