/* Custom styles for Refresqueria Tampico */

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

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #1d451d 0%, #2d6e2d 50%, #3d8b3d 100%);
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.card-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hide reveals by default for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d451d;
}

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

/* Card hover effects */
.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

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

#mobile-menu.open {
    max-height: 300px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Ensure contrast for all text */
.text-forest-600 {
    color: #2d6e2d;
}

.text-forest-700 {
    color: #245724;
}

.text-forest-800 {
    color: #1d451d;
}

/* Reduce motion for accessibility */
@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;
    }
}
