/* ===== Custom Styles for Lucas Vineyards ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #D4A84B;
    color: #0f261c;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.navbar-scrolled .nav-link {
    color: rgba(15, 38, 28, 0.8) !important;
}

.navbar-dark .nav-link {
    color: rgba(253, 252, 248, 0.8) !important;
}

.navbar-dark .nav-link::after {
    background-color: #D4A84B;
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link:hover {
    color: #2a5f3e !important;
}

#mobile-menu.menu-open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

/* ===== Hero ===== */
.hero-headline {
    opacity: 1;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow {
    opacity: 1;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-sub {
    opacity: 1;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

.hero-ctas {
    opacity: 1;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    backdrop-filter: blur(4px);
}

.cta-secondary:hover {
    background-color: rgba(253, 252, 248, 0.15);
    border-color: rgba(253, 252, 248, 0.6);
}

/* ===== Section Eyebrow ===== */
.section-eyebrow {
    position: relative;
    display: inline-block;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #D4A84B;
    margin-bottom: 12px;
}

/* ===== Section Title ===== */
.section-title {
    position: relative;
}

/* ===== Wine Cards ===== */
.wine-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.wine-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
}

/* No JS fallback: ensure content is visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ===== Form Styles ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8ab394;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }

    .hero-headline md\:text-7xl {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .wine-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header,
    #mobile-menu,
    .cta-primary,
    .cta-secondary {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
