/* ═══════════════════════════════════════════════════════════════
   ANNA — HANUKKAH (holiday) MENU
   Loaded only by anna-hanukkah-menu.

   Every selector is scoped under .anna-hk, so this file can never
   affect the year-round menu, the Rosh Hashana menu, or any other
   widget — and the whole file can be dropped once the holiday ends.

   The one thing that sets this menu apart from every other menu on
   the site: the photo is the card. Not a 74px thumb beside a row,
   but the subject itself, at the image's own aspect ratio, with the
   text sitting underneath it.

   Every card is the same height, by request. That means one shared
   photo frame (--anna-hk-frame, 1/1 by default) instead of each photo's
   own ratio, so the landscape shots are centre-cropped into it. The
   frame ratio is a control on the Style tab, so the crop can be dialled
   without touching code.
   ═══════════════════════════════════════════════════════════════ */

.anna-hk{
  /* Overridable from the widget's Style tab (accent_color). */
  --anna-hk-accent:      var(--brown, #C3885D);
  --anna-hk-accent-dark: var(--brown-dark, #A06A3D);
  --anna-hk-accent-soft: var(--brown-light, #D9A87D);
  --anna-hk-cols: 4;
  --anna-hk-frame: 1 / 1;
  --anna-hk-gap: clamp(16px, 2vw, 26px);
}

/* ── Note bars ────────────────────────────────────────────────── */
.anna-hk .menu-note{
  max-width:100%;margin:0 auto clamp(18px,2.4vw,26px);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;
  padding:clamp(20px,2.8vw,32px) clamp(22px,3.2vw,42px);border-radius:var(--r-md,26px);
  background:linear-gradient(135deg,rgba(0,72,69,.06),rgba(195,136,93,.08));
  border:1px solid rgba(0,72,69,.12);
}
.anna-hk .menu-note:last-of-type{margin-bottom:clamp(44px,6vw,70px);}
.anna-hk .menu-note p{font-size:15px;line-height:1.7;color:var(--ink-soft,#5A4030);max-width:62ch;margin:0;}
.anna-hk .menu-note strong{color:var(--green,#004845);}
.anna-hk .menu-note--gold{
  background:linear-gradient(135deg,rgba(217,168,125,.24),rgba(195,136,93,.11));
  border-color:rgba(195,136,93,.34);
}
@supports (border-color: color-mix(in srgb, red 30%, transparent)){
  .anna-hk .menu-note--gold{ border-color:color-mix(in srgb, var(--anna-hk-accent) 34%, transparent); }
}
.anna-hk .menu-note--gold strong{color:var(--anna-hk-accent-dark);}
.anna-hk .menu-note .btn-primary,
.anna-hk .menu-note .btn-green{flex:0 0 auto;text-decoration:none;}

/* ── Sticky-nav pill that links back to the full menu ─────────── */
.anna-hk .menu-nav__pill--holiday{
  background:linear-gradient(120deg,var(--anna-hk-accent),var(--anna-hk-accent-dark));
  color:var(--white,#fff);border-color:transparent;
  box-shadow:0 4px 16px rgba(195,136,93,.3);
}
.anna-hk .menu-nav__pill--holiday:hover,
.anna-hk .menu-nav__pill--holiday.is-active{
  background:linear-gradient(120deg,var(--anna-hk-accent-dark),var(--anna-hk-accent));
  color:var(--white,#fff);border-color:transparent;
}

/* ═══ THE CARD GRID — the point of this widget ═════════════════ */
.anna-hk .menu-cards{
  display:grid;
  grid-template-columns: repeat(var(--anna-hk-cols), minmax(0, 1fr));
  gap: var(--anna-hk-gap);
  /* 1fr rows, so every card in the category is exactly as tall as the
     tallest one — not just the tallest in its own row. */
  grid-auto-rows: 1fr;
}
.anna-hk .menu-card{
  display:flex;
  flex-direction:column;
  height:100%;
  margin:0;
  background:var(--white,#fff);
  border-radius:var(--r-md,26px);
  overflow:hidden;
  border:1px solid rgba(26,18,10,.07);
  box-shadow:0 2px 10px rgba(26,18,10,.04);
  transition:transform .45s var(--ease-out,cubic-bezier(.16,1,.3,1)),
             box-shadow .45s var(--ease-out,cubic-bezier(.16,1,.3,1));
}
@media (hover:hover){
  .anna-hk .menu-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 44px rgba(26,18,10,.13);
  }
}

/* One frame for every card — that is what makes the heights equal.
   Landscape photos are centre-cropped into it; object-position can be
   nudged per breakpoint from the Style tab if a subject sits off-centre. */
.anna-hk .menu-card__photo{
  display:block;position:relative;width:100%;flex:0 0 auto;
  aspect-ratio: var(--anna-hk-frame, 1 / 1);
  background:
    radial-gradient(circle at 32% 28%,rgba(217,168,125,.30),transparent 62%),
    linear-gradient(135deg,rgba(195,136,93,.14),rgba(0,72,69,.08));
  overflow:hidden;
}
.anna-hk .menu-card__photo img{
  width:100%;height:100%;display:block;object-fit:cover;
  /* A hair over 1: several of the phone shots carry a dark 1-2px strip on
     their top edge, and a square crop of a landscape frame uses the full
     height, so that strip lands inside the card. This pushes it out. */
  transform:scale(1.02);
  transition:transform .7s var(--ease-out,cubic-bezier(.16,1,.3,1));
}
@media (hover:hover){
  .anna-hk .menu-card:hover .menu-card__photo img{transform:scale(1.055);}
}
/* No photo yet — a deliberate placeholder, same frame as everyone else
   so the row stays level: a branded doughnut mark plus a quiet label, so
   it reads as "photo coming" rather than as a broken image. */
.anna-hk .menu-card__photo.is-empty::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.62) 0 13%, transparent 14%),
    radial-gradient(circle at 50% 42%, var(--anna-hk-accent-soft) 0 29%, transparent 30%);
  opacity:.5;
}
.anna-hk .menu-card__photo-label{
  position:absolute;inset-inline:0;bottom:12%;z-index:1;
  text-align:center;font-size:10.5px;font-weight:600;letter-spacing:.04em;
  color:var(--anna-hk-accent-dark);opacity:.72;
}
@media (max-width:680px){ .anna-hk .menu-card__photo-label{font-size:9px;bottom:9%;} }

.anna-hk .menu-card__body{
  flex:1 1 auto;
  padding:clamp(11px,1.1vw,15px) clamp(12px,1.2vw,16px) clamp(13px,1.3vw,17px);
  display:flex;flex-direction:column;gap:7px;
}
.anna-hk .menu-card__top{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
}
.anna-hk .menu-card__name{
  font-size:clamp(14.5px,1.1vw,16.5px);font-weight:800;letter-spacing:-.01em;
  color:var(--ink,#1A120A);line-height:1.25;min-width:0;
}
.anna-hk .menu-card__tag{
  display:inline-block;margin-inline-start:8px;font-family:var(--mono,monospace);
  font-size:9px;letter-spacing:.14em;color:var(--green,#004845);
  background:rgba(0,72,69,.09);border-radius:100px;padding:2px 9px;vertical-align:middle;
}
.anna-hk .menu-card__desc{
  font-size:12.5px;line-height:1.55;color:var(--ink-soft,#5A4030);margin:0;
}

/* Price — the one number that has to read instantly across a grid. */
.anna-hk .menu-card__price-wrap{flex:0 0 auto;text-align:start;}
.anna-hk .menu-card__price{
  flex:0 0 auto;font-family:var(--mono,monospace);font-size:clamp(14px,1.1vw,16px);
  font-weight:700;color:var(--anna-hk-accent-dark);white-space:nowrap;
  /* The price is a number in an RTL line: keep it an LTR island. */
  direction:ltr;unicode-bidi:isolate;
}
.anna-hk .menu-card__price.soft{font-family:var(--sans,sans-serif);font-size:13px;font-weight:600;color:var(--ink-mute,#8A7060);}
.anna-hk .menu-card__price-alt{
  display:block;font-family:var(--sans,sans-serif);font-size:11px;font-weight:500;
  color:var(--ink-mute,#8A7060);margin-top:2px;direction:ltr;unicode-bidi:isolate;
}

/* Kashrut / diet badges — פרווה · חלבי · טבעונית */
.anna-hk .menu-card__badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;}
.anna-hk .menu-badge{
  font-size:10.5px;font-weight:700;letter-spacing:.02em;line-height:1;
  padding:5px 10px;border-radius:100px;
  background:rgba(0,72,69,.07);color:var(--green,#004845);
  border:1px solid rgba(0,72,69,.14);
}
.anna-hk .menu-badge--milk{
  background:rgba(242,202,198,.34);color:#9A4A52;border-color:rgba(242,202,198,.7);
}
.anna-hk .menu-badge--vegan{
  background:rgba(10,90,86,.09);color:var(--green-light,#0A5A56);border-color:rgba(10,90,86,.2);
}

/* ── Categories with no photos at all: compact rows, not a grid of
   empty tiles. The widget picks this per category on its own, so the
   page upgrades itself the moment a photo is added. ───────────── */
.anna-hk .menu-rows{display:grid;grid-template-columns:1fr 1fr;gap:clamp(6px,1.2vw,18px) clamp(28px,5vw,68px);}
.anna-hk .menu-row{
  display:grid;grid-template-columns:1fr auto;column-gap:16px;align-items:start;
  padding:14px 0;border-bottom:1px dashed rgba(26,18,10,.12);
}
.anna-hk .menu-row__name{font-size:clamp(16px,1.4vw,19px);font-weight:700;color:var(--ink,#1A120A);display:block;}
.anna-hk .menu-row__desc{font-size:13.5px;line-height:1.6;color:var(--ink-soft,#5A4030);display:block;margin-top:3px;}
.anna-hk .menu-row__price{
  font-family:var(--mono,monospace);font-size:16px;font-weight:700;color:var(--anna-hk-accent-dark);
  white-space:nowrap;direction:ltr;unicode-bidi:isolate;
}
.anna-hk .menu-row__price.soft{font-family:var(--sans,sans-serif);font-size:13px;font-weight:600;color:var(--ink-mute,#8A7060);}

/* ── Breakpoints ──────────────────────────────────────────────── */
@media (max-width:1024px){
  .anna-hk{--anna-hk-cols:3;}
}
@media (max-width:820px){
  .anna-hk{--anna-hk-cols:2;}
}
@media (max-width:680px){
  /* Two columns stay on the phone on purpose: at one column the photos
     become so tall that a category needs five screens to scroll past. */
  .anna-hk{--anna-hk-cols:2;--anna-hk-gap:11px;}
  .anna-hk .menu-card{border-radius:var(--r-sm,14px);}
  .anna-hk .menu-card__body{padding:11px 12px 13px;gap:5px;}
  .anna-hk .menu-card__name{font-size:14.5px;}
  .anna-hk .menu-card__desc{font-size:12.5px;line-height:1.5;}
  .anna-hk .menu-card__price{font-size:14.5px;}
  .anna-hk .menu-card__top{flex-direction:column;align-items:flex-start;gap:3px;}
  .anna-hk .menu-rows{grid-template-columns:1fr;}
  /* Phones carry the scroll, not the GPU: no lift, no zoom. */
  .anna-hk .menu-card{transition:none;}
  .anna-hk .menu-card__photo img{transition:none;transform:scale(1.02);}
}
