/* ==========================================
   SERVICES PAGE STYLES
   ========================================== */

/* ==========================================
   MENU HERO CONTAINER (Services Page Header)
   ========================================== */

.menu-hero-container {
    display: flex;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding-top: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Catering page has an extra sticky category nav (~50px) */
.catering-hero {
    padding-top: 110px;
}

/* Page Header */
.menu-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
}

.menu-main-title {
    margin-bottom: 1rem;
}

.menu-intro {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   SERVICE INFO SHOWCASE SECTION
   ========================================== */

.services-showcase-section {
    width: 100%;
    padding: 0rem 2rem;
}

.services-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-showcase-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

/* Showcase Grid */
.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-divider);
    position: relative;
    align-items: start;
}

/* Vertical Dividers Between Items */
.services-showcase-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--line-divider);
}

/* Showcase Item */
.services-showcase-item {
    padding: 3rem 2.5rem;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    text-align: center;
    min-height: 100%;
}

/* Content aligned properly */
.services-showcase-title {
    min-height: 3.5em;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.services-showcase-description {
    color: var(--text);
    align-self: start;
}

/* ==========================================
   OUTER MENU SECTION
   ========================================== */

.outer-menu-section {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.menu-section {
    width: 100%;
    flex-shrink: 0;
    margin: 0 auto;
    scroll-margin-top: 130px;
}

/* ==========================================
   GALLERY ROW (Shared with home)
   ========================================== */

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    flex: 1;
    min-height: 200px;
    max-height: 40vh;
}

.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================
   HERO CTA (below gallery row)
   ========================================== */

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.hero-cta-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--paragraph-text);
    margin: 0;
}

/* ==========================================
   CONTACT CTA CONTENT (Shared with home)
   ========================================== */

.contact-cta-content {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.contact-description {
    margin-bottom: 2.5rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    /* .gallery-row {
        grid-template-columns: repeat(2, 1fr);
        max-height: none;
    } */

    .outer-menu-section {
        padding: 0 2rem;
        gap: 6rem;
    }

    .custom-request-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .menu-hero-container {
        height: auto;
        min-height: 100dvh;
        padding-top: 50px;
        padding-bottom: 3rem;
    }

    .catering-hero {
        padding-top: 200px;
    }

    .menu-header {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    /* .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    } */

    .contact-cta-content {
        padding: 3rem 1.5rem;
    }

    .contact-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Services Showcase Responsive */
    .services-showcase-grid {
        grid-template-columns: 1fr;
    }

    .services-showcase-item:not(:last-child)::after {
        display: none;
    }

    .services-showcase-item {
        padding: 3rem 1.5rem;
        border-bottom: 1px solid #d0d0d0;
    }

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

    .outer-menu-section {
        width: 100%;
        padding: 0 1.5rem;
        gap: 4rem;
    }

    .menu-section {
        scroll-margin-top: 100px;
        margin-bottom: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .custom-request-section {
        padding: 2rem 1.5rem;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 2rem;
    }

    .services-form {
        padding: 1.5rem;
    }

    .services-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-row {
        grid-template-columns: 1fr;
        min-height: 500px;
    }

}

/* ==========================================
   CATERING/MENU PAGE STYLES
   ========================================== */

/* Menu Icon Styles */
.menu-icon {
    color: var(--text);
    width: 24px;
    height: 24px;
}

#icon-info {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

#icon-cart {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.custom-cart-icon {
    stroke: var(--light);
    fill: none;
    stroke-width: 1.5;
}

.custom-cart-icon:hover {
    stroke: var(--dark);
}

/* Menu Category Title */
.menu-category-title {
    display: none;
    width: 33%;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-divider);
}

/* Menu Category Image */
.menu-category-image {
    overflow: hidden;
    position: relative;
    height: 20vh;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--box-radius);
}

.menu-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.menu-category-image img:hover {
    transform: scale(1.1);
}

/* Category Image Overlay Title */
.category-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.category-overlay-title {
    color: var(--light);
    text-align: center;
}

/* Menu Grid */
.menu-grid {
    position: relative;
    margin: 2.5rem 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

.menu-grid:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--line-divider);
    transform: translateX(-50%);
    z-index: 1;
}

.menu-grid:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--line-divider);
    transform: translateX(-50%);
    z-index: 1;
}

