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

.menuHero {
    height: 300px;
    position: relative;
    grid-column: 2/3;
    border-bottom: 1px solid #DDD;
}

.menuHero.hidden {
    display: none;
}

.menuHeroPicture {
    height: 100%;
}

.menuHeroPicture::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.menuHeroPictureImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menuHeroText {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

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

.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: #494949;
    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;
    padding: 20px;
    position: sticky;
    top: var(--headerHeight);
    overflow-y: auto;
    grid-row: 1/3;
}

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

.menuSidebarHeaderLocationButton {
    font-family: "Rebrand", sans-serif;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    color: #494949;
    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: 20px;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
    text-transform: uppercase;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
    font-family: 'Eames Century Modern', sans-serif;
}

.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;
}


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

    .menuHero {
        height: 200px;
    }

    .menuHeroTextTitle {
        font-size: 40px;
    }

    .menuMobileNav {
        display: block;
    }

    .menuSidebar {
        display: none;
    }

    .menuContentDietaryPreferencesWrapper {
        padding: 16px 24px;
    }

    .menuContentDietaryPreferences {
        width: 100%;
    }
}
