/* fafaresturant.com: the floating navbar + mobile drawer, motion states and the festive themes (site/fx.js, shared/events.js).
 * Layers: page 1 · decorations 6 · navbar 20 · ribbon 21 · drawer 30 (navbar 35 while open) · greeting film 40 · skip link 50 */
:root { --nav-h: 76px; --ev-acc: var(--accent); --ev-deep: #2a1a10; --ev-glow: rgba(255, 138, 61, 0.16); --ev-glow2: rgba(224, 36, 44, 0.10);
  --ev-line: var(--line); --ev-a: #ff8a3d; --ev-b: #e0242c; --ev-c: #ffd24a; --spring: cubic-bezier(.3, 1.45, .5, 1); }
.skip { z-index: 50; }

/* ------------------------------------------------------------ festive ribbon (above the navbar) */
.evbar { position: relative; z-index: 21; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 7px 16px;
  padding-top: max(7px, env(safe-area-inset-top)); background: var(--ev-deep); color: #fff8f0; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-align: left; }
.evbar[hidden] { display: none; }
.evbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--ev-a), var(--ev-b), var(--ev-c), var(--ev-a)); background-size: 200% 100%; animation: evStripe 6s linear infinite; }
@keyframes evStripe { to { background-position: -200% 0; } }
.evbar__icon { flex: 0 0 auto; display: inline-flex; gap: 4px; align-items: center; font-size: 18px; }
.evbar__icon img { height: 16px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.evbar__txt { min-width: 0; }
.evbar__txt b { font-weight: 600; }
.evbar__txt .zh { margin-left: 6px; opacity: .85; }
.evbar__also { display: block; font-size: 12px; opacity: .75; margin-top: 1px; }
.evbar__also img { height: 11px; width: auto; vertical-align: -1px; margin: 0 3px 0 6px; border-radius: 2px; }

/* ------------------------------------------------------------ navbar: a floating glass capsule */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); padding: 10px 12px 0; pointer-events: none; }
.nav__in { pointer-events: auto; position: relative; max-width: 1180px; height: 56px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 0 7px 0 16px; border-radius: 20px; background: rgba(24, 19, 15, .62); border: 1px solid rgba(255, 240, 225, .1);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 34px rgba(10, 6, 3, .32), inset 0 1px 0 rgba(255, 240, 225, .07);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, max-width .5s var(--spring); }
.nav.is-scrolled .nav__in { background: rgba(22, 17, 13, .9); border-color: var(--ev-line); box-shadow: 0 16px 44px rgba(10, 6, 3, .55), inset 0 1px 0 rgba(255, 240, 225, .07); max-width: 1100px; }
.nav .brand { flex: 0 0 auto; font-size: 27px; }
.nav .brand__zh { font-size: 14px; }
.nav__links { position: relative; display: flex; align-items: stretch; gap: 2px; margin-left: auto; height: 44px; }
.nav__links a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14px;
  text-decoration: none; color: var(--muted); line-height: 1.05; border-radius: 13px; transition: color .2s ease; }
.nav__links a span { font-weight: 600; font-size: 15px; }
.nav__links a small { font-family: var(--f-zh); font-size: 11px; margin-top: 3px; opacity: .8; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ev-acc); }
.nav__blob { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 13px; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .25s ease; }
.nav__open { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px 0 10px; white-space: nowrap; }
.nav__open[hidden] { display: none; }
.nav__open i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.nav__open.is-open i { background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); animation: navPulse 2.2s ease-out infinite; }
@keyframes navPulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.nav__cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 14px; text-decoration: none;
  background: #ffd24a; color: #2a1604; font-weight: 700; line-height: 1.05; box-shadow: 0 8px 20px rgba(255, 196, 40, .22); transition: filter .2s ease, transform .2s ease; }
.nav__cta > b { font-size: 20px; }
.nav__cta span { display: flex; flex-direction: column; font-size: 14px; }
.nav__cta small { font-family: var(--f-zh); font-size: 11px; font-weight: 600; opacity: .75; margin-top: 2px; }
.nav__cta:hover { filter: brightness(1.05); }
.nav__cta:active { transform: scale(.97); }
.nav__burger { display: none; position: relative; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.nav__burger i { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring), top .3s ease; }
.nav__burger i:nth-child(1) { top: 17px; } .nav__burger i:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { top: 21px; transform: rotate(-45deg); }
/* the home hero runs under the floating navbar */
body[data-page="home"] .hero { margin-top: calc(-1 * var(--nav-h)); }
body[data-page="home"] .hero__body { padding-top: calc(var(--nav-h) + 40px); }