/* Menu Item */
.menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--box-radius);
    transition: all 0.3s ease;
    justify-content: space-between;
}

.item-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.menu-item-name {
    font-size: 1.2rem;
    position: relative;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-divider);
}

.menu-item-description {
    color: var(--text);
}

.menu-item-actions {
    display: flex;
    gap: 1rem;
}

.btn-allergens,
.btn-add-cart {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-allergens:hover,
.btn-add-cart:hover {
    transform: translateY(-2px);
}

.menu-subcategory-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 2rem;
    background-color: var(--light);
    border-radius: var(--box-radius);
    width: clamp(320px, 78vw, 960px);
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-close {
    position: absolute;
    right: 0.5rem;
    top: 0rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--branding-gold);
}

/* Item Info Modal */
.item-info-container {
    display: flex;
    flex-direction: row-reverse;
    min-height: 320px;
    gap: 1.5rem
}

.info-text-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-width: 0;
    gap: 1rem;
}

.info-item-name {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-divider);
}

.info-image-section {
    flex-shrink: 0;
    width: 48%;
    align-self: flex-start;
    overflow: hidden;
    border-radius: var(--box-radius);
}

.modal-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-heading {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--branding-gold);
}

.info-subheading {
    font-size: 0.9rem;
    color: var(--dark);
    margin: 0;
    font-weight: 500;
}

.info-text {
    color: var(--dark);
}

.info-text.info-empty {
    color: var(--paragraph-text);
    font-style: italic;
}

/* Allergen / Dietary Tags */
.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.allergen-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    background: color-mix(in srgb, #e65100 12%, white);
    color: #c44400;
    border: 1px solid color-mix(in srgb, #e65100 35%, white);
}

.dietary-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    background: color-mix(in srgb, #2e7d32 12%, white);
    color: #1b5e20;
    border: 1px solid color-mix(in srgb, #2e7d32 35%, white);
}

/* ==========================================
   CUSTOM REQUEST SECTION
   ========================================== */

.custom-request-section {
    margin: 4rem 0;
    background-color: var(--white);
    padding: 4rem 3rem;
    border-radius: var(--box-radius);
    border: 2px solid var(--branding-gold);
}

.custom-request-title {
    margin: 0 auto 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--branding-gold);
    color: var(--dark);
}

.custom-request-intro {
    text-align: center;
    color: var(--text-grey-light);
    margin-bottom: 3rem;
}

.custom-request-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid #d0d0d0;
    border-radius: var(--box-radius);
    font-size: 1rem;
    font-family: 'Zalando Sans', sans-serif;
    color: var(--dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--branding-gold);
    box-shadow: 0 0 0 3px rgba(108, 102, 1, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-request-button {
    display: flex;
    width: 100%;
    padding: .3rem;
    background-color: var(--branding-gold);
    color: var(--light);
    border: none;
    border-radius: var(--box-radius);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
    margin: 1rem auto;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.custom-request-button:hover {
    border: 1px solid var(--dark);
    background-color: transparent;
    color: var(--dark);
    transform: translateY(-2px);
}

/* Custom Item Image Upload Styles */
.form-input-file {
    padding: 1rem;
    border: 1px dashed #d0d0d0 !important;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s;
    width: 100%;
    font-size: 0.95rem;
}

.form-input-file:hover {
    border-color: var(--branding-gold);
    background: rgba(63, 142, 206, 0.3);
}

.description-input {
    margin-bottom: 1rem;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.image-preview-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.remove-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: bold;
}

.remove-preview:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ==========================================
   CART MODAL FORM
   ========================================== */

.cart-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cart-optional {
    font-weight: 400;
    color: var(--paragraph-text);
    font-size: 0.85em;
}

.cart-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
}

/* ==========================================
   RESPONSIVE OVERRIDES (must come after all main rules)
   ========================================== */

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid::after {
        display: none;
    }

    #info-modal,
    #cart-modal {
        align-items: flex-start;
        overflow-y: auto;
    }

    #info-modal .modal-content,
    #cart-modal .modal-content {
        max-height: none;
        margin: 1.5rem auto;
    }

    .item-info-container {
        flex-direction: column;
        min-height: auto;
    }

    .info-image-section {
        width: 100%;
        align-self: auto;
    }

    .info-text-section {
        padding: 1.5rem 0 0 0;
    }
}

