/* Custom Styles for Coopers Hawk Winery & Restaurant */

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(13, 21, 36, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .navbar-text {
    color: white;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* Menu toggle animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .group img,
    .rounded-2xl img,
    .rounded-3xl img {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0d1524;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #52d1a2;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #52d1a2;
    outline-offset: 2px;
}

/* Form select styling */
select option {
    background: #1a2d4d;
    color: white;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(115deg);
    cursor: pointer;
}

/* Subtle gradient text effect for hero */
.text-gradient {
    background: linear-gradient(135deg, #52d1a2 0%, #2fb580 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover lift effect for cards */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.group {
    transition: transform 0.3s ease;
}
