/* Public menu components. Mobile-first; logical properties for RTL. */

.preview-banner {
  padding: var(--space-2) var(--gutter);
  background: var(--color-warning-bg);
  border-block-end: 1px solid #efd8a8;
  color: var(--color-warning);
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(250 248 242 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: var(--content-max);
  min-height: 60px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-end: auto;
  min-height: var(--tap);
  color: var(--color-brand-900);
  text-decoration: none;
}
/* Default mark: the restaurant's initials on its brand colour (replaced by the logo when set). */
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--color-brand-900);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__mark[hidden] {
  display: none;
}
.brand__name {
  display: grid;
  line-height: 1.05;
}
.brand__name strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__name span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.lang-toggle {
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-brand-900);
  font-size: var(--text-sm);
  font-weight: 600;
}
.lang-toggle:hover {
  border-color: var(--color-brand-600);
}
.search-toggle[aria-expanded='true'] {
  background: var(--color-brand-100);
}

/* Search row (inside sticky header) */
.search {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--space-3);
}
.search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  inset-inline-start: 14px;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  min-height: 48px;
  padding-block: 0;
  padding-inline: 44px 48px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  font-size: var(--text-md); /* >=16px prevents iOS zoom */
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.search__input::placeholder {
  color: var(--color-text-muted);
}
.search__input:focus {
  border-color: var(--color-brand-700);
  outline: none;
  box-shadow: 0 0 0 3px rgb(31 95 191 / 0.35);
}
.search__input::-webkit-search-cancel-button {
  display: none;
}
.search__clear {
  position: absolute;
  inset-inline-end: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--color-brand-600) 55%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--color-brand-900), white 7%) 0%, var(--color-brand-900) 70%);
  color: #fff;
}
.hero__inner {
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  /* Compact on purpose: QR visitors are already at the table and want the dishes. */
  padding: var(--space-5) var(--gutter);
}
.hero__leaves {
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: -48px;
  width: 180px;
  height: 180px;
  color: rgb(255 255 255 / 0.07);
  pointer-events: none;
}
[dir='rtl'] .hero__leaves {
  transform: scaleX(-1);
}
.hero__tagline {
  margin: var(--space-1) 0 0;
  font-size: var(--text-base);
  color: rgb(255 255 255 / 0.85);
}
.hero__title {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}
.hero__address {
  display: flex;
  gap: var(--space-2);
  min-height: 1.6em; /* reserved: filled after data loads (CLS) */
  margin-block-start: var(--space-2);
  color: rgb(255 255 255 / 0.84);
  font-size: var(--text-sm);
  font-style: normal;
}
.hero__address svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-block-start: 2px;
  color: #e9d3b0;
}
.hero__actions {
  min-height: var(--tap);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
}
.hero .btn:focus-visible {
  outline-color: var(--color-focus-on-dark);
}

