:root {
  --ink: #201914;
  --ink-soft: #5b4a3e;
  --paper: #f6ecd7;
  --paper-deep: #ead7b4;
  --jade: #436c58;
  --cinnabar: #a73824;
  --gold: #c79a4f;
  --line: rgba(58, 38, 25, .22);
  --shadow: 0 18px 60px rgba(34, 22, 12, .18);
  --serif: 'Noto Serif SC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  --nav-h: 72px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 36px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(80, 54, 28, .08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #fbf3e3 0%, #f2dfbb 100%);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(80, 54, 28, .10), transparent 55%);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
p { color: var(--ink-soft); line-height: 1.7; }
h1, h2, h3, .logo strong { font-family: var(--serif); line-height: 1.12; }
.demo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: .35rem 1rem;
  background: var(--cinnabar);
  color: #fff7e7;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

#navbar {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 236, 214, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: 1180px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.logo { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--cinnabar);
  color: #fff4e5;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 700;
}
.logo span:last-child { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.logo strong { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo small { color: var(--ink-soft); font-size: .72rem; }
.nav-links { margin-left: auto; display: flex; gap: 1.35rem; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .88rem; }
.nav-actions { display: flex; align-items: center; gap: .65rem; margin-left: .25rem; }
#lang-select {
  min-height: 40px;
  width: 84px;            /* fixed so the Order button stays put across FR / EN / 中文 */
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,250,239,.8);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-align-last: center;
}
.btn-reserve, .btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
}
.btn-reserve, .btn-primary { background: var(--ink); color: #fff9ec; padding: .75rem 1rem; }
.btn-ghost { color: #fff9ec; border: 1px solid rgba(255,255,255,.55); padding: .7rem 1rem; }
.hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; padding: .4rem 1.25rem 1rem; border-top: 1px solid var(--line); }
.mobile-menu.open { display: grid; }
.mobile-menu a { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-weight: 700; }

#hero {
  min-height: 94svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 70px) 1.25rem 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(67,108,88,.32), transparent 60%),
    radial-gradient(120% 80% at 85% 110%, rgba(167,56,36,.3), transparent 55%),
    url("../images/chinese-restaurant-interior.jpg") center/cover no-repeat,
    linear-gradient(180deg, #2c2118 0%, #1b1611 58%, #241a12 100%);
  transform: scale(1.03);
  z-index: -3;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,18,14,.55), rgba(35,26,19,.18), rgba(22,18,14,.5));
}
.hero-ink {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(0deg, rgba(31,24,19,.92), transparent);
  z-index: -1;
}
.hero-content { max-width: 1180px; text-align: center; color: #fff8e8; }
.eyebrow, .section-label {
  margin-bottom: .8rem;
  color: var(--cinnabar);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-content .eyebrow { color: #f5c779; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); letter-spacing: 0; text-wrap: balance; text-shadow: 0 8px 34px rgba(0,0,0,.3); }
.hero-content p:not(.eyebrow) { max-width: 620px; margin: 1.1rem auto 0; color: rgba(255,248,232,.86); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }
main { position: relative; }
section { padding: 5.5rem 1.25rem; }
.story-section, .visit-section, .order-panel {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 2rem;
  align-items: center;
}
.section-copy h2, .section-heading h2, .visit-card h2, .order-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.story-card {
  background: rgba(255,248,232,.76);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}
.story-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.story-card div { padding: 1.2rem; }
.story-card strong { display: block; margin-bottom: .3rem; font-family: var(--serif); font-size: 1.2rem; }
.story-card span { color: var(--ink-soft); line-height: 1.55; }
.section-heading { max-width: 780px; margin: 0 auto 2.2rem; text-align: center; }
.menu-section { background: linear-gradient(180deg, rgba(55,40,27,.97), rgba(32,25,20,.99)); color: #fff8e8; }
.menu-section .section-label { color: #f0c36f; }
.section-sub { max-width: 640px; margin: .7rem auto 0; opacity: .85; font-size: 1rem; line-height: 1.6; }
/* The generic `p { color: ink-soft }` rule darkens the subtitle to near-invisible
   on the dark menu background; restore the cream so it reads clearly. */
.menu-section .section-sub { color: #fff8e8; opacity: .9; }

/* ---- data-driven menu ---- */
.menu-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  max-width: 1100px; margin: 0 auto 1.9rem;
}
.menu-tab {
  min-height: 42px; padding: .55rem 1.05rem;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  color: #fff4dc; background: rgba(255,255,255,.05);
  font-weight: 800; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.menu-tab:hover { border-color: var(--gold); }
.menu-tab.active { background: var(--gold); color: #21160f; border-color: var(--gold); }
#menu-root { perspective: 1700px; }
.menu-panel { display: none; }
.menu-panel.active { display: block; }
/* Easter egg: the active category turns in like a book page */
.menu-panel.fade-in { transform-origin: left center; animation: pageFlip .55s ease; }
@keyframes pageFlip {
  from { opacity: 0; transform: rotateY(-88deg); }
  60%  { box-shadow: -30px 0 50px rgba(0,0,0,.25); }
  to   { opacity: 1; transform: rotateY(0); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel.fade-in { animation: none; }
}
.dish-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem;
}
.dish-card {
  display: flex; flex-direction: column;
  background: rgba(255,250,238,.97); color: var(--ink);
  border: 1px solid rgba(75,45,22,.16); border-radius: 10px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.dish-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dish-card-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.dish-card .dish-top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.dish-card h3 { font-size: 1.12rem; }
.dish-price { color: var(--cinnabar); font-weight: 900; white-space: nowrap; font-size: .98rem; }
.dish-desc { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.dish-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.dish-tag {
  font-size: .68rem; font-weight: 800;
  padding: .22rem .5rem; border-radius: 999px;
  background: rgba(67,108,88,.12); color: var(--jade); border: 1px solid rgba(67,108,88,.25);
}
.dish-tag.tag-spicy { background: rgba(167,56,36,.12); color: var(--cinnabar); border-color: rgba(167,56,36,.3); }
.dish-tag.tag-popular { background: rgba(199,154,79,.18); color: #8a6520; border-color: rgba(199,154,79,.4); }
.dish-opts { display: grid; gap: .5rem; margin-top: .15rem; }
.dish-opt { display: grid; gap: .25rem; }
.dish-opt-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.dish-opt select {
  width: 100%; min-height: 42px; padding: .5rem .65rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff8e8; color: var(--ink); font-weight: 600;
}
.btn-add {
  margin-top: auto; min-height: 44px; border-radius: 6px;
  background: var(--ink); color: #fff9ec; font-weight: 800;
  transition: background .2s;
}
.btn-add:hover { background: #3a2a1e; }
.btn-add.added { background: var(--jade); }

.extras-section { background: rgba(255,246,224,.75); }
.opt-sub { margin-top: 1.4rem; }
.spice-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.spice-pill {
  min-height: 40px; display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff8e8; color: var(--ink-soft); font-weight: 700; font-size: .85rem;
}
.spice-pill input { width: 16px; height: 16px; accent-color: var(--cinnabar); }
.extras-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.option-panel, .price-panel, .visit-card, .order-panel {
  background: rgba(255,249,236,.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.option-panel, .price-panel, .visit-card { padding: 1.4rem; }
.option-panel h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.option-panel label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.option-panel label span { flex: 1 1 auto; min-width: 0; }
.option-panel label b {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 68px;
  text-align: right;
  white-space: nowrap;
  color: var(--cinnabar);
}
.option-panel input {
  accent-color: var(--cinnabar);
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.price-panel { display: grid; align-content: center; text-align: center; }
.price-panel span { color: var(--ink-soft); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.price-panel strong { display: block; margin: .5rem 0; color: var(--cinnabar); font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); }
.visit-section { align-items: stretch; }
.visit-card { min-height: 100%; }
.info-list { display: grid; gap: .35rem; margin-top: 1.2rem; }
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list span { color: var(--ink-soft); }
.fine-print { margin-top: 1rem; font-size: .82rem; color: var(--cinnabar); font-weight: 700; }
.order-section { padding-top: 2rem; }
.order-panel { padding: 1.6rem; }
form { display: grid; gap: .7rem; }
label { color: var(--ink); font-weight: 900; font-size: .82rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff8e8;
  color: var(--ink);
  padding: .85rem 1rem;
}
textarea { resize: vertical; min-height: 120px; }
#form-success { min-height: 1.2rem; color: var(--jade); font-weight: 800; }
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 2rem 1.25rem;
  background: var(--ink);
  color: #fff6e5;
}
footer div, footer a { max-width: 1180px; }
footer p { color: rgba(255,246,229,.65); font-size: .86rem; }
footer a { color: #f1c46f; font-weight: 800; }

/* ─── TIER BAND (CaptainCTO pro) ─────────────────────────── */
.tier-band { background: linear-gradient(160deg, #2a2017 0%, var(--ink) 100%); color: rgba(255,246,229,.85); padding: 5rem 1.5rem; border-top: 1px solid rgba(255,246,229,.08); }
.tier-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.tier-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.tier-price { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; color: #fff6e5; margin-bottom: 1rem; }
.tier-text { font-size: .95rem; line-height: 1.7; color: rgba(255,246,229,.7); margin-bottom: 2rem; }
.tier-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-tier-primary { display: inline-flex; align-items: center; padding: .85rem 1.8rem; background: var(--cinnabar); color: #fff; font-weight: 700; font-size: .95rem; border-radius: 50px; transition: background .2s, transform .15s; }
.btn-tier-primary:hover { background: #8f2d1c; transform: translateY(-1px); }
.btn-tier-outline { display: inline-flex; align-items: center; padding: .85rem 1.8rem; border: 1.5px solid rgba(255,246,229,.4); color: #fff6e5; font-weight: 700; font-size: .95rem; border-radius: 50px; transition: background .2s, border-color .2s; }
.btn-tier-outline:hover { background: rgba(255,246,229,.1); border-color: rgba(255,246,229,.75); }
@media (max-width: 420px) { .tier-btns { flex-direction: column; align-items: stretch; } .btn-tier-primary, .btn-tier-outline { width: 100%; justify-content: center; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links, .btn-reserve { display: none; }
  .hamburger { display: flex; }
  .nav-actions { margin-left: auto; }
  .story-section, .visit-section, .order-panel, .extras-grid { grid-template-columns: 1fr; }
  .book { min-height: 0; }
  .book-spine { display: none; }
  .book-page { min-height: 0; padding: 1.1rem; }
  .menu-grid, .menu-grid.compact { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 620px) {
  .demo-ribbon { font-size: .76rem; }
  #navbar { top: 32px; }
  .nav-inner { padding: 0 .9rem; }
  .logo strong { max-width: 170px; }
  #hero { min-height: 86svh; padding-left: 1rem; padding-right: 1rem; }
  section { padding: 4rem 1rem; }
  .dish { grid-template-columns: 1fr; }
  .dish img { min-height: 160px; aspect-ratio: 16 / 9; }
  .info-list div { flex-direction: column; gap: .15rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- combos & festins ---- */
.combos-section { max-width: 1180px; margin: 0 auto; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.combo-card {
  background: rgba(255,249,236,.85); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 8px; padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.combo-card .dish-top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; margin-bottom: .4rem; }
.combo-card h3 { font-size: 1.12rem; }
.combo-card .dish-price { font-size: 1.05rem; }
.combo-ex { margin-top: .6rem; font-size: .82rem; color: var(--jade); font-weight: 600; }
.combo-upsell { max-width: 900px; margin: 1.4rem auto 0; text-align: center; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }

/* ---- reviews ---- */
.reviews-section { background: rgba(255,246,224,.7); }
.reviews-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.review-card { background: #fff8e8; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; box-shadow: var(--shadow); }
.review-card p { font-size: .98rem; color: var(--ink); }
.review-card cite { display: block; margin-top: .9rem; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cinnabar); }

/* ---- order form + summary ---- */
.order-section { max-width: 1180px; margin: 0 auto; }
.order-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 1.6rem; align-items: start;
  background: transparent; border: 0; box-shadow: none; padding: 0;
}
.order-form-col h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.form-field { display: grid; gap: .3rem; }
.form-field select {
  width: 100%; min-height: 46px; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff8e8; color: var(--ink); font-weight: 600;
}
.form-help { font-size: .82rem; color: var(--cinnabar); font-weight: 700; }
.form-secondary { display: flex; gap: .6rem; flex-wrap: wrap; }
.form-secondary .btn-ghost { color: var(--ink); border-color: var(--line); }
.demo-note { font-size: .78rem; color: var(--ink-soft); }
.order-summary {
  position: sticky; top: calc(var(--nav-h) + 48px);
  background: rgba(255,249,236,.92); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.3rem; box-shadow: var(--shadow);
}
.summary-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 1.25rem; margin-bottom: .8rem; }
.summary-count { min-width: 26px; height: 26px; padding: 0 .4rem; display: inline-grid; place-items: center; background: var(--cinnabar); color: #fff7e7; border-radius: 999px; font-size: .82rem; font-weight: 800; font-family: var(--sans); }
.cart-empty { font-size: .88rem; color: var(--ink-soft); }
.cart-list { list-style: none; display: grid; gap: .55rem; }
.cart-line { display: flex; justify-content: space-between; gap: .6rem; align-items: start; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.cart-info { display: grid; gap: .15rem; min-width: 0; }
.cart-info strong { font-family: var(--sans); font-size: .92rem; }
.cart-opts { font-size: .78rem; color: var(--ink-soft); }
.cart-right { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.cart-price { color: var(--cinnabar); font-weight: 800; white-space: nowrap; }
.cart-remove { width: 24px; height: 24px; border-radius: 999px; background: rgba(167,56,36,.12); color: var(--cinnabar); font-weight: 800; line-height: 1; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; }
.summary-total strong { font-family: var(--serif); font-size: 1.6rem; color: var(--cinnabar); }
.summary-fine { margin-top: .4rem; font-size: .76rem; color: var(--ink-soft); }
.order-summary.pulse { animation: pulse .5s ease; }
@keyframes pulse { 0% { box-shadow: var(--shadow); } 40% { box-shadow: 0 0 0 4px rgba(67,108,88,.3), var(--shadow); } 100% { box-shadow: var(--shadow); } }

/* ---- mobile sticky bar ---- */
.sticky-bar { display: none; }

@media (max-width: 860px) {
  .order-panel { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .sticky-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: rgba(247,236,214,.97); border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .sticky-bar a { min-height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; color: var(--ink); }
  .sticky-bar .sticky-cta { background: var(--cinnabar); color: #fff7e7; }
  body { padding-bottom: 56px; }
}

@media (max-width: 620px) {
  .dish-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
