/* Custom styles for Shady Pines Mobile Home & RV Park */

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

/* Prevent flash of hidden content - all content visible by default */
/* Animations are progressive enhancement via JS */

/* Stat card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 1.5s;
}

.stat-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 0.75s;
}

.stat-card:nth-child(4) {
    animation: float 6s ease-in-out infinite 2.25s;
}

/* Scroll reveal base state - content is VISIBLE by default */
/* JS adds the animated state progressively */
.reveal {
    /* Default: fully visible, no animation needed */
}

/* Only apply animation when JS adds the .revealed class */
.reveal.revealed {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal.revealed {
        animation: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #0f1419;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6e1731;
}

/* Selection color */
::selection {
    background: rgba(110, 23, 49, 0.6);
    color: #fff8f9;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f5a8b8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 20, 25, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(61, 7, 22, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .navbar-logo-text {
    color: #fff8f9 !important;
}

/* Hero image parallax container */
#hero {
    perspective: 10px;
}

#hero .absolute.inset-0 {
    will-change: transform;
}

/* Subtle gradient border on hover for cards */
.group:hover .group-hover\:border-burgundy-700\/60 {
    border-image: linear-gradient(135deg, rgba(245, 168, 184, 0.4), rgba(110, 23, 49, 0.4)) 1;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98) !important;
}

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