/* ========================================
   The Sno Stop — Custom Styles
   Classic & Elegant Café Website
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #c42040;
    color: #fff;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 246, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: #635e57;
}

#navbar.scrolled .nav-link:hover {
    color: #c42040;
}

#navbar.scrolled .font-serif {
    color: #1a1816;
}

/* --- Menu Tabs --- */
.menu-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999288;
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: #c42040;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(196, 32, 64, 0.3);
}

.menu-tab:not(.active):hover {
    color: #c42040 !important;
}

/* --- Floating Cards Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Menu Panels --- */
.menu-panel {
    animation: fadeIn 0.4s ease forwards;
}

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

/* --- Mobile Menu Toggle --- */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .floating-card,
    .floating-card-delayed {
        animation: none;
    }
}

/* --- Image hover containers --- */
.rounded-2xl {
    overflow: hidden;
}

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

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

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

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