/* Hummus Samih menu – "tiled wall + menu boards" */
:root {
  --wall: #f1e7d0;
  --wall-line: #d6c49b;
  --paper: #fff8e8;
  --board: #2c361c;
  --board-deep: #222a15;
  --board-edge: #3a4626;
  --board-rule: #4d5a35;
  --cream: #f4ecd8;
  --muted: #cbc4a7;
  --copper: #d8945c;
  --copper-deep: #9c5424;
  --chickpea: #e3c27a;
  --ink: #2a2a17;
  --ink-soft: #5d5640;

  --font: "Almarai", "Assistant", system-ui, sans-serif;
  --display: "Lalezar", "Almarai", system-ui, sans-serif;
  --rail-h: 68px;
  --tabbar-h: 0px;
}
html[lang="he"] {
  --font: "Assistant", "Almarai", system-ui, sans-serif;
  --display: "Suez One", "Assistant", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--wall);
  /* Levantine cement-tile wall */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d6c49b' stroke-width='1.4'%3E%3Cpath d='M36 6c8 10 8 20 0 30-8-10-8-20 0-30zM36 66c8-10 8-20 0-30-8 10-8 20 0 30zM6 36c10-8 20-8 30 0-10 8-20 8-30 0zM66 36c-10-8-20-8-30 0 10 8 20 8 30 0z'/%3E%3Crect x='.7' y='.7' width='70.6' height='70.6'/%3E%3C/g%3E%3C/svg%3E");
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 60;
  background: var(--board-deep); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Wall (header) ---------- */
.wall__inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 16px 30px;
  display: grid; justify-items: center; text-align: center;
}
.lang {
  justify-self: start; display: inline-flex; gap: 4px; padding: 4px;
  background: var(--paper); border: 1px solid var(--wall-line); border-radius: 999px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer; min-height: 40px; min-width: 64px;
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--board);
}
.lang button[aria-pressed="true"] { background: var(--board); color: var(--cream); }

.sign {
  position: relative; width: 148px; margin-top: 34px; padding: 8px;
  background: var(--paper); border-radius: 10px;
  box-shadow: 0 14px 26px -14px rgb(59 46 20 / 0.6), 0 2px 0 var(--wall-line);
  transform: rotate(-2deg); transform-origin: 50% -26px;
  animation: hang 1.6s cubic-bezier(.3, 1.6, .5, 1) 0.2s both;
}
/* copper hanger */
.sign::before {
  content: ""; position: absolute; top: -24px; left: 50%; width: 74px; height: 26px; margin-left: -37px;
  border: 2px solid var(--copper-deep); border-bottom: 0; border-radius: 40px 40px 0 0;
}
.sign::after {
  content: ""; position: absolute; top: -30px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--copper-deep);
}
.sign__logo { width: 100%; height: auto; border-radius: 6px; }
@keyframes hang { from { transform: rotate(5deg); } to { transform: rotate(-2deg); } }

.wall__title h1 {
  margin: 20px 0 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 13vw, 96px); line-height: 1; color: var(--board);
}
.wall__title p { margin: 8px 0 0; font-weight: 700; font-size: 18px; color: var(--copper-deep); }

/* ---------- Rail (search + desktop tabs) ---------- */
.rail { position: sticky; top: 0; z-index: 20; background: var(--board-deep); box-shadow: 0 8px 18px -12px rgb(20 24 10 / .8); }
.rail__inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 16px; min-height: var(--rail-h);
  display: flex; align-items: center; gap: 12px;
}
.find {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  background: var(--board-edge); border-radius: 12px; color: var(--muted);
}
.find:focus-within { box-shadow: 0 0 0 2px var(--copper); }
.find input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; color: var(--cream); padding: 10px 0;
}
.find input::placeholder { color: var(--muted); opacity: .85; }
.find input::-webkit-search-cancel-button { display: none; }
.find__clear {
  border: 0; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  background: var(--board-rule); color: var(--cream); font-size: 20px; line-height: 1;
}
.tabs { display: none; gap: 8px; }
.tab-btn {
  border: 0; cursor: pointer; background: transparent; color: var(--muted);
  min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.tab-btn .count { font-weight: 400; font-size: .85em; margin-inline-start: 6px; opacity: .8; }
.tab-btn[aria-current="true"] { background: var(--copper-deep); color: #fff; }
.tab-btn:disabled { opacity: .35; cursor: default; }

/* Mobile bottom category bar */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--board-deep); border-top: 2px solid var(--copper-deep);
}
.tabbar .tab-btn { padding: 8px 4px; font-size: 15px; border-radius: 12px; }
.tabbar .tab-btn .count { display: none; }
:root { --tabbar-h: 66px; }

