/* =======================================================
   GREEN BBQ & RESTAURANT - MAIN STYLESHEET
   Branding: Green, Orange, Charcoal, White
   ======================================================= */

:root {
    --primary-green: #0e7c3c;
    --primary-green-dark: #075628;
    --primary-green-light: #159b4c;
    --primary-orange: #f37021;
    --primary-orange-dark: #d85910;
    --primary-orange-light: #ff8533;
    --charcoal-black: #121815;
    --card-dark: #1b2420;
    --border-dark: #2a3731;
    --text-white: #ffffff;
    --text-muted-dark: #a2b2aa;
    --bg-cream: #faf8f5;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(14, 124, 60, 0.2);
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8faf8;
    color: #2b332f;
    padding-bottom: 70px; /* Room for mobile bottom bar */
    overflow-x: hidden;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background: var(--charcoal-black);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-announcement-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}
.top-announcement-bar a:hover {
    color: var(--primary-orange);
}

/* Main Navbar */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green);
    background: rgba(14, 124, 60, 0.07);
}

.btn-brand-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 8px 22px;
    box-shadow: 0 4px 15px rgba(14, 124, 60, 0.3);
    transition: var(--transition);
}
.btn-brand-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 124, 60, 0.4);
}

.btn-brand-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 8px 22px;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
    transition: var(--transition);
}
.btn-brand-orange:hover {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--primary-orange));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4);
}

.lang-switch-btn {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.lang-switch-btn:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0e291b 0%, #121815 60%, #1f1207 100%);
    color: #ffffff;
    padding: 80px 0 100px;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(243, 112, 33, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(14, 124, 60, 0.2) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    background: rgba(243, 112, 33, 0.2);
    border: 1px solid rgba(243, 112, 33, 0.4);
    color: #ff9944;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span.text-brand-orange {
    color: var(--primary-orange);
}
.hero-title span.text-brand-green {
    color: var(--primary-green-light);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #c0d1c7;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Category Quick Navigation */
.category-pill {
    background: #ffffff;
    border: 1px solid #e5e9e7;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.category-pill:hover,
.category-pill.active {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(14, 124, 60, 0.25);
}

/* Category Card */
.cat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #edf1ee;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
    height: 100%;
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-green);
    color: inherit;
}
.cat-icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 124, 60, 0.1), rgba(243, 112, 33, 0.1));
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}
.cat-card:hover .cat-icon-circle {
    background: var(--primary-green);
    color: #ffffff;
    transform: scale(1.1);
}

/* Food Menu Card */
.food-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #edf1ee;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(14, 124, 60, 0.3);
}
.food-card-img-wrap {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1b2620, #0f1613);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.food-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.food-card:hover .food-card-img-wrap img {
    transform: scale(1.08);
}
.food-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.food-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a221e;
    margin-bottom: 4px;
}
.food-card-urdu {
    font-size: 1.05rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
}
.food-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.food-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}
.food-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-orange-dark);
}
.food-price-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

/* =======================================================
   PREMIUM SIGNATURE PLATTERS & FEAST CARDS
   ======================================================= */
.platters-section {
    background: linear-gradient(180deg, #fbf7f0 0%, #f4ede0 100%);
    position: relative;
    padding: 70px 0;
}
.platter-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid rgba(243, 112, 33, 0.22);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(24, 32, 27, 0.08);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.platter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(243, 112, 33, 0.22);
    border-color: var(--primary-orange);
}
.platter-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #111a15;
}
.platter-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.platter-card:hover .platter-img-wrap img {
    transform: scale(1.08);
}
.platter-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}
.platter-serves-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(17, 26, 21, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f59e0b;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.platter-savings-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}
.platter-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.platter-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 3px;
    min-height: 48px;
}
.platter-urdu-title {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.platter-items-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}
.platter-items-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.platter-items-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.platter-item-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.platter-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}
.btn-platter-whatsapp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.92rem;
}
.btn-platter-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Search Box Live Results */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    display: none;
}
.search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.search-item:hover {
    background: #f8faf8;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1030;
    text-decoration: none;
    transition: var(--transition);
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
@media (min-width: 992px) {
    .floating-whatsapp {
        bottom: 30px;
    }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #e5e9e7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    position: relative;
    padding: 6px 12px;
    transition: var(--transition);
}
.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-green);
}
.mobile-nav-item .badge-count {
    position: absolute;
    top: 2px;
    right: 14px;
    background: var(--primary-orange);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Cart & Checkout Styling */
.cart-table th {
    background: #f1f5f3;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 16px;
}
.cart-table td {
    padding: 16px;
    vertical-align: middle;
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}
.qty-stepper button {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
    transition: var(--transition);
}
.qty-stepper button:hover {
    background: var(--primary-green);
    color: #ffffff;
}
.qty-stepper span {
    width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Order Success Page */
.order-success-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    padding: 40px;
    text-align: center;
}
.success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(14, 124, 60, 0.12);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

/* Footer */
.main-footer {
    background: var(--charcoal-black);
    color: #cbd5e1;
    padding: 70px 0 30px;
    border-top: 4px solid var(--primary-green);
}
.main-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}
.main-footer a:hover {
    color: var(--primary-orange);
}
.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social-icon:hover {
    background: var(--primary-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

/* =======================================================
   MOBILE RESPONSIVENESS & PERFORMANCE OPTIMIZATIONS
   Zero horizontal overflow, fluid touch UI, fast loading
   ======================================================= */

/* Prevent horizontal scroll globally across all viewports */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Optimize image rendering and layout shifts */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

img[loading="lazy"] {
    transition: opacity 0.3s ease-in;
}

/* Category Horizontal Scroll Pills on Mobile */
.category-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 767.98px) {
    .category-pills-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .category-pills-container::-webkit-scrollbar {
        display: none;
    }
    .category-pill {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 6px 14px;
    }
}

/* Mobile Screens Adjustments (< 992px) */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        height: calc(65px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    .floating-whatsapp {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .site-logo-img {
        max-height: 42px !important;
        width: auto;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
}

/* Phones & Small Screens (< 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .food-card-img-wrap {
        height: 160px;
    }

    .food-card-body {
        padding: 14px;
    }

    .food-card-title {
        font-size: 1rem;
    }

    .food-card-urdu {
        font-size: 0.85rem;
    }

    .food-price {
        font-size: 1.15rem;
    }

    .cat-card {
        padding: 16px 10px;
    }

    .cat-icon-circle,
    .cat-logo-circle {
        width: 65px !important;
        height: 65px !important;
    }

    .order-success-card {
        padding: 24px 16px;
    }

    .success-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* Prevent iOS auto-zoom on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .gallery-img {
        height: 170px !important;
    }

    .main-footer {
        padding: 45px 0 25px;
    }
}

/* Print optimizations for kitchen receipts */
@media print {
    .navbar,
    .mobile-bottom-nav,
    .floating-whatsapp,
    .main-footer,
    .btn,
    .alert-success {
        display: none !important;
    }
    body {
        padding: 0 !important;
        background: #ffffff !important;
    }
    #printableInvoice {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* Customer Reviews Styles */
.review-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e7c3c 0%, #17a34a 100%);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.star-rating i {
    color: #f59e0b;
}
.review-quote-icon {
    font-size: 2.2rem;
    color: rgba(14, 124, 60, 0.15);
    line-height: 1;
}
