/* Darbar-e-Saltanat. A lantern-lit court: reddish maroon ground, gold metalwork, cream type.
   Signature: the hero's hanging lanterns, which sway with the pointer and the scroll. */
:root {
  color-scheme: dark;
  --bg: #4A0C16;
  --bg-deep: #37080F;
  --bg-lift: #5B111D;
  --gold: #D4A646;
  --gold-deep: #B8872E;
  --cream: #FBF4E8;
  --ivory: #F7F0E3;
  --muted: rgba(251, 244, 232, .76);
  --line: rgba(212, 166, 70, .3);
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --label: "Josefin Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --urdu: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --pad: clamp(18px, 5vw, 72px);
  --nav-h: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 70px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: var(--display); font-size: 20px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { font-weight: 600; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.01em; }
.label { font-family: var(--label); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.urdu { font-family: var(--urdu); direction: rtl; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; }
section { padding: clamp(64px, 9vw, 130px) var(--pad); position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  font-family: var(--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: 12px 22px 10px; border: 1px solid var(--gold); color: var(--gold);
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold); color: var(--bg-deep); }
.btn.fill { background: var(--gold); color: var(--bg-deep); }
.btn.fill:hover { background: var(--cream); border-color: var(--cream); }
.btn.small { min-height: 38px; padding: 8px 14px 6px; font-size: 11.5px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--pad);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s;
}
.nav.solid { background: rgba(55, 8, 15, .95); border-bottom-color: var(--line); }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav .brand .crown { height: 34px; width: auto; }
.nav .brand .word { height: 22px; width: auto; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.nav.solid .brand .word, .nav.always .brand .word { opacity: 1; transform: none; }
.nav ul { display: flex; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0 18px 0 0; padding: 0; }
.nav ul a { font-family: var(--label); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 0 5px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav ul a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 900px) { .nav ul { display: none; } .nav .brand .word { height: 18px; } }
@media (max-width: 420px) { .nav .brand .word { display: none; } }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px); display: grid; align-items: end;
  padding: calc(var(--nav-h) + 150px) var(--pad) clamp(34px, 6vh, 64px);
}
.hero .bg { position: absolute; inset: -5%; z-index: -4; background: url("img/hero.webp") 60% center / cover no-repeat; will-change: transform; animation: breathe 26s ease-in-out infinite alternate; }
@keyframes breathe { from { scale: 1; } to { scale: 1.07; } }
.hero .shade { position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(74,12,22,.55) 34%, rgba(55,8,15,.25) 60%, rgba(55,8,15,.7) 100%),
    linear-gradient(90deg, rgba(55,8,15,.9) 0%, rgba(55,8,15,.5) 45%, rgba(55,8,15,.1) 100%); }
.hero .glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 72%) var(--my, 34%), rgba(240,190,90,.22), transparent 70%); }
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.lanterns { position: absolute; top: 0; right: clamp(8px, 7vw, 120px); width: min(46vw, 520px); height: 0; z-index: -1; }
.lantern { position: absolute; top: -6px; transform-origin: 50% 0; will-change: transform; cursor: grab; touch-action: pan-y; animation: drop 1.4s cubic-bezier(.2,.9,.25,1) both; }
.lantern svg { display: block; width: 100%; height: auto; overflow: visible; }
.lantern .flame { transform-origin: 50% 80%; animation: flicker 2.6s ease-in-out infinite; }
.lantern:nth-child(1) { left: 0; width: 22%; animation-delay: .35s; }
.lantern:nth-child(2) { left: 36%; width: 30%; animation-delay: .15s; }
.lantern:nth-child(3) { left: 78%; width: 20%; animation-delay: .5s; }
.lantern:nth-child(2) .flame { animation-duration: 3.3s; }
@keyframes drop { from { translate: 0 -105%; } to { translate: 0 0; } }
@keyframes flicker { 0%, 100% { opacity: .82; scale: 1; } 40% { opacity: 1; scale: 1.08; } 70% { opacity: .7; scale: .95; } }
@media (max-width: 700px) { .lanterns { width: 62vw; right: 2vw; } }