@media (max-width: 1180px) { .nav__links a { padding: 0 11px; } .nav__open span { display: none; } .nav__open { padding: 0 8px; } }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__open { margin-left: auto; }
  .nav__burger { display: block; }
}
@media (max-width: 960px) { .nav__open span { display: inline; } }
@media (max-width: 380px) { .nav .brand__zh { display: none; } }
body.is-drawer .nav { z-index: 35; }
body.is-drawer .nav__in { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ------------------------------------------------------------ mobile drawer: floods out of the burger */
.drawer { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 26px) 24px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; background: radial-gradient(120% 70% at 100% 0%, var(--ev-glow), transparent 62%), radial-gradient(90% 60% at 0% 100%, var(--ev-glow2), transparent 60%), #16110d; }
.drawer[hidden] { display: none; }
.drawer__links { display: flex; flex-direction: column; }
.drawer__links a { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__links em { font: 600 13px var(--f-body); font-style: normal; color: var(--ev-acc); width: 22px; flex: 0 0 auto; }
.dm { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.dm__t { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 10vw, 46px); line-height: 1; }
.drawer__links small { margin-left: auto; font-family: var(--f-zh); font-size: 15px; font-weight: 600; color: var(--muted); }
.drawer__links a[aria-current="page"] .dm__t { color: var(--ev-acc); }
.drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.drawer__foot .btn { justify-content: center; }
.drawer__mt { background: #ffd24a; color: #2a1604; }
.drawer__map { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.drawer__hours { color: var(--muted); font-size: 14px; text-align: center; margin-top: 4px; }

/* ------------------------------------------------------------ festive theme on the page */
html[data-ev] body { background:
  radial-gradient(900px 520px at 8% -6%, var(--ev-glow), transparent 70%),
  radial-gradient(760px 520px at 100% 18%, var(--ev-glow2), transparent 70%), var(--bg); background-repeat: no-repeat; }
html[data-ev] .card:not(.card--deliver) { border-color: var(--ev-line); }
html[data-ev] .fav { border-color: var(--ev-line); }
html[data-ev] .btn--main { box-shadow: 0 10px 30px var(--ev-glow); }
html[data-ev] .hero__shade { background: linear-gradient(180deg, rgba(20, 16, 13, .25) 0%, rgba(20, 16, 13, .5) 45%, var(--ev-shade, rgba(20, 16, 13, .8)) 78%, var(--bg) 100%); }
.evchip { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; vertical-align: top;
  font-weight: 700; font-size: 14px; color: #fff8f0; background: var(--ev-deep); box-shadow: inset 0 0 0 1px var(--ev-line); }
.evchip img { height: 15px; width: auto; border-radius: 2px; }
.evchip .zh { font-weight: 600; opacity: .85; }
html[data-ev] .halal { margin: 0 8px 6px 0; }
.halal + .evchip { margin-left: 0; margin-bottom: 6px; }

/* hanging lanterns / moons / bells over the hero */
.evhang { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 2; pointer-events: none; }
.evhang span { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: evSwing 3.6s ease-in-out infinite alternate; }
.evhang span::before { content: ""; width: 1.5px; height: var(--l, 90px); background: linear-gradient(var(--ev-c), rgba(255, 255, 255, .25)); }
.evhang b { font-size: var(--s, 38px); line-height: 1; filter: drop-shadow(0 6px 14px var(--ev-glow)); }
@keyframes evSwing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* bunting: the country's flags (national days) or pennants in the event colours */
.evbunt { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) - 4px); z-index: 2; display: flex; justify-content: space-around; pointer-events: none; padding: 0 6px; }
.evbunt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 248, 240, .35); }
.evbunt i { display: block; width: 30px; height: 36px; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; animation: evSwing 2.8s ease-in-out infinite alternate; }
.evbunt img { display: block; width: 34px; height: 25px; object-fit: cover; border-radius: 0 0 3px 3px; transform-origin: 50% 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  animation: evSwing 2.8s ease-in-out infinite alternate; }
.evbunt > :nth-child(2n) { animation-delay: -1.4s; }
body:not([data-page="home"]) .evbunt { top: 0; }
.evmoon { position: absolute; z-index: 1; right: 8%; top: calc(var(--nav-h) + 20px); width: 120px; height: 120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 38% 38%, #fff6d8, #ffd36b 58%, #f0a93a); box-shadow: 0 0 60px 20px rgba(255, 207, 107, .35), 0 0 140px 60px rgba(255, 207, 107, .15); }
.evfx { position: fixed; inset: 0; z-index: 6; pointer-events: none; width: 100%; height: 100%; }
/* the decorations drift over the photos and the page, but behind the words and cards */
html[data-ev] :is(.hero__body > *, .favs, .info, .cx-head > :not(.evhang, .evbunt, .evmoon), .cx-days, .cx-mine, .cx-wechat, .foot) { position: relative; z-index: 7; }
body:not([data-page="home"]) .evmoon { width: 64px; height: 64px; top: 6px; right: 22%; box-shadow: 0 0 40px 12px rgba(255, 207, 107, .3); }
.foot__ev { display: block; margin-top: 6px; }

/* ------------------------------------------------------------ greeting film (once a day, on the first visit) */
.evfilm { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; cursor: pointer; text-align: center; color: #fff;
  background: radial-gradient(60% 55% at 50% 38%, var(--ev-fa, rgba(255, 138, 61, .5)), transparent 70%),
    radial-gradient(50% 45% at 85% 95%, var(--ev-fb, rgba(224, 36, 44, .35)), transparent 70%),
    radial-gradient(45% 40% at 10% 90%, var(--ev-fb, rgba(224, 36, 44, .35)), transparent 70%), #120d0a; }
.evfilm__in { max-width: 760px; }
.evfilm__icon { display: inline-flex; gap: 12px; font-size: 84px; line-height: 1; }
.evfilm__icon img { height: 64px; width: auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.evfilm__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 8vw, 76px); line-height: 1.02; margin-top: 18px; text-wrap: balance; }
.evfilm__zh { display: block; font-size: clamp(22px, 4.6vw, 38px); font-weight: 700; margin-top: 10px; color: var(--ev-c2, #ffe3a3); overflow: hidden; }
.evfilm__zh > span, .evfilm__sub > span { display: inline-block; }
.evfilm__sub { margin-top: 14px; font-size: 17px; opacity: .85; overflow: hidden; }
.evfilm__skip { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 0; right: 0; font-size: 13px; opacity: .6; }
.fm-ring { position: fixed; z-index: 41; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .7); pointer-events: none; opacity: 0; }

/* rolling price digits */
.fm-roll { display: inline-flex; }
.fm-col { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: -0.1em; }
.fm-col b { display: flex; flex-direction: column; font-weight: inherit; }
.fm-col i { font-style: normal; height: 1em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .evhang span, .evbunt i, .evbunt img, .evbar::after, .nav__open.is-open i { animation: none; }
  .nav__in, .nav__blob, .nav__burger i { transition: none; }
}

/* ------------------------------------------------------------ the customer menu (/menu/): its own bar gets the same links + drawer */
body[data-page="menu"] { --nav-h: 56px; }
.top .nav__links { margin-left: 0; height: 40px; }
.top .nav__cta { height: 38px; padding: 0 14px 0 10px; border-radius: 999px; }
.top .nav__burger { width: 38px; height: 38px; border-radius: 999px; }
.top .nav__burger i { left: 10px; } .top .nav__burger i:nth-child(1) { top: 14px; } .top .nav__burger i:nth-child(2) { top: 22px; }
.top .nav__burger[aria-expanded="true"] i:nth-child(1), .top .nav__burger[aria-expanded="true"] i:nth-child(2) { top: 18px; }
@media (max-width: 960px) { .top .nav__links, .top .nav__cta { display: none; } .top .nav__burger { display: block; } }
@media (min-width: 961px) { .top .nav__burger { display: none; } }
body.is-drawer .top { z-index: 35; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
/* the drawer is dark in both colour schemes */
.drawer { --ink: #f4efe9; --muted: #b1a59a; --line: rgba(255, 240, 225, .09); --surface-2: #28211c; color: var(--ink); }
body[data-page="menu"] .drawer { --ev-acc: #ff8a3d; }
body.is-drawer .nav__burger, body.is-drawer .top .lang, body.is-drawer .top .brand__zh, body.is-drawer .top .status { color: #f4efe9; }
body.is-drawer .top .lang { background: rgba(255, 240, 225, .1); border-color: rgba(255, 240, 225, .12); }
.drawer__foot .btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
