/* ============================================
   7 Vines Vineyard — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(52, 212, 165, 0.3);
    color: #ffffff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050E1C;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 212, 165, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 212, 165, 0.5);
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(3, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #34D4A5;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #ffffff !important;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #34D4A5;
    transition: width 0.3s ease;
}

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

/* --- Menu Button Animation --- */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

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

/* --- Scroll Animations --- */
.about-reveal,
.wines-reveal,
.visit-reveal,
.events-reveal,
.quote-reveal,
.contact-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Scroll Dot Animation --- */
@keyframes scrollDot {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

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

/* --- Button Focus States --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34D4A5;
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .about-reveal,
    .wines-reveal,
    .visit-reveal,
    .events-reveal,
    .quote-reveal,
    .contact-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .scroll-dot {
        animation: none;
        top: 0;
        opacity: 1;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
