/* Custom styles for Bahia Mexican Restaurant */

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Scroll reveal base state - content is VISIBLE by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Scroll reveal animated state - only applied when JS adds the class */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(83, 44, 57, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

/* Hero image hover */
.hero-image-container:hover img {
    transform: scale(1.03);
}

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

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

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

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

/* Selection color */
::selection {
    background: #d9b4c4;
    color: #2e161e;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Image hover zoom */
img {
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Input focus styles already handled by Tailwind */

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(168, 107, 130, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
