/* 🔴 CHANGE BRAND COLORS HERE */
:root {
    /* Palette */
    --sage: #7D9C65;
    --red: #B93636;
    --orange: #FF9C4C;
    --cream: #FFF2A0;

    /* Shared with the manager page (light) */
    --primary: var(--red);
    --primary-dark: #9a2c2c;
    --secondary: var(--orange);
    --bg-color: #FFFBEA;
    --text-dark: #2A0E0B;
    --text-light: #6B5A52;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(42,14,11,0.08);
    --transition: 0.3s ease;

    /* Customer page (dark) */
    --site-bg: #1A0A07;
    --site-bg-deep: #120604;
    --site-text: #FDF6DC;
    --site-muted: rgba(253,246,220,0.72);
    --glass-bg: rgba(255,242,160,0.06);
    --glass-bg-hover: rgba(255,242,160,0.12);
    --glass-border: rgba(255,242,160,0.16);
    --ink: #2A0E0B; /* text on cream */
    --radius-lg: 28px;
    --font-heading: 'Galada', 'Noto Sans Bengali', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Keep anchor targets clear of the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (min-width: 768px) {
    .section-padding { padding: 96px 0; }
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
    .grid-4 { gap: 24px; }
}
@media (min-width: 992px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}

/* Header (manager page uses these as-is; the customer page restyles them under .site) */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; width: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.lang-btn { background: none; border: none; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text-light); cursor: pointer; transition: var(--transition); min-height: 44px; padding: 0 8px; }
.lang-btn.active { color: var(--primary); }
.lang-divider { color: var(--text-light); }
.mobile-menu-toggle { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); width: 44px; height: 44px; line-height: 1; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }

/* ================================================================
   Customer page (index.html, <body class="site">)
   ================================================================ */

.site {
    background: var(--site-bg);
    color: var(--site-text);
}
.site :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Glass header with a pill-shaped nav */
.site .header {
    background: rgba(26,10,7,0.6);
    box-shadow: none;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px 0;
}
.site .logo { height: 44px; width: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--glass-border); }

.nav a {
    text-decoration: none;
    color: var(--site-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
}

/* Mobile: dropdown panel under the header, toggled with .open */
.nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26,10,7,0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 5%;
}
.nav.open { display: flex; }
.nav a { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.nav a:last-child { border-bottom: none; }
.nav a.active { color: var(--cream); }

@media (min-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        gap: 4px;
        padding: 5px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 100px;
        box-shadow: inset 0 0 0 1px rgba(255,242,160,0.05), 0 8px 32px rgba(0,0,0,0.2);
    }
    .nav a { padding: 7px 18px; border-bottom: none; border-radius: 100px; }
    .nav a.active { background: var(--cream); color: var(--ink); }
    .mobile-menu-toggle { display: none; }
}

.site .lang-switcher { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 100px; padding: 3px; }
.site .lang-btn { color: var(--site-muted); min-height: 36px; padding: 0 12px; border-radius: 100px; font-size: 0.9rem; }
.site .lang-btn.active { background: var(--cream); color: var(--ink); }
.site .lang-divider { display: none; }
.site .mobile-menu-toggle { color: var(--cream); }

/* Buttons */
.site .btn-primary { background: var(--red); color: var(--cream); box-shadow: 0 10px 30px rgba(185,54,54,0.35); }
.site .btn-secondary { border-color: rgba(255,242,160,0.5); color: var(--cream); background: rgba(26,10,7,0.25); }

/* Pill with a round cream icon on the right */
.btn-pill { padding: 6px 6px 6px 26px; gap: 18px; }
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

/* Headings */
.section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    text-align: center;
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 1;
    margin-bottom: 32px;
    color: var(--cream);
}
.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}
@media (min-width: 768px) { .section-title { margin-bottom: 48px; } }

/* Hero: warm radial glow behind a tilting cover photo, floating leaves and rising bubbles */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 69px);
    min-height: calc(100svh - 69px);
    padding: 48px 0 72px;
    background: radial-gradient(circle at 70% 50%, var(--orange) 0%, var(--red) 34%, #4A1210 68%, var(--site-bg) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(3.4rem, 13vw, 7.5rem);
    line-height: 0.95;
    color: var(--cream);
    text-shadow: 0 8px 40px rgba(42,14,11,0.45);
    margin-bottom: 18px;
}
.hero-subtitle { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--site-muted); max-width: 420px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-badge { display: flex; align-items: center; gap: 14px; margin-top: 40px; text-align: left; }
.hero-badge-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--orange);
}
.hero-badge-text { display: flex; flex-direction: column; line-height: 1.35; }
.hero-badge-title { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--site-muted); }
.hero-badge-sub { font-size: 0.92rem; font-weight: 600; color: var(--cream); }

