/* Stone RV Park — Custom Styles */

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

/* Custom Selection */
::selection {
    background: #fce7eb;
    color: #6a1a31;
}

/* Hero Floating Cards Animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

.floating-card-1 {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-medium 5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.floating-card-3 {
    animation: float-fast 7s ease-in-out infinite;
    animation-delay: -3s;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #332f2a;
}

#navbar.scrolled a:not(.bg-burgundy-800) {
    color: #5c554b;
}

#navbar.scrolled a:not(.bg-burgundy-800):hover {
    color: #7e1d37;
}

/* Amenity card hover glow */
.amenity-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 143, 104, 0.3);
}

/* Subtle pattern for section backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(126, 29, 55, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

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

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4/5;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #7e1d37;
    outline-offset: 2px;
    border-radius: 4px;
}

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