/* ==========================================================================
   Pizza Near Me — menu page
   Layered on top of site.css (palette, fonts, page wash live there).
   Built mobile-first: nearly every visitor arrives by scanning the table QR.
   ========================================================================== */

.menu-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.1rem 3rem;
}

/* --- Masthead --- */

.menu-head {
    text-align: center;
    padding: 2rem 0 1.25rem;
}

.menu-head .brand-logo {
    width: 150px;
    max-width: 45vw;
    height: auto;
    mix-blend-mode: multiply;
}

.menu-head h1 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pizza-red);
    margin-top: 0.5rem;
}

.menu-head .tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.diamonds {
    color: var(--pizza-green);
    letter-spacing: 0.6em;
    font-size: 0.7rem;
    margin-top: 0.75rem;
}

/* --- Order / call buttons --- */

.menu-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.menu-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.menu-btn-primary {
    background: var(--pizza-red);
    color: var(--cream);
    box-shadow: var(--shadow-soft);
}

.menu-btn-primary:hover {
    background: var(--pizza-red-dark);
    box-shadow: var(--shadow-medium);
}

.menu-btn-secondary {
    background: transparent;
    color: var(--pizza-green);
    border: 2px solid var(--pizza-green);
}

.menu-btn-secondary:hover {
    background: var(--pizza-green);
    color: var(--cream);
}

/* --- Sticky jump nav --- */

.menu-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 1.5rem -1.1rem 0;
    padding: 0.6rem 0;
    background: rgba(255, 248, 240, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--gray-light);
}

.menu-nav ul {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    overflow-x: auto;
    padding: 0 1.1rem;
    scrollbar-width: none;
}

.menu-nav ul::-webkit-scrollbar {
    display: none;
}

.menu-nav a {
    display: block;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--warm-white);
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.menu-nav a:hover {
    background: var(--pizza-green);
    border-color: var(--pizza-green);
    color: var(--cream);
}

/* --- Sections --- */

.menu-section {
    margin-top: 2.5rem;
    /* Clear the sticky nav when jumped to from the chips above */
    scroll-margin-top: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pizza-red);
    text-align: center;
}

.section-title::before,
.section-title::after {
    content: '~';
    color: var(--pizza-green);
    margin: 0 0.5rem;
    font-weight: 400;
}

.section-note {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pizza-green);
    text-align: center;
    margin: 1.75rem 0 0.25rem;
}

.subsection-title::before,
.subsection-title::after {
    content: '—';
    margin: 0 0.5rem;
    color: var(--gray-light);
}

/* --- Items --- */

.items {
    margin-top: 1rem;
}

.item {
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--gray-light);
}

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

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.item-head h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
}

.price {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pizza-red);
    white-space: nowrap;
}

/* Three-size pizza pricing sits on its own line so long names never squash it */
.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    margin-top: 0.3rem;
}

.sizes span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pizza-red);
}

.sizes span b {
    font-weight: 600;
    color: var(--gray-medium);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.2rem;
}

.desc {
    font-size: 0.88rem;
    color: var(--gray-dark);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* --- Callout cards (build your own, add-ons, extras) --- */

.card {
    background: var(--warm-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--pizza-green);
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.88rem;
    color: var(--gray-dark);
}

.card + .card {
    margin-top: 0.75rem;
}

.toppings-list {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.9;
}

.addons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.addons div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed var(--gray-light);
}

.addons div span:last-child {
    font-weight: 700;
    color: var(--pizza-red);
    white-space: nowrap;
}

.inline-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-dark);
    background: var(--warm-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1rem;
    margin-top: 1rem;
}

.inline-note strong {
    color: var(--pizza-red);
}

/* --- Footer info --- */

.menu-footer {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 2px solid var(--gray-light);
    text-align: center;
}

.menu-footer .hours-row {
    display: flex;
    justify-content: space-between;
    max-width: 320px;
    margin: 0 auto;
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

.menu-footer .day {
    font-weight: 700;
    color: var(--pizza-green);
}

.menu-footer h3 {
    font-family: var(--font-display);
    color: var(--pizza-red);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.menu-footer a {
    color: var(--pizza-green);
    font-weight: 600;
}

.footer-block {
    margin-bottom: 1.5rem;
}

.fine-print {
    font-size: 0.75rem;
    color: var(--gray-medium);
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* --- Wider screens: two columns of items --- */

@media (min-width: 720px) {
    .menu-head h1 {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .items-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 2.25rem;
    }

    .addons {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 2rem;
    }
}

/* --- Printing the menu (counter copies) --- */

@media print {
    .menu-nav,
    .menu-actions {
        display: none;
    }

    body {
        background: #fff;
    }

    .menu-section {
        break-inside: avoid;
    }
}
