/* Custom styles for Matecana Bakery & Restaurant */

/* Smooth scroll behavior handled via Tailwind */

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFBF5;
}
::-webkit-scrollbar-thumb {
    background: #c72454;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01640;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero text shadow for better readability */
#hero h1,
#hero p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* Input focus states */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Subtle animation for gallery hover */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Navbar background on scroll */
#navbar.scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(123, 45, 59, 0.1);
}

/* Reduced 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
