/* Custom styles for Wagonhouse Winery */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #1a3c2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5e2d;
}

/* Selection color */
::selection {
    background: #1a3c2a;
    color: #faf8f4;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
.hero-anim:nth-child(5) { animation-delay: 0.9s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up {
        transform: translateY(30px);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(250, 248, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 60, 42, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1a3c2a !important;
}

.navbar-scrolled .nav-link {
    color: #1a3c2a !important;
}

/* Wine glass icon pulse */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Image hover zoom container */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

/* Link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #9f4a5a;
    transition: width 0.3s ease;
}

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

/* Subtle pattern for sections */
.pattern-dots {
    background-image: radial-gradient(circle, #1a3c2a 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Decorative divider */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #9f4a5a, transparent);
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #1a3c2a, #9f4a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
