/* =============================================
   Bianca Menu — Luxe layer
   Masthead, category-bar polish and card
   micro-interactions for the menu page.
   Requires luxe-shared.css.
   ============================================= */

/* ---------------------------------------------
   1. Masthead
   --------------------------------------------- */
.menu-masthead {
    position: relative;
    z-index: 1;
    padding: 30px 0 10px;
    text-align: center;
}

.menu-masthead__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-masthead__label {
    margin-bottom: 12px;
    animation: luxeRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.menu-masthead__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 600;
    line-height: 1.25;
    background-image: linear-gradient(
        105deg,
        var(--maroon) 0%,
        var(--maroon) 40%,
        #8a4a2f 47%,
        var(--gold) 50%,
        #8a4a2f 53%,
        var(--maroon) 60%,
        var(--maroon) 100%
    );
    background-size: 240% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        luxeRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both,
        luxeShimmer 7s ease-in-out 1.4s infinite;
}

.menu-masthead__tagline {
    margin: 10px 0 0;
    font-size: clamp(13.5px, 1.6vw, 15px);
    color: var(--text-muted);
    line-height: 1.7;
    animation: luxeRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.menu-masthead__ornament {
    margin-top: 14px;
    line-height: 0;
    opacity: 0.85;
    animation: luxeRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

/* ---------------------------------------------
   2. Category bar — chip icons + stuck state
   --------------------------------------------- */
.menu-cats__item {
    border-bottom: none;
    padding-bottom: 6px;
}

.menu-cats__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid rgba(92, 18, 21, 0.13);
    box-shadow: 0 2px 8px rgba(74, 28, 31, 0.05);
    transition:
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-cats__item:hover .menu-cats__icon {
    transform: translateY(-2px);
    border-color: rgba(196, 149, 106, 0.6);
    box-shadow: 0 6px 16px rgba(74, 28, 31, 0.1);
}

.menu-cats__item.is-active .menu-cats__icon {
    background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    border-color: var(--maroon);
    color: var(--cream);
    box-shadow: 0 8px 20px rgba(92, 18, 21, 0.3);
}

.menu-cats__item.is-active .menu-cats__label {
    font-weight: 700;
}

/* gold diamond marker under the active tab */
.menu-cats__item::after {
    content: '';
    width: 5px;
    height: 5px;
    margin-top: 2px;
    background: transparent;
    transform: rotate(45deg);
    transition: background 0.28s ease;
}

.menu-cats__item.is-active::after {
    background: var(--gold);
}

.menu-cats-wrap {
    transition: box-shadow 0.3s ease;
}

.menu-cats-wrap.is-stuck {
    background: rgba(249, 246, 242, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 28px -18px rgba(44, 24, 16, 0.3);
    border-bottom: 1px solid rgba(92, 18, 21, 0.07);
}

/* ---------------------------------------------
   3. Section ornaments
   --------------------------------------------- */
@media (min-width: 769px) {
    /* gold diamond above the vertical section title */
    .menu-section__title-wrap::before {
        content: '';
        width: 7px;
        height: 7px;
        background: var(--gold);
        transform: rotate(45deg);
        flex-shrink: 0;
    }
}

.menu-subsection__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-end: 9px;
    background: var(--gold);
    transform: rotate(45deg) translateY(-1px);
}

/* ---------------------------------------------
   4. Item cards — staggered entrance + hover
   Pure CSS animation: it re-runs automatically when
   menu-cats.js swaps the list content via AJAX.
   --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .menu-section__grid .menu-item {
        animation: luxeRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .menu-section__grid .menu-item:nth-child(1) { animation-delay: 0.04s; }
    .menu-section__grid .menu-item:nth-child(2) { animation-delay: 0.1s; }
    .menu-section__grid .menu-item:nth-child(3) { animation-delay: 0.16s; }
    .menu-section__grid .menu-item:nth-child(4) { animation-delay: 0.22s; }
    .menu-section__grid .menu-item:nth-child(5) { animation-delay: 0.28s; }
    .menu-section__grid .menu-item:nth-child(n+6) { animation-delay: 0.34s; }
}

.menu-item:hover {
    border-color: rgba(196, 149, 106, 0.55);
    box-shadow: 0 10px 28px rgba(74, 28, 31, 0.1);
}

.menu-item__thumb {
    transition: border-color 0.3s ease;
}

.menu-item:hover .menu-item__thumb {
    border-color: rgba(196, 149, 106, 0.5);
}

.menu-item__thumb img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover .menu-item__thumb img {
    transform: scale(1.09);
}

.menu-item--chef-pick:hover {
    border-color: rgba(196, 149, 106, 0.55);
}

/* ---------------------------------------------
   5. Page-level tweaks
   --------------------------------------------- */
/* the menu page already has floating mobile bars — keep it clean */
@media (max-width: 768px) {
    body.page-menu .back-to-top {
        display: none;
    }

    .menu-masthead {
        padding: 20px 0 4px;
    }
}

/* ---------------------------------------------
   6. Reduced motion
   --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .menu-masthead__label,
    .menu-masthead__title,
    .menu-masthead__tagline,
    .menu-masthead__ornament {
        animation: none !important;
    }

    .menu-cats__icon,
    .menu-item__thumb img {
        transition: none;
    }
}
