/* Custom styles for MJ's on German DeliCafe */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar active state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(63, 7, 17, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

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

/* Image hover effects */
.rounded-2xl overflow-hidden {
    position: relative;
}

.rounded-2xl overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(63, 7, 17, 0.1) 0%, transparent 40%);
    pointer-events: none;
    border-radius: inherit;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #a61330;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

/* Subtle pattern overlay for sections */
.bg-burgundy-50 {
    background-image: radial-gradient(circle at 1px 1px, rgba(166, 19, 48, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
