/* Emmetts Tavern — Custom Styles */

/* Base adjustments */
* {
    scrollbar-width: thin;
    scrollbar-color: #781F2E #1C1917;
}

/* Smooth focus styles */
:focus-visible {
    outline: 2px solid #F9CDB5;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu.open .mobile-link {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hamburger animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active #bar2 {
    opacity: 0;
}
#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Custom selection color handled in HTML */

/* Reduced motion */
@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;
    }
    .hero-bg {
        background-attachment: fixed;
    }
    img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    #site-header, #mobile-menu, .reveal {
        display: none !important;
    }
    body {
        color: #1C1917;
        background: white;
    }
    .hero-bg {
        background: #260608 !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-burgundy-700 {
        background-color: ButtonText;
    }
    .text-cream {
        color: ButtonText;
    }
}

/* Ensure images don't overflow cards on small screens */
.rounded-2xl img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Date input styling for better cross-browser consistency */
input[type="date"],
input[type="time"] {
    color-scheme: light;
}
