/* Custom styles for Restaurante Jerusalen */

/* Smooth transitions for all interactive elements */
a, button, .menu-card, .gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 254, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(159, 28, 54, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #71192d !important;
}

.nav-scrolled .nav-link {
    color: #9f1c36 !important;
}

/* Mobile menu animations */
.mobile-menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open .mobile-menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu.open .mobile-menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu.open .mobile-menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem;
}

/* Menu card hover effect */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Gallery item hover effect */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature card hover */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .menu-card:hover {
        transform: none;
    }
    
    .gallery-item img {
        transform: none;
    }
}

/* Prefers-reduced-motion: hide reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #71192d;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fdf0ed 100%);
}

/* Ensure hero is fully visible and not hidden */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Smooth anchor scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}
