/* Custom styles for Mitchell Landing Campground */

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 100px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

#navbar.scrolled .nav-link {
    color: #3d2b1f;
}

#navbar.scrolled .nav-link:hover {
    background: #fdf2ee;
    color: #dc5526;
}

#navbar.scrolled .font-serif {
    color: #3d2b1f;
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.25rem;
}

/* Mobile menu slide */
#mobileMenu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

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

/* Mobile link hover */
.mobile-link {
    display: block;
}

/* Scroll reveal base - content always visible */
.reveal {
    /* Default state: visible, no hidden state */
}

/* Scroll reveal animation - only applied when JS adds the class */
.reveal.revealed {
    animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for grid items */
.reveal.revealed:nth-child(1) { animation-delay: 0s; }
.reveal.revealed:nth-child(2) { animation-delay: 0.1s; }
.reveal.revealed:nth-child(3) { animation-delay: 0.2s; }
.reveal.revealed:nth-child(4) { animation-delay: 0.3s; }
.reveal.revealed:nth-child(5) { animation-delay: 0.4s; }
.reveal.revealed:nth-child(6) { animation-delay: 0.5s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal.revealed {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #f6c4b0;
    color: #6e2519;
}

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