/* Custom styles for Dairy Corner */

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

/* Base font settings */
body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* Navigation active state */
nav a.active {
    color: #a83232;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - progressive enhancement */
/* Default state: visible (works without JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When JS adds .revealed, they animate in */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* If JS doesn't run, content stays visible (no opacity:0 default) */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #e97070;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c43b3b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #e97070;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image placeholder fallbacks */
img {
    background: linear-gradient(135deg, #fce7e7 0%, #f9d0d0 100%);
}

/* Print styles */
@media print {
    nav,
    #mobileMenu,
    .animate-bounce,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .shadow-lg,
    .shadow-xl,
    .shadow-2xl {
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-burgundy-600 {
        background-color: ButtonText;
    }
    
    .text-burgundy-600 {
        color: ButtonText;
    }
}

/* Landscape mobile optimization */
@media (max-width: 640px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 6rem 0;
    }
    
    .font-display.text-5xl {
        font-size: 2.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
    
    .group:hover .group-hover\:shadow-xl {
        box-shadow: none;
    }
}
