/* ============================================
   Noemi's Tamales-Georgia — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b92f56;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Selection */
::selection {
    background: #f9cfd8;
    color: #7B2D3B;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.reveal-on-scroll[data-reveal-delay="0.1"] {
    transition-delay: 0.1s;
}

.reveal-on-scroll[data-reveal-delay="0.15"] {
    transition-delay: 0.15s;
}

.reveal-on-scroll[data-reveal-delay="0.2"] {
    transition-delay: 0.2s;
}

.reveal-on-scroll[data-reveal-delay="0.25"] {
    transition-delay: 0.25s;
}

.reveal-on-scroll[data-reveal-delay="0.3"] {
    transition-delay: 0.3s;
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.6s ease;
}

/* Button Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b92f56;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-burgundy-950 {
        background-color: #1a0a0e !important;
    }
    
    .text-cream-200\/70 {
        color: #f5f0eb !important;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
}
