/* =========================================================================
   Moti Mahal — restaurant stylesheet
   Deliberately NOT a recolor of site.css's Navy & Gold. Direction: tandoor
   char, ember red leading, turmeric gold supporting — the inverse of the
   hotel's gold-first hierarchy. Display face swaps Playfair Display (cool,
   engraved) for Fraunces (warm, soft-serif, food-brand register); body
   swaps Inter for Work Sans. Motion swaps plain fade-ups for a blur "steam"
   reveal. Three signature devices anchor the page: a Three.js ember hero,
   a radial thali-plate visualization, and spice-tin menu cards — none of
   which exist anywhere on the hotel site.
   ========================================================================= */

:root {
  --ink:        #3A160C;   /* clay-char — dark surface, warmer/redder than the hotel's maroon */
  --ink-deep:   #221009;   /* tandoor char — nav, footer, hero */
  --ink-soft:   #4A1E10;   /* raised surface on dark */
  --gold:       #E8A93B;   /* turmeric — secondary accent now, not the lead */
  --gold-lit:   #F6CE7E;
  --gold-dim:   #B37F27;
  --cream:      #F7EEDD;   /* parchment */
  --cream-deep: #EFDFC2;
  --maroon:     #8C2A18;   /* clay-pot terracotta — rare accent */
  --ember:      #D8431E;   /* NEW — the actual lead accent: chili/ember red */
  --ember-lit:  #F0673D;
  --mustard:    #6B7A3A;   /* NEW — mustard-leaf green, veg marker only */

  --line-dark:  rgba(232, 169, 59, .30);
  --line-light: rgba(58, 22, 12, .16);

  --display: 'Fraunces', Georgia, serif;
  --caps:    'Work Sans', Arial, sans-serif;
  --body:    'Work Sans', Arial, sans-serif;
}

/* Ember leads: buttons, links, focus rings, eyebrow rules read ember-red
   first, with turmeric gold kept for secondary ornament (ratings, dividers,
   small caps). This one swap is what makes the palette feel inverted from
   the hotel's gold-everywhere treatment rather than just re-hued. */
.btn { background: var(--ember); border-color: var(--ember); color: var(--cream); }
.btn:hover { background: var(--ember-lit); border-color: var(--ember-lit); }
.link, .eyebrow { color: var(--ember); }
.link::after { color: var(--ember); }
:focus-visible { outline-color: var(--ember); }
.nav__link[aria-current='page'] { color: var(--ember-lit); }
.nav__link::after { background: var(--ember); }
.nav__link:hover { color: var(--ember-lit); }

/* A slow ember-glow pulse on primary buttons — restaurant-only motion,
   nothing like it exists on the hotel site. Neutralised by the global
   prefers-reduced-motion rule in site.css. */
.btn:not(.btn--ghost):hover, .btn:not(.btn--ghost):focus-visible {
  animation: emberPulse 1.6s var(--ease) infinite;
}
@keyframes emberPulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 67, 30, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(216, 67, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 67, 30, 0); }
}

/* ---------- Motion: "steam" reveal, not a plain fade-up ---------- */
.reveal {
  opacity: 0; translate: 0 1.35rem; filter: blur(7px);
  transition: opacity .85s var(--ease), translate .85s var(--ease), filter .85s var(--ease);
}
.reveal.is-in { opacity: 1; translate: 0 0; filter: blur(0); }

/* ---------- Ember hero (Three.js canvas) ---------- */
.hero--embers {
  background: radial-gradient(120% 100% at 50% 110%, #4A1E10 0%, var(--ink-deep) 60%);
}
.hero--embers canvas { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.hero--embers::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(34,16,9,.96) 0%, rgba(34,16,9,.55) 45%, rgba(34,16,9,.3) 100%);
}

/* ---------- Ticker (replaces the hotel's static stat grid) ---------- */
.ticker { overflow: hidden; background: var(--ink-deep); border-block: 1px solid var(--line-dark); padding-block: 1.1rem; }
.ticker__track { display: flex; width: max-content; gap: 3rem; animation: tickerScroll 26s linear infinite; }
.ticker__track span {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: .82rem;
  color: var(--gold-lit); white-space: nowrap; display: flex; align-items: center; gap: .9rem;
}
.ticker__track span::after { content: '\2726'; color: var(--ember); opacity: .8; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Thali plate (signature element) ----------
   A radial composition — a plate with bowls around it — because a thali
   *is* a plate divided into bowls. Built from four fixed ring positions
   (0/90/180/270°) rather than generic math, so it degrades predictably. */
.thali-plate-wrap { display: flex; justify-content: center; padding-block: 1rem; }
.thali-plate {
  position: relative; width: min(88vw, 27rem); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--maroon) 0%, var(--maroon) 60%, var(--gold) 61%, var(--gold) 65%, var(--maroon) 66%);
  box-shadow: 0 34px 64px -22px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.2);
}
.thali-plate__center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cream-deep);
  display: grid; place-items: center; text-align: center; padding: .5rem;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.2);
}
.thali-plate__center span {
  font-family: var(--caps); text-transform: uppercase; font-size: .6rem; letter-spacing: .14em;
  color: var(--maroon); font-weight: 600; line-height: 1.4;
}
.thali-bowl {
  position: absolute; width: 26%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: var(--cream);
  border: 3px solid var(--ink-deep);
  display: grid; place-items: center; text-align: center; padding: .4rem;
  box-shadow: inset 0 4px 10px rgba(0,0,0,.22), 0 8px 16px -6px rgba(0,0,0,.4);
  transition: scale .35s var(--ease);
}
.thali-bowl:hover, .thali-bowl:focus-visible { scale: 1.08; }
.thali-bowl--n { left: 50%; top: 13%; }
.thali-bowl--e { left: 87%; top: 50%; }
.thali-bowl--s { left: 50%; top: 87%; }
.thali-bowl--w { left: 13%; top: 50%; }
.thali-bowl__price { font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--ember); line-height: 1; }
.thali-bowl__label {
  display: block; margin-top: .25rem; font-family: var(--caps); text-transform: uppercase;
  font-size: .56rem; letter-spacing: .06em; color: var(--ink); line-height: 1.25;
}
@media (max-width: 560px) {
  .thali-bowl { width: 30%; }
  .thali-bowl__label { font-size: .5rem; }
}

