/* Additional custom styles for Mexican City website */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7f50, #ff8c69);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b3f, #ff7f50);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #ff7f50;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #ff7f50;
    color: white;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    .mobile-overlay,
    button {
        display: none !important;
    }

    body {
        background: white !important;
        color: #1a1a1a !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
    }

    .hero-visual {
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .menu-card {
        break-inside: avoid;
    }
}

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

    .menu-card {
        border: 1px solid ButtonText;
    }
}

/* Reduced motion preference handled in index.html */

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    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;
}

/* Loading state for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
