/* Biryani.lal — brand tokens */
:root {
  --red: #B71C1C;
  --red-deep: #7F1414;
  --cream: #FFF4E0;
  --cream-2: #FBE7C6;
  --gold: #F2B544;
  --ink: #2A1A12;
  --muted: #6B4F3F;
  --radius: 14px;
  --display: 'Rozha One', Georgia, serif;
  --body: 'Hind', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.gold { color: var(--gold); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--red-deep);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand-icon { width: 28px; height: 28px; color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f6c566; }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: rgba(255,244,224,.12); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-red:hover { background: var(--red-deep); }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--cream-2); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--red);
  color: var(--cream);
  text-align: center;
  padding: 56px 20px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-ring {
  position: absolute; width: 560px; height: 560px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(242,181,68,.45); border-radius: 50%;
  pointer-events: none;
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.eyebrow.dark { color: var(--red); }
.hero h1 { font-size: clamp(52px, 14vw, 88px); }
.hindi { font-family: var(--display); font-size: 26px; color: var(--gold); }
.tagline { font-family: var(--display); font-size: 22px; margin-top: 6px; }
.lead { max-width: 30em; color: #FFE9CC; margin-top: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; position: relative; }

/* Sections */
.section { max-width: 760px; margin: 0 auto; padding: 56px 20px; }
.section h2 { font-size: clamp(32px, 8vw, 44px); color: var(--red); }
.section-sub { color: var(--muted); margin-top: 4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--cream-2); }
.card-num { font-family: var(--display); color: var(--gold); font-size: 28px; }
.card h3 { font-size: 24px; color: var(--red); margin: 4px 0 6px; }
.card p { color: var(--muted); font-size: 16px; }

/* Menu */
.menu-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--cream-2);
}
.menu-item h3 { font-size: 21px; }
.menu-item p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.menu-item.featured { background: var(--red); border-color: var(--red); color: var(--cream); }
.menu-item.featured p { color: #FFE9CC; }
.menu-item.featured .price { color: var(--gold); }
.badge { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; color: var(--red) !important; white-space: nowrap; font-size: 16px !important; }
.addons { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Order */
.order { text-align: center; }
.order-buttons { display: flex; flex-direction: column; gap: 12px; margin: 24px auto 0; max-width: 360px; }
.btn-order { background: var(--red); color: var(--cream); min-height: 56px; font-size: 17px; }
.btn-order:hover { background: var(--red-deep); }
.btn-wa { background: var(--ink); }
.btn-wa:hover { background: #000; }

/* Offer */
.offer {
  text-align: center;
  background: #fff; border: 2px dashed var(--red); border-radius: var(--radius);
  margin: 0 16px; max-width: 728px; padding: 36px 20px;
}
@media (min-width: 760px) { .offer { margin: 0 auto; } }
.offer h2 { margin: 6px 0 8px; }
.code-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 14px; }
.code { font-family: var(--display); font-size: 34px; letter-spacing: 4px; color: var(--red); background: var(--cream); padding: 4px 18px; border-radius: 10px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 1em; }

/* Review */
.review { text-align: center; }
.review p { color: var(--muted); margin-top: 8px; }

/* Footer */
.footer { background: var(--red-deep); color: var(--cream); text-align: center; padding: 36px 20px 44px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-brand { font-family: var(--display); font-size: 30px; }
.footer .fine { color: #F3D6B0; }


/* ================= Animations ================= */

/* Handi stage */
.handi-stage {
  position: relative; z-index: 1;
  background: none; border: 0; padding: 0; cursor: pointer;
  flex: 0 0 58%; min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.handi-stage:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 16px; }
.matka { width: 100%; height: auto; overflow: visible; display: block; }
.m-lid, .m-leg, .m-steam path, .spark { transform-box: fill-box; transform-origin: center; }
.m-leg { transform-origin: 50% 100%; }
.tap-hint { position: relative; font-size: 13px; color: #FFE0B8; letter-spacing: 1px; margin-bottom: 6px; }

/* Final (resting) state — what reduced-motion users see */
.m-lid { transform: translate(-46px, -40px) rotate(-26deg); }
.m-leg { transform: none; }
.m-steam path { opacity: .75; }

/* Pot wobble before the lid comes off */
.play .matka { transform-origin: 50% 95%; animation: wobble .28s ease-in-out .1s 3 alternate; }
@keyframes wobble { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* Lid lifts, jiggles and slides off */
.play .m-lid { animation: lidOpen 1.3s cubic-bezier(.5,0,.25,1) .9s both; }
@keyframes lidOpen {
  0%   { transform: none; }
  18%  { transform: translate(0,-6px) rotate(3deg); }
  30%  { transform: translate(0,-3px) rotate(-3deg); }
  55%  { transform: translate(-6px,-46px) rotate(-8deg); }
  100% { transform: translate(-46px,-40px) rotate(-26deg); }
}

/* Chicken leg pops out, then bobs */
.play .m-leg { animation: legUp .85s cubic-bezier(.3,1.5,.5,1) 1.7s both, legBob 2.8s ease-in-out 2.6s infinite; }
@keyframes legUp {
  0%   { transform: translateY(95px); }
  70%  { transform: translateY(-12px) rotate(-5deg); }
  100% { transform: none; }
}
@keyframes legBob {
  0%, 100% { transform: none; }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

/* Steam curls */
.m-steam path { animation: steam 2.6s ease-out infinite both; }
.m-steam .s1 { animation-delay: 1.5s; }
.m-steam .s2 { animation-delay: 2.1s; }
.m-steam .s3 { animation-delay: 2.7s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(14px) scaleY(.8); }
  35%  { opacity: .85; }
  100% { opacity: 0; transform: translateY(-26px) scaleY(1.1); }
}

/* Sparkles when the leg appears, then a gentle twinkle */
.spark { animation: sparkPop .9s ease-out 2.2s both, twinkle 2.4s ease-in-out 3.2s infinite; }
.spark.k2 { animation-delay: 2.35s, 3.6s; }
.spark.k3 { animation-delay: 2.5s, 4s; }
@keyframes sparkPop {
  0% { opacity: 0; transform: scale(0) rotate(0); }
  50% { opacity: 1; transform: scale(1.4) rotate(45deg); }
  100% { opacity: .9; transform: scale(1) rotate(90deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .3; transform: scale(.6); }
}

/* Hero text rises in after the handi opens */
.hero > .eyebrow, .hero > h1, .hero > .hindi, .hero > .tagline, .hero > .lead, .hero > .hero-actions, .tap-hint {
  position: relative; animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero > .eyebrow { animation-delay: .2s; }
.hero > h1 { animation-delay: .35s; }
.hero > .hindi { animation-delay: .5s; }
.hero > .tagline { animation-delay: .65s; }
.hero > .lead { animation-delay: .8s; }
.hero > .hero-actions { animation-delay: .95s; }
.tap-hint { animation-delay: 2.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Slowly turning dashed ring */
.hero-ring { animation: spin 90s linear infinite; }
@keyframes spin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Floating drumsticks and stars in the hero background */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; width: 44px; height: 44px; opacity: .22; animation: float 9s ease-in-out infinite; }
.floater.star { width: 10px; height: 10px; background: var(--gold); opacity: .5;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.f1 { left: 7%;  top: 14%; animation-duration: 10s; }
.f2 { right: 8%; top: 30%; width: 56px; height: 56px; animation-duration: 12s; animation-delay: -4s; }
.f3 { left: 12%; bottom: 12%; width: 36px; height: 36px; animation-duration: 8s; animation-delay: -2s; }
.f4 { right: 18%; top: 10%; animation-duration: 6s; }
.f5 { left: 22%; top: 44%; animation-duration: 7s; animation-delay: -3s; }
.f6 { right: 12%; bottom: 18%; animation-duration: 9s; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(14deg); }
}

/* Scroll-in reveal (added by main.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Little hover/press life */
.card, .menu-item { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .menu-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(127,20,20,.12); }
.js .reveal.in.card:hover, .js .reveal.in.menu-item:hover { transform: translateY(-3px); }
.card-num { display: inline-block; }
.card:hover .card-num { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

.btn-gold.pulse { animation: pulse 2.4s ease-in-out 3.5s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,181,68,.6); } 50% { box-shadow: 0 0 0 10px rgba(242,181,68,0); } }

.code { position: relative; overflow: hidden; }
.code::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shine 3.2s ease-in-out 1s infinite;
}
@keyframes shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================= Lal Bhaiya ================= */
.stage-row {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  width: min(440px, 100%); margin-bottom: 6px;
}
.mascot { position: relative; flex: 0 0 40%; min-width: 0; }
.mascot svg { width: 100%; height: auto; display: block; overflow: visible; }
.t-eyes, .t-stache, .t-thumb { transform-box: fill-box; transform-origin: center; }
.t-thumb { transform-origin: 50% 100%; }

.bubble {
  position: absolute; left: -6%; top: -38px; z-index: 2;
  background: var(--cream); color: var(--red);
  font-family: var(--display); font-size: 17px; line-height: 1;
  padding: 8px 12px; border-radius: 14px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transform-origin: 30% 120%;
}
.bubble::after {
  content: ""; position: absolute; left: 40%; bottom: -8px;
  border: 8px solid transparent; border-top-color: var(--cream); border-bottom: 0;
}

/* Lal Bhaiya slides in, blinks, twitches his moustache and gives a thumbs up */
.play .mascot svg { animation: mascotIn .7s cubic-bezier(.2,.9,.3,1.2) .3s both; }
@keyframes mascotIn { from { opacity: 0; transform: translateX(40px) rotate(6deg); } to { opacity: 1; transform: none; } }

.t-eyes { animation: blink 4.5s ease-in-out 1s infinite; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }

.t-stache { animation: twitch 5s ease-in-out 2.4s infinite; }
@keyframes twitch {
  0%, 16%, 100% { transform: none; }
  4% { transform: translateY(-2px) rotate(-4deg); }
  8% { transform: translateY(-2px) rotate(4deg); }
  12% { transform: translateY(-1px) rotate(-2deg); }
}

.play .t-thumb { animation: thumbUp .6s cubic-bezier(.3,1.6,.5,1) 2.2s both, thumbWiggle 3s ease-in-out 3s infinite; }
@keyframes thumbUp { from { opacity: 0; transform: translateY(26px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes thumbWiggle { 0%, 80%, 100% { transform: none; } 86% { transform: rotate(-12deg); } 93% { transform: rotate(8deg); } }

.play .bubble { animation: bubblePop .5s cubic-bezier(.3,1.6,.5,1) 2.5s both; }
@keyframes bubblePop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .t-eyes, .t-stache, .t-thumb, .bubble, .mascot svg { animation: none !important; }
}
