/* Custom Styles for Prescott's Strawberries */

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

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

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

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

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

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

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

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Navbar active state */
#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background-color: #efe5d8;
}

/* Print styles */
@media print {
    nav, .animate-bounce, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
