/* ============================================
   Harvey Fire Department Station 64
   Custom Styles — Classic & Elegant
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #b83232;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #942525;
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background: #b83232;
    color: #fefdfb;
}

/* --- Hero Parallax Effect --- */
#hero {
    perspective: 1px;
}

#hero img {
    will-change: transform;
}

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(122, 35, 35, 0.08);
}

#navbar.scrolled .font-serif {
    color: #7a2323;
}

#navbar.scrolled .text-warmgray-500 {
    color: #8c8278;
}

/* --- Button Hover Animations --- */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href="#contact"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

a[href="#contact"]:hover::after,
button[type="submit"]:hover::after {
    opacity: 1;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* --- Image Hover Zoom --- */
.group img,
section img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 50, 50, 0.15);
}

/* --- Testimonial Card Hover --- */
#testimonials .bg-white {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#testimonials .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(122, 35, 35, 0.12) !important;
}

/* --- Decorative Divider --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b83232, #e97272);
    border-radius: 2px;
}

/* --- Pulse Animation for Badge --- */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2.5s ease-in-out infinite;
}

/* --- Fade-in for scroll animations --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* --- Stat Counter Animation --- */
@keyframes count-up {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-animated {
    animation: count-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Subtle Gradient Overlay on Hero --- */
#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(59, 14, 14, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobile-menu-btn, .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
