/* =========================================
   MENU PAGE
   ========================================= */

/* --- 1. Menu Hero --- */
.menu-hero {
    background-image: url(/img/hero-menu.webp); /* Update this with your actual pizza image path! */
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 250px;
    display: flex;
    align-items: flex-end; /* The Architect's trick to push text to the bottom */
    justify-content: center;
    padding-bottom: 30px;
    position: relative;
}

/* Dark gradient overlay fading top-to-bottom */
.menu-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.menu-hero .hero-title {
    position: relative;
    z-index: 2;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--white);
}

/* --- 2. Category Banners (With Thick Borders) --- */
.menu-category {
    width: 100%;
}

.category-banner {
    width: 100%;
}

/* The new thick top borders to replace the block headers */
.border-navy {
    border-top: 40px solid var(--main-red);
}
.border-red {
    border-top: 40px solid var();
} /* For the Plates section later! */

.category-banner img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* --- 3. The Item Lists & New Titles --- */
.category-items {
    padding: 60px 20px;
    text-align: center;
}

/* The Title now sits inside the cream section */
.category-title {
    font-family: var(--font-display);
    font-size: 28px; /* Slightly larger since it's the main header now */
    margin-top: 0;
    margin-bottom: 25px; /* Creates space before the food items start */
}

/* Utility colors for the text */
.text-navy {
    color: var(--dark-blue);
}
.text-red {
    color: var(--main-red);
}

.category-subtitle {
    font-size: 14px;
    color: var(--gray-text-dark);
    margin-top: -15px; /* Pulls the subtitle slightly closer to the title */
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- 4. The Menu Items --- */
.menu-item {
    margin-bottom: 35px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* The new wrapper! */
.item-header {
    display: flex;
    flex-direction: column; /* Keeps Name on top, Price on bottom for Mobile */
    align-items: center; /* Keeps everything perfectly centered */
}

/* We hide the dots on Mobile because they look messy on small screens */
.item-dots {
    display: none;
}

.item-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 6px;
    line-height: 1.3;
    text-align: center;
}

.highlight {
    color: var(--main-red);
    font-size: 14px;
    vertical-align: middle;
}

.item-price {
    color: var(--main-red);
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
}

.item-desc {
    font-size: 13px;
    color: var(--gray-text-dark);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* --- 5. Call To Action (Bottom) --- */
.menu-cta {
    padding: 50px 20px;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 26px;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 14px;
    color: var(--gray-text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Custom Navy Button specifically for the Call action */
.btn-navy {
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    transition: opacity 0.3s ease;
}

.btn-navy:hover {
    background-color: var(--light-blue);
}

.cta-image-stack img {
    width: 100%;
    max-width: 600px;
    margin: auto;
    display: block;
}

/* --- Menu Jump Navigation --- */
.menu-jump-nav {
    background-color: var(--dark-blue);
    padding: 15px 20px;

    /* The Magic Sticky Feature */
    position: sticky;
    top: 0;
    z-index: 100; /* Ensures it stays on top of the food images as they scroll past */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Drops a slight shadow on the menu below */
}

.jump-list {
    list-style: none;
    padding: 0;

    /* The Centering Magic */
    max-width: fit-content; /* Shrinks the container to exactly fit your buttons */
    margin: 0 auto; /* Centers that container in the middle of the screen */

    display: flex;
    gap: 12px;

    /* Mobile swiping magic */
    overflow-x: auto;
    white-space: nowrap;

    /* Hides the scrollbar for a cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jump-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.jump-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 15px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px; /* Creates the sleek pill shape */
    transition: all 0.3s ease;
}

/* Hover and Active states for the buttons */
.jump-link:hover,
.jump-link:active {
    background-color: #b32626; /* Your signature Red */
    border-color: #b32626;
    color: #fff;
}

/* =========================================
   DESKTOP SCALING (768px+)
   ========================================= */
@media (min-width: 768px) {
    /* --- 1. Hero Adjustments --- */
    .menu-hero {
        height: 50vh; /* Taller hero on desktop */
    }

    .menu-hero .hero-title {
        font-size: 56px; /* Massive, elegant title */
    }

    /* --- 2. Category Banners --- */
    .category-banner img {
        height: 250px; /* Thicker banners to span the wide screen */
    }

    .category-title {
        font-size: 36px;
    }

    .category-subtitle {
        font-size: 16px;
    }

    /* --- 3. The Menu Items (The Dotted Line Magic) --- */
    .menu-item {
        margin-bottom: 35px;
        max-width: 900px; /* Stretches the item wide across the screen */
        margin-left: auto;
        margin-right: auto;
    }

    .item-header {
        flex-direction: row;
        align-items: baseline;
    }

    .item-dots {
        display: block;
        flex-grow: 1;
        border-bottom: 2px dotted #b0b0b0; /* Light gray dots look a bit cleaner than heavy navy! */
        margin: 0 15px;
        position: relative;
        top: -4px; /* Tweak this if the dots look too high/low compared to the text */
    }

    .item-name {
        text-align: left; /* Overrides the mobile centering! */
        font-size: 20px;
        margin-bottom: 0;
    }

    .item-price {
        font-size: 18px;
        margin-bottom: 0;
    }

    .item-desc {
        text-align: left; /* Pulls the description flush left under the title */
        font-size: 15px;
        margin-top: 8px; /* Adds breathing room between the dotted line and the description */
        max-width: 80%; /* Keeps long descriptions from stretching all the way under the price */
    }

    /* --- 4. CTA Block Adjustments --- */
    .cta-title {
        font-size: 36px;
    }

    .cta-buttons {
        flex-direction: row; /* Puts the buttons side-by-side */
        justify-content: center;
        max-width: 600px;
    }

    .cta-btn {
        width: auto; /* Stops them from stretching full width */
        padding: 16px 40px;
    }
}
