/* ==========================================
   L'OPERA ROYAL - MENU CONTENT
   Summer menu edition
   Left dishes / Right square category image
   White background / Navy text / Gold accents
   No gradients / No black / No blur / No parallax
========================================== */

/*
|--------------------------------------------------------------------------
| Dynamic menu component
|--------------------------------------------------------------------------
| Expected post type: royal_dish
| Expected taxonomy: royal_menu_category
|--------------------------------------------------------------------------
| Category images from theme:
|--------------------------------------------------------------------------
| Location: assets/images/menu/categories/
|
| File name: menu-starters.jpg
| Replace with: Square premium starter dish photo, tartare, burrata, croquetas or sharing plate.
|
| File name: menu-oysters.jpg
| Replace with: Square elegant oysters on ice, lemon, caviar or refined seafood detail.
|
| File name: menu-salads.jpg
| Replace with: Square fresh premium salad, tomatoes, burrata, vegetables or herbs.
|
| File name: menu-from-the-sea.jpg
| Replace with: Square grilled fish, octopus, mussels or Mediterranean seafood plate.
|
| File name: menu-meats.jpg
| Replace with: Square premium grilled meat, entrecote, lamb, burger or steak detail.
|
| File name: menu-rice.jpg
| Replace with: Square llauna rice, paella-style dish, seafood rice or black rice.
|
| File name: menu-pasta.jpg
| Replace with: Square elegant pasta dish, tagliatelle, frutti di mare or pomodoro.
|
| File name: menu-fried-specialities.jpg
| Replace with: Square fried calamari, boquerones, fritura mixta or crispy seafood.
|
| File name: menu-desserts.jpg
| Replace with: Square elegant dessert, cheesecake, brownie, apple pie or chocolate detail.
|--------------------------------------------------------------------------
| Recommended image size
|--------------------------------------------------------------------------
| Source image: 800 x 800 px preferred
| Display size: 400 x 400 px on desktop
| JPG
| 120KB to 220KB each
|--------------------------------------------------------------------------
*/

/* ==========================================
   SECTION
========================================== */

.royal-menu-content {
    position: relative;
    isolation: isolate;

    padding: 96px 0 112px;

    color: var(--royal-navy);
    background: var(--royal-white);

    overflow: visible;
}

.royal-menu-content::before {
    content: "";

    position: absolute;
    left: 50%;
    top: 0;
    z-index: -1;

    width: min(1180px, 92%);
    height: 1px;

    background: rgba(var(--royal-gold-rgb), 0.36);

    transform: translateX(-50%);

    pointer-events: none;
}

/* ==========================================
   HEADER
========================================== */

.royal-menu-content__header {
    max-width: 820px;
    margin: 0 auto 72px;

    text-align: center;
}

