:root {
  --green: #1f3d2b;
  --green-2: #2e5a40;
  --cream: #faf6ef;
  --card: #ffffff;
  --sand: #f1e8da;
  --ink: #1d1d1b;
  --muted: #6b6a64;
  --accent: #d0643b;
  --accent-dark: #b4512c;
  --line: #e7dfd1;
  --ok: #2f8f4e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(31,61,43,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; color: var(--green); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
a { color: var(--green-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.big { font-size: 1.15rem; }

.demo-bar { background: #fff4d6; color: #6a4e00; text-align: center; font-size: .85rem; padding: 6px 16px; }
.demo-bar a { color: inherit; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .link-btn { color: #fff; }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; }
.demo-btn { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font: 700 .95rem Inter, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(31,61,43,.25); }
.demo-btn:hover { background: var(--green-2); }
.track { list-style: none; padding: 0; margin: 18px auto 8px; max-width: 320px; text-align: left; }
.track li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: #a39f96; font-weight: 600; position: relative; }
.track li + li::before { content: ''; position: absolute; left: 10px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.track .tdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d6ccbb; background: #fff; flex: none; display: grid; place-items: center; font-size: .75rem; color: #fff; }
.track li.done { color: var(--green); }
.track li.done .tdot { background: var(--ok); border-color: var(--ok); }
.track li.done .tdot::after { content: '✓'; }
.track li.now { color: var(--ink); }
.track li.now .tdot { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208,100,59,.2); animation: tpulse 1.4s infinite; }
@keyframes tpulse { 50% { box-shadow: 0 0 0 8px rgba(208,100,59,0); } }
.track-note { font-weight: 600; min-height: 1.5em; }
.track-note.ready { background: #e3f2e7; color: #1d5c32; border-radius: 12px; padding: 12px; font-size: 1.1rem; }
.form-error { color: #b42318; font-weight: 600; margin: 0 0 10px; }
.form-error:empty { display: none; }
.connect { text-align: center; }
.connect p { margin: 6px 0; }
.connect a { font-weight: 600; word-break: break-all; }
.qr { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; }
.qr img, .qr canvas { display: block; }
.room-code { font: 700 2.4rem/1 Inter, sans-serif; letter-spacing: .25em; color: var(--green); margin-top: 8px !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 999px; padding: .65em 1.2em; font: 600 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: rgba(31,61,43,.06); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.block { width: 100%; }
.grow { flex: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,246,239,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 1.2rem; }
.logo b { display: block; font-family: Fraunces, serif; font-size: 1.25rem; line-height: 1; }
.logo small { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--green); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 400px at 80% 0%, #f3e3cc 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; color: #3c3b37; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: #e3f2e7; color: #1d5c32; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; margin: 0 0 18px; }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,143,78,.5); animation: pulse 2s infinite; }
.status-pill.closed { background: #f6e4dc; color: #8a3a1c; }
.status-pill.closed .dot { background: var(--accent); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,143,78,0); } 100% { box-shadow: 0 0 0 0 rgba(47,143,78,0); } }
.hero-art { position: relative; max-width: 480px; justify-self: center; width: 100%; padding: 0 0 28px 28px; }
.hero-main { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 20px 50px rgba(31,61,43,.22); }
.hero-inset { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--cream); box-shadow: var(--shadow); }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.link { font-weight: 600; text-decoration: none; }

/* Item cards */
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font: inherit; color: inherit; cursor: pointer; position: relative; transition: box-shadow .15s, transform .15s, border-color .15s; }
.item-card:hover { box-shadow: var(--shadow); border-color: #d9ccb6; transform: translateY(-1px); }
.item-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.item-emoji { flex: none; width: 88px; height: 88px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; font-size: 2rem; overflow: hidden; }
.item-emoji img, .item-hero img, .line-emoji img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-card.big { flex-direction: column; padding: 0; overflow: hidden; }
.item-card.big .item-emoji { width: 100%; height: 190px; border-radius: 0; font-size: 4.5rem; }
.item-card:hover .item-emoji img { transform: scale(1.04); }
.item-emoji img { transition: transform .3s; }
.item-card.big .item-body { padding: 14px 16px 16px; }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 28px; }
.item-title { font-weight: 700; font-size: 1.02rem; }
.item-desc { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-weight: 600; color: var(--green); }
.item-add { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; line-height: 1; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--green-2); background: #e6efe8; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }

/* Menu */
.menu-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-nav-wrap { position: sticky; top: 68px; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 7px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.cat-nav a.active { background: var(--green); color: #fff; border-color: var(--green); }
.menu-cat { padding: 20px 0 8px; }
.menu-cat h3 { font-size: 1.4rem; }
.menu-section .item-card { background: var(--cream); }

/* Info */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table td { text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 700; color: var(--green); }
.hours-table tr.today th::after { content: ' · today'; color: var(--accent); font-weight: 600; font-size: .85rem; }

.site-footer { background: var(--green); color: #e8efe9; padding: 28px 0 110px; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #b9c9bd; }
.footer-inner p { margin: 4px 0; }

/* Floating cart */
.cart-fab { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 12px 14px 12px 12px; font: 600 1rem Inter, sans-serif; box-shadow: 0 10px 30px rgba(31,61,43,.35); cursor: pointer; width: min(420px, calc(100% - 32px)); }
.cart-fab[hidden] { display: none; }
.cart-count { background: var(--accent); border-radius: 999px; min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 8px; }
.cart-fab-total { margin-left: auto; }
.cart-fab.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.06); } }

/* Sheets (dialogs) */
.sheet { border: 0; padding: 0; background: transparent; max-width: 560px; width: 100%; max-height: 92vh; margin: auto; }
.sheet::backdrop { background: rgba(20,30,24,.5); }
.sheet-inner { position: relative; background: #fff; border-radius: 20px; padding: 24px; max-height: 92vh; overflow-y: auto; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1.1rem; cursor: pointer; z-index: 2; }
.item-hero { height: 240px; margin: -24px -24px 18px; background: var(--sand); display: grid; place-items: center; font-size: 5rem; border-radius: 20px 20px 0 0; overflow: hidden; }
.opt-group { border: 0; padding: 0; margin: 18px 0 0; }
.opt-group legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: #f1f7f2; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.choice span:first-of-type { flex: 1; }
.amt { display: none; align-items: center; gap: 8px; }
.choice:has(input:checked) .amt { display: flex; }
.amt button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.amt b { min-width: 24px; text-align: center; font-size: 1.05rem; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #d6ccbb; border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.sheet-foot { position: sticky; bottom: -24px; display: flex; gap: 12px; align-items: center; background: #fff; margin: 20px -24px -24px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.qty button, .line-qty button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }

.cart-lines { list-style: none; padding: 0; margin: 10px 0 0; }
.cart-lines li { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "e b p" "e b q"; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-lines li.empty { display: block; color: var(--muted); }
.line-emoji { grid-area: e; font-size: 1.6rem; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.line-body { grid-area: b; display: flex; flex-direction: column; }
.line-body .note { color: var(--accent-dark); }
.line-price { grid-area: p; font-weight: 600; text-align: right; }
.line-qty { grid-area: q; display: flex; align-items: center; gap: 6px; }
.line-qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-sum { padding-top: 12px; color: var(--muted); }
.cart-sum > div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-sum[hidden] { display: none; }
.demo-switch { display: flex; gap: 10px; align-items: flex-start; background: #fff4d6; color: #6a4e00; border-radius: 10px; padding: 10px 12px; font-size: .85rem; cursor: pointer; margin-bottom: 6px; }
.demo-switch input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; padding: 14px 0; }
.checkout h4 { margin: 8px 0 0; font-size: 1.05rem; }
.demo-note { background: #fff4d6; color: #6a4e00; border-radius: 10px; padding: 10px 12px; font-size: .85rem; }
#done-view { text-align: center; padding: 10px 0; }
.done-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.4rem; display: grid; place-items: center; margin: 10px auto 16px; }

/* Phones */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; order: -1; }
  .hero-main { aspect-ratio: 4 / 3; }
  .hero-inset { width: 30%; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { gap: 10px; height: 60px; }
  .cat-nav-wrap { top: 60px; }
  .logo small { display: none; }
  .logo b, .call-now { white-space: nowrap; }
  .logo b { font-size: 1.1rem; }
  .logo-mark { width: 36px; height: 36px; }
  .header-actions .call-now { padding: .55em .95em; font-size: .95rem; }
  /* Header standard: logo, hamburger, then Call Now at the right edge */
  .nav-toggle { display: block; order: 1; margin-left: auto; }
  .header-actions { order: 2; }
  .header-actions .call-now { order: 2; }
  .header-actions .order-now { display: none; }
  .call-now [data-phone] { display: none; }
  .call-now::after { content: 'Call now'; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border: 0; }
  .hero { padding: 28px 0; }
  .popular-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item-card.big .item-emoji { height: 130px; font-size: 3.4rem; }
  .item-emoji { width: 76px; height: 76px; }
  .item-card.big .item-desc { display: none; }
  .sheet { max-width: none; max-height: 94vh; margin: auto 0 0; }
  .sheet-inner { border-radius: 20px 20px 0 0; max-height: 94vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-pill .dot, .cart-fab.bump, .track li.now .tdot { animation: none; }
}
