/* Limonella — life pass (2026-10-07). One world: fresh lemon over a Serbian–Mediterranean table.
   Focal moment: the hero photos change by opening out of the lemon logo (an iris with a juice-ring edge, slow push-in),
   and a lemon swash draws under "inspiriše". Supporting: buttons fill like juice rising, a live "open now" line with
   today's row lit on the hours card, list rules that fill lemon when you point at a dish group. No glass, no scroll
   fades, nothing follows the cursor. Their own neon look (dark theme) is kept. */
:root {
  --l-ease: cubic-bezier(.16, 1, .3, 1);
  --l-spring: cubic-bezier(.34, 1.4, .64, 1);
  --l-spring: linear(0, .012, .05 2.4%, .22 5.6%, .71 13.4%, .93 18%, 1.03 22.5%, 1.06 26.6%, 1.04 31.5%, 1.005 40%, .996 47%, 1.001 66%, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q15 1 30 7 T60 7 T90 7 T120 7 V14 H0Z'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

/* ---- buttons: juice rises, the pill presses ---- */
.btn { position: relative; isolation: isolate; overflow: hidden; transition: color .35s var(--l-ease), border-color .3s, box-shadow .3s, transform .5s var(--l-spring); }
.btn:hover { transform: none; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn::before { content: ''; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: 0; height: 140%; pointer-events: none;
  background: var(--juice, var(--lemon)); transform: translateY(102%); transition: transform .6s var(--l-ease);
  -webkit-mask: var(--wave) 0 0 / 60px 9px repeat-x, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat;
          mask: var(--wave) 0 0 / 60px 9px repeat-x, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); animation: slosh 1.4s linear infinite; }
@keyframes slosh { to { -webkit-mask-position: 60px 0, 0 8px; mask-position: 60px 0, 0 8px; } }
.btn:hover, .btn:focus-visible { color: var(--juice-ink, var(--ink)); }
.btn-primary { --juice: var(--lemon); --juice-ink: #1b2410; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { --juice: var(--green-dark); --juice-ink: var(--paper); }
.btn-ghost:hover { background: transparent; }
.btn-lemon { --juice: var(--green-dark); --juice-ink: #fbf9f0; }
.btn-lemon:hover { background: var(--lemon); }
html.dark .btn-primary { --juice: var(--lemon); }
html.dark .btn-primary:hover { background: var(--neon); }
html.dark .btn-ghost { --juice: var(--neon); --juice-ink: #0e130b; }
html.dark .btn-ghost:hover { background: transparent; color: #0e130b; }
html.dark .btn-lemon { --juice: #2e4524; --juice-ink: #fbf9f0; }

/* ---- focal: photos open out of the lemon ---- */
.hero-slide { opacity: 0; transition: none; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-entering { opacity: 1; z-index: 0; }
.iris-ring { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(227, 197, 63, .85); translate: -50% -50%; }
.hero-logo { animation: wheel-in 1.1s var(--l-spring) both; }
@keyframes wheel-in { from { transform: scale(.9) rotate(-14deg); } to { transform: none; } }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em .swash { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.hero h1 em .swash path { fill: none; stroke: var(--lemon); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: swash 1s var(--l-ease) .55s forwards; }
@keyframes swash { to { stroke-dashoffset: 0; } }

/* ---- live: open now ---- */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 0 rgba(227, 197, 63, .6); animation: lemon-pulse 2.2s infinite; flex: 0 0 auto; }
@keyframes lemon-pulse { 70% { box-shadow: 0 0 0 9px rgba(227, 197, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 197, 63, 0); } }
.hero-meta span.is-live::before { content: none !important; }
.hero-meta span.is-live { gap: .5rem; }
.hours-card .open-now { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1rem; font-size: .92rem; color: rgba(255, 255, 255, .86); }
.hours-card .open-now time { font-variant-numeric: tabular-nums; color: var(--lemon); font-weight: 600; }
.hours-row { position: relative; transition: color .3s; }
.hours-row.today .d { color: #fff; font-weight: 600; }
.hours-row.today .h { color: var(--lemon); }
.hours-row .tag { margin-left: .6rem; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(227, 197, 63, .16); color: var(--lemon); font-weight: 600; vertical-align: 2px; }

/* ---- dish groups: the rule fills lemon when you point at one ---- */
.feature { position: relative; }
.feature::after { content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--lemon); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--l-ease); }
.feature:hover::after, .feature:focus-within::after { transform: scaleX(1); }
.feature h3 { transition: transform .5s var(--l-spring); }
.feature:hover h3 { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .btn::before { transition: none; animation: none !important; }
  .hero-logo, .live-dot { animation: none; }
  .hero h1 em .swash path { animation: none; stroke-dashoffset: 0; }
  .feature::after, .feature h3 { transition: none; }
}
