/* Custom styles for Café Flore */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f3;
}
::-webkit-scrollbar-thumb {
    background: #e2e3e6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4c6cc;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 33, 41, 0.06);
}
#navbar.scrolled .font-display {
    color: #1e2129 !important;
}
#navbar.scrolled a.text-charcoal-600 {
    color: #454a58 !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #7c8190;
    border: none;
    cursor: pointer;
}
.menu-tab.active {
    background: white;
    color: #1e2129;
    box-shadow: 0 1px 4px rgba(30, 33, 41, 0.08);
}
.menu-tab:hover:not(.active) {
    color: #ec6b45;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .group:hover img {
        transform: none;
    }
    button, a {
        transition: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #f4845f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #ffc9b2;
    color: #1e2129;
}
