/* ============================================
   Schooners Bar & Beer Garden — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb0ca;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #657ba9;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(240, 244, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(15, 28, 46, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.menu-line {
    display: block;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ============================================
   Hero
   ============================================ */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

/* ============================================
   Scroll Reveal (below fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .about-images,
    .about-content,
    .drink-card,
    .garden-image-wrapper,
    .garden-content,
    .hours-header,
    .hour-row,
    .location-item,
    .cta-content {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .about-images.revealed,
    .about-content.revealed,
    .drink-card.revealed,
    .garden-image-wrapper.revealed,
    .garden-content.revealed,
    .hours-header.revealed,
    .hour-row.revealed,
    .location-item.revealed,
    .cta-content.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .drink-card:nth-child(1) { transition-delay: 0.1s; }
    .drink-card:nth-child(2) { transition-delay: 0.2s; }
    .drink-card:nth-child(3) { transition-delay: 0.3s; }
    
    .hour-row:nth-child(1) { transition-delay: 0.05s; }
    .hour-row:nth-child(2) { transition-delay: 0.1s; }
    .hour-row:nth-child(3) { transition-delay: 0.15s; }
    .hour-row:nth-child(4) { transition-delay: 0.2s; }
    .hour-row:nth-child(5) { transition-delay: 0.25s; }
    .hour-row:nth-child(6) { transition-delay: 0.3s; }
    .hour-row:nth-child(7) { transition-delay: 0.35s; }
    
    .location-item:nth-child(1) { transition-delay: 0.1s; }
    .location-item:nth-child(2) { transition-delay: 0.2s; }
    .location-item:nth-child(3) { transition-delay: 0.3s; }
}

/* Feature items */
.feature-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:nth-child(1) { transition-delay: 0.3s; }
.feature-item:nth-child(2) { transition-delay: 0.4s; }
.feature-item:nth-child(3) { transition-delay: 0.5s; }
.feature-item:nth-child(4) { transition-delay: 0.6s; }

/* Garden features */
.garden-feature {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.garden-feature.revealed {
    opacity: 1;
    transform: translateX(0);
}

.garden-feature:nth-child(1) { transition-delay: 0.3s; }
.garden-feature:nth-child(2) { transition-delay: 0.4s; }
.garden-feature:nth-child(3) { transition-delay: 0.5s; }
.garden-feature:nth-child(4) { transition-delay: 0.6s; }

/* ============================================
   Drink Cards Hover
   ============================================ */
.drink-card {
    transition: background-color 0.5s ease;
}

/* ============================================
   Typography refinements
   ============================================ */
.font-serif {
    letter-spacing: -0.01em;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-content {
        text-align: left;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h1 span {
        display: inline;
    }
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 5.5rem;
    }
}

@media (min-width: 1280px) {
    #hero h1 {
        font-size: 6.5rem;
    }
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3ab098;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
}
