/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f4eb;
}
::-webkit-scrollbar-thumb {
    background: #2d5f27;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a35;
}

/* Selection color */
::selection {
    background: #2d5f27;
    color: #fcfbf7;
}

/* ===== NAVIGATION ===== */
#nav.scrolled {
    background: rgba(252, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 95, 39, 0.1);
}

#nav.scrolled .font-serif {
    color: #152b13 !important;
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

/* Floating card animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

#hero .translate-y-4  { animation: float-medium 6s ease-in-out infinite; }
#hero .-translate-y-4 { animation: float-slow  7s ease-in-out infinite; }
#hero .translate-y-2  { animation: float-fast  5s ease-in-out infinite; }
#hero .-translate-y-2 { animation: float-slow  6.5s ease-in-out infinite; }

/* Stagger animations */
#hero .translate-y-4  { animation-delay: 0s; }
#hero .-translate-y-4 { animation-delay: 0.5s; }
#hero .translate-y-2  { animation-delay: 1s; }
#hero .-translate-y-2 { animation-delay: 1.5s; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="#collection"],
a[href="#visit"],
a[href="#contact"] {
    position: relative;
}

/* ===== WINE CARD HOVER ===== */
.group:hover .aspect-\[4\/3\] img {
    transform: scale(1.05);
}

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 95, 39, 0.15);
}

/* ===== TESTIMONIAL CARDS ===== */
.bg-forest-900\/50 {
    backdrop-filter: blur(4px);
}

/* ===== IMAGE HOVER ===== */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #2d5f27;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
    #nav, #mobileMenu, button, form {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }
}
