/* Custom Enhancements for FluxAiris - Red & Navy Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy-deep: #041a33;
  --navy-dark: #062548;
  --navy-mid: #094074;
  --red-vibrant: #dc2626;
  --red-hover: #b91c1c;
  --red-light: #fef2f2;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* Avoid mobile floating bottom bar overlap */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Safe area padding for iPhones & modern mobiles */
.safe-bottom {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Nav Active Link Indicator */
.nav-link-active {
  color: #dc2626;
  position: relative;
}

/* Hero Background and Gradient Overlay with Image (Reduced Opacity as Requested) */
.hero-pine-bg {
  background: linear-gradient(135deg, rgba(4, 32, 24, 0.82) 0%, rgba(5, 46, 36, 0.74) 50%, rgba(8, 60, 46, 0.65) 100%),
              url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}

.hero-curved-arc {
  border-bottom-right-radius: 60px;
}

@media (min-width: 1024px) {
  .hero-curved-arc {
    border-bottom-right-radius: 120px;
  }
}

/* Pulsing Badge Animations */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

.pulse-emerald, .pulse-red {
  animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-indicator {
  animation: liveDot 1.5s infinite ease-in-out;
}

/* Interactive Tabs & Accordions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 350px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #dc2626;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #094074;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Card hover transitions & signature shadow */
.service-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.10), 0 10px 10px -5px rgba(220, 38, 38, 0.05);
}

/* Pre-Footer CTA Banner matching FluxAiris Red & Navy Theme */
.hvac-cta-banner {
  background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 40%, #b91c1c 70%, rgba(220, 38, 38, 0.92) 100%),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

@media (min-width: 768px) {
  .hvac-cta-banner {
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 28%, #dc2626 50%, rgba(220, 38, 38, 0.82) 70%, rgba(220, 38, 38, 0.50) 100%),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') right center / cover no-repeat;
  }
}

.hvac-cta-banner-navy {
  background: linear-gradient(180deg, #041a33 0%, #062548 45%, rgba(9, 64, 116, 0.90) 100%),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

@media (min-width: 768px) {
  .hvac-cta-banner-navy {
    background: linear-gradient(90deg, #041a33 0%, #062548 32%, #094074 52%, rgba(9, 64, 116, 0.80) 70%, rgba(9, 64, 116, 0.50) 100%),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') right center / cover no-repeat;
  }
}

/* FluxAiris Modern Red & Navy Theme Hero Background */
.hero-flux-bg {
  background: linear-gradient(180deg, rgba(8, 22, 40, 0.60) 0%, rgba(8, 22, 40, 0.75) 40%, rgba(8, 22, 40, 0.96) 80%, rgba(8, 22, 40, 0.99) 100%),
              url('../images/hero-section.jpg') center/cover no-repeat;
}

@media (min-width: 1024px) {
  .hero-flux-bg {
    background: linear-gradient(90deg, rgba(8, 22, 40, 0.97) 0%, rgba(8, 22, 40, 0.92) 36%, rgba(8, 22, 40, 0.65) 58%, rgba(8, 22, 40, 0.15) 82%, rgba(8, 22, 40, 0.04) 100%),
                url('../images/hero-section.jpg') right center / cover no-repeat;
  }
}

/* =========================================================================
   REUSABLE SCROLL REVEAL ANIMATIONS (fade-in, fade-in-up, fade-in-left, etc.)
   ========================================================================= */
.fade-in,
.fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.zoom-in {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1.1s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-in {
  transform: none;
}
.fade-in-up {
  transform: translateY(50px);
}
.fade-in-down {
  transform: translateY(-50px);
}
.fade-in-left {
  transform: translateX(-60px);
}
.fade-in-right {
  transform: translateX(60px);
}
.zoom-in {
  transform: scale(0.88);
}

/* Active State when element enters viewport */
.fade-in.is-visible,
.fade-in-up.is-visible,
.fade-in-down.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible,
.zoom-in.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 0.12s; }
.delay-150 { transition-delay: 0.18s; }
.delay-200 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.38s; }
.delay-400 { transition-delay: 0.50s; }
.delay-500 { transition-delay: 0.65s; }
.delay-600 { transition-delay: 0.80s; }

/* Duration Utilities */
.duration-fast { transition-duration: 0.6s; }
.duration-normal { transition-duration: 1.1s; }
.duration-slow { transition-duration: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-up,
  .fade-in-down,
  .fade-in-left,
  .fade-in-right,
  .zoom-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


