/* ==========================================================
   THEMES — switch by changing "theme" in content.json
   ivory (default) · noir · verde · rouge
   ========================================================== */
:root,
[data-theme="ivory"] {
  --bg: #f3eee5;
  --bg-alt: #ebe4d7;
  --ink: #16130f;
  --muted: #6d665c;
  --line: rgba(22, 19, 15, 0.14);
  --accent: #b3242a;
  --card: #faf7f1;
}
[data-theme="noir"] {
  --bg: #0d0c0b;
  --bg-alt: #151412;
  --ink: #efe8dc;
  --muted: #9b9386;
  --line: rgba(239, 232, 220, 0.14);
  --accent: #c9a86a;
  --card: #1a1816;
}
[data-theme="verde"] {
  --bg: #16291f;
  --bg-alt: #1c3226;
  --ink: #f0e8d6;
  --muted: #a7b2a1;
  --line: rgba(240, 232, 214, 0.16);
  --accent: #d2b173;
  --card: #1f382b;
}
[data-theme="rouge"] {
  --bg: #f6ede4;
  --bg-alt: #4d0f14;
  --ink: #2a0b0e;
  --muted: #7a5a55;
  --line: rgba(42, 11, 14, 0.15);
  --accent: #8e1a22;
  --card: #fbf5ef;
}

