/* ============================================================
   Reset Coffee — digital menu
   Loaded after styles.css; reuses the same brand tokens.
   ============================================================ */

.menu-head {
  padding-block: clamp(34px, 6vw, 76px) clamp(22px, 3vw, 34px);
}

.menu-title {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: .25em 0 0;
}

.menu-sub {
  margin: 1.1em 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--body);
  max-width: 46ch;
}

html[lang="he"] .menu-title, html[lang="ar"] .menu-title {
  letter-spacing: 0;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.12;
}

/* ── the jump bar ───────────────────────────────────────── */

.m-jump {
  position: sticky;
  top: 74px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 0;
  margin-bottom: clamp(20px, 4vw, 40px);
  background: linear-gradient(var(--cream) 62%, rgba(248, 246, 242, 0));
  scroll-padding-inline: 20px;
}
.m-jump::-webkit-scrollbar { display: none; }

.m-jump-link {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage-deep);
  padding: .7em 1.1em;
  border: 1px solid rgba(93, 106, 85, .28);
  border-radius: 99px;
  background: rgba(248, 246, 242, .7);
  transition: color .2s, border-color .2s, background-color .2s;
  white-space: nowrap;
}
.m-jump-link:hover { color: var(--ink); border-color: var(--sage-deep); }
.m-jump-link.is-here {
  color: var(--cream);
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

html[lang="ar"] .m-jump-link { letter-spacing: 0; }
html[lang="he"] .m-jump-link { letter-spacing: .06em; }

/* ── a category ─────────────────────────────────────────── */

.m-cat {
  padding-block: clamp(26px, 4vw, 46px) clamp(40px, 6vw, 76px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 150px;
}
.m-cat:first-of-type { border-top: 0; }

.m-cat-head {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.m-cat-name {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}
html[lang="he"] .m-cat-name, html[lang="ar"] .m-cat-name { letter-spacing: 0; line-height: 1.25; }

.m-cat-count {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
}
html[lang="ar"] .m-cat-count { letter-spacing: 0; }

.m-cat-lede {
  margin: .4em 0 0;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--body);
  max-width: 44ch;
}

.m-group-title {
  margin: clamp(24px, 3vw, 38px) 0 clamp(14px, 2vw, 20px);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
html[lang="ar"] .m-group-title { letter-spacing: 0; font-size: .95rem; }
html[lang="he"] .m-group-title { letter-spacing: .1em; font-size: .85rem; }

/* ── item cards ─────────────────────────────────────────── */

.m-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.m-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* the picture slot — lattice until a photo lands */
.m-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: var(--floret);
  background-size: 88px 88px;
  border: 1px solid rgba(93, 106, 85, .16);
}

.m-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The dish photos are cut out, so a card with a photo drops its own ground:
   no lattice, no fill, no frame — the dish stands on the page itself. The
   lattice stays for dishes still waiting for a photo (menu.js removes an
   <img> that fails, which brings the placeholder back). */
.m-photo:has(img),
.m-photo.has-photo {
  background: none;
  border-color: transparent;
}

/* a real photo can be tapped open (menu.js) — the corner mark says so */
.m-photo.has-photo { cursor: zoom-in; }
.m-photo.has-photo img { transition: transform .5s ease; }
.m-photo.has-photo::after {
  content: "";
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(248, 246, 242, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 2px 8px rgba(35, 32, 32, .16);
  pointer-events: none;
}
@media (hover: hover) {
  .m-photo.has-photo:hover img { transform: scale(1.04); }
}

/* ── a photo, full screen ───────────────────────────────── */

html.m-viewer-on { overflow: hidden; }

.m-viewer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: rgba(35, 32, 32, .92);
  color: var(--cream);
}
.m-viewer[open] { display: grid; place-items: center; }
.m-viewer::backdrop { background: transparent; }

.m-viewer-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(980px, 100%);
  animation: m-viewer-in .25s ease;
}
.m-viewer-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.m-viewer-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 16px;
  text-align: center;
}
.m-viewer-name { font-size: 1.2rem; font-weight: 400; color: var(--cream); }
.m-viewer-cap .m-price,
.m-viewer-cap .m-step-price { color: #f2a88c; }
.m-viewer-cap .m-step-label { color: var(--sage-soft); }

.m-viewer-close {
  position: fixed;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(248, 246, 242, .32);
  border-radius: 50%;
  background: rgba(35, 32, 32, .45);
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.m-viewer-close:hover { background: rgba(248, 246, 242, .14); }

@keyframes m-viewer-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .m-viewer-fig { animation: none; }
  .m-photo.has-photo img { transition: none; }
}

.m-photo-badge {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  z-index: 2;
  min-width: 2.4em;
  padding: .45em .6em;
  font-size: .82rem;
  font-weight: 500;
  text-align: center;
  color: var(--cream);
  background: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}

.m-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.m-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
html[lang="ar"] .m-name { font-size: 1.02rem; line-height: 1.5; }

.m-price {
  font-size: .95rem;
  font-weight: 500;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── size ladders ───────────────────────────────────────── */

.m-ladder,
.m-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
}

.m-step { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }

.m-step-label {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--sage);
}

.m-step-price {
  font-size: .9rem;
  font-weight: 500;
  color: var(--terracotta);
  font-variant-numeric: tabular-nums;
}

.m-key {
  gap: 10px 20px;
  padding: 14px clamp(14px, 2vw, 20px);
  margin-bottom: clamp(18px, 2.5vw, 26px);
  background: var(--paper);
  border-radius: 3px;
}
.m-key-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
html[lang="ar"] .m-key-label { letter-spacing: 0; }
.m-key .m-step-price { font-size: 1rem; }

.m-grid-flavours { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.m-grid-flavours .m-name { font-size: .95rem; }

/* ── add-on chips ───────────────────────────────────────── */

.m-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: .6em 1em;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 300;
  color: var(--body);
}
.m-chip-price {
  font-weight: 500;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}

/* ── a list that isn't in yet ───────────────────────────── */

.m-soon {
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--sage-deep);
  max-width: 46ch;
}

/* ── back to the site ───────────────────────────────────── */

.menu-foot {
  padding-block: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.menu-foot-note {
  margin: 0;
  font-size: .9rem;
  font-weight: 300;
  color: var(--sage-deep);
}

@media (max-width: 560px) {
  .m-jump { top: 66px; }
  .m-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .m-grid-flavours { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .m-body { gap: 2px 8px; }
  .m-name { font-size: .94rem; }
}

/* the shekel sign comes from a fallback face; even it up */
.cur {
  font-size: 1.15em;
  margin-inline-start: .22em;
  font-weight: 400;
}

/* a row of chips straight after a grid (no heading between them) needs air */
.m-grid + .m-chips { margin-top: clamp(18px, 2.5vw, 26px); }
