/* ============================================================
   Broken W Cafe / Pippali Cafe — Luxury Light Theme CSS
   Color Palette:
   Parchment:     #FCFAF2
   Forest Green:  #142A1E
   Deep Forest:   #09130E
   Gold:          #C89A3C
   Gold Light:    #E0BE72
   Berry Red:     #7C2F2A
   Ink:           #15241B
   ============================================================ */

:root {
    --forest:        #142a1e;
    --forest-deep:   #09130e;
    --forest-light:  #223f2e;
    --parchment:     #fcfaf2;
    --parchment-dark:#f3eee0;
    --gold:          #c89a3c;
    --gold-light:    #e0be72;
    --berry:         #7c2f2a;
    --berry-light:   #9c463f;
    --ink:           #15241b;
    --bwc-primary:    #142a1e;
    --bwc-secondary:  #c89a3c;
    --bwc-accent:     #7c2f2a;
    --bwc-bg:         #fcfaf2;
    --bwc-text:       #15241b;
    --bwc-radius:     20px;
    --bwc-shadow:     0 8px 32px rgba(9, 19, 14, 0.05);
    --bwc-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== BASE & TYPOGRAPHY ===================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Manrope', 'Inter', sans-serif;
    background-color: var(--parchment);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Fraunces', 'Playfair Display', serif; }
.font-mono { font-family: 'Space Mono', monospace; }

/* Sitewide headings use the sans body font at a moderate weight — Fraunces
   (serif, bold) is reserved for deliberate brand accents only (.brand-name,
   the header logo fallback), not every heading tag by default. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--forest-deep);
}

a { text-decoration: none; transition: var(--bwc-transition); }
a:hover { color: var(--gold); }

.bg-parchment { background-color: var(--parchment) !important; }
.bg-forest { background-color: var(--forest) !important; }
.bg-forest-deep { background-color: var(--forest-deep) !important; }
.text-forest-deep { color: var(--forest-deep) !important; }
.text-parchment { color: var(--parchment) !important; }
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-berry { color: var(--berry) !important; }
.rounded-apple { border-radius: 20px !important; }
.rounded-apple-lg { border-radius: 32px !important; }

/* Microscopic noise texture */
.apple-noise {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Optical Glassmorphism Panels */
.apple-glass {
    background: rgba(252, 250, 242, 0.65);
    backdrop-filter: blur(32px) saturate(220%) contrast(95%);
    -webkit-backdrop-filter: blur(32px) saturate(220%) contrast(95%);
    border: 1px solid rgba(200, 154, 60, 0.2);
    box-shadow: 0 8px 32px 0 rgba(9, 19, 14, 0.04), inset 0 1px 0px rgba(255, 255, 255, 0.8);
}

.apple-glass-dark {
    background: rgba(9, 19, 14, 0.65);
    backdrop-filter: blur(40px) saturate(180%) brightness(0.95);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15), inset 0 1px 0px rgba(255, 255, 255, 0.15);
}

/* ===================== NAVBAR ===================== */
.bwc-navbar {
    background: rgba(252, 250, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 154, 60, 0.15);
    transition: var(--bwc-transition);
    padding: 14px 0;
    z-index: 1000;
}

.bwc-navbar.scrolled {
    background: rgba(9, 19, 14, 0.96);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.bwc-navbar.scrolled .nav-link,
.bwc-navbar.scrolled .brand-name,
.bwc-navbar.scrolled .brand-sub {
    color: #fcfaf2 !important;
}

.brand-name {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--forest-deep);
    letter-spacing: -0.5px;
}
.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    align-self: flex-end;
    margin-bottom: 3px;
}

.bwc-navbar .nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px !important;
}

.bwc-navbar .nav-link.active,
.bwc-navbar .nav-link:hover {
    color: var(--gold) !important;
}

/* Category filter pills (dine-in table QR menu) — these had no CSS at all
   before, so the plain <a> tags rendered as unstyled default links
   stacked in a block, which is what read as "boxes". */
.bwc-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bwc-category-pills::-webkit-scrollbar { display: none; }

.bwc-category-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(20, 42, 30, 0.12);
    color: var(--forest-deep);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(9, 19, 14, 0.04);
}

.bwc-category-pills .pill i {
    font-size: 0.7rem;
    color: var(--gold);
}

.bwc-category-pills .pill:hover,
.bwc-category-pills .pill.active {
    background: var(--forest-deep);
    color: var(--parchment);
    border-color: var(--forest-deep);
}

.bwc-category-pills .pill:hover i,
.bwc-category-pills .pill.active i {
    color: var(--gold-light);
}

/* Buttons */
.bwc-btn-primary {
    background-color: var(--gold);
    color: var(--forest-deep);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    transition: var(--bwc-transition);
}
.bwc-btn-primary:hover {
    background-color: var(--gold-light);
    color: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 154, 60, 0.3);
}

.bwc-cart-btn {
    background: var(--forest-deep);
    color: var(--parchment);
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
}
.bwc-cart-btn:hover {
    background: var(--gold);
    color: var(--forest-deep);
}

.cart-badge {
    background: var(--berry);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 50px;
    margin-left: 6px;
}

/* ===================== HERO BANNER ===================== */
.hero-banner-section {
    position: relative;
    min-height: 90vh;
    background-color: var(--forest-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px 0;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.52;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(9,19,14,0.92) 0%, rgba(9,19,14,0.7) 60%, rgba(9,19,14,0.2) 100%);
    z-index: 10;
}

/* ===================== PRODUCT CARDS ===================== */
.bwc-product-card {
    background: rgba(252, 250, 242, 0.85);
    border-radius: 20px;
    border: 1px solid rgba(200, 154, 60, 0.2);
    overflow: hidden;
    transition: var(--bwc-transition);
    box-shadow: var(--bwc-shadow);
}
.bwc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(9, 19, 14, 0.12);
    border-color: var(--gold);
}

.product-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bwc-product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

/* ===================== FOOTER ===================== */
.bwc-footer {
    background: var(--forest-deep);
    color: rgba(252, 250, 242, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.bwc-footer a { color: rgba(252, 250, 242, 0.7); }
.bwc-footer a:hover { color: var(--gold-light); }
.footer-heading {
    color: var(--gold);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

