/* Whispering Elms RV Park — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #0d9488;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.navbar-scrolled .nav-link {
    color: #334155;
}

.navbar-transparent .font-serif {
    color: #fff !important;
}

.navbar-transparent .text-slate-500 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amenity cards */
.amenity-card {
    background: white;
}

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays */
.amenity-card:nth-child(1) { transition-delay: 0s; }
.amenity-card:nth-child(2) { transition-delay: 0.1s; }
.amenity-card:nth-child(3) { transition-delay: 0.2s; }
.amenity-card:nth-child(4) { transition-delay: 0.3s; }
.amenity-card:nth-child(5) { transition-delay: 0.4s; }
.amenity-card:nth-child(6) { transition-delay: 0.5s; }

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    nav, .hero-cta, #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
