/* Custom styles for North Branch Vineyards */

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

/* Base transitions */
.nav-link, .mobile-link {
    position: relative;
}

.nav-link::after, .mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .mobile-link:hover::after {
    width: 100%;
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(20px) rotate(40deg); }
}

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

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

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

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

/* Selection color */
::selection {
    background: #C05A43;
    color: #FDF8F0;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #C05A43;
    outline-offset: 2px;
}

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

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

#mobile-menu.open a {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

#mobile-menu.open a:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open a:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open a:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open a:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open a:nth-child(5) { animation-delay: 0.25s; }

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(94, 48, 36, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F4E8D1 0%, #E8D5B0 100%);
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
