/* El Jarrito Mexican Grill — Custom Styles */

/* Base reset and typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Prevent image overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 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;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #0a1a35 0%, #142d58 50%, #0a1a35 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    .hero-grid, section, footer {
        break-inside: avoid;
    }
}
