/* Falafel Friday — styles for T26 (strip), T27 (card), T28 (badge). Enqueued by inc/falafel-friday.php.
   Lifted from docs/design/phase-7/falafel-friday/src/ff.css; the differences are marked 'LIVE:'.
   EVERY colour and font below is already in the Nabati theme. Where each one comes from:
     --ff-coral      #fd8e7f  theme css/stylesheet.less  .menuNabatiSpecial --card-coral
     --ff-coral-ring #ffd0cc  theme css/stylesheet.less  --pink-200
     --ff-pink-50    #fff7f5  theme css/stylesheet.less  --pink-50
     --ff-pink-100   #ffeae6  theme css/stylesheet.less  --pink-100
     --ff-coral-str  #f09689  theme css/stylesheet.less  --coral-strong (menu prices)
     --ff-hunter     #4B683C  theme css/stylesheet.less  --hunter   (dish titles, white-on-green buttons)
     --ff-deep       #2c4626  theme css/style.less       catering terms block
     --ff-sage       #9eb990  theme css/stylesheet.less  --card-green (the sage of the dish cards)
     --ff-navy       #10172e  theme css/style.less       @themeColor1 (PAL-1: text on the greens)
     --ff-ink        #71706e  theme css/stylesheet.less  --ink
     --ff-ink-soft   #969696  theme css/style.less       @textColor / --ink-soft
   Fonts: 'Mundial' (body, 300/400/600/700) and 'Blanch Condensed' (display lettering), both theme fonts. */

:root {
  --ff-coral: #fd8e7f;
  --ff-coral-ring: #ffd0cc;
  --ff-coral-str: #f09689;
  --ff-pink-50: #fff7f5;
  --ff-pink-100: #ffeae6;
  --ff-hunter: #4B683C;
  --ff-deep: #2c4626;
  --ff-sage: #9eb990;
  --ff-navy: #10172e;
  --ff-ink: #71706e;
  --ff-ink-soft: #969696;
  --ff-display: 'Blanch Condensed', 'Mundial', sans-serif;
  --ff-body: 'Mundial', sans-serif;
  --ff-strip-h: 0px;
}

.ff-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- body clearance: the strip lives INSIDE the fixed header, so the page is pushed
   down by exactly its height. It is present from the first paint (server-rendered), so nothing
   jumps on load. Closing it is the only thing that changes the height. ---------- */
html[data-ff] { --ff-strip-h: 38px; }
html[data-ff="ended"], html[data-ff-strip="closed"] { --ff-strip-h: 0px; }
@media (max-width: 640px) { html[data-ff] { --ff-strip-h: 44px; } html[data-ff="ended"], html[data-ff-strip="closed"] { --ff-strip-h: 0px; } }
html[data-ff] body { padding-top: calc(54px + var(--ff-strip-h)); }
@media (min-width: 992px) { html[data-ff] body { padding-top: calc(82px + var(--ff-strip-h)); } }
html[data-ff="ended"] .ff-strip, html[data-ff="ended"] .ff-card-wrap, html[data-ff-strip="closed"] .ff-strip { display: none !important; }

/* =====================================================================
   T26 — THE STRIP
   ===================================================================== */
.ff-strip {
  position: relative;
  background: var(--ff-hunter);
  color: #fff;
  font-family: var(--ff-body);
  height: var(--ff-strip-h);
  overflow: hidden;
}
.ff-strip__inner { display: flex; align-items: center; height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 4px 0 12px; gap: 6px; }
.ff-strip__link, .ff-strip__link:hover, .ff-strip__link:focus { color: #fff; text-decoration: none; }
.ff-strip__link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; outline-offset: -4px; }
.ff-strip__link:focus-visible { outline: 3px solid #fff; border-radius: 6px; }
.ff-strip__text { font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; text-align: left; }
.ff-strip__text u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ff-strip__arrow { flex: none; font-weight: 700; transition: transform .25s; }
.ff-strip__link:hover .ff-strip__arrow { transform: translateX(3px); }
@media (max-width: 640px) { .ff-strip__text { font-size: 12px; } .ff-strip__inner { padding-left: 10px; } }

/* the tiny coral price sticker (echoes the poster sticker and the FALAFEL sticker on the wrap) */
.ff-mini {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ff-coral); color: var(--ff-deep); border: 2px solid var(--ff-coral-ring);
  font-family: var(--ff-display); font-size: 17px; line-height: 1; letter-spacing: .02em; transform: rotate(-9deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* the two copies: only one is visible at a time, chosen by <html data-ff> */
.ff-strip [data-ff-when="live"] { display: none; }
html[data-ff="live"] .ff-strip [data-ff-when="live"] { display: flex; }
html[data-ff="live"] .ff-strip [data-ff-when="idle"] { display: none; }

/* ON NOW pill: white pill, the pulsing dot is the only moving part besides the ticker */
.ff-now {
  flex: none; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ff-navy);
  border-radius: 999px; padding: 3px 11px 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.ff-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ff-coral); box-shadow: 0 0 0 0 var(--ff-coral-ring); animation: ff-pulse 1.8s ease-out infinite; }
