/* Custom styles for Culp Valley Primitive Campground */

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

/* Prevent flash of unstyled content on scroll reveals */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(11, 46, 74, 0.08);
}

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

#navbar.scrolled .text-midnight-700 {
    color: #153662 !important;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Hero parallax-like effect */
#hero img {
    will-change: transform;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #719ACD;
}

/* Selection color */
::selection {
    background: #B3EAD4;
    color: #0B2E4A;
}

/* Button hover lift effect */
button, a {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image lazy load fade */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