:root {
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --announce-h: 32px;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--announce-h) + var(--header-h)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
body:not(.is-ready) main,
body:not(.is-ready) .footer { opacity: 0; }
main, .footer { transition: opacity 0.6s var(--ease); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow--light {
  color: #f2d39b;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.lede {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(12, 10, 8, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: #111; border-color: #fff; }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.link-arrow::after { content: "→"; letter-spacing: 0; transition: transform 0.35s var(--ease); }
.link-arrow::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform 0.45s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow:hover::before { transform: scaleX(1); }

/* ---------- Announcement bar ---------- */
.announce {
  position: fixed; inset: 0 0 auto 0;
  z-index: 60;
  height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  background: #0b0a09;
  color: #efe8dc;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce p { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: var(--announce-h);
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav { display: flex; gap: 38px; }
.nav--right { justify-content: flex-end; }
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.header.is-solid .wordmark { opacity: 1; transform: none; }

.burger {
  display: none;
  width: 36px; height: 36px;
  background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 6px; right: 6px; height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0;
  z-index: 45;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 26px;
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.drawer a { font-family: var(--serif); font-size: 40px; font-style: italic; }
.drawer.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 52%, rgba(8,6,4,0.62) 0%, rgba(8,6,4,0.35) 55%, rgba(8,6,4,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 28%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.75) 100%);
}
.hero__content {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 50%;
  transform: translateY(-40%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.05;
  margin-bottom: 38px;
  max-width: 13ch;
  text-wrap: balance;
  color: #fffaf2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 30px rgba(0, 0, 0, 0.55);
}
.hero__brand {
  position: absolute;
  left: 50%; bottom: -0.14em;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 13.5vw, 240px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: max-content;
  color: #fff;
  opacity: 0.92;
  pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  padding-right: 0.8em;
  white-space: pre;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 170px) var(--gutter); }
.section__head { max-width: 1400px; margin: 0 auto clamp(56px, 8vw, 110px); }

/* ---------- Menu / Dishes ---------- */
.dishes {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: clamp(80px, 11vw, 160px);
}
.dish {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
}
.dish:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.dish:nth-child(even) .dish__media { order: 2; }
.dish__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.dish__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.dish:hover .dish__media img { transform: scale(1.05); }
.dish__body { max-width: 460px; }
.dish__num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.dish__type {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
/* Indian veg / non-veg symbol */
.mark {
  width: 14px; height: 14px;
  border: 1.5px solid #1f8a3b;
  display: inline-grid; place-items: center;
  flex: none;
}
.mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1f8a3b; }
.mark.is-nonveg { border-color: #9b2a1c; }
.mark.is-nonveg::after {
  border-radius: 0; background: none;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 7px solid #9b2a1c;
}
.dish__name {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.dish__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-top: 10px;
}
.dish__desc { margin-top: 24px; color: var(--muted); }
.dish__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.dish__price { font-family: var(--serif); font-size: 30px; }

/* Egg marker (brown triangle, as per Indian food labelling) */
.mark.is-egg { border-color: #a0671c; }
.mark.is-egg::after {
  border-radius: 0; background: none;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 7px solid #a0671c;
}

/* Ingredient list */
.dish__ing {
  list-style: none;
  margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.dish__ing li {
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Menu categories ---------- */
.categories { max-width: 1400px; margin: 0 auto; display: grid; gap: clamp(100px, 13vw, 190px); }
.cat__head {
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--ink);
}
.cat__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  min-width: 2ch;
}
.cat__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
}
.cat__note {
  margin-left: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

/* Compact cards (sandwiches) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}
.card { display: flex; flex-direction: column; }
.card__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  margin-bottom: 26px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__name {
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.05;
}
.card .dish__tagline { font-size: 19px; margin-top: 6px; }
.card .dish__desc { margin-top: 16px; font-size: 15px; }
.card .dish__ing { margin-top: 18px; }
.card .dish__foot { margin-top: auto; padding-top: 22px; }
.card .dish__ing + .dish__foot, .card .dish__desc + .dish__foot { margin-top: 28px; }
.card .dish__price { font-size: 26px; }

/* Add-ons */
.addons {
  max-width: 1400px;
  margin: clamp(90px, 11vw, 150px) auto 0;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px clamp(40px, 6vw, 100px);
  align-items: center;
}
.addons .cat__title { font-style: italic; }
.addons__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px clamp(24px, 4vw, 60px);
}
.addons__list li { display: flex; align-items: baseline; gap: 12px; }
.addons__name { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.addons__list i { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-5px); min-width: 16px; }
.addons__price { font-family: var(--serif); font-size: 22px; color: var(--accent); white-space: nowrap; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  max-width: calc(1400px + var(--gutter) * 2);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.about__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { margin-top: 34px; display: grid; gap: 20px; color: var(--muted); max-width: 520px; }
.about__text p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--ink);
}
.about__logo {
  width: 108px; height: auto;
  margin-bottom: 30px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
[data-theme="noir"] .about__logo,
[data-theme="verde"] .about__logo { mix-blend-mode: normal; }
.about__sig { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: 24px; }

/* ---------- Payment ---------- */
.payment { background: var(--bg-alt); text-align: center; }
[data-theme="rouge"] .payment { color: #f6ede4; --ink: #f6ede4; --bg: #4d0f14; --muted: rgba(246,237,228,0.72); --line: rgba(246,237,228,0.2); }
.payment__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.payment .lede { margin-left: auto; margin-right: auto; }
.qr { margin: 56px 0 0; }
.qr__frame {
  position: relative;
  padding: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35);
}
.qr__frame::before {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.qr__code { width: 240px; height: 240px; display: grid; place-items: center; }
.qr__code img, .qr__code canvas { width: 100% !important; height: 100% !important; object-fit: contain; }
.qr figcaption { margin-top: 32px; display: grid; gap: 4px; }
.qr__name { font-family: var(--serif); font-size: 26px; }
.qr__id { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.payment__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.note { margin-top: 28px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Contact ---------- */
.contact__grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.contact__col {
  padding: 36px 28px 0 0;
  display: grid; gap: 10px; align-content: start;
}
.contact__col + .contact__col { padding-left: 28px; border-left: 1px solid var(--line); }
.contact__col h4 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact__col p, .contact__col dd { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.contact__col a:not(.link-arrow):hover { color: var(--accent); }
.contact__col .link-arrow { margin-top: 10px; justify-self: start; }
#hours { margin: 0; display: grid; gap: 14px; }
#hours dt { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
#hours dd { margin: 0; }

/* ---------- Footer ---------- */
.footer {
  overflow: hidden;
  padding: 60px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__logo {
  width: 96px; height: auto;
  margin: 0 auto 28px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
[data-theme="noir"] .footer__logo,
[data-theme="verde"] .footer__logo { mix-blend-mode: normal; }
.footer__brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 13vw, 230px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: max-content;
  margin: 0 auto;
}
.footer__text { margin-top: 30px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  z-index: 70;
  transform: translate(-50%, 20px);
  padding: 14px 26px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; justify-self: start; }
  .header { grid-template-columns: auto 1fr auto; }
  .wordmark { font-size: 20px; letter-spacing: 0.22em; margin-right: 0; justify-self: center; }
  .header::after { content: ""; width: 36px; }
  .dish, .dish:nth-child(even) { grid-template-columns: 1fr; }
  .dish:nth-child(even) .dish__media { order: 0; }
  .dish__body { max-width: none; }
  .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .addons { grid-template-columns: 1fr; }
  .addons__list { grid-template-columns: 1fr; }
  .cat__note { margin-left: 0; width: 100%; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__col:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact__col:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 36px; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .announce { font-size: 9.5px; letter-spacing: 0.14em; }
  .cards { grid-template-columns: 1fr; gap: 72px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__col, .contact__col + .contact__col { padding: 30px 0 0; border-left: 0; }
  .contact__col + .contact__col { border-top: 1px solid var(--line); margin-top: 30px; }
  .qr__code { width: 210px; height: 210px; }
  .payment__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none; }
}
