/* Custom styles for Kaskaskia Dragon RV Park */

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

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

/* Mobile menu animations */
.menu-line {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu slide */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Amenity card hover glow */
.amenity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(232, 83, 46, 0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.amenity-card {
    position: relative;
    overflow: hidden;
}

/* Scroll reveal base states (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.from-left.hidden {
        transform: translateX(-24px);
    }
    .reveal.from-right.hidden {
        transform: translateX(24px);
    }
    .reveal.scale.hidden {
        transform: scale(0.95);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(232, 83, 46, 0.2);
    color: #1C1917;
}

/* Navbar scrolled state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(232, 83, 46, 0.1);
}
