/* =====================================================================
   Captain Franks Hotdog Emporium — menu.css
   Menu-page-only styles. Shared styles live in main.css.
   ===================================================================== */

/* ── Page Header ── */
.menu-header {
    padding: 3rem 6% 2rem;
    background: var(--beige);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
}

.menu-jump-links {
    position: sticky;
    top: 53px;              /* flush under the nav (nav ≈ 53px tall) */
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centered on desktop */
    gap: 0.75rem;
    padding: 0.85rem 6%;
    background: var(--beige);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 0;
}

.menu-jump-links a {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.12);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.menu-jump-links a:hover {
    background: var(--captain-orange);
    border-color: var(--captain-orange);
    color: var(--ink);
}

/* ── Section layout ── */
.menu-section {
    padding: 3.5rem 6%;
    background: var(--white);
    scroll-margin-top: 120px;
}

.menu-section-alt {
    background: var(--beige);
}

/* Side-by-side layout when image is present */
.menu-section-inner {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1100px;
}

/* Image slot */
.menu-section-img {
    flex: 0 0 300px;
    position: sticky;
    top: 80px; /* sticks below the nav as you scroll */
}

.menu-section-img img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border: 3px solid var(--captain-orange);
}

/* Content side */
.menu-section-content {
    flex: 1;
    min-width: 0;
}

.menu-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--captain-orange);
    text-transform: uppercase;
}

/* ── Individual menu items ── */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0; /* dividers handle spacing */
}

.menu-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.menu-item-top em {
    text-transform: lowercase;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    text-transform: capitalize;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--captain-orange-deep);
    white-space: nowrap;
    flex-shrink: 0;
}

.item-price em {
    color: var(--ink);
    text-transform: capitalize;
}

.item-desc {
    font-size: 0.875rem;
    color: var(--ink);
    line-height: 1.6;
    margin: 0;
    text-transform: capitalize;
}

.item-desc em {
    text-transform: lowercase;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .menu-section-img {
        flex: 0 0 220px;
        position: static; /* don't sticky on smaller screens */
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
══════════════════════════════════════════════ */
@media (max-width: 600px) {

    html { scroll-padding-top: 110px; }

    .menu-header {
        padding: 2rem 5% 1.5rem;
    }

    .menu-jump-links {
        top: 53px;
        justify-content: flex-start;   /* left-align so they can scroll */
        flex-wrap: nowrap;             /* keep them on one row */
        overflow-x: auto;              /* horizontal scroll on mobile */
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding: 0.6rem 5%;
        scrollbar-width: none;         /* hide scrollbar (Firefox) */
    }
    .menu-jump-links::-webkit-scrollbar { display: none; } /* hide on Chrome/Safari */

    .menu-jump-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
        flex-shrink: 0;                /* prevent squishing */
    }

    .menu-section {
        padding: 2.5rem 5%;
        scroll-margin-top: 110px;
    }

    /* Stack image above content on mobile */
    .menu-section-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .menu-section-img {
        flex: none;
        width: 100%;
    }

    .menu-section-img img {
        aspect-ratio: 16 / 9;
    }

    .item-name {
        font-size: 0.95rem;
    }

    .item-price {
        font-size: 0.95rem;
    }
}