.royal-menu-content .royal-kicker {
    margin: 0 0 16px;

    color: var(--royal-gold);

    font-family: var(--royal-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
}

.royal-menu-content__title {
    margin: 0;

    color: var(--royal-navy);

    font-family: var(--royal-font-heading);
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 500;
    letter-spacing: 0.045em;
    line-height: 1.06;
    text-transform: uppercase;
}

.royal-menu-content__title::after {
    content: "";

    width: 88px;
    height: 1px;
    margin: 24px auto 0;

    display: block;

    background: var(--royal-gold);
}

.royal-menu-content__intro {
    max-width: 640px;
    margin: 28px auto 0;

    color: rgba(var(--royal-navy-rgb), 0.72);

    font-family: var(--royal-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.76;
}

/* ==========================================
   CATEGORY NAVIGATION
========================================== */

.royal-menu-content__tabs {
    position: sticky;
    top: 104px;
    z-index: 60;

    max-width: 1180px;
    margin: 0 auto 78px;
    padding: 12px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    background: rgba(var(--royal-navy-rgb), 0.97);
    border: 1px solid rgba(var(--royal-gold-rgb), 0.34);

    box-shadow: 0 18px 46px rgba(var(--royal-navy-rgb), 0.16);

    overflow-x: auto;
    scrollbar-width: none;
}

.royal-menu-content__tabs::-webkit-scrollbar {
    display: none;
}

.royal-menu-content__tabs a {
    flex: 0 0 auto;

    padding: 12px 16px;

    color: rgba(var(--royal-white-rgb), 0.78);
    background: transparent;
    border: 1px solid transparent;

    font-family: var(--royal-font-body);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    transition:
        color var(--royal-transition),
        background-color var(--royal-transition),
        border-color var(--royal-transition);
}

.royal-menu-content__tabs a:hover,
.royal-menu-content__tabs a:focus-visible,
.royal-menu-content__tabs a.is-active {
    color: var(--royal-white);
    background: rgba(var(--royal-gold-rgb), 0.18);
    border-color: rgba(var(--royal-gold-rgb), 0.52);
}

/* ==========================================
   CATEGORIES
========================================== */

.royal-menu-content__sections {
    display: flex;
    flex-direction: column;
    gap: 112px;
}

.royal-menu-category {
    scroll-margin-top: 230px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 58px;
    align-items: start;
}

.royal-menu-category__content {
    min-width: 0;
}

/* ==========================================
   CATEGORY HEADER
========================================== */

.royal-menu-category__header {
    margin-bottom: 34px;
    padding-bottom: 26px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 24px;

    border-bottom: 1px solid rgba(var(--royal-gold-rgb), 0.34);
}

.royal-menu-category__number {
    color: rgba(var(--royal-gold-rgb), 0.92);

    font-family: var(--royal-font-heading);
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 0.92;
}

.royal-menu-category__title {
    margin: 0;

    color: var(--royal-navy);

    font-family: var(--royal-font-heading);
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 500;
    letter-spacing: 0.045em;
    line-height: 1.02;
    text-transform: uppercase;
}

/* ==========================================
   CATEGORY VISUAL
   Right column / Square image
========================================== */

.royal-menu-category__visual {
    position: sticky;
    top: 154px;

    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin-left: auto;

    background: var(--royal-navy);
    border: 1px solid rgba(var(--royal-gold-rgb), 0.34);

    box-shadow:
        0 24px 64px rgba(var(--royal-navy-rgb), 0.12),
        0 0 0 8px rgba(var(--royal-white-rgb), 0.78);

    overflow: hidden;
}

.royal-menu-category__visual::before {
    content: "";

    position: absolute;
    inset: 14px;
    z-index: 2;

    border: 1px solid rgba(var(--royal-white-rgb), 0.28);

    pointer-events: none;
}

.royal-menu-category__image {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.01);

    pointer-events: none;
}

.royal-menu-category__visual::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(var(--royal-navy-rgb), 0.16);

    pointer-events: none;
}

/* ==========================================
   CATEGORY IMAGE CROP CONTROL
========================================== */

.royal-menu-category__visual--starters .royal-menu-category__image,
.royal-menu-category__visual--entrantes .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--oysters .royal-menu-category__image,
.royal-menu-category__visual--ostras .royal-menu-category__image {
    object-position: center 48%;
}

.royal-menu-category__visual--salads .royal-menu-category__image,
.royal-menu-category__visual--ensaladas .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--from-the-sea .royal-menu-category__image,
.royal-menu-category__visual--nuestros-mares .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--meats .royal-menu-category__image,
.royal-menu-category__visual--nuestras-carnes .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--llauna-rice-dishes .royal-menu-category__image,
.royal-menu-category__visual--arroz-llauna .royal-menu-category__image,
.royal-menu-category__visual--rice .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--pasta .royal-menu-category__image,
.royal-menu-category__visual--pastas .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--fried-specialities .royal-menu-category__image,
.royal-menu-category__visual--fried-specialties .royal-menu-category__image,
.royal-menu-category__visual--nuestros-fritos .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__visual--desserts .royal-menu-category__image,
.royal-menu-category__visual--postres .royal-menu-category__image {
    object-position: center 50%;
}

.royal-menu-category__fallback-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;

    width: clamp(120px, 15vw, 190px);
    height: auto;

    display: block;

    opacity: 0.30;
    filter: drop-shadow(0 16px 32px rgba(var(--royal-navy-rgb), 0.24));

    transform: translate(-50%, -50%);
}

/* ==========================================
   DISH LIST
========================================== */

.royal-menu-category__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ==========================================
   DISHES
========================================== */

.royal-menu-dish {
    position: relative;

    padding: 24px 0 25px;

    background: transparent;
    border-bottom: 1px solid rgba(var(--royal-gold-rgb), 0.18);

    transition:
        border-color var(--royal-transition),
        transform var(--royal-transition);
}

.royal-menu-dish:first-child {
    padding-top: 0;
}

.royal-menu-dish:hover {
    border-color: rgba(var(--royal-gold-rgb), 0.42);

    transform: translateX(4px);
}

.royal-menu-dish__top {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, auto) minmax(34px, 1fr) auto;
    align-items: baseline;
    gap: 12px;
}

.royal-menu-dish__top::after {
    content: "";

    width: 100%;
    height: 1px;

    display: block;

    background: rgba(var(--royal-gold-rgb), 0.28);

    transform: translateY(-4px);
}

