:root {
  --primary: #8A5A22;      /* bronze from logo */
  --accent:  #D4A94A;      /* gold from logo */
  --bg:      #FFFBF3;      /* warm cream */
  --surface: #FFFFFF;
  --text:    #2A1E10;
  --muted:   #8A7457;
  --header-h: 64px;
  --bottom-nav: 64px;
  --radius:  16px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ===== Splash ===== */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.splash-logo { width: 100px; height: 100px; object-fit: contain; position: relative; z-index: 1; }
.splash-ring {
  position: absolute; inset: 0;
  border: 4px solid #F0E0BE;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  height: var(--header-h);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
}
.header-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.search-wrap { flex: 1; max-width: 420px; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; font-size: 18px; }
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 36px;
  border: 1px solid #EEDFB9; border-radius: 999px;
  background: var(--bg); font-size: 14px; outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }

/* ===== Page tabs ===== */
.page-tabs {
  position: sticky; top: var(--header-h); z-index: 45;
  background: var(--surface); display: flex; justify-content: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid #F1E3C4;
}
.page-tabs .page-tab {
  padding: 8px 20px; border-radius: 999px; border: 1px solid #ECDAAE;
  background: var(--bg); font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer; transition: all .15s ease;
}
.page-tabs .page-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-tabs .page-tab:active { transform: scale(.94); }
.page.hidden { display: none; }
.page { animation: pageIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 20px 40px;
  background: linear-gradient(180deg, #FFF3DC, var(--bg));
}

.hero-logo {
  width: 140px; height: 140px; object-fit: contain;
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards .2s;
}
.hero-title {
  font-size: 30px; color: var(--primary); letter-spacing: .5px; margin-top: 10px;
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards .5s;
}
.hero-sub {
  color: var(--muted); margin-top: 10px; font-size: 15px; font-weight: 600;
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards .7s;
}
.hero-cta {
  opacity: 0; transform: translateY(18px);
  animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards .9s;
  display: inline-block; margin-top: 20px; padding: 12px 28px;
  background: var(--primary); color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 16px rgba(138,90,34,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(138,90,34,.4);
}
.hero-cta:active { transform: translateY(0) scale(.98); }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-scroll-cue {
  position: relative; margin-top: 28px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.7); color: var(--primary);
  text-decoration: none;
  opacity: 0; animation: heroFadeUp .8s cubic-bezier(.22,1,.36,1) forwards 1.1s, bounce 1.8s ease-in-out infinite 1.9s;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ===== Category nav ===== */
.category-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px;
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--bg); border-bottom: 1px solid #F1E3C4;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid #ECDAAE; background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  white-space: nowrap; transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-pill .material-symbols-outlined { font-size: 16px; }
.cat-pill { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.cat-pill:active { transform: scale(.94); }
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.04); }

/* ===== Menu ===== */
.menu-main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.section-title {
  font-size: 22px; margin: 28px 0 14px; color: var(--primary);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.no-results { text-align: center; padding: 40px 0; color: var(--muted); }
.no-results.hidden { display: none; }

.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.97);
  animation: cardIn .5s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(138,90,34,.16); }
.card:active { transform: translateY(-1px) scale(.98); }
@keyframes cardIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.card-img {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--accent); background: #FFF7E6; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: 15px; }
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 4px; }
.card-price { font-size: 13px; font-weight: 700; color: var(--primary); direction: ltr; unicode-bidi: embed; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Reservation ===== */
.reservation-section {
  max-width: 480px; margin: 0 auto; padding: 40px 20px 60px; text-align: center;
}
.reservation-title { font-size: 28px; color: var(--primary); }
.reservation-sub { color: var(--muted); margin-top: 8px; font-size: 14px; }
.reservation-form {
  margin-top: 28px; display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.reservation-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.reservation-form input, .reservation-form select {
  padding: 12px 14px; border: 1px solid #ECDAAE; border-radius: 10px;
  background: var(--surface); font-size: 14px; font-family: inherit; color: var(--text); outline: none;
}
.reservation-form input:focus, .reservation-form select:focus { border-color: var(--accent); }
.reservation-submit {
  margin-top: 8px; width: 100%; padding: 14px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.reservation-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,211,102,.35); }
.reservation-submit:active { transform: translateY(0) scale(.98); }

/* ===== Bottom nav ===== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: var(--bottom-nav); background: var(--surface);
  border-top: 1px solid #F1E3C4; display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.bn-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 18px; background: none; border: none; cursor: pointer;
  color: var(--text); text-decoration: none;
}
.bn-link span:last-child { font-size: 10px; font-weight: 600; }

@media (min-width: 900px) {
  .bottom-nav { display: none; }
  .site-footer { margin-bottom: 0; }
}

/* ===== Footer ===== */
.site-footer {
  text-align: center; padding: 32px 16px; background: #FBF0DA;
  margin-bottom: var(--bottom-nav);
}
.footer-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 10px; }
.footer-tag { font-size: 13px; color: var(--muted); }
