/* ============================================
   Comida Michoacana El Ceja — Custom Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

/* Base typography refinements */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #c25538;
    color: #faf7f2;
}

/* Smooth focus visible */
*:focus-visible {
    outline: 2px solid #c25538;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom underline for serif headings */
.font-serif a {
    text-decoration: none;
}

/* Subtle text shadow for hero readability */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

#hero p {
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Nav active state */
.nav-link.active {
    color: #c25538 !important;
}

/* Mobile menu animation */
#mobile-menu a {
    display: block;
}

/* Form input focus state */
input:focus,
textarea:focus,
select:focus {
    background-color: #ffffff;
}

/* Print styles */
@media print {
    header, footer, #contact, .img-zoom-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* Reduced motion */
@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;
    }
    
    .img-zoom {
        transition: none;
    }
    
    .leaf-sway {
        animation: none;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 1rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white\/5 {
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    .border-white\/10 {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .font-serif {
        font-size: 1.75rem;
    }
    
    nav .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
