/* Custom styles for The Farmers Market website */

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

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

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

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #3d0f21;
}

/* Hero parallax effect */
#hero {
    scroll-behavior: smooth;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(61, 15, 33, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery hover */
.rounded-xl:hover img {
    transform: scale(1.1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Form input focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(161, 51, 87, 0.1);
}

/* 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;
    }
}

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

    body {
        color: #000;
        background: #fff;
    }

    .bg-plum-950,
    .bg-gray-50 {
        background: #fff !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-plum-900\/30 {
        border-color: #3d0f21;
    }

    .text-plum-200 {
        color: #faf0f2;
    }
}

/* Landscape mobile optimization */
@media (max-width: 640px) and (orientation: landscape) {
    #hero {
        min-height: 60vh;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

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

    .hover\:shadow-xl {
        box-shadow: none;
    }
}
