/* ============================================
   Falgout Canal Dockside Bar — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #b8d0ac;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb87e;
}

/* Selection color */
::selection {
    background: #b8d0ac;
    color: #1a3114;
}

/* ============================================
   Navigation
   ============================================ */
.nav-light .nav-link {
    color: #1a3114;
}
.nav-light .nav-link:hover {
    color: #4a7c38;
}
.nav-dark .nav-link {
    color: #fefdf8;
}
.nav-dark .nav-link:hover {
    color: #d9e6d4;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 49, 20, 0.08);
}

#navbar.hero-visible {
    background: transparent;
    box-shadow: none;
}

#navbar.hero-visible .nav-link {
    color: #fefdf8;
}
#navbar.hero-visible .nav-link:hover {
    color: #d9e6d4;
}

#navbar.hero-visible .nav-dark .text-forest-800 {
    color: #fefdf8 !important;
}
#navbar.hero-visible .nav-dark .text-cream-50 {
    color: #fefdf8 !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For reduced motion, ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Hero scroll indicator animation
   ============================================ */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-indicator {
        animation: scrollPulse 2s ease-in-out infinite;
    }
}

/* ============================================
   Gallery hover effects
   ============================================ */
.gallery-strip img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-strip img:hover {
    transform: scale(1.05);
}

/* ============================================
   Button focus styles
   ============================================ */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4a7c38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .gallery-strip {
        flex-direction: column;
    }
    .gallery-strip > div {
        height: 200px;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, .gallery-strip, #navbar::before {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
