/* Custom styles for Tortilleria Elen */

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

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure all text is readable */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #e84570;
}

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

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobileMenu.open {
    max-height: 300px;
    opacity: 1;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

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

/* Ensure proper contrast for all text */
.text-charcoal-900 { color: #1e1e2e; }
.text-charcoal-800 { color: #2d2d3e; }
.text-charcoal-700 { color: #3a3a4c; }
.text-charcoal-600 { color: #4a4a5c; }
.text-charcoal-500 { color: #5e5e70; }
.text-charcoal-400 { color: #7c7c8e; }
.text-charcoal-300 { color: #ababb8; }
.text-charcoal-200 { color: #d1d1d6; }
.text-charcoal-100 { color: #e8e8ea; }
.text-charcoal-50 { color: #f7f7f8; }

.text-coral-900 { color: #941a34; }
.text-coral-800 { color: #b8203e; }
.text-coral-700 { color: #d63052; }
.text-coral-600 { color: #e84570; }
.text-coral-500 { color: #f06292; }
.text-coral-400 { color: #ff7070; }
.text-coral-300 { color: #ffa8a8; }
.text-coral-200 { color: #ffd0d0; }
.text-coral-100 { color: #ffe8e8; }
.text-coral-50 { color: #fff5f5; }
