/* Hotel Mintleaf – shared styles (guest site + admin) */
:root {
  /* paper & ink: plain white paper, not cream */
  --cream: #fbfaf6;
  --paper-2: #f1eee5;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #66625a;
  --line: #e4e0d5;
  /* banana-leaf green (variable names kept so the admin page keeps working) */
  --mint-50: #eef4ec;
  --mint-100: #dcebd8;
  --mint-200: #b9d4b2;
  --mint-500: #3f8a45;
  --mint-600: #2f6f36;
  --mint-700: #255a2c;
  --mint-900: #173d22;
  /* turmeric */
  --accent: #c98a0b;
  --accent-bg: #fbf0d6;
  --turmeric: #e3a21a;
  /* states */
  --red: #b0352a;
  --red-bg: #f8e3df;
  --amber: #93620a;
  --amber-bg: #fbf0d6;
  --blue: #2c5d86;
  --blue-bg: #e2ebf3;
  --shadow: 0 2px 0 rgba(31, 29, 26, .06);
  --radius: 4px;
  --font-display: 'Rozha One', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.5; font-size: 16px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ic { display: block; flex: none; }
[data-icon] { display: inline-flex; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--mint-900); border-radius: 3px; padding: 11px 18px; font-weight: 600; font-size: 15px;
  background: var(--mint-900); color: #fbf8f1; text-decoration: none; transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--mint-700); border-color: var(--mint-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--mint-900); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); border-color: var(--mint-200); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: #963425; border-color: #963425; }
.btn.light { background: var(--cream); color: var(--mint-900); border-color: var(--cream); }
.btn.light:hover { background: #fff; }
.btn.sm { padding: 7px 12px; font-size: 14px; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 11px 13px; border-radius: 3px; border: 1px solid var(--line); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--mint-500); box-shadow: 0 0 0 3px var(--mint-100); }
textarea.input { resize: vertical; min-height: 64px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 4px; background: var(--mint-100); color: var(--mint-700); letter-spacing: .2px; }
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.accepted { background: var(--mint-100); color: var(--mint-700); }
.badge.rejected { background: var(--red-bg); color: var(--red); }
.badge.delivered { background: var(--blue-bg); color: var(--blue); }

.alert { border-radius: 8px; padding: 11px 13px; font-size: 14px; margin: 12px 0; border-left: 3px solid; }
.alert.error { background: var(--red-bg); color: #7d2c20; border-color: var(--red); }
.alert.ok { background: var(--mint-100); color: var(--mint-900); border-color: var(--mint-500); }
.alert.info { background: var(--amber-bg); color: #6b4a0c; border-color: var(--amber); }

.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.05; margin: 0 0 12px; }

/* brand used by the admin page */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; color: #f5f0e6; }

/* ---------- top bar: a painted signboard ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--mint-900); color: #fff; border-bottom: 3px solid var(--turmeric); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: #fff; }
.wm-leaf { width: 30px; height: 30px; flex: none; }
.wm-leaf path:first-child { fill: var(--turmeric); }
.wm-leaf path:last-child { fill: none; stroke: var(--mint-900); stroke-width: 1.6; stroke-linecap: round; }
.wm-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.wm-name { font-family: var(--font-display); font-size: 23px; white-space: nowrap; letter-spacing: .2px; }
.wm-place { font-size: 12.5px; color: #f3d48a; white-space: nowrap; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.top-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 15px; font-weight: 500; text-decoration: none; color: #fff; border-radius: 3px; }
.top-link:hover { background: rgba(255, 255, 255, .1); }
.top-link .ic { width: 16px; height: 16px; color: var(--turmeric); }
.topbar .btn { white-space: nowrap; background: var(--turmeric); border-color: var(--turmeric); color: #241a02; }
.topbar .btn:hover { background: #f0b53a; border-color: #f0b53a; }
@media (max-width: 640px) { .top-link[href="#menu"], .top-link[href="#find-us"] { display: none; } .wm-name { font-size: 20px; } .top-link { padding: 8px 6px; font-size: 14px; } }
@media (max-width: 400px) { .wm-place { font-size: 11px; } .top-link .ic { display: none; } .top-actions { gap: 4px; } .topbar .btn { padding-inline: 10px; } }

/* ---------- hero: plain words and a strip of food ---------- */
.hero { padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } .hero { padding: 56px 0 44px; } }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.04; margin: 0 0 16px; color: var(--mint-900); max-width: 15ch; }
.hero .lead { margin: 0; font-size: 18px; color: #3e3a34; max-width: 34em; }
.hero .lead b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { padding: 12px 20px; }
.hero-actions .ghost .ic { color: var(--accent); }
.hero-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; height: clamp(150px, 26vw, 300px); }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
/* wide screens: one big photo beside two stacked ones, about as tall as the headline block */
@media (min-width: 900px) { .hero-strip { height: clamp(340px, 30vw, 440px); grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; } .hero-strip img:first-child { grid-row: 1 / 3; } }
@media (max-width: 520px) { .hero-strip { grid-template-columns: 1.4fr 1fr; } .hero-strip img:last-child { display: none; } }

