/* styles.css — Buffet deck visual system v2
   Faithful to the source PDF: olive-green + paper-cream, serif display,
   zen concentric lines, sutil grain texture, geometric photo crops.
*/

:root {
  /* Palette pulled from the PDF screenshots */
  --buffet-paper:        #e9e3d4;   /* warm paper cream */
  --buffet-paper-deep:   #ddd5c2;
  --buffet-olive:        #2d3528;   /* deep olive (cover + divider bg) */
  --buffet-olive-deep:   #232a1f;
  --buffet-bronze:       #8a7d50;   /* dim gold for accents and titles on cream */
  --buffet-bronze-soft:  #a59668;
  --buffet-ink:          #2a2820;   /* warm near-black on cream */
  --buffet-ink-soft:     rgba(42, 40, 32, 0.62);
  --buffet-ink-faint:    rgba(42, 40, 32, 0.32);
  --buffet-line:         rgba(42, 40, 32, 0.20);
  --buffet-line-soft:    rgba(42, 40, 32, 0.10);
  --buffet-on-olive:     #d8d2bf;   /* warm cream text on olive */
  --buffet-on-olive-soft:rgba(216, 210, 191, 0.62);

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, serif;
  --sans:  'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--buffet-paper);
  color: var(--buffet-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* ───────── App layout ───────── */
.app { position: fixed; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  animation: slideIn 600ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Paper / olive surfaces with subtle grain. */
.surface-paper { background: var(--buffet-paper); color: var(--buffet-ink); }
.surface-olive { background: var(--buffet-olive); color: var(--buffet-on-olive); }

.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.surface-olive .grain {
  opacity: 0.7;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ───────── Chrome (top + bottom rails) ───────── */
.chrome {
  position: absolute;
  left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 32px;
  z-index: 10;
  pointer-events: none;
  font-family: var(--sans);
}
.chrome > * { pointer-events: auto; }
.chrome-top    { top: 0; }
.chrome-bottom { bottom: 0; }
.chrome-left   { display: flex; gap: 12px; align-items: center; justify-self: start; }
.chrome-center { display: flex; gap: 16px; align-items: center; justify-self: center; }
.chrome-right  { display: flex; gap: 12px; align-items: center; justify-self: end; }

/* Tab-style chrome links (matches the PDF's bracketed HOME / SET MENUS) */
.chrome-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--buffet-line);
  color: var(--buffet-ink);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  transition: all 200ms ease;
}
.chrome-link i { font-size: 11px; opacity: 0.85; }
.chrome-link:hover {
  background: var(--buffet-ink);
  color: var(--buffet-paper);
  border-color: var(--buffet-ink);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--buffet-ink-faint);
}
.lang-btn {
  padding: 4px 2px;
  letter-spacing: 0.22em;
  color: var(--buffet-ink-faint);
  transition: color 150ms ease;
}
.lang-btn.is-active,
.lang-btn:hover { color: var(--buffet-ink); }
.lang-divider { color: var(--buffet-ink-faint); }

.counter {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--buffet-ink-soft);
  font-family: var(--sans);
  font-weight: 500;
}

.dots { display: flex; gap: 6px; }
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--buffet-ink-faint);
  transition: all 200ms ease;
}
.dot:hover { background: var(--buffet-ink-soft); }
.dot.is-active {
  background: var(--buffet-ink);
  width: 18px;
  border-radius: 3px;
}

.nav-btn {
  width: 30px; height: 30px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--buffet-line);
  color: var(--buffet-ink);
  transition: all 150ms ease;
}
.nav-btn:hover:not(:disabled) {
  background: var(--buffet-ink);
  color: var(--buffet-paper);
  border-color: var(--buffet-ink);
}
.nav-btn:disabled { opacity: 0.25; cursor: default; }
.nav-btn i { font-size: 13px; }

