/* ===================================================
   CATERING PAGE  Specific Styles
   Inherits base from home.css
   =================================================== */

/* ---------- Page Header ---------- */
.cp-page-header {
    background: #1a1a2e no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    text-align: center;
}

.cp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(21, 128, 61, 0.55) 100%);
    z-index: 1;
}

.cp-page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    right: -180px;
    top: -200px;
    z-index: 1;
}

.cp-page-header-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cp-page-header i.cp-header-icon {
    font-size: 2.2rem;
    color: var(--hp-accent);
    margin-bottom: 16px;
    display: block;
}

.cp-page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cp-page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Quick Navigation ---------- */
.cp-quick-nav {
    background: var(--hp-card-bg);
    border-bottom: 1px solid var(--hp-border);
    position: sticky;
    top: var(--hp-topbar-h);
    z-index: 900;
}

.cp-quick-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cp-quick-nav-inner::-webkit-scrollbar {
    display: none;
}

.cp-quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hp-text-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.cp-quick-nav a:hover,
.cp-quick-nav a.active {
    color: var(--hp-accent);
    border-bottom-color: var(--hp-accent);
}

.cp-quick-nav a i {
    font-size: 1rem;
}

/* ---------- Category Section ---------- */
.cp-category {
    padding: 64px 0;
    border-bottom: 1px solid var(--hp-border);
}

.cp-category:last-of-type {
    border-bottom: none;
}

.cp-category:nth-child(even) {
    background: var(--hp-card-bg);
}

.cp-category-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

.cp-category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cp-category-icon.breakfast {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.cp-category-icon.lunch {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.cp-category-icon.dinner {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.cp-category-icon.coffee {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.cp-category-info {
    flex: 1;
}

.cp-category-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hp-primary);
    margin-bottom: 4px;
}

.cp-category-info p {
    color: var(--hp-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cp-view-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--hp-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.cp-view-menu-btn:hover {
    background: var(--hp-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 144, 64, 0.25);
}

/* ---------- Magazine Gallery Grid ---------- */
.cp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cp-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.cp-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.cp-gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
}

.cp-gallery-item-label h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.cp-gallery-item-label span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- CTA Section ---------- */
.cp-cta {
    padding: 80px 0;
    background: #1a1a2e no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(21, 128, 61, 0.6) 100%);
    z-index: 1;
}

.cp-cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    left: -150px;
    bottom: -150px;
    z-index: 1;
}

.cp-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.cp-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cp-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cp-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- PDF Modal ---------- */
.cp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cp-modal-overlay.active {
    display: flex;
}

.cp-modal {
    background: var(--hp-card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--hp-border);
}

.cp-modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-primary);
}

.cp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--hp-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--hp-text-muted);
    transition: all 0.2s;
}

.cp-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.cp-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    min-height: 300px;
}

.cp-modal-body .cp-pdf-placeholder {
    width: 100%;
    min-height: 400px;
    background: var(--hp-bg);
    border-radius: 12px;
    border: 2px dashed var(--hp-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hp-text-muted);
    gap: 12px;
}

.cp-pdf-placeholder i {
    font-size: 3rem;
    color: var(--hp-accent);
}

.cp-pdf-placeholder p {
    font-size: 0.95rem;
}

.cp-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--hp-border);
    justify-content: flex-end;
}

.cp-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
    border: 1px solid var(--hp-border);
    background: var(--hp-bg);
    color: var(--hp-text);
}

.cp-modal-btn:hover {
    background: var(--hp-primary);
    color: #fff;
    border-color: var(--hp-primary);
}

.cp-modal-btn.primary {
    background: var(--hp-accent);
    color: #fff;
    border-color: var(--hp-accent);
}

.cp-modal-btn.primary:hover {
    background: var(--hp-accent-light);
    border-color: var(--hp-accent-light);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
    .cp-category-header {
        flex-wrap: wrap;
    }

    .cp-view-menu-btn {
        width: 100%;
        justify-content: center;
    }

    .cp-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .cp-page-header h1 {
        font-size: 1.8rem;
    }

    .cp-page-header {
        padding: 40px 0 36px;
    }

    /* Hide category icons on mobile */
    .cp-category-icon {
        display: none;
    }

    .cp-category {
        padding: 40px 0;
    }

    .cp-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Quick nav: horizontal scroll, no wrap */
    .cp-quick-nav {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cp-quick-nav::-webkit-scrollbar {
        display: none;
    }

    .cp-quick-nav-inner {
        padding: 0 16px;
        gap: 0;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
    }

    .cp-quick-nav a {
        padding: 14px 14px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .cp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cp-gallery-item {
        height: 160px;
    }

    .cp-cta h2 {
        font-size: 1.5rem;
    }

    .cp-cta-btns {
        flex-direction: column;
    }

    .cp-cta-btns a,
    .cp-cta-btns button {
        width: 100%;
        justify-content: center;
    }

    .cp-modal {
        max-height: 85vh;
        border-radius: 16px;
    }
}
