/* Custom styles for Fajitas El Rey */
/* Additional animations and utility styles */

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

/* Selection color */
::selection {
    background: var(--coral, #E86A54);
    color: var(--white, #FFFFFF);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--coral, #E86A54);
    outline-offset: 2px;
}

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    .nav,
    .hero__scroll,
    .gallery__grid,
    .footer__social {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
    }
    
    .hero__bg,
    .hero__overlay {
        display: none;
    }
    
    .hero__content {
        color: #000;
    }
    
    .hero__headline {
        color: #000;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn--primary {
        border: 2px solid ButtonText;
    }
    
    .nav__cta {
        border: 2px solid ButtonText;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .menu-item:hover {
        transform: none;
    }
    
    .gallery__item::after {
        display: none;
    }
    
    .experience__item:hover img {
        transform: none;
    }
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Subtle entrance animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .menu-item {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .menu-item.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .menu-item:nth-child(1).visible {
        transition-delay: 0.1s;
    }
    
    .menu-item:nth-child(2).visible {
        transition-delay: 0.2s;
    }
    
    .menu-item:nth-child(3).visible {
        transition-delay: 0.3s;
    }
}

/* Default state for animated elements (visible without JS) */
.menu-item {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .menu-item {
        opacity: 0;
        transform: translateY(30px);
    }
}