/* ---------- location / closed notices ---------- */
.notices { display: grid; gap: 10px; margin-top: 18px; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--turmeric); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.loc-icon { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; background: var(--mint-50); color: var(--mint-600); flex: none; }
.loc-card.bad { border-color: #e6c3b9; border-left-color: var(--red); }
.loc-card.good { border-left-color: var(--mint-500); }
.loc-card.bad .loc-icon { background: var(--red-bg); color: var(--red); }
.loc-card.good .loc-icon { background: var(--mint-100); color: var(--mint-700); }
.loc-text { flex: 1; min-width: 200px; }
.loc-text strong { display: block; font-weight: 600; }
.loc-text small { color: var(--muted); font-size: 13px; }
.closed-banner { background: var(--ink); color: #f5f0e6; border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.closed-banner .ic { width: 22px; height: 22px; color: #e2b48f; }
.closed-banner strong { display: block; font-weight: 600; }
.closed-banner #closedMsg { opacity: .8; font-size: 14px; }

/* ---------- menu: like the printed card on the table ---------- */
main.wrap { padding-bottom: 130px; }
.menu-sec { margin-top: 40px; }
.menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.menu-head .section-title { margin-bottom: 4px; }
.menu-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; justify-content: flex-end; min-width: 260px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; background: var(--card); }
.veg-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 10px 13px; font-weight: 500; font-size: 15px; cursor: pointer; user-select: none; }
.veg-toggle input { accent-color: #1f7a3f; width: 16px; height: 16px; margin: 0; }

.cats { position: sticky; top: 65px; z-index: 10; background: var(--cream); display: flex; gap: 6px; overflow-x: auto; margin-top: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; border-radius: 2px; }
.cat small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.cat:hover { border-color: var(--mint-500); }
.cat.active { background: var(--mint-900); border-color: var(--mint-900); color: #fff; }
.cat.active small { color: #f3d48a; }
.photo-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.menu-cat { padding-top: 30px; }
.menu-cat > h3 { font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.1; margin: 0 0 6px; padding-bottom: 8px; color: var(--mint-900);
  display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--mint-900); }
.menu-cat > h3 small { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }

.item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.item-photo { width: 64px; height: 64px; flex: none; border: 0; padding: 0; border-radius: 2px; overflow: hidden; cursor: zoom-in; background: var(--paper-2); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-mono { width: 64px; height: 64px; flex: none; border-radius: 2px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 28px; color: #b8b09d; }
.item-body { flex: 1; min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-line .vg { align-self: center; }
.item-name { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.leader { flex: 1; min-width: 14px; border-bottom: 2px dotted #c9c3b5; transform: translateY(-4px); }
.price { font-weight: 600; font-size: 16.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.item-ctl { flex: none; min-width: 84px; display: flex; justify-content: flex-end; }
.vg { width: 14px; height: 14px; border: 1.5px solid; border-radius: 2px; display: inline-grid; place-items: center; flex: none; }
.vg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vg.veg { color: #1f7a3f; }
.vg.non { color: #a33a2c; }
.no-results { text-align: center; color: var(--muted); padding: 40px 0; }

.add-btn { border: 1.5px solid var(--mint-600); color: var(--mint-700); background: var(--card); padding: 5px 16px; border-radius: 3px; font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.add-btn:hover { background: var(--mint-900); border-color: var(--mint-900); color: #fff; }
.add-btn:disabled { opacity: .4; cursor: not-allowed; background: transparent; color: var(--mint-900); }
.stepper { display: inline-flex; align-items: center; background: var(--mint-900); color: #fff; border-radius: 3px; overflow: hidden; }
.stepper button { background: transparent; border: 0; color: inherit; width: 30px; height: 32px; font-size: 18px; line-height: 1; }
.stepper button:hover { background: rgba(255,255,255,.12); }
.stepper span { min-width: 20px; text-align: center; font-weight: 700; }
.sold-tag { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .4px; text-transform: uppercase; }
.item.sold .item-photo img, .item.sold .item-mono { filter: grayscale(1); opacity: .6; }
.item.sold .item-name, .item.sold .price { color: var(--muted); }
@media (max-width: 420px) {
  .item { gap: 10px; }
  .item-photo, .item-mono { width: 56px; height: 56px; }
  .item-name, .price { font-size: 15.5px; }
  .item-ctl { min-width: 76px; }
  .add-btn { padding: 5px 12px; }
}

/* ---------- gallery ---------- */
#gallerySec { margin-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(20, 18, 15, .9); display: grid; place-items: center; padding: 16px; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 720px); max-height: 80vh; border-radius: 6px; display: block; }
.lightbox figcaption { color: #f5f0e6; font-family: var(--font-display); font-size: 22px; margin-top: 12px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- find us ---------- */
.find-us { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; border-top: 2px solid var(--mint-900); padding-top: 32px; }
@media (min-width: 820px) { .find-us { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.find-us .addr { margin: 0 0 6px; font-size: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mint-700); text-decoration: none; font-size: 16px; }
.find-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.find-us iframe { width: 100%; height: 280px; border: 1px solid var(--line); border-radius: 2px; }
.review-btn { background: var(--card); color: var(--ink); border-color: var(--line); }
.review-btn:hover { background: #fff; border-color: var(--mint-200); }
.review-btn .ic { color: #c98a12; }

footer.site { border-top: 1px solid var(--line); background: var(--paper-2); padding: 22px 0 110px; font-size: 13px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }

/* ---------- cart bar ---------- */
.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 640px; margin: 0 auto;
  background: var(--mint-900); color: #fff; border-radius: 4px; border-bottom: 3px solid var(--turmeric); padding: 10px 10px 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 14px 36px rgba(20, 30, 24, .32);
  animation: slideUp .25s ease;
}
.cart-bar strong { font-weight: 600; }
.cart-bar small { opacity: .75; display: block; font-size: 12px; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sheet / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 15, .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .overlay { align-items: center; padding: 24px; } }
.sheet { background: var(--card); width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; border-radius: 8px 8px 0 0; padding: 20px 20px 24px; animation: slideUp .25s ease; }
@media (min-width: 700px) { .sheet { border-radius: 6px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 400; margin: 0; font-size: 28px; color: var(--mint-900); }
.icon-btn { background: var(--paper-2); border: 0; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--line); }

.steps { list-style: none; padding: 0; display: flex; gap: 6px; margin: 12px 0 18px; counter-reset: st; }
.steps li { flex: 1; font-size: 12px; font-weight: 600; color: #a39a8c; padding-top: 8px; border-top: 2px solid var(--line); counter-increment: st; }
.steps li::before { content: counter(st) '. '; }
.steps li.on { color: var(--mint-900); border-top-color: var(--mint-900); }

.line-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.line-item .nm { flex: 1; font-weight: 500; }
.line-item .nm small { display: block; color: var(--muted); font-weight: 400; }
.line-item strong { min-width: 64px; text-align: right; font-weight: 600; }
.line-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.totals { display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; padding: 14px 0; }
.row-btns { display: flex; gap: 10px; margin-top: 6px; }

.pay-box { text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 16px; }
.pay-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.pay-amount { font-family: var(--font-display); font-size: 48px; color: var(--mint-900); line-height: 1.1; margin-top: 4px; }
.qr { background: #fff; padding: 12px; border-radius: 8px; display: inline-block; margin: 14px 0 10px; border: 1px solid var(--line); }
.qr canvas, .qr img { display: block; width: 200px; height: 200px; }
.upi-id { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 5px 5px 12px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.upi-apps { font-size: 12px; color: var(--muted); margin-top: 10px; }
.howto { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 0 0 14px; }
.howto li { margin-bottom: 4px; }

.cod-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px 14px; background: var(--accent-bg); border-radius: 8px; font-size: 13px; color: #6a3a22; }
.cod-note b { display: block; color: #4e2915; font-weight: 600; }
.cod-note .btn { flex: none; white-space: nowrap; background: #fff; }

/* ---------- order status ---------- */
.status-card { text-align: center; padding: 6px 0; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto 14px; }
.status-icon .ic { width: 34px; height: 34px; }
.status-icon.pending { background: var(--amber-bg); color: var(--amber); animation: pulse 1.8s infinite; }
.status-icon.accepted { background: var(--mint-100); color: var(--mint-700); }
.status-icon.rejected { background: var(--red-bg); color: var(--red); }
.status-icon.delivered { background: var(--blue-bg); color: var(--blue); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(154, 106, 18, .3); } 50% { box-shadow: 0 0 0 14px rgba(154, 106, 18, 0); } }
.status-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 10px 0 6px; }
.status-card p { color: var(--muted); margin: 0 0 12px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; font-size: 14px; animation: slideUp .2s ease; max-width: calc(100% - 32px); }



/* ---------- delivery / takeaway choice ---------- */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mode-pick label { cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick label > span { display: block; height: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mode-pick b { display: block; font-weight: 600; }
.mode-pick small { color: var(--muted); font-size: 12px; }
.mode-pick input:checked + span { border-color: var(--mint-900); box-shadow: 0 0 0 1px var(--mint-900); background: var(--mint-50); }
.mode-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--mint-100); }