.hero-visual { animation: heroIn 1.2s ease-out 0.2s both, heroFloat 6s ease-in-out infinite; }
.hero-frame {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,242,160,0.35);
    box-shadow: 0 40px 80px rgba(18,6,4,0.55), 0 0 0 10px rgba(255,242,160,0.06);
    transform: perspective(1000px) rotate(-3deg);
    will-change: transform;
}
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Soft glass sheen across the photo */
.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,242,160,0.18) 0%, transparent 40%, transparent 70%, rgba(26,10,7,0.35) 100%);
    pointer-events: none;
}

@media (min-width: 900px) {
    .hero { padding: 40px 0 64px; }
    .hero-content { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero-text { text-align: left; align-items: flex-start; }
    .hero-buttons { justify-content: flex-start; }
}

@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Floating leaves (positioned and moved by script.js) */
.hero-leaves, .hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-leaf { position: absolute; will-change: transform; filter: drop-shadow(0 10px 18px rgba(18,6,4,0.35)); }
.hero-leaf svg { display: block; width: 100%; height: 100%; }
.hero-leaf.far { z-index: 1; opacity: 0.55; filter: blur(1.5px) drop-shadow(0 6px 12px rgba(18,6,4,0.3)); }
.hero-leaf.near { z-index: 3; }

/* Rising bubbles */
.hero-bubbles { z-index: 1; overflow: hidden; }
.hero-bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255,242,160,0.85) 0%, rgba(255,242,160,0.18) 45%, rgba(255,242,160,0.04) 70%);
    border: 1px solid rgba(255,242,160,0.35);
    animation: bubbleRise linear forwards;
}
@keyframes bubbleRise {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { transform: translate(30px, -110vh); opacity: 0; }
}

/* Why CHA */
.highlights { background: radial-gradient(circle at 50% 0%, rgba(125,156,101,0.22) 0%, transparent 60%); }
.highlight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 22px 14px;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background var(--transition), border-color var(--transition);
}
.highlight-card .icon {
    width: 58px; height: 58px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,156,76,0.25), rgba(185,54,54,0.25));
    border: 1px solid var(--glass-border);
}
.highlight-card h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 6px; color: var(--cream); }
.highlight-card p { font-size: 0.85rem; color: var(--site-muted); line-height: 1.5; }
@media (min-width: 768px) {
    .highlight-card { padding: 34px 24px; }
    .highlight-card .icon { width: 68px; height: 68px; font-size: 2rem; margin-bottom: 18px; }
    .highlight-card h3 { font-size: 1.15rem; }
    .highlight-card p { font-size: 0.95rem; }
}

/* Menu: sage glow */
.menu-section {
    background: radial-gradient(circle at 50% 35%, rgba(125,156,101,0.45) 0%, rgba(62,78,50,0.3) 40%, transparent 75%);
}

/* Phones: one swipeable row of chips. Wider screens: centred and wrapping */
.menu-filters {
    display: flex; gap: 8px; margin: 0 -5.5% 28px; padding: 2px 5.5%;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.menu-filters::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .menu-filters { justify-content: center; flex-wrap: wrap; margin: 0 0 44px; padding: 0; overflow: visible; } }