/* Chrome over olive background → cream text */
.chrome--olive .chrome-link {
  color: var(--buffet-on-olive);
  border-color: rgba(216, 210, 191, 0.28);
  background: rgba(255,255,255,0.04);
}
.chrome--olive .chrome-link:hover {
  background: var(--buffet-on-olive);
  color: var(--buffet-olive);
  border-color: var(--buffet-on-olive);
}
.chrome--olive .lang-btn,
.chrome--olive .lang-divider,
.chrome--olive .counter { color: var(--buffet-on-olive-soft); }
.chrome--olive .lang-btn.is-active,
.chrome--olive .lang-btn:hover { color: var(--buffet-on-olive); }
.chrome--olive .nav-btn {
  color: var(--buffet-on-olive);
  border-color: rgba(216, 210, 191, 0.28);
}
.chrome--olive .nav-btn:hover:not(:disabled) {
  background: var(--buffet-on-olive);
  color: var(--buffet-olive);
  border-color: var(--buffet-on-olive);
}
.chrome--olive .dot { background: rgba(216, 210, 191, 0.32); }
.chrome--olive .dot:hover { background: rgba(216, 210, 191, 0.6); }
.chrome--olive .dot.is-active { background: var(--buffet-on-olive); }

/* ═══════════════════════════════════════════════════════════════
   COVER SLIDE
   ═══════════════════════════════════════════════════════════════ */
.cover-slide {
  background: var(--buffet-olive);
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  mix-blend-mode: luminosity;
}
.cover-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.cover-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 64px 120px;
  color: var(--buffet-on-olive);
  z-index: 2;
}
.cover-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--buffet-on-olive);
}
.cover-subtitle {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--buffet-on-olive);
  opacity: 0.85;
}
.cover-tagline {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--buffet-on-olive);
  opacity: 0.85;
}
.cover-logo {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--buffet-on-olive);
  z-index: 2;
  opacity: 0.92;
  mix-blend-mode: overlay;
}
.palace-logo-img {
  display: block;
  width: clamp(160px, 18vw, 260px);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25)) brightness(1.1);
}
/* Legacy placeholder styles removed — using real SVG logo now */

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDER SLIDE (olive bg, two icons)
   ═══════════════════════════════════════════════════════════════ */
.section-slide {
  background: var(--buffet-olive);
  color: var(--buffet-on-olive);
}
.section-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  mix-blend-mode: luminosity;
}
.section-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.section-rings svg {
  width: 100%; height: 100%;
  display: block;
  opacity: 0.18;
}
.section-content {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10vw;
  z-index: 2;
}
/* Section icons as interactive buttons */
.section-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--buffet-on-olive);
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 28px 32px;
  border-radius: 8px;
  transition: background 220ms ease, transform 220ms ease;
}
.section-option:hover {
  background: rgba(216, 210, 191, 0.08);
  transform: translateY(-3px);
}
.section-option-icon {
  width: 92px;
  height: 92px;
}
.section-option-icon svg { width: 100%; height: 100%; display: block; }
.section-option-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.42em;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 140px;
  line-height: 1.5;
  color: var(--buffet-on-olive);
}

/* ═══════════════════════════════════════════════════════════════
   SELECTOR SLIDE (paper bg, stadium-shape image cards)
   ═══════════════════════════════════════════════════════════════ */
.selector-slide {
  background: var(--buffet-paper);
}
.selector-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.selector-rings svg {
  width: 100%; height: 100%;
  display: block;
  opacity: 0.45;
}
.selector-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 2;
}
.selector-header {
  text-align: center;
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.selector-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: 0.32em;
  color: var(--buffet-bronze);
  text-transform: uppercase;
}
.selector-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.48em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--buffet-ink);
  opacity: 0.6;
}
.selector-tagline {
  margin: 6px 0 0;
  max-width: 560px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--buffet-ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.selector-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  padding: 0 8vw;
  flex-wrap: wrap;
}
.menu-card {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  height: clamp(160px, 18vw, 240px);
  border-radius: 9999px;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  background: var(--buffet-paper-deep);
  transition: transform 350ms cubic-bezier(0.2, 0, 0, 1), box-shadow 350ms ease;
  box-shadow: 0 8px 28px -12px rgba(0,0,0,0.25);
}
.menu-card:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.35); }
.menu-card-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.9);
}
.menu-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
}
.menu-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  padding: 0 24px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   MENU HEADER SLIDE (paper, circular photo, split title)
   ═══════════════════════════════════════════════════════════════ */
