/* ═══════════════════════════════════════════════════════════════
   BA BAR — CATERING PAGE STYLES
   Shared styles for catering order pages (Capitol Hill, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* ── Form validation ── */
.input-error {
    border-color: #e05c5c !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(224, 92, 92, 0.3);
}

.field-error-msg {
    display: block;
    color: #e05c5c;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Match navbar logo to original — natural image is 600x200, app.css constrains to 250w x 83h */
.navbar-brand img {
    width: 250px;
    height: 83px;
}

/* Global nav font — defined here because catering pages don't load app.css */
.global-nav {
    font-family: Montserrat, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.global-nav-sub {
    font-family: Montserrat, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

:root {
    --babar-gold: #C8964A;
    --babar-deep: #1a0a00;
    --babar-dark: #111111;
    --babar-card: #1c1c1c;
    --babar-border: #2e2e2e;
    --babar-purple: #57224F;
    --babar-accent: #e8a84c;
}

/* ── HERO ── */
.catering-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0500 0%, #2a0f00 50%, #1a0800 100%);
}

.catering-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/lib/images/catering/GrilledChickenVermicelli-1200x1200.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200,150,74,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,150,74,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--babar-gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--babar-gold);
}

.hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.6;
}

/* ── INFO STRIP ── */
.info-strip {
    background: var(--babar-card);
    border-bottom: 1px solid var(--babar-border);
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.info-pill .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(200,150,74,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--babar-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── GF/V MENU FOOTER ── */
.catering-page .my-8 {
    background: #1c1c1c;
    border-top: 1px solid #2e2e2e;
    border-bottom: 1px solid #2e2e2e;
    padding: 1.5rem 1rem;
}
.catering-page .my-8 .text-gray-400 {
    color: rgba(255,255,255,0.45) !important;
}
.catering-page .my-8 p[style*="color:#646363"] {
    color: rgba(255,255,255,0.35) !important;
}

/* ── FOOTER LOGO FIX ── */
.footer .logo-column img,
.footer .logo-column-mobile img {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
}

/* ── LAYOUT ── */
.catering-body {
    background: #f4f1ed;
    min-height: 100vh;
    padding-bottom: 0 !important;
}

.catering-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .catering-layout {
        grid-template-columns: 1fr;
    }
    .order-sidebar {
        position: static !important;
        order: -1;
    }
}

/* ── SECTION HEADERS ── */
.menu-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
}

.section-badge {
    background: linear-gradient(135deg, var(--babar-gold), #a8732e);
    color: #000;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin: 0;
}

.section-note {
    font-size: 0.925rem;
    color: rgba(0,0,0,0.5);
    margin-top: 0.25rem;
}

/* ── BRAND SECTION DIVIDER ── */
.brand-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-label {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: var(--babar-gold);
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

.brand-sub {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.5);
    margin: 0;
}

/* ── MENU CARDS ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-card {
    background: var(--babar-card);
    border: 1px solid var(--babar-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.menu-card:hover {
    border-color: var(--babar-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200,150,74,0.12);
}

.menu-card.selected {
    border-color: var(--babar-gold);
    box-shadow: 0 0 0 2px rgba(200,150,74,0.3), 0 8px 32px rgba(200,150,74,0.15);
}

.card-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--babar-gold);
    color: #000;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
}

.menu-card.selected .card-selected-badge {
    display: flex;
}

.card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #222;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.menu-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: var(--babar-gold);
    font-size: 2.5rem;
    opacity: 0.4;
}

.card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.price-chip {
    background: rgba(200,150,74,0.12);
    border: 1px solid rgba(200,150,74,0.25);
    border-radius: 8px;
    padding: 0.2rem 0.6rem;
    font-size: 0.875rem;
    color: var(--babar-gold);
    font-weight: 600;
}

.price-chip span {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-right: 0.25rem;
}

/* ── QUANTITY CONTROLS ── */
.card-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-select-wrap {
    flex: 1;
}

.qty-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid var(--babar-border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--babar-gold);
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: rgba(200,150,74,0.15);
}

.qty-display {
    flex: 1;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 28px;
}

.size-select {
    background: #111;
    border: 1px solid var(--babar-border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
    outline: none;
    cursor: pointer;
}

.size-select:focus {
    border-color: var(--babar-gold);
}

/* ── ORDER SIDEBAR ── */
.order-sidebar {
    position: sticky;
    top: 1.5rem;
}

.order-panel {
    background: var(--babar-card);
    border: 1px solid var(--babar-border);
    border-radius: 20px;
    overflow: hidden;
}

.order-panel-header {
    background: linear-gradient(135deg, #1a0800, #2e1000);
    border-bottom: 1px solid var(--babar-border);
    padding: 1.25rem 1.5rem;
}

.order-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.order-count-pill {
    display: inline-block;
    background: var(--babar-gold);
    color: #000;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.6rem;
}

.order-items-list {
    max-height: 520px;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--babar-border) transparent;
}

.order-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.875rem;
}

.order-empty .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--babar-border);
    gap: 0.75rem;
}

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

.order-item-name {
    font-size: 0.8rem;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}

.order-item-detail {
    font-size: 0.7rem;
    color: var(--babar-gold);
    margin-top: 0.1rem;
}

.order-item-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.order-item-remove:hover {
    color: #e05555;
}

/* ── ORDER TOTALS ── */
.order-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
}

.order-totals-grand {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid var(--babar-border);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* ── CONTACT FORM ── */
.contact-form-wrap {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--babar-border);
    background: rgba(0,0,0,0.2);
}

.form-label-sm {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    display: block;
}

.form-input-dark {
    width: 100%;
    background: #111;
    border: 1px solid var(--babar-border);
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
}

.form-input-dark:focus {
    border-color: var(--babar-gold);
}

.form-input-dark::placeholder {
    color: rgba(255,255,255,0.2);
}

textarea.form-input-dark {
    resize: vertical;
    min-height: 80px;
}

.btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, var(--babar-gold), #a8732e);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 0.925rem;
    font-weight: 800;
    padding: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.btn-submit-order:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-submit-order:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.submit-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* ── TOAST ── */
.toast-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast-msg {
    background: #1e3a1e;
    border: 1px solid #2d6a2d;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    color: #7dca7d;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.toast-msg.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── DELIVERY INFO BANNER ── */
.delivery-banner {
    background: #f5f0eb;
    border: 1px solid #e0c89a;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.delivery-banner h3 {
    font-size: 0.925rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a5a1a;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.delivery-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-list li {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.65);
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.delivery-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--babar-gold);
    font-weight: 700;
}

/* ── DIVIDER ── */
.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* ── SUCCESS OVERLAY ── */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.success-overlay.show {
    display: flex;
}

.success-box {
    background: var(--babar-card);
    border: 1px solid var(--babar-gold);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 420px;
    margin: 1rem;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.success-box h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-box p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-close-success {
    background: linear-gradient(135deg, var(--babar-gold), #a8732e);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 800;
    padding: 0.7rem 2rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* ── ALLERGEN TAGS ── */
.allergen-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.allergen-tag {
    font-size: 0.62rem;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    color: rgba(255,255,255,0.35);
}

.allergen-tag.veg { color: #5cb85c; background: rgba(92,184,92,0.1); }
.allergen-tag.gf  { color: #f0ad4e; background: rgba(240,173,78,0.1); }
