/* === Custom Styles for Coop's Coffee Station === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* === Navbar === */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1a1a1a;
}

/* === Feature Cards === */
.feature-card {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* === Gallery === */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .gallery-item img {
        transition: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
}

/* === Mobile Menu === */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Button Focus States === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* === Selection Color === */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

/* === Print Styles === */
@media print {
    nav, #mobile-menu-btn, .gallery-item, iframe { display: none; }
    body { background: white; }
    #hero { min-height: auto; padding: 2rem 0; }
    #hero .absolute { position: relative; }
}
