/* Custom styles for Hidden Ridge & RV Community */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf9;
}
::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text {
    color: #0f2140 !important;
}

.nav-scrolled .nav-link {
    color: #152d56 !important;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

/* Floating cards animation */
@media (prefers-reduced-motion: no-preference) {
    .float-card {
        animation: float 3s ease-in-out infinite;
    }
    .float-card-delay-1 {
        animation-delay: 0.5s;
    }
    .float-card-delay-2 {
        animation-delay: 1s;
    }
    .float-card-delay-3 {
        animation-delay: 1.5s;
    }
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Ensure all text meets contrast requirements */
.text-midnight-600 {
    color: #1b3a6e;
}

.text-midnight-700 {
    color: #152d56;
}

.text-midnight-800 {
    color: #0f2140;
}

.text-midnight-900 {
    color: #0a1628;
}

/* Subtle hover states for cards */
.bg-white.rounded-3xl {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Print styles */
@media print {
    nav, #backToTop, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
