/* ==========================================================================
   MENU PAGE — PUBLIC /menu.php
   Coffee / espresso palette, matching the homepage
   ========================================================================== */


/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    --mp-bg:          #160d09;
    --mp-bg-soft:     #21130d;
    --mp-surface:     #2d1a12;
    --mp-coffee:      #4a2c1d;

    --mp-cream:       #f6eee3;
    --mp-milk:        #fbf7f1;
    --mp-oat:         #e8dac9;

    --mp-text:        #2b1a12;
    --mp-muted:       #806c5c;

    --mp-accent:      #c99762;
    --mp-accent-2:    #b17a50;
    --mp-accent-3:    #a9693b;

    --mp-border:      rgba(74, 44, 29, .14);

    --mp-radius:      6px;

    --mp-shadow-sm:   0 12px 30px rgba(45, 26, 18, .08);
    --mp-shadow-md:   0 22px 55px rgba(45, 26, 18, .14);
}


/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */

.menu-page {
    background: var(--mp-milk);
    color: var(--mp-text);
    min-height: 100vh;
}

.menu-page-container {
    width: min(1240px, 92%);
    margin: 0 auto;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.menu-page-hero {
    position: relative;
    overflow: hidden;

    padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 110px);

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(201, 151, 98, .18),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            var(--mp-bg) 0%,
            var(--mp-bg-soft) 100%
        );

    color: var(--mp-cream);
    text-align: center;
}

.menu-page-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(169, 105, 59, .12),
            transparent 45%
        );
}

