/* Custom styles for Signature Inn Lafayette */

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

/* Navigation text color transitions */
.nav-text {
    transition: color 0.3s ease;
}

/* Reveal animations - progressive enhancement with prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible even without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* Mobile link hover effect */
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5eccf;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9c4b0;
    color: #782b18;
}

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

/* Image loading optimization */
img {
    loading: lazy;
}