.filter-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 22px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--site-muted);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.filter-btn.active { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 600; }

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-item {
    background: rgba(26,10,7,0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.menu-item-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.menu-item-content { padding: 20px 22px 22px; flex-grow: 1; display: flex; flex-direction: column; }
.menu-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.menu-item-name { font-size: 1.1rem; font-weight: 600; color: var(--cream); }
.menu-item-price { white-space: nowrap; color: var(--orange); font-weight: 700; font-size: 1.05rem; }
.menu-item-desc { color: var(--site-muted); font-size: 0.9rem; flex-grow: 1; }
.menu-item-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 0.75rem; padding: 3px 11px; background: var(--glass-bg-hover); border-radius: 20px; color: var(--site-text); }
.tag.popular { background: var(--cream); color: var(--ink); font-weight: 600; }
.tag.vegetarian { background: var(--sage); color: var(--ink); }
.tag.vegan { background: transparent; border: 1px solid var(--sage); color: #B9CFA7; }
.tag.spicy { background: var(--red); color: var(--cream); }
.menu-item.unavailable { opacity: 0.6; pointer-events: none; }
.menu-item.unavailable::after {
    content: attr(data-sold-out);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream);
    color: var(--ink);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
}

.menu-message { grid-column: 1 / -1; text-align: center; color: var(--site-muted); padding: 20px 0; }

.booking-cta {
    text-align: center;
    margin-top: 56px;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.booking-cta p { color: var(--site-muted); max-width: 520px; margin: 0 auto 20px; }

.phone-link { color: var(--orange); font-weight: 600; text-decoration: none; }

/* Gallery */
.gallery-section { background: radial-gradient(circle at 80% 50%, rgba(255,156,76,0.18) 0%, transparent 55%); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.gallery-item {
    display: block; border: 1px solid var(--glass-border); padding: 0; background: #2a1a10;
    border-radius: 22px; overflow: hidden; cursor: zoom-in;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color var(--transition);
}
.gallery-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }

/* Visit Us */
.location-section { background: radial-gradient(circle at 20% 60%, rgba(185,54,54,0.3) 0%, transparent 55%); }
.location-info .section-title { text-align: left; margin-bottom: 24px; }
.location-info .section-title::after { margin-left: 0; }
.location-info p { margin-bottom: 14px; color: var(--site-muted); }
.location-info strong { color: var(--cream); }
.location-info .btn { margin-top: 10px; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: 0 30px 60px rgba(18,6,4,0.45); }
.map-container iframe { display: block; height: 340px; filter: saturate(0.85); }

/* Gallery photo viewer */
.lightbox { border: none; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(18,6,4,0.94); backdrop-filter: blur(6px); }
.lightbox img { max-width: calc(100% - 32px); max-height: calc(100% - 140px); border-radius: 16px; object-fit: contain; }
.lightbox-btn { position: absolute; background: rgba(255,242,160,0.12); color: var(--cream); border: 1px solid var(--glass-border); border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.lightbox-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; font-size: 1.2rem; }
.lightbox-prev, .lightbox-next { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.lightbox-prev { left: calc(50% - 64px); }
.lightbox-next { right: calc(50% - 64px); }
@media (min-width: 768px) {
    .lightbox img { max-height: calc(100% - 64px); max-width: calc(100% - 160px); }
    .lightbox-prev, .lightbox-next { top: 50%; bottom: auto; transform: translateY(-50%); }
    .lightbox-prev { left: 24px; }
    .lightbox-next { right: 24px; }
}

/* Footer */
.footer { background: var(--site-bg-deep); color: var(--site-text); padding: 64px 0 24px; border-top: 1px solid var(--glass-border); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
.logo-footer { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 3px var(--glass-border); margin-bottom: 12px; }
.footer-brand p { font-family: var(--font-heading); font-size: 1.5rem; color: var(--cream); line-height: 1.2; }
.footer-links a, .footer-social a { color: var(--site-muted); text-decoration: none; margin: 0 10px; transition: var(--transition); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 20px; color: rgba(253,246,220,0.5); font-size: 0.9rem; }
.manager-link { display: inline-block; margin-top: 6px; font-size: 0.75rem; color: rgba(253,246,220,0.4); text-decoration: none; }

/* Hover effects only on devices with a real pointer, so they don't stick after a tap on phones */
@media (hover: hover) {
    .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
    .btn-secondary:hover { background: var(--primary); color: var(--white); }
    .site .nav a:hover { color: var(--cream); }
    .site .nav a.active:hover { color: var(--ink); }
    .site .lang-btn:not(.active):hover { color: var(--cream); }
    .site .btn-primary:hover { background: var(--primary-dark); }
    .site .btn-primary:hover .btn-icon { background: var(--orange); transform: rotate(-30deg); }
    .site .btn-secondary:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
    .highlight-card:hover { transform: translateY(-8px); background: var(--glass-bg-hover); border-color: rgba(255,242,160,0.4); }
    .filter-btn:hover { border-color: rgba(255,242,160,0.5); color: var(--cream); }
    .filter-btn.active:hover { color: var(--ink); }
    .menu-item:hover { transform: translateY(-8px); border-color: rgba(255,242,160,0.45); }
    .menu-item:hover .menu-item-img { transform: scale(1.08) rotate(-1.5deg); }
    .gallery-item:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--cream); }
    .gallery-item:hover .gallery-img { transform: scale(1.06); }
    .lightbox-btn:hover { background: var(--cream); color: var(--ink); }
    .footer-links a:hover, .footer-social a:hover { color: var(--cream); }
    .manager-link:hover { color: var(--site-muted); text-decoration: underline; }
}

/* Animations (only when JS is running, so content is never stuck invisible) */
.js .fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .fade-in-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up, .menu-item, .gallery-img, .gallery-item, .btn, .highlight-card { transition: none !important; transform: none !important; }
    .js .fade-in-up { opacity: 1; }
    .hero-visual { animation: none; }
}

[hidden] { display: none !important; }

/* Stop the page behind an open photo viewer or dialog from scrolling */
html:has(dialog[open]) { overflow: hidden; }
