/* Custom styles for El Chupacabra Tacos */

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

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

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

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Selection color */
::selection {
    background-color: #bbf7d0;
    color: #064e3b;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll reveal animations - progressive enhancement, only active when JS enables them */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav, .cta-section, #mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #064e3b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images have proper loading */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for interactive elements */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Text gradient for special headings */
.text-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(6, 78, 59, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: fadeIn 0.2s ease-out;
}

/* Navbar scroll state */
.nav-scrolled #nav-bg {
    opacity: 1;
}

/* Ensure hero image doesn't cause layout shift */
.aspect-\[4\/5\], .aspect-square {
    contain: layout;
}

/* Custom button ripple effect */
button::after, a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

button:active::after, a:active::after {
    width: 200px;
    height: 200px;
}

/* Ensure all text has proper contrast */
.text-stone-600 {
    color: #44403c;
}

.text-emerald-200 {
    color: #a7f3d0;
}

.text-emerald-400 {
    color: #34d399;
}