@keyframes ff-pulse { 0% { box-shadow: 0 0 0 0 var(--ff-coral-ring); } 70% { box-shadow: 0 0 0 8px rgba(255, 208, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 208, 204, 0); } }

/* the slow street-sign ticker */
.ff-ticker {
  flex: 1 1 auto; min-width: 0; overflow: hidden; height: 100%; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.ff-ticker__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ff-marquee 42s linear infinite; }
.ff-strip[data-paused] .ff-ticker__track, .ff-strip__link:hover .ff-ticker__track, .ff-strip__link:focus-visible .ff-ticker__track { animation-play-state: paused; }
.ff-ticker__set { display: inline-flex; align-items: center; gap: 16px; padding-right: 16px; }
.ff-ticker__item { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 640px) { .ff-ticker__item { font-size: 12px; letter-spacing: .12em; } .ff-now { padding: 3px 9px 3px 7px; letter-spacing: .1em; } }
@keyframes ff-marquee { to { transform: translateX(-50%); } }

.ff-strip__btn {
  flex: none; display: grid; place-items: center; width: 36px; height: 100%; min-width: 36px; background: none; border: 0; color: #fff; cursor: pointer; border-radius: 6px; padding: 0;
}
@media (max-width: 640px) { .ff-strip__btn { width: 44px; min-width: 44px; } .ff-strip__btn--pause { display: none; } }  /* on a phone the close button is the 'hide' control; the ticker gets the room */
.ff-strip__btn:hover { background: rgba(255, 255, 255, .14); }
.ff-strip__btn:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.ff-strip__btn svg { width: 14px; height: 14px; display: block; }
.ff-strip__btn .ff-ic-play { display: none; }
.ff-strip[data-paused] .ff-ic-pause { display: none; }
.ff-strip[data-paused] .ff-ic-play { display: block; }
html:not([data-ff="live"]) .ff-strip__btn--pause { display: none; }

/* =====================================================================
   T27 — THE HOMEPAGE CARD
   ===================================================================== */
.ff-card-wrap { padding: 8px 0 34px; }
.ff-card-wrap[hidden] { display: none; }
.ff-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 30px; align-items: center;
  padding: 22px; border-radius: 16px; border: 1px solid var(--ff-pink-100);
  background: var(--ff-pink-50);
  background-image: repeating-linear-gradient(118deg, transparent 0 54px, var(--ff-pink-100) 54px 56px);
  font-family: var(--ff-body);
}
.ff-card__photo { position: relative; container-type: inline-size; margin-bottom: 4.4%; align-self: start; }
.ff-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 820; object-fit: cover; border-radius: 12px; }

/* the round coral price sticker: sits exactly over the sticker in the poster photo, which it
   hides; slightly rotated; the old price is struck with a hand-drawn pen line */
.ff-sticker {
  position: absolute; left: 69.6%; top: 82.9%; width: 34.8%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-6deg);
  border-radius: 50%; background: var(--ff-coral); border: 2.1cqw solid var(--ff-coral-ring); color: var(--ff-deep);
  box-shadow: 0 .8cqw 2.4cqw rgba(0, 0, 0, .2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--ff-display); text-transform: uppercase; box-sizing: border-box;
}
.ff-sticker::before { content: ""; position: absolute; inset: 1.7cqw; border-radius: 50%; border: .35cqw dashed rgba(44, 70, 38, .5); }
.ff-sticker__pita { font-size: 6.6cqw; letter-spacing: .12em; line-height: 1; margin-left: .12em; transform: rotate(-4deg); }
.ff-sticker__price { font-size: 15.5cqw; line-height: .92; letter-spacing: .01em; margin-top: .4cqw; }
.ff-sticker__was { position: relative; font-family: var(--ff-body); font-weight: 600; font-size: 5.4cqw; line-height: 1; margin-top: 1cqw; padding: 0 1.2cqw; }
.ff-strike { position: absolute; left: -8%; top: 22%; width: 116%; height: 60%; overflow: visible; }
.ff-strike path { fill: none; stroke: var(--ff-deep); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 0; animation: ff-draw 1.1s .35s ease-out backwards; vector-effect: non-scaling-stroke; }
@keyframes ff-draw { from { stroke-dashoffset: 130; } }
html[data-ff="live"] .ff-sticker { animation: ff-slap 7s 1.5s ease-in-out infinite; }
@keyframes ff-slap { 0%, 90%, 100% { transform: translate(-50%, -50%) rotate(-6deg); } 93% { transform: translate(-50%, -50%) rotate(-9deg) scale(1.03); } 96% { transform: translate(-50%, -50%) rotate(-3deg) scale(1.03); } }

