/* Custom styles for Elotes Y Frutas Del Valle */

:root {
    --emerald-950: #041a16;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    --cream: #FDFBF7;
    --cream-dark: #f5f0e8;
}

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

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-800);
}

/* Selection color */
::selection {
    background: var(--emerald-800);
    color: var(--cream);
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Navbar active state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

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

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--emerald-600);
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-hidden,
    img,
    .group,
    button,
    a {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-pulse {
        animation: none;
    }
}

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