.menu {
    display: grid;
    grid-template-columns: clamp(0px, 40%, 350px) 1fr;
    min-height: var(--safe-area);
}

.menuHero {
    grid-column: 2/3;
    border-bottom: 1px solid #DDD;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/images/pages/order/menu/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

.menuHero.hidden {
    display: none;
}

.menuHeroTitle {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    font-size: 60px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    max-width: 1170px;
    margin: 0;
}

.menuMobileNav {
    display: none;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #DDD;
    border-top: 1px solid #DDD;
    background-color: #f7f8f4;
    position: sticky;
    top: var(--headerHeight);
    z-index: 20;
    overflow: hidden;
}

.menuMobileNavList {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.menuMobileNavList > * {
    scroll-snap-align: center;
}

.menuMobileNavListItem {
    flex: 1;
}

.menuMobileNavListItemLink {
    display: flex;
    gap: 8px;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    color: var(--text-secondary);
    position: relative;
}

.menuMobileNavListItemLink::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-green);
    bottom: 0;
    left: 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 500ms;
    transform-origin: left;
}

.menuMobileNavListItemLink.active {
    color: var(--color-green);
}

.menuMobileNavListItemLink.active::after {
    transform: scaleX(1);
}

@media (hover: none) and (pointer: coarse) {
    .menuMobileNavList {
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
}

.menuSidebar {
    border-right: 1px solid #DDD;
    height: var(--safe-area);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--headerHeight);
    overflow-y: auto;
    grid-row: 1/3;
    background-color: var(--color-surface);
}

.menuSidebarHeader {
    padding: 16px;
    border-bottom: 1px solid #DDD;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--color-surface);
    z-index: 1;
}

.menuSidebarHeader.hidden {
    display: none;
}

.menuSidebarHeaderLocationButton {
    font-family: "Eames Century Modern", sans-serif;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    color: var(--text-primary);
    display: block;
    text-align: center;
}

.menuSidebarHeaderLocationButton:hover {
    text-decoration: underline;
}

.menuSidebarHeaderLocationButtonName {
    color: var(--color-green);
    font-weight: 700;
}

.menuSidebarNav {
    height: 100%;
}

.menuSidebarNavList {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.menuSidebarNavListItem {
    flex: 1;
    flex-basis: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #DDD;
}

.menuSidebarNavListItem:last-child {
    border-bottom: none;
}

.menuSidebarNavListItemLink {
    font-size: 22px;
    position: relative;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
    font-family: 'Eames Century Modern', sans-serif;
    color: var(--text-primary);
}

.menuSidebarNavListItemLink::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-green);
    bottom: -5px;
    left: 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 500ms;
    transform-origin: center;
}

.menuSidebarNavListItemLink.active, .menuSidebarNavListItemLink:hover {
    color: var(--color-green);
}

.menuSidebarNavListItemLink.active::after {
    transform: scaleX(1);
}

.menuContentDietaryPreferencesWrapper {
    padding: 40px 0 0 0;
}

.menuContentDietaryPreferences {
    font-size: 15px;
    width: fit-content;
    margin: 0 auto;
}

.menuContentDietaryPreferences button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.menuContentDietaryPreferences svg {
    width: 20px;
    height: 20px;
}

.menuContentDietaryPreferences:hover svg line, .menuContentDietaryPreferences:hover svg circle {
    stroke: #022402;
    fill: #022402;
}

.menuContentDietaryPreferences[data-filter-active] button {
    background-color: #e0564c;
    border-radius: 6px;
    color: #ffffff;
}

.menuContentDietaryPreferences[data-filter-active]:hover button {
    background-color: #c94a40;
    color: #022402;
}

.menuContentDietaryPreferences[data-filter-active]:hover svg line, .menuContentDietaryPreferences[data-filter-active]:hover svg circle {
    stroke: #022402;
    fill: #022402;
}

/* Circle bounce animation for dietary preferences icon */
@keyframes moveCircle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.menuContentDietaryPreferences circle {
    animation: moveCircle 1s ease-in-out 1;
}

.menuContentDietaryPreferences #circleMiddle {
    animation-delay: 0.2s;
}

.menuContentDietaryPreferences #circleRight {
    animation-delay: 0.4s;
}

.menuContentDietaryPreferences:hover circle {
    animation-iteration-count: infinite;
}

@media (max-width: 768px) {
    .menu {
        display: block;
    }

    .menuHero {
        padding: 40px 24px;
    }

    .menuHeroTitle {
        font-size: 30px;
    }

    .menuMobileNav {
        display: block;
    }

    .menuSidebar {
        display: none;
    }

    .menuContentDietaryPreferencesWrapper {
        padding: 0;
    }

    .menuContentDietaryPreferences {
        width: 100%;
    }
}