.ff-card__body { min-width: 0; padding: 4px 8px 4px 0; }
.ff-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-ink); }
.ff-card__title { font-family: var(--ff-display); font-weight: 500; text-transform: uppercase; letter-spacing: .0909em; line-height: 1; margin: 0 0 14px; font-size: clamp(3.3rem, 6.6vw, 5.6rem); color: var(--ff-hunter); }
.ff-card__lead { font-size: 18px; line-height: 1.5; color: var(--ff-ink); margin: 0 0 6px; font-weight: 400; }
.ff-card__lead strong { color: var(--ff-hunter); font-weight: 700; }
.ff-card__lead del { color: var(--ff-ink-soft); }
.ff-balls { display: inline-block; margin-top: 8px; background: var(--ff-coral-ring); color: var(--ff-deep); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; }

/* the shared pill pair: white label half + sage value half (the winter-hours graphic) */
.ff-pair { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; border: 2px solid #fff; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: middle; }
.ff-pair__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 16px; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ff-ink); }
.ff-pair__val { display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; background: var(--ff-sage); color: var(--ff-navy); font-weight: 700; font-size: 15px; letter-spacing: .1em; border-radius: 999px; min-width: 56px; }

/* LIVE: the countdown pieces are hidden until the script has set the state (the server prints data-ff="pre"), so a visitor
   without JavaScript, and the cached page, never show a made-up number. */
