/* Custom styles for Yucatán Tacos & More (Kramer) */

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

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .js-enabled .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #2bc496;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d4a8;
}

/* Selection color */
::selection {
    background: #2bc496;
    color: #0a1628;
}

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

/* Subtle hover glow on mint buttons */
.bg-mint-500 {
    box-shadow: 0 0 0 0 rgba(44, 196, 150, 0);
}
.bg-mint-500:hover {
    box-shadow: 0 0 20px 4px rgba(44, 196, 150, 0.2);
}

/* Ensure map iframe doesn't overflow on mobile */
iframe {
    max-width: 100%;
}

/* Fix for Playfair Display on some systems */
@supports font-family: 'Playfair Display', serif {
    .font-\[\'Playfair_Display\'\] {
        font-family: 'Playfair Display', serif;
    }
}
