/* Custom styles for Bloom & Bean */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 47, 24, 0.08);
}

/* Menu tabs */
.menu-tab {
    color: #4d7a3c;
    background: transparent;
}

.menu-tab.active {
    background: white;
    color: #2e4a25;
    box-shadow: 0 2px 8px rgba(30, 47, 24, 0.1);
}

.menu-tab:not(.active):hover {
    color: #2e4a25;
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 47, 24, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Subtle fade-in for below-fold sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.hidden {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #4d7a3c;
    outline-offset: 2px;
}

/* Image hover container */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* Gallery image overlay on hover */
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 47, 24, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}
