/* Custom styles for La Pasadita Restaurante */

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

/* Hero animations */
.hero-image {
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-container:hover .hero-image {
    transform: scale(1);
}

.hero-overlay {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.hero-image-container:hover .hero-overlay {
    opacity: 0.4;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation styles when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d95a35;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #d95a35;
    color: white;
}

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

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

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

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

/* Menu hover effects */
.bg-slate-950 .flex li:hover span {
    color: #f7c4b8;
    transition: color 0.2s ease;
}

/* Image hover container */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.overflow-hidden:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile link hover */
.mobile-link:hover {
    color: #d95a35;
}

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