/* Custom styles for Teppanyaki 2 Go */

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

/* Selection color */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #fdfbf7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #022c22;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

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

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

/* Ensure hero images render properly */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

/* Section reveal animations - progressive enhancement */
.section-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold shimmer on hover for cards */
.group:hover .group-hover\\:bg-gold-500\\/20 {
    background-color: rgba(212, 168, 67, 0.2);
}

/* Select dropdown styling */
select option {
    background-color: #022c22;
    color: #f5f0e8;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #022c22 inset !important;
    -webkit-text-fill-color: #f5f0e8 !important;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* 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;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