.hero-inner { max-width: 820px; }
.hero h1 { animation: rise 1s .5s both; }
.hero h1 img { width: min(84vw, 560px); height: auto; filter: drop-shadow(0 6px 30px rgba(26,5,8,.6)); }
.hero .lede { font-size: clamp(22px, 2.9vw, 31px); line-height: 1.28; max-width: 26em; margin-top: clamp(18px, 3vh, 30px); animation: rise 1s .7s both; text-wrap: balance; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: rise 1s .85s both; }
.live { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--label); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); animation: rise 1s 1s both; }
.live span { display: inline-flex; align-items: center; gap: 9px; }
.live b { font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,166,70,.7); } 70% { box-shadow: 0 0 0 10px rgba(212,166,70,0); } 100% { box-shadow: 0 0 0 0 rgba(212,166,70,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; padding: 15px 0 13px; }
.marquee .track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-style: italic; font-size: clamp(21px, 2.6vw, 29px); color: var(--ivory); padding: 0 20px; white-space: nowrap; }
.marquee span::after { content: "\25C6"; font-style: normal; font-size: .45em; color: var(--gold); margin-left: 40px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Kitchens: pick one of three */
.kitchens .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.kitchens .intro { color: var(--muted); max-width: 30em; margin-top: 16px; }
.picker { display: grid; margin-top: clamp(24px, 4vw, 44px); border-top: 1px solid var(--line); }
.picker button {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: var(--display); font-size: clamp(34px, 5vw, 62px); font-weight: 600; line-height: 1; padding: 18px 0 14px;
  transition: color .25s, padding-left .35s;
}
.picker button .urdu { font-size: .5em; font-weight: 400; color: var(--gold-deep); transition: color .25s; }
.picker button:hover { color: var(--cream); }
.picker button[aria-selected="true"] { color: var(--gold); padding-left: 18px; }
.picker button[aria-selected="true"] .urdu { color: var(--gold); }
.stagebox { position: relative; }
.stagebox .frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px 0 0; border: 1px solid var(--gold); }
.stagebox .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.08; transition: opacity .6s, scale 1.2s; }
.stagebox .frame img.on { opacity: 1; scale: 1; }
.stagebox .panel { margin-top: 20px; min-height: 9.2em; }
.stagebox .panel p { color: var(--ivory); }
.stagebox .panel ul { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-style: italic; }
.stagebox .panel li { display: inline; }
.stagebox .panel li + li::before { content: "\25C6"; font-style: normal; font-size: .4em; color: var(--gold); margin: 0 .9em; vertical-align: middle; }
.swap { animation: swap .5s both; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Signature rail */
.signature { background: var(--bg-deep); padding-inline: 0; overflow: hidden; }
.signature .head { padding: 0 var(--pad); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; }
.signature .head p { color: var(--muted); max-width: 28em; margin-top: 12px; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 48px; height: 48px; border: 1px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.arrows button:hover { background: var(--gold); color: var(--bg-deep); }
.arrows svg { width: 18px; height: 18px; }
.rail { display: flex; gap: clamp(14px, 2vw, 26px); overflow-x: auto; scroll-snap-type: x proximity; padding: clamp(28px, 4vw, 48px) var(--pad) 18px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag * { pointer-events: none; }
.dish { flex: 0 0 clamp(250px, 27vw, 340px); scroll-snap-align: start; user-select: none; }
.dish .ph { aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px 0 0; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s; -webkit-user-drag: none; }
.dish:hover img { scale: 1.06; }
.dish h3 { font-size: 28px; margin-top: 18px; }
.dish .sub { font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }
.dish .d { color: var(--muted); font-size: 18px; line-height: 1.35; margin-top: 8px; }
.dish .price { font-family: var(--label); font-size: 15px; letter-spacing: .06em; color: var(--ivory); margin-top: 10px; }
.signature .more { padding: 22px var(--pad) 0; }

/* Smokehouse and monthly special */
.fire { padding: 0; display: grid; grid-template-columns: 1.1fr .9fr; }
.fire > div { padding: clamp(48px, 7vw, 100px) var(--pad); }
.smoke { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; min-height: 520px; }
.smoke img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.smoke::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(55,8,15,.97) 30%, rgba(55,8,15,.45) 85%); }
.smoke h2 { font-size: clamp(34px, 4.6vw, 58px); margin-top: 10px; }
.smoke p { color: var(--ivory); max-width: 30em; margin-top: 12px; }
.smoke ul { list-style: none; padding: 0; margin: 16px 0 24px; font-style: italic; color: var(--muted); }
.camel { background: var(--gold); color: var(--bg-deep); display: grid; align-content: center; gap: 14px; }
.camel .label { color: var(--bg); }
.camel h2 { font-size: clamp(34px, 4.6vw, 58px); }
.camel p { max-width: 26em; }
.count { display: flex; gap: clamp(10px, 2vw, 22px); margin-top: 12px; }
.count div { border-top: 2px solid var(--bg); padding-top: 8px; min-width: 62px; }
.count b { display: block; font-size: clamp(40px, 5vw, 62px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.count span { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.camel .now { font-size: clamp(30px, 4vw, 44px); font-weight: 600; font-style: italic; }

/* The room */
.room .head { display: grid; gap: 14px; max-width: 34em; margin-bottom: clamp(28px, 4vw, 54px); }
.room .head p { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.gallery figure { position: relative; overflow: hidden; }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery .wide { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 21/8; }
.gallery img { width: 100%; height: 112%; object-fit: cover; translate: 0 var(--py, 0px); will-change: translate; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 11px; font-family: var(--label); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(0deg, rgba(55,8,15,.9), transparent); }
.room .fine { font-size: 16px; font-style: italic; color: var(--muted); margin-top: 14px; }

/* Visit */
.visit { background: var(--bg-deep); }
.visit .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 96px); }
.visit .offer { margin-top: 22px; color: var(--ivory); max-width: 26em; }
.visit .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.info { display: grid; align-content: start; }
.info > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info > div:first-child { border-top: 1px solid var(--line); }
.info p, .info a { font-size: 23px; line-height: 1.3; text-decoration: none; }
.info a:hover { color: var(--gold); }

footer { padding: 46px var(--pad) 54px; border-top: 1px solid var(--line); background: var(--bg-deep); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
footer img { height: 96px; width: auto; }
footer p { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold); }

/* Scroll reveal: only armed by JS, so content is visible without it */
.pre { opacity: 0; transform: translateY(28px); }
.in { opacity: 1; transform: none; transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1); }

/* Menu page */
.menu-head { padding-inline: var(--pad); padding-top: calc(var(--nav-h) + clamp(44px, 7vw, 90px)); padding-bottom: clamp(30px, 4vw, 52px); background: var(--bg-deep); overflow: hidden; }
.menu-head h1 { font-size: clamp(56px, 10vw, 128px); font-weight: 600; line-height: .95; letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25em; animation: rise .9s .1s both; }
.menu-head h1 .urdu { font-size: .42em; font-weight: 400; color: var(--gold); }
.menu-head .sub { color: var(--muted); max-width: 32em; margin-top: 18px; animation: rise .9s .25s both; }
.offer-bar { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; border: 1px solid var(--gold); background: rgba(212,166,70,.1); animation: rise .9s .4s both; }
.offer-bar p { flex: 1 1 16em; }
.offer-bar b { color: var(--gold); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); background: none; border: 0; padding: 0; }
.switch .knob { width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--gold); position: relative; transition: background-color .25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); transition: translate .25s, background-color .25s; }
.switch[aria-pressed="true"] .knob { background: var(--gold); }
.switch[aria-pressed="true"] .knob::after { translate: 20px 0; background: var(--bg-deep); }
.tabs-bar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(74,12,22,.97); border-bottom: 1px solid var(--line); padding: 0 var(--pad); }
.tabs-bar .wrap { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; margin-left: -12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { font-family: var(--label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 13px 12px 10px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs a:hover { color: var(--cream); }
.tabs a.current { color: var(--gold); border-bottom-color: var(--gold); }
.search { min-height: 42px; padding: 8px 14px 6px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 0; color: var(--cream); font-family: var(--label); font-size: 16px; width: clamp(120px, 24vw, 240px); flex: none; }
.search::placeholder { color: var(--muted); }
.menu-sec { padding-block: clamp(44px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.menu-sec > .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(18px, 4vw, 60px); }
.menu-sec h2 { font-size: clamp(34px, 4.4vw, 56px); position: sticky; top: calc(var(--nav-h) + 84px); align-self: start; }
.menu-sec .note { font-size: 17px; font-style: italic; color: var(--muted); margin-top: 10px; font-weight: 500; line-height: 1.35; }
.menu-sec .tag { display: inline-block; margin-top: 14px; font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: var(--bg-deep); padding: 5px 10px 3px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(26px, 5vw, 70px); align-content: start; }
.item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.item .top { display: flex; align-items: baseline; gap: 10px; }
.item .name { font-size: 25px; font-weight: 600; line-height: 1.12; }
.item .star { color: var(--gold); font-size: .7em; }
.item .dots { flex: 1; border-bottom: 1px dotted var(--gold-deep); min-width: 14px; translate: 0 -5px; }
.item .price { font-family: var(--label); font-size: 16px; letter-spacing: .04em; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .price s { color: var(--muted); margin-right: 8px; font-size: 13px; }
.item .price.ask { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.item .common { font-family: var(--label); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; }
.item .desc { color: var(--muted); font-size: 17.5px; line-height: 1.35; margin-top: 4px; }
.item.hide, .menu-sec.hide { display: none; }
.empty { display: none; padding: 70px var(--pad); text-align: center; color: var(--muted); font-style: italic; font-size: 24px; }

@media (max-width: 900px) {
  .kitchens .grid, .visit .grid, .fire { grid-template-columns: 1fr; }
  .stagebox { max-width: 460px; }
  .smoke { min-height: 460px; }
  .items { grid-template-columns: 1fr; }
  .menu-sec > .wrap { grid-template-columns: 1fr; }
  .menu-sec h2 { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery figure { aspect-ratio: 3/2; }
  .gallery figure:first-child { grid-row: auto; grid-column: 1 / 3; }
  .gallery .wide { aspect-ratio: 3/2; }
}
@media (max-width: 560px) {
  body { font-size: 18.5px; }
  .hero { padding-top: calc(var(--nav-h) + 190px); }
  .hero .cta .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child, .gallery .wide { grid-column: auto; }
  .item .name { font-size: 22px; }
  footer .wrap { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero canvas { display: none; }
  .gallery img { height: 100%; translate: none; }
}
