/* Custom styles for Frog's RV Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f7f5;
}
::-webkit-scrollbar-thumb {
    background: #c8c5bc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a398;
}

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

/* Selection color */
::selection {
    background-color: #c6dfb8;
    color: #1f3a18;
}

/* Hero image stack parallax-like effect */
@media (prefers-reduced-motion: no-preference) {
    .group img {
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
