/* Dancing Water Inn — Custom Styles */

:root {
    --color-charcoal-950: #1a1c21;
    --color-coral-500: #ff6b4a;
}

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

/* Scroll reveal — progressive enhancement, hidden by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only apply animations when JS is enabled and user prefers motion */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.js-enabled .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.js-enabled .scroll-reveal:nth-child(2) { transition-delay: 80ms; }
.js-enabled .scroll-reveal:nth-child(3) { transition-delay: 160ms; }
.js-enabled .scroll-reveal:nth-child(4) { transition-delay: 240ms; }

/* Hero stat cards — floating animation */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: -1.5s; }
.stat-card:nth-child(3) { animation-delay: -3s; }
.stat-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-6px) translateX(2px); }
    50% { transform: translateY(0px) translateX(0px); }
    75% { transform: translateY(4px) translateX(-2px); }
}

/* Amenity item hover */
.amenity-item {
    transition: transform 0.2s ease;
}

.amenity-item:hover {
    transform: translateX(4px);
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

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

/* Mobile link hover effect */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b4a;
    transition: width 0.2s ease;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: inherit;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stat-card { animation: none; }
    .scroll-reveal { opacity: 1; transform: none; }
    .amenity-item { transition: none; }
    .amenity-item:hover { transform: none; }
}

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

::-webkit-scrollbar-track {
    background: #1a1c21;
}

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

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