/* Custom styles for Woodbridge Winery */

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

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Wine card hover */
.wine-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wine-card:hover {
    transform: translateY(-6px);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #93b996;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .wine-card:hover {
        transform: none;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

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

/* Mobile menu links */
.mobile-link {
    display: block;
}

.mobile-link:hover {
    padding-left: 0.75rem;
}

/* Hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

/* Ensure text contrast on all backgrounds */
.bg-forest-700,
.bg-forest-800,
.bg-forest-900,
.bg-forest-950 {
    color-scheme: dark;
}

.bg-cream-50,
.bg-cream-100,
.bg-white {
    color-scheme: light;
}
