/* Shared restaurant page styles - tweak via CSS vars per theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  color: var(--ink);
  background: var(--bg);
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter, 32px);
}

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter, 32px);
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.nav-logo img {
  height: 44px; width: 44px; border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex; gap: var(--nav-gap, 36px);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: opacity .25s;
}
.nav-links a:hover { opacity: 0.7; }
.nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: var(--btn-py, 12px) var(--btn-px, 22px);
  border-radius: var(--btn-radius, 999px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid var(--accent-dark, transparent);
  transition: all .2s ease;
  background: var(--accent-3, var(--accent));
  color: #fff;
  box-shadow: 3px 3px 0 var(--accent-dark, rgba(0,0,0,0.25));
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--accent-dark, rgba(0,0,0,0.25)); background: var(--accent-3-deep, var(--accent)); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--accent-dark, rgba(0,0,0,0.25)); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
}
.btn-back:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: var(--hero-py, 80px) 0 var(--hero-py-b, 60px);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  max-width: 56ch;
  color: var(--muted-strong);
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Menu section */
.section {
  padding: 80px 0;
  position: relative;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* Category tabs */
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter, 32px));
  padding-left: var(--gutter, 32px);
  padding-right: var(--gutter, 32px);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  white-space: nowrap;
}
.cat:hover { color: var(--ink); border-color: var(--ink); }
.cat.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: var(--card-gap, 20px);
  margin-top: 32px;
}
.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius, 18px);
  background: var(--card-bg);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
}
.dish:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -22px var(--shadow);
}
.dish-art {
  position: relative;
  aspect-ratio: 16/10;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%),
    var(--art-bg, color-mix(in srgb, var(--accent) 5%, var(--card-bg)));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin: 0;
}
.dish-art::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, var(--card-bg) 100%);
  pointer-events: none;
}
.dish-art svg {
  position: relative;
  z-index: 1;
  width: 70%; height: 80%;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.14));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.dish:hover .dish-art svg { transform: scale(1.05) translateY(-2px); }
.dish-body {
  padding: 4px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.dish-head {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline;
  margin: 0;
}
.dish-name {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--accent);
  flex: 1;
}
.dish-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 999px;
}
.dish-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-strong);
  margin: 0;
  margin-bottom: 14px;
}
.dish-tags-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}
.dish-tags-overlay .tag {
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}
.dish-art {
  position: relative;
}
.dish-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 4px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-weight: 600;
}
.tag.signature { background: var(--accent); color: var(--accent-ink); }
.tag.veg { background: rgba(46,160,67,0.15); color: #2EA043; }
.tag.popular { background: #E6157A; color: #fff; }
.tag.share { background: rgba(125,72,255,0.15); color: #9b6bff; }

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid li { line-height: 1.7; }
.footer ul { list-style: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
}

/* Experience section */
.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.exp-img {
  aspect-ratio: 4/5;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.exp-pills {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.exp-pill {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}
.exp-pill .label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.exp-pill .value {
  font-family: var(--font-display);
  font-size: 18px; color: var(--accent);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 280px;
  background: var(--bg-2, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  z-index: 100;
  font-size: 13px;
}
.tweaks-panel h3 { font-family: var(--font-display); font-size: 18px; color: var(--accent); margin-bottom: 4px; }
.tweaks-panel p { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.tweak { margin-bottom: 14px; }
.tweak-label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, border-color .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--ink); }
.tweak-pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  cursor: pointer;
}
.tweak-pill.active {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.tweak-close {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; line-height: 1;
}

/* Door entry animation - on page load from portal */
.door-enter {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; pointer-events: none;
}
.door-enter .leaf {
  flex: 1; background: var(--bg-2, #0E0B08);
  transition: transform 1.1s cubic-bezier(.7,0,.3,1);
  transform-origin: left center;
}
.door-enter .leaf.right { transform-origin: right center; }
.door-enter.open .leaf.left { transform: perspective(1400px) rotateY(-105deg); }
.door-enter.open .leaf.right { transform: perspective(1400px) rotateY(105deg); }

@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --hero-py: 48px; }
  .tweaks-panel { width: calc(100% - 32px); right: 16px; bottom: 16px; }
}