.royal-menu-dish__title {
    margin: 0;

    color: var(--royal-navy);

    font-family: var(--royal-font-heading);
    font-size: clamp(22px, 1.7vw, 27px);
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.14;
    text-transform: uppercase;
}

.royal-menu-dish__price {
    color: var(--royal-gold);

    font-family: var(--royal-font-body);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    white-space: nowrap;
}

.royal-menu-dish__description {
    max-width: 720px;
    margin: 11px 0 0;

    color: rgba(var(--royal-navy-rgb), 0.66);

    font-family: var(--royal-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.68;
}

/* ==========================================
   EMPTY STATE
========================================== */

.royal-menu-content__empty {
    max-width: 720px;
    margin: 56px auto 0;
    padding: 32px;

    text-align: center;

    background: var(--royal-white);
    border: 1px solid rgba(var(--royal-gold-rgb), 0.24);

    box-shadow: 0 18px 48px rgba(var(--royal-navy-rgb), 0.06);
}

.royal-menu-content__empty p {
    margin: 0;

    color: rgba(var(--royal-navy-rgb), 0.72);

    font-family: var(--royal-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {
    .royal-menu-content {
        padding: 86px 0 98px;
    }

    .royal-menu-content__header {
        margin-bottom: 58px;
    }

    .royal-menu-content__tabs {
        display: none;
    }

    .royal-menu-content__sections {
        gap: 94px;
    }

    .royal-menu-category {
        scroll-margin-top: 128px;

        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        gap: 38px;
    }

    .royal-menu-category__visual {
        top: 126px;
        max-width: 320px;
    }

    .royal-menu-category__header {
        gap: 18px;
        margin-bottom: 28px;
        padding-bottom: 22px;
    }

    .royal-menu-category__title {
        font-size: clamp(28px, 4.6vw, 40px);
    }

    .royal-menu-dish {
        padding: 22px 0 23px;
    }

    .royal-menu-dish__title {
        font-size: clamp(21px, 2.3vw, 25px);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
    .royal-menu-content {
        padding: 72px 0 86px;
    }

    .royal-menu-content__header {
        margin-bottom: 46px;
    }

    .royal-menu-content .royal-kicker {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .royal-menu-content__title {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.1;
    }

    .royal-menu-content__title::after {
        width: 72px;
        margin-top: 22px;
    }

    .royal-menu-content__intro {
        margin-top: 24px;

        font-size: 14px;
        line-height: 1.7;
    }

    .royal-menu-content__sections {
        gap: 78px;
    }

    .royal-menu-category {
        scroll-margin-top: 104px;

        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .royal-menu-category__visual {
        position: relative;
        top: auto;
        order: -1;

        width: min(100%, 390px);
        max-width: 390px;
        margin: 0 auto;

        box-shadow:
            0 22px 52px rgba(var(--royal-navy-rgb), 0.12),
            0 0 0 7px rgba(var(--royal-white-rgb), 0.72);
    }

    .royal-menu-category__visual::before {
        inset: 12px;
    }

    .royal-menu-category__visual::after {
        background: rgba(var(--royal-navy-rgb), 0.18);
    }

    .royal-menu-category__header {
        margin-bottom: 22px;
        padding-bottom: 20px;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;

        text-align: center;
    }

    .royal-menu-category__number {
        font-size: 34px;
    }

    .royal-menu-category__title {
        font-size: clamp(27px, 7.8vw, 36px);
        text-align: center;
        line-height: 1.04;
    }

    .royal-menu-category__fallback-symbol {
        width: clamp(112px, 42vw, 180px);
    }

    .royal-menu-dish {
        padding: 22px 0 23px;
    }

    .royal-menu-dish:hover {
        transform: none;
    }

    .royal-menu-dish__top {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .royal-menu-dish__top::after {
        display: none;
    }

    .royal-menu-dish__title {
        font-size: 21px;
    }

    .royal-menu-dish__description {
        font-size: 13px;
        line-height: 1.68;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 420px) {
    .royal-menu-content {
        padding: 66px 0 78px;
    }

    .royal-menu-content__header {
        margin-bottom: 38px;
    }

    .royal-menu-category__visual {
        width: 100%;
        max-width: 100%;
    }

    .royal-menu-category__title {
        font-size: 28px;
    }

    .royal-menu-dish {
        padding: 21px 0 22px;
    }

    .royal-menu-dish__title {
        font-size: 20px;
    }

    .royal-menu-dish__price {
        font-size: 12px;
    }
}