/* Custom styles for Mvh Valley Cafe */

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

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

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

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

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

/* Selection color */
::selection {
    background: #F7C4AD;
    color: #6c261a;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Image loading placeholder */
img {
    background-color: #E8E4DD;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Card hover effects */
.bg-cream {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.bg-cream:hover {
    transform: translateY(-4px);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Image aspect ratios */
img {
    vertical-align: middle;
}
