/* Custom styles for Robert's Landing Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Navigation transition */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #14532d;
}

#navbar.scrolled .nav-link {
    color: #14532d;
}

#navbar.scrolled .nav-link:hover {
    color: #16a34a;
}

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

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animations when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
    .js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
    .js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
    .js-enabled .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Print styles */
@media print {
    #navbar, #back-to-top, #mobile-menu-btn {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
