/* Custom styles for Webster Township Fire Department */

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

/* Base typography */
body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Reveal animations - progressive enhancement, content visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only apply hidden state when prefers-reduced-motion is not set (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold accent line */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C9A84C, transparent);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #1B3A6B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0F2140 0%, #152E56 100%);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative lines animation */
@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 80px;
        opacity: 1;
    }
}

/* Pulse animation for emergency badge */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}