.ff-live { display: none; font-size: 15px; font-weight: 700; color: var(--ff-hunter); margin: 20px 0 10px; letter-spacing: .01em; }
html[data-ff="idle"] .ff-live, html[data-ff="live"] .ff-live { display: block; }
.ff-tiles { list-style: none; padding: 0; margin: 0; display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ff-tiles .ff-pair { display: flex; width: 100%; }
.ff-tiles .ff-pair__label { flex: 1 1 auto; min-width: 0; padding-left: 14px; padding-right: 6px; }
.ff-tiles .ff-pair__val { flex: none; font-size: 20px; min-width: 52px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ff-onnow { display: none; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ff-onnow .ff-pair { font-size: 1rem; }
.ff-onnow .ff-pair__label { font-size: 13px; color: var(--ff-navy); }
.ff-onnow .ff-pair__val { font-size: 16px; padding: 8px 20px; letter-spacing: .04em; }
html[data-ff="idle"] .ff-tiles { display: grid; }
html[data-ff="live"] .ff-onnow { display: flex; }
.ff-card .buttonStyle { margin-top: 20px; text-decoration: none; }
/* the site's own primary button shape (.buttonStyle), in hunter green with white text: 6.28:1, the pairing the theme already uses for its green buttons */
.ff-card .ff-btn { background-color: var(--ff-hunter); border-color: var(--ff-hunter); color: #fff; }
.ff-card .ff-btn:hover { background-color: #fff; color: var(--ff-hunter); }
.ff-card .buttonStyle:focus-visible, .ff-strip a:focus-visible { outline: 3px solid var(--ff-navy); outline-offset: 3px; }
.ff-fine { font-size: 13px; color: var(--ff-ink); margin: 12px 0 0; }

@media (max-width: 900px) {
  .ff-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 14px 20px; }
  .ff-card__body { padding: 0 4px; }
  .ff-card__title { font-size: 3.6rem; }
  .ff-card__lead { font-size: 16px; }
  .ff-tiles { gap: 8px; }
  .ff-tiles .ff-pair__label { font-size: 10.5px; letter-spacing: .1em; padding-left: 10px; padding-right: 2px; }
  .ff-tiles .ff-pair__val { font-size: 17px; min-width: 40px; padding: 6px 8px; }
  .ff-card .buttonStyle { width: 100%; justify-content: center; }
}

/* =====================================================================
   T28 — THE MENU BADGE
   ===================================================================== */
.dish.ff-dish .dish__figure { position: relative; margin: 0; }
.ff-badge {
  position: absolute; z-index: 3; top: -22px; right: -14px; width: 76px; aspect-ratio: 1; border-radius: 50%;
  background: var(--ff-coral); color: var(--ff-deep); border: 3px solid var(--ff-coral-ring); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform: rotate(9deg); box-shadow: 0 2px 7px rgba(0, 0, 0, .2); pointer-events: none;
}
.ff-badge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(44, 70, 38, .55); }
.ff-badge__top { font-family: var(--ff-body); font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; line-height: 1; margin-left: .16em; }
.ff-badge__price { font-family: var(--ff-display); font-size: 31px; line-height: .95; letter-spacing: .01em; }
/* T31: the Falafel Balls sticker (EUR 0.80 each): the same sticker, with a smaller price and an "each" line under it. No new colour. */
.ff-badge--balls .ff-badge__price { font-size: 26px; }
.ff-badge__sub { font-family: var(--ff-body); font-weight: 700; font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; margin-top: 1px; margin-left: .12em; }
.ff-badge [data-ff-when="today"] { display: none; }
html[data-ff-today="1"] .ff-badge [data-ff-when="today"] { display: block; }
html[data-ff-today="1"] .ff-badge [data-ff-when="fri"] { display: none; }
html[data-ff-today="1"] .ff-badge { animation: ff-wiggle 3.6s ease-in-out infinite; }
@keyframes ff-wiggle { 0%, 55%, 100% { transform: rotate(9deg); } 62% { transform: rotate(2deg); } 70% { transform: rotate(14deg); } 78% { transform: rotate(5deg); } 86% { transform: rotate(11deg); } }
@media (max-width: 767px) { .ff-badge { width: 60px; top: -16px; right: -10px; } .ff-badge__price { font-size: 25px; } .ff-badge__top { font-size: 8px; } .ff-badge--balls .ff-badge__price { font-size: 21px; } .ff-badge__sub { font-size: 6px; } }
/* LIVE: the Dutch words ("Vrijdag", "Vandaag") are longer than "Fri" and "Today"; set them a touch smaller so they stay inside the ring */
html[lang^="nl"] .ff-badge__top { font-size: 7.5px; letter-spacing: .07em; margin-left: .07em; }
@media (max-width: 767px) { html[lang^="nl"] .ff-badge__top { font-size: 6.5px; letter-spacing: .05em; margin-left: .05em; } html[lang^="nl"] .ff-badge__sub { font-size: 5.5px; letter-spacing: .06em; } }

/* LIVE: the normal EUR 8.00 is shown with no strike on every ordinary day. Only on a deal Friday between 12:00 and 18:00
   (data-ff="live") is it struck and EUR 5.00 shown. Without JavaScript, or on any other day, the menu says EUR 8.00 only. */
.dish.ff-dish .dish__price .ff-p-deal { display: none; }
html[data-ff="live"] .dish.ff-dish .dish__price .ff-p-deal { display: inline; }
html[data-ff="live"] .dish.ff-dish .dish__price .ff-p-normal { display: none; }
.dish.ff-dish .dish__price .ff-was { position: relative; display: inline-block; color: var(--ff-ink); font-weight: 600; margin-right: .3em; }
.dish.ff-dish .dish__price .ff-was svg { position: absolute; left: -6%; top: 20%; width: 112%; height: 60%; overflow: visible; }
.dish.ff-dish .dish__price .ff-was path { fill: none; stroke: var(--ff-deep); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dish.ff-dish .dish__price .ff-now-price { color: var(--ff-coral-str); }
.ff-dish-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 7px 0 0; font-size: .82rem; font-weight: 600; color: var(--ff-hunter); line-height: 1.35; }
.dish.ff-dish .dish__price .ff-p-tail { white-space: nowrap; }   /* LIVE: keep "/ EUR 4.25" together on a narrow phone card */
.ff-dish-note .ff-pair__val { white-space: nowrap; }
.ff-dish-note .ff-pair__label { font-size: 9.5px; padding: 3px 8px 3px 10px; letter-spacing: .14em; }
.ff-dish-note .ff-pair__val { font-size: 11px; padding: 3px 10px; min-width: 0; letter-spacing: .06em; }
@media (max-width: 767px) { .ff-dish-note .ff-pair__label { padding: 3px 6px 3px 8px; letter-spacing: .08em; } .ff-dish-note .ff-pair__val { padding: 3px 8px; letter-spacing: .03em; } }
html[data-ff-today="1"] .ff-dish-note [data-ff-when="fri"] { display: none; }
.ff-dish-note [data-ff-when="today"] { display: none; }
html[data-ff-today="1"] .ff-dish-note [data-ff-when="today"] { display: inline; }
html[data-ff="ended"] .ff-badge, html[data-ff="ended"] .ff-dish-note, html[data-ff="ended"] .ff-p-deal { display: none !important; }
html[data-ff="ended"] .dish.ff-dish .dish__price .ff-p-normal { display: inline !important; }
.ff-dish { scroll-margin-top: 150px; }

/* ---------- reduced motion: no ticker, no pulse, no wiggle, no pen-draw. Everything is still there, just still. ---------- */
@media (prefers-reduced-motion: reduce) {
  .ff-ticker__track, .ff-dot, .ff-strike path, .ff-badge, .ff-sticker { animation: none !important; }
  .ff-ticker__set + .ff-ticker__set { display: none; }
  .ff-ticker { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .ff-strip__btn--pause { display: none !important; }
  .ff-strip__arrow { transition: none; }
}