.menu-page-hero .eyebrow {
    position: relative;
    z-index: 1;

    margin-bottom: 22px;

    color: var(--mp-accent);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.menu-page-hero h1 {
    position: relative;
    z-index: 1;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(48px, 9vw, 120px);
    font-weight: 400;
    line-height: .92;

    letter-spacing: -.045em;
}

.menu-page-hero h1 i {
    color: var(--mp-accent);
    font-style: italic;
}

.menu-page-hero p {
    position: relative;
    z-index: 1;

    max-width: 560px;
    margin: 28px auto 0;

    color: rgba(246, 238, 227, .72);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 18px;
    line-height: 1.65;
}


/* ==========================================================================
   CATEGORY NAV
   ========================================================================== */

.menu-page-nav {
    position: sticky;
    top: 0;
    z-index: 20;

    background: var(--mp-bg-soft);

    border-bottom: 1px solid rgba(255, 255, 255, .06);

    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.menu-page-nav-list {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 14px 0;

    overflow-x: auto;

    scrollbar-width: none;
}

.menu-page-nav-list::-webkit-scrollbar {
    display: none;
}

.menu-page-nav-item {
    flex: 0 0 auto;

    padding: 10px 20px;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;

    color: rgba(246, 238, 227, .6);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.menu-page-nav-item:hover {
    color: var(--mp-cream);
    border-color: rgba(201, 151, 98, .35);
}

.menu-page-nav-item.is-active {
    background: var(--mp-accent);
    color: var(--mp-bg);
    border-color: var(--mp-accent);
}

.menu-page-nav-item:focus-visible {
    outline: 2px solid var(--mp-accent);
    outline-offset: 3px;
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.menu-page-section {
    padding: clamp(50px, 6vw, 90px) 0;

    border-bottom: 1px solid var(--mp-border);
}

.menu-page-section:last-of-type {
    border-bottom: 0;
}

.menu-page-section-heading {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: clamp(28px, 4vw, 48px);
}

.menu-page-section-heading h2 {
    margin: 0;

    color: var(--mp-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(34px, 5vw, 56px);
    font-weight: 400;
    line-height: 1;

    letter-spacing: -.035em;
}

.menu-page-section-count {
    flex: 0 0 auto;

    color: var(--mp-muted);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.menu-page-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 24px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.menu-page-card {
    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);

    box-shadow: var(--mp-shadow-sm);

    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.menu-page-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--mp-shadow-md);

    border-color: rgba(201, 151, 98, .28);
}


/* ==========================================================================
   CARD IMAGE
   ========================================================================== */

.menu-page-card-image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--mp-bg-soft);
}

.menu-page-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}

.menu-page-card:hover .menu-page-card-image img {
    transform: scale(1.05);
}


/* ==========================================================================
   CARD BODY
   ========================================================================== */

.menu-page-card-body {
    flex: 1 1 auto;

    padding: 22px 22px 16px;
}

.menu-page-card-body h3 {
    margin: 0 0 8px;

    color: var(--mp-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;

    letter-spacing: -.02em;
}

.menu-page-card-body p {
    margin: 0;

    color: var(--mp-muted);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    line-height: 1.6;

    /* Truncate at 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   CARD FOOTER
   ========================================================================== */

.menu-page-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 14px 22px 22px;

    border-top: 1px solid rgba(74, 44, 29, .07);
}

.menu-page-price {
    flex: 0 0 auto;

    color: var(--mp-accent-3);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .01em;
}


/* ==========================================================================
   ADD TO CART BUTTON
   ========================================================================== */

.menu-page-add {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 11px 18px;

    border: 1px solid var(--mp-text);
    border-radius: 999px;

    background: var(--mp-text);
    color: var(--mp-cream);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .15s ease;
}

.menu-page-add:hover {
    background: var(--mp-accent);
    border-color: var(--mp-accent);
    color: var(--mp-bg);
}

.menu-page-add:active {
    transform: scale(.96);
}

.menu-page-add:focus-visible {
    outline: 2px solid var(--mp-accent);
    outline-offset: 3px;
}

.menu-page-add .add-to-cart-icon {
    display: grid;

    width: 22px;
    height: 22px;

    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .15);

    font-size: 14px;
    font-weight: 400;
    line-height: 1;

    transition: background .25s ease;
}

.menu-page-add:hover .add-to-cart-icon {
    background: rgba(0, 0, 0, .15);
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.menu-page-empty {
    padding: clamp(80px, 12vw, 160px) 20px;

    text-align: center;
}

.menu-page-empty h2 {
    margin: 0 0 12px;

    color: var(--mp-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
}

.menu-page-empty p {
    margin: 0;

    color: var(--mp-muted);

    font-size: 15px;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.menu-page-cta {
    padding: clamp(70px, 10vw, 130px) 0;

    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(201, 151, 98, .10),
            transparent 60%
        ),
        var(--mp-bg);

    text-align: center;
}

.menu-page-cta h2 {
    margin: 0 0 28px;

    color: var(--mp-cream);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.menu-page-cta-button {
    display: inline-block;

    padding: 16px 36px;

    border: 1px solid var(--mp-accent);
    border-radius: 999px;

    background: transparent;
    color: var(--mp-cream);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.menu-page-cta-button:hover {
    background: var(--mp-accent);
    color: var(--mp-bg);
    transform: translateY(-2px);
}

.menu-page-cta-button:focus-visible {
    outline: 2px solid var(--mp-cream);
    outline-offset: 4px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .menu-page-container {
        width: 94%;
    }

    .menu-page-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(240px, 1fr));

        gap: 18px;
    }

    .menu-page-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .menu-page-container {
        width: 92%;
    }

    .menu-page-hero {
        padding: 70px 0 60px;
    }

    .menu-page-hero p {
        font-size: 16px;
    }

    .menu-page-nav-list {
        padding: 10px 0;
        gap: 4px;
    }

    .menu-page-nav-item {
        padding: 8px 15px;
        font-size: 10px;
    }

    .menu-page-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .menu-page-card-body {
        padding: 18px 18px 14px;
    }

    .menu-page-card-body h3 {
        font-size: 20px;
    }

    .menu-page-card-body p {
        font-size: 12px;
    }

    .menu-page-card-footer {
        padding: 12px 18px 18px;
    }

    .menu-page-price {
        font-size: 14px;
    }

    .menu-page-add {
        padding: 10px 16px;
        font-size: 9px;
    }

    .menu-page-add .add-to-cart-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .menu-page-card,
    .menu-page-card-image img,
    .menu-page-nav-item,
    .menu-page-add,
    .menu-page-add .add-to-cart-icon,
    .menu-page-cta-button {
        transition: none !important;
    }

    .menu-page-card:hover {
        transform: none;
    }

    .menu-page-card:hover .menu-page-card-image img {
        transform: none;
    }
}