/* ========================================
   Wine Tasting and More — Custom Styles
   Clean Minimalist · Terracotta + Sand
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C07A52;
    color: #FDFBF7;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #C07A52;
    border-radius: 3px;
}

/* ---- Navbar ---- */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 42, 27, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 1px 0 rgba(74, 42, 27, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

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

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

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

/* ---- Hero Animations ---- */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta-primary,
.hero-cta-secondary {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    animation: fadeScale 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-accent-card {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: #C07A52;
}

/* ---- Offer Cards ---- */
.offer-card {
    opacity: 1;
}

.offer-card:hover .offer-card-inner {
    transform: translateY(-4px);
}

.offer-card-inner {
    transition: transform 0.4s ease;
}

/* ---- Gallery ---- */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 42, 27, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(74, 42, 27, 0.1);
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Visit Items ---- */
.visit-item {
    position: relative;
}

.visit-item:not(:last-child) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Reveal Animations (below the fold only) ---- */
.reveal {
    /* Content is visible by default — animation is progressive enhancement */
}

.reveal.revealed {
    animation: revealUp 0.7s ease forwards;
}

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

/* Reduced motion: disable all custom animations */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-eyebrow::before {
        display: none;
    }
    
    .hero-accent-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 160px;
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .gallery-item {
        min-height: 180px;
    }
}

/* ---- Focus styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C07A52;
    outline-offset: 2px;
}