/* ---------- Spice-tin cards (replaces the hotel's plain .tiles grid) ---------- */
.spice-tins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .spice-tins { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spice-tins { grid-template-columns: 1fr; } }
.spice-tin {
  position: relative; background: var(--ink); color: var(--cream);
  padding: 1.9rem 1.4rem 1.5rem; overflow: hidden;
  box-shadow: 0 16px 30px -16px rgba(0,0,0,.5);
  transition: translate .3s var(--ease), rotate .3s var(--ease);
}
.spice-tin::before { content: ''; position: absolute; inset: 0 0 auto 0; height: .55rem; background: var(--gold); }
.spice-tin:hover { translate: 0 -6px; rotate: -.6deg; }
.spice-tin h3 { font-family: var(--display); font-size: 1.15rem; margin-top: .4rem; }
.spice-tin p { margin-top: .55rem; font-size: .85rem; color: color-mix(in srgb, var(--cream) 78%, transparent); }

/* ---------- Veg / non-veg marker ---------- */
.diet {
  display: inline-flex; width: .95rem; height: .95rem; flex: none;
  border: 1.5px solid var(--mustard); padding: 2px; vertical-align: middle;
}
.diet::before { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--mustard); }
.diet--non-veg { border-color: var(--ember); }
.diet--non-veg::before { background: var(--ember); }
.diet--both { position: relative; border-color: var(--mustard); }
.diet--both::before { background: var(--mustard); }
.diet--both::after {
  content: ''; position: absolute; inset: -1.5px auto auto 50%;
  width: 50%; height: 100%; border: 1.5px solid var(--ember); border-left: 0;
  box-sizing: border-box;
}

/* ---------- Menu category nav ---------- */
.menu-cats {
  position: sticky; top: 4.75rem; z-index: 20;
  display: flex; gap: .5rem; overflow-x: auto;
  padding-block: 1rem;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  scrollbar-width: none;
}
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cats .filter { white-space: nowrap; flex: none; }
.filter[aria-pressed='true'] { background: var(--ink); color: var(--gold-lit); border-color: var(--ink); }
.filter:hover { border-color: var(--ember); color: var(--ember); }

/* ---------- Dish list ---------- */
.dish-section { padding-block: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 9rem; }
.dish-section__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.dish-section__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dish-section__count { font-family: var(--caps); text-transform: uppercase; font-size: .68rem; letter-spacing: .13em; color: var(--on-light-mute); }

.dish-list { display: grid; gap: 1.5rem; }
.dish {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-light);
}
.dish:last-child { border-bottom: 0; padding-bottom: 0; }
.dish__info { display: flex; gap: .6rem; }
.dish__diet { margin-top: .35rem; }
.dish__name { font-family: var(--display); font-size: 1.1rem; }
.dish__desc { margin-top: .35rem; font-size: .88rem; color: var(--on-light-mute); max-width: 46ch; }
.dish__price { flex: none; text-align: right; font-family: var(--display); color: var(--ember); font-size: 1.05rem; white-space: nowrap; }
.dish__price small { display: block; font-family: var(--caps); text-transform: uppercase; font-size: .58rem; letter-spacing: .1em; color: var(--on-light-mute); margin-top: .2rem; }
.dish__variants { display: grid; gap: .15rem; text-align: right; }
.dish__variants span { display: block; }
.dish__variants small { font-family: var(--caps); text-transform: uppercase; font-size: .6rem; letter-spacing: .08em; color: var(--on-light-mute); margin-right: .4rem; }

/* Thali rows on the menu page get the tin-lid treatment instead of a plain
   dish row — small nod back to the homepage's plate motif. */
.dish-list--thalis .dish {
  border: 0; background: var(--cream-deep); padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
}
.dish-list--thalis .dish:hover { border-left-color: var(--ember); }

/* ---------- Menu state (loading / empty / error) ---------- */
.menu-state { padding: 5rem 0; text-align: center; color: var(--on-light-mute); }
.menu-state[hidden] { display: none; }

@media (max-width: 620px) {
  .dish { flex-direction: column; gap: .5rem; }
  .dish__price { text-align: left; }
  .dish__variants { text-align: left; }
}