/* ---------- Layout ---------- */
.layout {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* ---------- Category navigation ---------- */
.category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--color-surface);
  border-block-end: 1px solid var(--color-border);
}
.category-nav__list {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  min-height: calc(var(--nav-h) - 1px);
  padding: var(--space-3) var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* Snapped/auto-centred chips keep the page gutter instead of hugging the screen edge */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.category-nav__list::-webkit-scrollbar {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-brand-900);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover {
  border-color: var(--color-brand-600);
}
.chip[aria-current='true'] {
  background: var(--color-brand-700);
  border-color: var(--color-brand-700);
  color: #fff;
}
.chip__count {
  font-weight: 500;
  font-size: var(--text-xs);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

/* ---------- Status / notices ---------- */
.content {
  padding: var(--space-4) var(--gutter) var(--space-7);
  min-width: 0;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-block-end: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-block-start: 1px;
}
.notice__body {
  flex: 1;
}
.notice--warning {
  background: var(--color-warning-bg);
  border-color: #efd8a8;
  color: var(--color-warning);
}
.notice--error {
  background: var(--color-error-bg);
  border-color: #efc4c0;
  color: var(--color-error);
}
.notice .btn {
  min-height: 36px;
  margin-block-start: var(--space-2);
}
.result-count {
  margin-block-end: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Menu sections ---------- */
.menu-section {
  margin-block-end: var(--space-6);
}
.menu-section__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-3);
}
.menu-section__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--color-brand-900);
  color: #e9d3b0;
}
.menu-section__icon svg {
  width: 24px;
  height: 24px;
}
.menu-section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  color: var(--color-brand-900);
}
.menu-section__title:focus {
  outline: none;
}
.menu-section__title:focus-visible {
  outline: 3px solid var(--color-focus);
}
.menu-section__alt {
  display: block;
  margin-block-start: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-900);
  letter-spacing: 0;
}
.menu-section__count {
  margin-inline-start: auto;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* ---------- Dish row ---------- */
.dish {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-1) var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border-block-start: 1px solid var(--color-border);
}
.dish:first-child {
  border-block-start: 0;
}
/* One media box for every row (photo or icon) so names and prices line up. */
.dish__media {
  grid-row: span 2;
  width: 88px;
  height: 66px; /* 4:3, matches the photo crops */
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, #fff 0, transparent 60%),
    var(--color-brand-50);
  border: 1px solid var(--color-brand-100);
  border-radius: inherit;
  color: var(--color-brand-600);
}
.dish__placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.85;
}
.dish__text {
  min-width: 0;
}
.dish__name {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-text);
  overflow-wrap: anywhere;
}
/* Presentational sentence case; source spelling is preserved in data. */
.dish__name:lang(en)::first-letter {
  text-transform: uppercase;
}
/* Secondary-language lines keep their own direction but align with the page. */
html[dir='ltr'] :is(.dish__alt, .dish__desc, .menu-section__alt, .dish__name, .photo-dialog__name, .photo-dialog__alt, .photo-dialog__desc)[dir='rtl'] {
  text-align: left;
}
html[dir='rtl'] :is(.dish__alt, .dish__desc, .menu-section__alt, .dish__name, .photo-dialog__name, .photo-dialog__alt, .photo-dialog__desc)[dir='ltr'] {
  text-align: right;
}
.dish__alt {
  margin-block-start: 2px;
  font-size: var(--text-sm);
  color: var(--color-accent-900);
  line-height: var(--leading-snug);
}
.dish__desc {
  margin-block-start: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}
