/* ============================================
   City Winery NYC — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-tagline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-ctas {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .about-content,
    .about-image,
    .experience-card,
    .events-content,
    .events-image,
    .gallery-item,
    .visit-content,
    .visit-image,
    .contact-content,
    .contact-form {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur: 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-logo-text {
    color: #0f172a;
}

#navbar.scrolled #nav-logo {
    color: #0d9488;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu {
    left: 0;
    right: 0;
}

#mobile-menu.open {
    translate: 0;
}

#mobile-menu.translate-x-full {
    translate: 100% 0;
}

/* ============================================
   Gallery Hover
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(13, 148, 136, 0.08);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0f172a;
    color: #e2e8f0;
}

/* ============================================
   Subtle Line Decorations
   ============================================ */
.line-decor {
    position: relative;
}

.line-decor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 1px;
    background: #0d9488;
}

/* ============================================
   Experience Card Underline on Hover
   ============================================ */
.experience-card::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.4s ease;
}

.experience-card:hover::after {
    width: 100%;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .hero-ctas,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
