/* ── Custom styles for The Serene Bean ── */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #342314 !important;
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Menu tabs */
.menu-tab {
    color: rgba(253, 248, 237, 0.6);
    background: transparent;
    cursor: pointer;
    border: none;
    font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab:hover {
    color: rgba(253, 248, 237, 0.9);
}

.menu-tab.active {
    background: #C0603A;
    color: #FEFCF7 !important;
    box-shadow: 0 4px 14px rgba(192, 96, 58, 0.4);
}

/* Menu content transitions */
.menu-content {
    animation: fadeSlideUp 0.4s ease forwards;
}

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(0);
}

/* Subtle hover for image cards */
.rounded-2xl.overflow-hidden {
    transition: transform 0.3s ease;
}

/* Selection color */
::selection {
    background-color: #F4C0B0;
    color: #2D140E;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8ED;
}

::-webkit-scrollbar-thumb {
    background: #EDBE65;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .menu-tab {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}