.dish__price {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-brand-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-block-start: 1px;
}
.dish__variants {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}
/* Plain text, not chips: sizes are information, not controls (no false tap affordance). */
.variant {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--text-sm);
}
.variant__label {
  color: var(--color-text-muted);
  font-weight: 500;
}
.variant__price {
  font-weight: 700;
  color: var(--color-brand-900);
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-block-start: var(--space-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge--unavailable {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.dish--unavailable .dish__name,
.dish--unavailable .dish__price,
.dish--unavailable .variant__price {
  color: var(--color-text-muted);
}
.dish--unavailable .dish__price {
  text-decoration: line-through;
}

/* ---------- Empty / error states ---------- */
.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  text-align: center;
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}
.empty__icon svg {
  width: 26px;
  height: 26px;
}
.empty__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand-900);
}
.empty__text {
  max-width: 36ch;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.not-found {
  max-width: 560px;
  margin-inline: auto;
  padding-block: 15vh;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  inset-inline-end: var(--gutter);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
  background: var(--color-brand-900);
  color: #fff;
  box-shadow: var(--shadow-3);
  /* visibility (not just opacity) keeps it out of the tab order while hidden */
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.back-to-top:hover {
  background: var(--color-brand-700);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Featured strip ---------- */
.featured {
  margin-block-end: var(--space-6);
}
.featured__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-3);
}
.featured__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-50);
  color: var(--color-accent-900);
}
.featured__icon svg {
  width: 22px;
  height: 22px;
}
.featured__title {
  margin: 0;
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  color: var(--color-brand-900);
}
.featured__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
/* Horizontal scroller with snap; bleeds to the screen edge on phones. */
.featured__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: var(--space-3);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-1) var(--gutter) var(--space-3);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.featured__list::-webkit-scrollbar {
  display: none;
}
.featured__list > li {
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .featured__list {
    grid-auto-columns: 200px;
  }
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-2);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
  }
}
.feature-card:focus-visible {
  border-radius: var(--radius-lg);
}
.feature-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-brand-50);
}
.feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card__media .dish__placeholder {
  border: 0;
  border-radius: 0;
}
.feature-card__media .dish__placeholder svg {
  width: 32px;
  height: 32px;
}
.feature-card__body {
  display: grid;
  gap: 2px;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.feature-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-card__name:lang(en)::first-letter {
  text-transform: uppercase;
}
html[dir='rtl'] .feature-card__name[dir='ltr'] {
  text-align: right;
}
html[dir='rtl'] .feature-card__price {
  text-align: right;
}
.feature-card__price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-700);
}
/* Brief highlight on the dish row a featured card jumped to. */
.dish--flash {
  animation: dish-flash 1.6s var(--ease-out);
}
.dish:focus {
  outline: none;
}
@keyframes dish-flash {
  0%, 30% { background: var(--color-accent-50); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .dish--flash {
    animation: none;
  }
}

/* ---------- Photo thumbnail + preview ---------- */
/* Photo rows get a soft frame and lift; the icon placeholders stay flat. */
.dish--has-photo .dish__media {
  box-shadow: var(--shadow-1);
  background: var(--color-brand-50);
}
.dish__photo-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.dish__photo-btn img {
  transition: transform var(--dur-slow) var(--ease-out);
}
/* Inner hairline sits above the photo so light photos keep an edge. */
.dish__photo-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(20 61 46 / 0.1);
  pointer-events: none;
}
/* Small "expand" badge: tells phone users the photo can be opened. */
.dish__zoom {
  position: absolute;
  inset-block-end: 5px;
  inset-inline-end: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  color: var(--color-brand-900);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out);
}
.dish__zoom svg {
  width: 12px;
  height: 12px;
}
@media (hover: hover) {
  .dish__photo-btn:hover img {
    transform: scale(1.06);
  }
  .dish__photo-btn:hover .dish__zoom {
    transform: scale(1.1);
  }
}
.dish__photo-btn:active img {
  transform: scale(0.98);
}
.dish__photo-btn:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.photo-dialog {
  width: min(100% - 2 * var(--gutter), 520px);
  max-width: none;
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: 0 24px 64px -16px rgb(10 30 22 / 0.55);
  overflow: hidden;
}
.photo-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: photo-in var(--dur-slow) var(--ease-out);
}
.photo-dialog::backdrop {
  background: rgb(14 40 30 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.photo-dialog[open]::backdrop {
  animation: photo-fade var(--dur-slow) var(--ease-out);
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}
@keyframes photo-fade {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-dialog[open],
  .photo-dialog[open]::backdrop {
    animation: none;
  }
}
.photo-dialog__frame {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  background: var(--color-brand-50);
}
.photo-dialog__img {
  display: block;
  width: 100%;
  max-height: 62dvh;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-dialog__close {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--color-brand-900);
  box-shadow: var(--shadow-2);
}
.photo-dialog__close:hover {
  background: #fff;
}
.photo-dialog__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px var(--space-4);
  align-items: baseline;
  padding: var(--space-4) var(--space-5) var(--space-5);
  overflow-y: auto;
}
.photo-dialog__name {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}
.photo-dialog__name:lang(en)::first-letter {
  text-transform: uppercase;
}
.photo-dialog__price {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.photo-dialog__alt,
.photo-dialog__desc,
.photo-dialog__variants {
  grid-column: 1 / -1;
  margin: 0;
}
.photo-dialog__alt {
  font-size: var(--text-md);
  color: var(--color-accent-900);
}
.photo-dialog__desc {
  margin-block-start: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-body);
}
.photo-dialog__variants {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
  padding: 0;
  list-style: none;
}
.photo-dialog__variants li {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-brand-50);
  font-size: var(--text-sm);
}
.photo-dialog__variants .variant__label {
  color: var(--color-text-muted);
}
.photo-dialog__variants .variant__price {
  font-weight: 700;
  color: var(--color-brand-900);
}

