/* ============================================================
   Lilla Beirut — Components
   ============================================================ */

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__cedar { width: 22px; height: 22px; fill: var(--clay); flex: none; }
.wordmark--on-dark { color: var(--on-dark); font-size: 1.5rem; }
.wordmark--on-dark .wordmark__cedar { fill: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: background var(--dur-micro) var(--ease-out),
              color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--pom); color: var(--sand); }
.btn--primary:hover { background: var(--pom-deep); color: var(--sand); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }

.surface-dark .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.surface-dark .btn--ghost:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.btn--sm { padding: 9px 16px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 28px; font-size: var(--fs-body); }

/* placeholder-order tooltip (shown by JS until the real Qopla link is wired) */
.btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--sand); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--r-md);
  box-shadow: 0 8px 22px oklch(0.27 0.03 50 / 0.25);
  pointer-events: none;
  animation: tipIn 200ms var(--ease-out);
}
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Inline link with arrow ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--pom);
  width: fit-content;
}
.link-arrow span { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--sand) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px oklch(0.27 0.03 50 / 0.07);
}
.nav__links { display: flex; align-items: center; gap: var(--space-xl); }
.nav__links a {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  transition: color var(--dur-micro) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { flex: none; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  position: relative;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 11px; width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__burger span { top: 21px; }
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }

/* Responsive nav: collapse to hamburger + drawer on small screens */
@media (max-width: 879px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------- MOBILE NAV ---------- */
.mobnav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--sand-2);
  background-image: var(--tile-gold);
  background-size: 120px;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding-block: var(--space-lg) var(--space-2xl);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur-large) var(--ease-out), visibility var(--dur-large);
}
.mobnav.is-open { transform: translateY(0); visibility: visible; }
.mobnav__top { display: flex; align-items: center; justify-content: space-between; }
.mobnav__close { font-size: 2.2rem; line-height: 1; width: 44px; height: 44px; color: var(--ink); }
.mobnav__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--space-md), 4vh, var(--space-2xl));
}
.mobnav__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--ink);
  transition: color var(--dur-micro) var(--ease-out);
}
.mobnav__links a:hover { color: var(--pom); }
.mobnav__cta { align-self: center; }

/* ---------- Section heading block ---------- */
.sec-head {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}
@media (min-width: 880px) {
  .sec-head { grid-template-columns: 1.5fr 1fr; gap: var(--space-3xl); align-items: end; }
}
.sec-head__lead { color: var(--ink-soft); font-size: var(--fs-lead); max-width: 42ch; }
.sec-head--center {
  text-align: center;
  justify-items: center;
  grid-template-columns: 1fr !important;
  max-width: 640px;
  margin-inline: auto;
}
.sec-head--center .eyebrow::before { display: none; }

/* ---------- Dish cards ---------- */
.dishes {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .dishes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dishes { grid-template-columns: repeat(4, 1fr); } }

/* staggered card entrance when the group scrolls in (emil-anim rules 33-34).
   The container is the observed trigger but stays put — only the cards move. */
.dishes.reveal { opacity: 1; transform: none; transition: none; }
.dishes .dish {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.dishes.is-in .dish { opacity: 1; transform: translateY(0); }
.dishes.is-in .dish:nth-child(2) { transition-delay: 60ms; }
.dishes.is-in .dish:nth-child(3) { transition-delay: 120ms; }
.dishes.is-in .dish:nth-child(4) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .dishes .dish { opacity: 1 !important; transform: none !important; }
}

.dish {
  display: flex;
  flex-direction: column;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.dishes.is-in .dish:hover { transform: translateY(-4px); box-shadow: 0 14px 34px oklch(0.27 0.03 50 / 0.12); transition-delay: 0ms; }
.dish__media { aspect-ratio: 4 / 3; overflow: hidden; }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-large) var(--ease-out); }
.dish:hover .dish__media img { transform: scale(1.05); }
.dish__body { padding: var(--space-md) var(--space-md) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-2xs); }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.dish__price { font-family: var(--font-display); color: var(--clay-deep); font-size: 1.05rem; white-space: nowrap; }
.dish__body p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- Mezze list (menu rows) ---------- */
.m-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.m-item__name { font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.m-item__dot { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.m-item__price { font-family: var(--font-display); color: var(--clay-deep); white-space: nowrap; }
.m-item__desc { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; max-width: 46ch; }
