/* =========================================================
   DAPUR LEMBUR — banana leaf green · chili red · rice paper
   Layout: hero foto penuh, strip info, menu sebagai kertas menu cetak
   (nama · titik-titik · harga), reservasi dua kolom, lokasi + FAQ.
   ========================================================= */
:root {
  --paper: #f3e9d2;
  --paper-2: #eadcbd;
  --card: #fbf6ea;
  --leaf: #2d4a2b;
  --leaf-2: #1f351e;
  --chili: #c2412d;
  --chili-2: #a1321f;
  --ink: #2a2118;
  --muted: #6e604d;
  --line: #d9c9a6;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --body: 'Karla', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); color: var(--leaf); }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f0d9a6; margin-bottom: 12px; }
.eyebrow--red { color: var(--chili); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 6px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn--red { background: var(--chili); color: #fff; }
.btn--red:hover { background: var(--chili-2); }
.btn--cream { background: var(--paper); color: var(--leaf); }
.btn--cream:hover { background: #fff; }
.btn--leaf { background: var(--leaf); color: var(--paper); }
.btn--block { width: 100%; }

.demo-bar { background: var(--leaf-2); color: #c9d3c3; font-size: .8rem; text-align: center; padding: 6px 16px; }
.demo-bar a { color: #fff; font-weight: 700; }
.tablebar { background: var(--chili); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); font-size: .92rem; }
.tablebar__x { color: #fff; font-weight: 700; }

.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.4rem; color: var(--leaf); margin-right: auto; }
.brand { white-space: nowrap; font-size: clamp(1.15rem, 4.6vw, 1.4rem); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand path { fill: var(--leaf); }
.brand .steam { fill: none; stroke: var(--chili); stroke-width: 3; }
.nav__links { display: none; gap: 24px; font-weight: 700; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--chili); }
@media (min-width: 760px) { .nav__links { display: flex; } }
.bag { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--leaf); background: transparent; color: var(--leaf); border-radius: 6px; padding: 7px 10px 7px 14px; font-weight: 800; cursor: pointer; }
.bag b { background: var(--chili); color: #fff; border-radius: 4px; min-width: 24px; padding: 0 6px; text-align: center; }

.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,53,30,.15), rgba(31,53,30,.85)); }
.hero__in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; margin-bottom: 16px; }
.lead { max-width: 50ch; font-size: 1.1rem; color: #ece3cc; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.strip { background: var(--leaf); color: var(--paper); }
.strip__in { display: grid; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
@media (min-width: 760px) { .strip__in { grid-template-columns: repeat(3, 1fr); } }
.strip b { display: block; font-weight: 800; }
.strip span { display: block; font-size: .88rem; color: #c9d3c3; }

/* menu as printed sheet */
.menu { padding: 72px 0 80px; }
.menu__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.tools { display: flex; flex-direction: column; gap: 10px; width: 100%; }
@media (min-width: 860px) { .tools { width: auto; align-items: flex-end; } }
.search input { width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px 14px; min-width: 0; }
@media (min-width: 860px) { .search input { width: 320px; } }
.search input:focus { outline: none; border-color: var(--leaf); }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 700; cursor: pointer; }
.toggles button[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--paper); }
.cats { position: sticky; top: 66px; z-index: 5; background: var(--paper); display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 4px; color: var(--muted); }
.cats a:hover { background: var(--paper-2); color: var(--ink); }

.sheet { background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(42,33,24,.08); padding: 10px 22px 26px; }
@media (min-width: 860px) { .sheet { padding: 18px 46px 36px; column-count: 2; column-gap: 56px; } }
.group { break-inside: avoid; padding-top: 22px; }
.group h3 { font-size: 1.55rem; color: var(--chili); margin-bottom: 4px; display: flex; align-items: baseline; gap: 12px; }
.group h3::after { content: ''; flex: 1; border-bottom: 2px solid var(--chili); opacity: .35; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item__name { display: flex; align-items: baseline; gap: 8px; font-weight: 800; min-width: 0; }
.item__name span { flex: 1; border-bottom: 2px dotted #c7b48c; transform: translateY(-4px); min-width: 12px; }
.item__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__note { grid-column: 1 / 2; font-size: .88rem; color: var(--muted); }
.item__meta { display: inline-flex; gap: 4px; font-weight: 600; font-size: .82rem; color: var(--chili); white-space: nowrap; }
.item__meta i { font-style: normal; }
.item__act { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; align-self: start; }
.add { border: 1.5px solid var(--leaf); background: transparent; color: var(--leaf); border-radius: 4px; padding: 2px 12px; font-weight: 800; cursor: pointer; font-size: .9rem; }
.add:hover { background: var(--leaf); color: var(--paper); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--leaf); border-radius: 4px; }
.qty button { border: 0; background: none; width: 28px; height: 26px; font-weight: 800; cursor: pointer; color: var(--leaf); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { padding: 30px 0; color: var(--muted); column-span: all; }
.legend { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* reservation */
.resv { background: var(--leaf); color: var(--paper); padding: 80px 0; }
.resv h2 { color: var(--paper); margin-bottom: 14px; }
.resv__in { display: grid; gap: 34px; }
@media (min-width: 900px) { .resv__in { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; } }
.resv__intro p:not(.eyebrow) { color: #d6dccf; max-width: 46ch; margin-bottom: 24px; }
.resv__intro img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.resv__form { background: var(--card); color: var(--ink); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 800; color: var(--muted); min-width: 0; }
.field input, .field select { border: 1.5px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 12px; font-size: 1rem; font-weight: 500; color: var(--ink); width: 100%; min-width: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--leaf); }
.two { display: grid; gap: 12px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.times { display: flex; flex-direction: column; gap: 8px; }
.times > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.times small { width: 100%; font-weight: 700; color: var(--muted); font-size: .78rem; }
.t, .a { border: 1.5px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; color: var(--ink); }
.t { padding: 6px 10px; font-variant-numeric: tabular-nums; }
.t[aria-pressed="true"], .a[aria-pressed="true"] { border-color: var(--leaf); background: var(--leaf); color: var(--paper); }
.t:disabled, .a:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.areas { display: grid; gap: 8px; }
@media (min-width: 520px) { .areas { grid-template-columns: 1fr 1fr; } }
.a { padding: 10px 12px; text-align: left; }
.a small { display: block; font-weight: 500; font-size: .8rem; opacity: .8; }
.a em { display: block; font-style: normal; font-size: .78rem; margin-top: 4px; }
.err { color: var(--chili); font-weight: 700; font-size: .9rem; }
.fine { font-size: .8rem; color: var(--muted); }
.wa-preview { background: #0b141a; border-radius: 6px; padding: 12px; }
.wa-preview div { margin-left: auto; max-width: 96%; background: #005c4b; color: #e9edef; border-radius: 8px 8px 3px 8px; padding: 10px 12px; white-space: pre-wrap; font-size: .84rem; line-height: 1.45; }
.pv-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* visit */
.visit { padding: 72px 0 80px; }
.visit__in { display: grid; gap: 32px; }
@media (min-width: 900px) { .visit__in { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.info { margin: 20px 0 0; display: flex; flex-direction: column; gap: 14px; }
.info dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info dd { margin: 2px 0 0; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--chili); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 8px; color: var(--muted); }

.foot { background: var(--leaf-2); color: #b9c3b4; padding: 26px 0 32px; font-size: .82rem; }
.foot__in { display: flex; flex-direction: column; gap: 6px; }
.foot b { font-family: var(--display); font-weight: 400; color: var(--paper); font-size: 1.3rem; }

/* drawer */
.layer { position: fixed; inset: 0; z-index: 60; }
.layer__bg { position: absolute; inset: 0; background: rgba(42,33,24,.5); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.15); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.line b { font-weight: 800; }
.line small { color: var(--muted); }
.line .qty { justify-self: end; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.modes button { border: 1.5px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 4px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--leaf); color: var(--paper); border-color: var(--leaf); }
.sum { font-size: .92rem; display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-family: var(--display); font-size: 1.35rem; color: var(--leaf); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; }
.empty-bag { text-align: center; color: var(--muted); padding: 30px 0; }

.toast { position: fixed; left: 50%; top: 80px; z-index: 80; transform: translate(-50%, -10px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