/* ---------- Hall: boards + window ---------- */
.hall { max-width: 1240px; margin: 0 auto; padding: 8px 12px 32px; }
.boards { outline: none; }
.board {
  scroll-margin-top: calc(var(--rail-h) + 16px);
  margin: 18px 0 0; padding: 20px 14px 8px; color: var(--cream);
  background: var(--board); border-radius: 8px;
  box-shadow: inset 0 0 0 6px var(--board-edge), 0 20px 30px -20px rgb(42 33 16 / .9);
}
.board[hidden] { display: none; }
.board__title {
  margin: 0 6px 6px; font-family: var(--display); font-weight: 400;
  font-size: 34px; line-height: 1.2; color: var(--chickpea);
}
.board__list { list-style: none; margin: 0; padding: 0; }
.board__list li[hidden] { display: none; }
.dish {
  width: 100%; border: 0; background: transparent; cursor: pointer; text-align: start;
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 12px 6px; border-top: 1px dashed var(--board-rule); border-radius: 6px;
}
.board__list li:first-child .dish { border-top-color: transparent; }
.dish:hover, .dish[aria-current="true"] { background: rgb(255 248 232 / .05); }
.dish__plate {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cream); background: var(--board-edge);
}
.dish__plate img { width: 100%; height: 100%; object-fit: cover; }
.dish__text { display: block; min-width: 0; }
.dish__line { display: flex; align-items: baseline; gap: 8px; }
.dish__name { font-weight: 700; font-size: 18px; line-height: 1.35; }
.dish__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #6e7a52; transform: translateY(-5px); }
.price {
  flex-shrink: 0; white-space: nowrap; font-weight: 800; font-size: 18px; color: var(--copper);
  unicode-bidi: isolate;
}
.dish__desc { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.window { display: none; }

.empty { max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; text-align: center; color: var(--ink-soft); }
.empty[hidden] { display: none; }
.empty p { margin: 0 0 12px; font-size: 17px; }
.empty__try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty__try button {
  border: 1px solid var(--wall-line); background: var(--paper); cursor: pointer;
  min-height: 44px; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--board);
}

.foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 16px 28px; font-family: var(--display); font-size: 20px; color: var(--board);
}
.foot img { border-radius: 50%; }

/* ---------- Dish sheet ---------- */
.sheet {
  border: 0; padding: 0; background: transparent; width: 100%; max-width: 100%;
  margin: auto auto 0; max-height: 100dvh; color: var(--ink);
}
.sheet::backdrop { background: rgb(26 30 14 / .72); }
.sheet__card {
  background: var(--paper); border-radius: 20px 20px 0 0; overflow: auto; max-height: 94dvh;
  padding-bottom: env(safe-area-inset-bottom); touch-action: pan-y;
}
.sheet[open] .sheet__card { animation: rise .28s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet__photo { position: relative; }
.sheet__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e6dbc1; }
.sheet__close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgb(255 248 232 / .95); color: var(--board);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgb(0 0 0 / .25);
}
.sheet__body { padding: 16px 18px 18px; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--board); }
.sheet .price { color: var(--copper-deep); font-size: 22px; }
.sheet__desc { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }
.sheet__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.sheet__nav button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--wall-line); border-radius: 12px; background: #fff; cursor: pointer;
  font-weight: 700; color: var(--board);
}
.sheet__nav button:disabled { opacity: .4; cursor: default; }
.sheet__count { color: var(--ink-soft); font-size: 14px; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .dish { grid-template-columns: 76px 1fr; gap: 16px; }
  .dish__plate { width: 76px; height: 76px; }
  .board { padding: 26px 22px 12px; }
}

@media (min-width: 960px) {
  :root { --tabbar-h: 0px; }
  .tabbar { display: none; }
  .tabs { display: flex; }
  .find { flex: 0 1 380px; }
  .rail__inner { justify-content: space-between; padding: 10px 32px; }

  .wall__inner {
    grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    justify-items: start; align-items: center; column-gap: 40px; text-align: start; padding: 18px 32px 40px;
  }
  .lang { grid-column: 1 / -1; }
  .sign { width: 176px; margin-top: 36px; }
  .wall__title h1 { margin-top: 26px; }
  .wall__title p { font-size: 20px; }

  .hall {
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start;
    padding: 8px 32px 48px;
  }
  .board { margin-top: 26px; }
  .board__title { font-size: 40px; }

  .window {
    display: block; position: sticky; top: calc(var(--rail-h) + 22px); margin-top: 26px;
    background: var(--paper); padding: 12px; border-radius: 10px;
    box-shadow: 0 24px 40px -24px rgb(59 46 20 / .8), 0 2px 0 var(--wall-line);
  }
  .window__frame {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: 6px; overflow: hidden; background: #e6dbc1;
  }
  .window__frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .window__zoom {
    position: absolute; bottom: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; background: rgb(255 248 232 / .92); color: var(--board);
  }
  .window__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 6px 0; }
  .window__label h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--board); }
  .window .price { color: var(--copper-deep); font-size: 24px; }
  .window__desc { margin: 6px 6px 0; color: var(--ink-soft); }

  .sheet { margin: auto; max-width: 720px; }
  .sheet__card { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
