/* Custom styles for Indian Springs Lodge */

html {
    scroll-behavior: smooth;
}

/* Navbar transition handled by JS class */
#nav.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* Reveal-up animation for below-fold content */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* 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: 300px;
    opacity: 1;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Ensure hero image doesn't cause layout shift */
#hero img {
    will-change: transform;
}

/* Subtle hover lift on cards */
.rounded-2xl {
    transition: box-shadow 0.3s ease;
}

/* Prevent mobile tap highlight flash */
a, button {
    -webkit-tap-highlight-color: transparent;
}
