/* Custom styles for Grove Soldiers Fire Department website */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(127, 30, 51, 0.08) !important;
}

.navbar-scrolled .font-display,
.navbar-scrolled span {
    color: #7f1e33 !important;
}

.navbar-scrolled a:not(.bg-burgundy-700):not(.bg-blush-400) {
    color: #9e233c !important;
}

/* Scroll animation base - always visible by default (progressive enhancement) */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and animation should run */
@media (prefers-reduced-motion: no-preference) {
    .scroll-animate[data-animate="true"] {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 500px;
    padding-top: 0;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9e233c;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #fff5f7;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #db4a68;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #671a2b;
}

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

/* Subtle pattern for section backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(158, 35, 60, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}
