/* Custom styles for Lake Time RV Park */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible by default (no JS) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Amenity card hover effects */
.amenity-card {
    will-change: transform;
}

/* Gallery hover effects */
.gallery-item {
    will-change: transform;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Selection color */
::selection {
    background: #ff6b35;
    color: white;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    #navbar,
    .animate-bounce,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.25rem;
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