/* ---------- WhatsApp chat ---------- */
.whatsapp-float {
  position: fixed;
  inset-inline-end: var(--gutter);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1fa855; /* WhatsApp green, darkened for ≥3:1 icon contrast with white */
  color: #fff;
  box-shadow: var(--shadow-3);
}
.whatsapp-float[hidden] {
  display: none;
}
.whatsapp-float:hover {
  background: #178a45;
}
.whatsapp-float svg {
  width: 26px;
  height: 26px;
}
/* Stack back-to-top above the WhatsApp button when both are shown. */
body:has(.whatsapp-float:not([hidden])) .back-to-top {
  bottom: calc(var(--space-5) + 48px + var(--space-3) + env(safe-area-inset-bottom, 0px));
}

/* While loading, hold the footer below the fold so it doesn't jump when dishes render (CLS). */
#menu[aria-busy='true'] {
  min-height: 100vh;
}

/* ---------- Loading skeleton ---------- */
.skeleton {
  display: grid;
  gap: var(--space-3);
}
.skeleton__title {
  width: 40%;
  height: 26px;
}
.skeleton__row {
  height: 76px;
}
.skeleton__title,
.skeleton__row {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--color-brand-50) 0%, #f6faf7 50%, var(--color-brand-50) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton__title,
  .skeleton__row {
    animation: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-brand-900);
  color: rgb(255 255 255 / 0.86);
  font-size: var(--text-sm);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-5);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-7) var(--gutter) var(--space-6);
}
.site-footer h2 {
  font-size: var(--text-lg);
  color: #fff;
}
.contact-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.contact-list a,
.contact-list address,
.contact-list__item {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap);
  padding-block: var(--space-2);
  color: #fff;
  font-style: normal;
}
.contact-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-block-start: 1px;
  color: #e9d3b0;
}
.site-footer a:focus-visible {
  outline-color: var(--color-focus-on-dark);
}
.site-footer__meta {
  display: grid;
  gap: var(--space-1);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.7);
  font-size: var(--text-xs);
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .hero__inner {
    padding-block: var(--space-6);
  }
  .hero__leaves {
    width: 260px;
    height: 260px;
  }
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
  }
  .site-footer__meta {
    grid-column: 1 / -1;
  }
}

/* Two-column dish grid when there is room for names + variants */
@media (min-width: 900px) {
  .dish-list {
    grid-template-columns: 1fr 1fr;
  }
  .dish {
    border-block-start: 1px solid var(--color-border);
  }
  .dish:nth-child(-n + 2) {
    border-block-start: 0;
  }
  .dish:nth-child(odd) {
    border-inline-end: 1px solid var(--color-border);
  }
}

/* ---------- Desktop: sidebar navigation ---------- */
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: var(--space-6);
    padding-inline: var(--gutter);
  }
  .category-nav {
    top: calc(var(--header-h) + var(--space-4));
    align-self: start;
    margin-block-start: var(--space-5);
    max-height: calc(100vh - var(--header-h) - var(--space-6));
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-1);
  }
  .category-nav__list {
    flex-direction: column;
    gap: 2px;
    padding: var(--space-2);
    overflow: visible;
  }
  .chip {
    display: flex;
    justify-content: space-between;
    min-height: var(--tap);
    border-color: transparent;
    border-radius: var(--radius-sm);
    background: transparent;
  }
  .chip:hover {
    border-color: transparent;
    background: var(--color-brand-50);
  }
  .content {
    padding-inline: 0;
    padding-block-start: var(--space-5);
  }
  .menu-section {
    margin-block-end: var(--space-7);
  }
}

/* Tenant logo (replaces the default mark when the restaurant sets one). */
.brand__logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
}