.menu-header-slide { background: var(--buffet-paper); }
.menu-header-rings {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.menu-header-rings svg { width: 100%; height: 100%; display: block; opacity: 0.55; }

.menu-header-content {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5vw, 80px);
  z-index: 2;
  padding: 0 8vw;
}
.menu-header-side {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--buffet-bronze);
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.menu-header-side.is-soft {
  color: var(--buffet-ink-soft);
}

.menu-photo-circle {
  width: clamp(280px, 36vw, 520px);
  height: clamp(280px, 36vw, 520px);
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.35);
  position: relative;
}
.menu-photo-circle::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   MENU DETAIL SLIDE
   ═══════════════════════════════════════════════════════════════ */
.menu-detail-slide {
  background: var(--buffet-paper);
  overflow-y: auto;
}
.menu-detail-rings {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.menu-detail-rings svg { width: 100%; height: 100%; display: block; opacity: 0.45; }

.menu-detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: 72px 5vw 72px 5vw;
  min-height: 100%;
}
.menu-detail-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.menu-detail-photo {
  width: clamp(260px, 28vw, 420px);
  height: clamp(260px, 28vw, 420px);
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.30);
  position: relative;
}

.menu-detail-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
}
.menu-detail-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.25;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--buffet-line);
}
.menu-detail-title .first { color: var(--buffet-bronze); }
.menu-detail-title .second { color: var(--buffet-ink-soft); }

.menu-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.menu-category {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--buffet-line-soft);
}
.menu-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.menu-category-title {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--buffet-bronze);
}
.menu-category-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.menu-category-items li {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--buffet-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* AyB diet icon styles */
.diet-marks {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.diet-mark {
  display: inline-flex;
  align-items: center;
}
.diet-mark-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.55;
  filter: saturate(0);
}
.allergy-legend {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--buffet-ink-faint);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.allergy-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.allergy-legend-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.55;
  filter: saturate(0);
}

.allergy-note {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--buffet-line-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--buffet-ink-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.allergy-legend {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--buffet-ink-faint);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.allergy-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.allergy-legend .mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--buffet-bronze);
}

/* ───────── Responsive trims ───────── */
@media (max-width: 900px) {
  .chrome { padding: 16px 18px; }
  .selector-cards { padding: 0 24px 60px; gap: 16px; }
  .menu-detail-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 100px 24px 60px;
  }
  .menu-detail-text { max-width: none; align-items: center; text-align: center; }
  .menu-categories { width: 100%; max-width: 480px; }
  .menu-header-side { font-size: 16px; }
  .dots { display: none; }
  .section-content { gap: 60px; }
}

/* ── CMS "EDITOR" button in top chrome ─────────────────────── */
.cms-open-btn {
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid rgba(42,40,32,0.22);
  color: var(--buffet-ink-soft);
  transition: background 150ms, color 150ms, border-color 150ms;
}
.cms-open-btn:hover {
  background: var(--buffet-ink);
  color: var(--buffet-paper);
  border-color: var(--buffet-ink);
}
/* On olive slides */
.cms-open-btn--olive {
  border-color: rgba(216,210,191,0.28);
  color: var(--buffet-on-olive-soft);
}
.cms-open-btn--olive:hover {
  background: var(--buffet-on-olive);
  color: var(--buffet-olive);
  border-color: var(--buffet-on-olive);
}
