/* ==========================================================================
   Menu page (Figma: Menu – Desktop 1680 / 1440 / Mobile 390, Design v4)
   ========================================================================== */

/* ---------- 1. Hero (Hero pattern) ---------- */
/* 569×720 cut-out at 1680, 488×617 at 1440 (Figma 1440 frame); stamp 184 → 158 */
.page-menu .page-hero__media { left: calc(50% + 150px - 2.917vw); top: 130px; width: clamp(488px, calc(33.75vw + 2px), 569px); height: clamp(617px, calc(42.917vw - 1px), 720px); }
.page-menu .page-hero .stamp { left: calc(50% + 46px - 1.5vw); top: 508px; width: clamp(158px, calc(10.833vw + 2px), 184px); height: auto; aspect-ratio: 1; transform-origin: 0 0; transform: rotate(12deg); }

/* ---------- Mobile swipe rows: arrows + dots (uses the shared [data-slider] script) ---------- */

/* ---------- 2. The chicken (format cards) ---------- */
.chicken {
  display: flex; flex-direction: column; align-items: center; gap: 56px;
  padding-top: 80px; padding-bottom: 100px;
  background: var(--cream);
}
.chicken .section-head { max-width: 820px; }
.row-slider { width: 100%; }

.format-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.format-card {
  min-height: 420px;
  /* insets shrink a little towards 1440 (Figma: image 20 → 18, text 28 → 25) */
  padding: 20px clamp(18px, calc(0.833vw + 6px), 20px) 28px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--white);
}
.format-card__img { height: 260px; flex: none; }
.format-card__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3)); }
.format-card__title { margin: 12px clamp(7px, calc(0.417vw + 1px), 8px) 0; font-size: clamp(33px, calc(0.417vw + 27px), 34px); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; }
.format-card__text { margin: 10px clamp(7px, calc(0.417vw + 1px), 8px) 0; font-size: 16px; font-weight: 500; line-height: 20px; }
.format-card--dark { background: var(--char); }
.format-card--red { background: var(--red); }
.format-card--wine { background: #8E1220; }

/* ---------- 3. Sauces ---------- */
.sauces {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 64px;
  padding-top: 80px; padding-bottom: 100px;
  background: var(--cream);
}
.sauces .section-head { max-width: 820px; }
.sauce-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 32px; }
.sauce {
  padding: 16px 16px 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--char);
  display: flex; flex-direction: column; gap: 10px;
}
.sauce__img { flex: none; height: 200px; border-radius: 8px; overflow: hidden; background: #000; }
.sauce__img img { width: 100%; height: 100%; object-fit: cover; }
.sauce__title { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.sauce__text { font-size: 16px; line-height: 1.55; letter-spacing: -0.001em; }
.spice { display: flex; align-items: center; gap: 6px; }
.chili {
  flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M14.06 5.5c3.05 0 4.89 2.44 4.89 5.5 0 4.89-4.89 8.56-12.83 9.17 3.66-1.84 5.5-4.89 5.5-9.17 0-3.06.61-5.5 2.44-5.5Z' fill='%23fff' stroke='%23A7A9AC' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M14.06 5.5c0-1.83.85-3.06 2.44-3.67' stroke='%23A7A9AC' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chili--on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M14.06 5.5c3.05 0 4.89 2.44 4.89 5.5 0 4.89-4.89 8.56-12.83 9.17 3.66-1.84 5.5-4.89 5.5-9.17 0-3.06.61-5.5 2.44-5.5Z' fill='%23E31937' stroke='%23E31937' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M14.06 5.5c0-1.83.85-3.06 2.44-3.67' stroke='%23E31937' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.spice__note { margin-left: 0; font-size: 13px; line-height: 16px; color: var(--muted); }

.sauces__cta {
  display: flex; align-items: center; gap: 24px;
  max-width: 100%;
  padding: 16px 16px 16px 40px;
  border-radius: var(--radius-img);
  background: var(--char);
  color: var(--white);
}
.sauces__cta-text { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.sauces__cta .btn { flex: none; }
.sauces__cta .btn:hover { box-shadow: none; }
/* 164×208 at 1680, 141×178 at 1440; its top stays 70px above the mid-page CTA */
.sauces__peek {
  position: absolute; left: calc(50% + clamp(425px, calc(20vw + 137px), 473px)); bottom: clamp(46px, calc(250px - 12.154vw), 76px);
  width: clamp(141px, calc(9.583vw + 3px), 164px); height: auto; aspect-ratio: 164 / 208; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18));
  pointer-events: none;
}

/* ---------- 4. Sides (gradient band, glass cards with photos) ---------- */
.sides {
  display: flex; flex-direction: column; align-items: center; gap: 56px;
  padding-top: 144px; padding-bottom: 144px;
  color: var(--white);
  background:
    radial-gradient(55.6% 45.5% at 50% 50%, rgba(34, 30, 31, .78) 0%, rgba(34, 30, 31, .45) 45%, rgba(34, 30, 31, 0) 80%),
    linear-gradient(180deg, rgba(34, 30, 31, .35) 0%, rgba(34, 30, 31, .25) 45%, rgba(34, 30, 31, .55) 100%),
    radial-gradient(70% 90% at 0% 0%, rgba(176, 18, 34, .95) 0%, rgba(110, 16, 28, .5) 50%, rgba(26, 14, 16, 0) 100%),
    #1A0E10;
}
.sides .section-head { max-width: 860px; }
.sides .lead { max-width: 720px; color: var(--muted-light); }
.side-grid { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.side-card {
  min-height: 362px;
  padding: 28px 28px 32px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-img);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 12px;
}
.side-card__img { flex: none; height: 170px; border-radius: 8px; overflow: hidden; background: #fff; }
.side-card__img img { width: 100%; height: 100%; object-fit: cover; }
.side-card__title { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
.side-card__text { font-size: 16px; line-height: 1.55; color: var(--muted-light); }
.sides__cta { justify-content: center; }

/* ---------- 5. Closing CTA ---------- */
.page-menu .closing { padding-bottom: 210px; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .page-menu .page-hero__media { left: auto; right: -40px; top: 170px; width: 420px; height: 532px; }
  .page-menu .page-hero__text { max-width: calc(100% - 400px); }
  .page-menu .page-hero .stamp { left: auto; right: 300px; top: auto; bottom: 40px; width: 140px; height: 140px; }

  .format-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .sauce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sauces { padding-bottom: 260px; }
  .sauces__peek { left: 50%; bottom: 24px; transform: translateX(-50%); }
  .side-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-menu .closing { padding-bottom: 180px; }
}

/* small tablet: image above the text, as on mobile */
@media (max-width: 1023px) {
  .page-menu .page-hero { flex-direction: column; gap: 24px; padding-top: 150px; }
  .page-menu .page-hero__media { position: relative; right: auto; top: auto; width: 400px; height: 506px; max-width: 100%; }
  .page-menu .page-hero__text { max-width: 640px; }
  .page-menu .page-hero .stamp { left: calc(var(--gutter) - 8px); right: auto; top: 470px; bottom: auto; width: 130px; height: 130px; }
}

/* ---------- Mobile (390 reference) ---------- */
@media (max-width: 767px) {
  .page-menu .page-hero {
    gap: 18px; padding-top: 152px; padding-bottom: 48px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(227, 25, 55, .5) 0%, rgba(140, 24, 30, .15) 60%, rgba(34, 30, 31, 0) 100%), var(--char);
  }
  .page-menu .page-hero__media { position: relative; left: auto; right: auto; top: auto; width: 300px; height: 380px; opacity: 1; }
  .page-menu .page-hero__media img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
  .page-menu .page-hero__text { max-width: none; }
  .page-menu .page-hero__text .lead { font-weight: 500; }
  .page-menu .page-hero .stamp { left: 12px; right: auto; top: 376px; bottom: auto; width: 101.2px; height: 101.2px; }

  /* swipe rows run to the right edge; the row itself bleeds to the left edge so the
     shared slider script can align cards on the 20px gutter */
  .row-slider { display: flex; flex-direction: column; gap: 20px; }
  .format-grid, .sauce-grid, .side-grid {
    display: flex; gap: 12px;
    width: auto; margin-left: -20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0 20px; scroll-padding-inline: 20px;
  }
  .format-grid::-webkit-scrollbar, .sauce-grid::-webkit-scrollbar, .side-grid::-webkit-scrollbar { display: none; }
  .format-grid > *, .sauce-grid > *, .side-grid > * { scroll-snap-align: start; }


  .chicken { align-items: stretch; gap: 20px; padding: 40px 0 48px 20px; }
  .chicken .section-head, .sauces .section-head { gap: 14px; padding-right: 20px; }
  .chicken .h2, .sauces .h2 { font-size: 32px; line-height: 1.06; }
  .format-card { flex: 0 0 250px; min-height: 320px; padding: 14px 14px 20px; border-radius: var(--radius-img); }
  .format-card__img { height: 152px; }
  .format-card__img img { filter: none; }
  .format-card__title { margin: 12px 6px 0; font-size: 28px; }
  .format-card__text { margin: 10px 6px 0; font-size: 15px; line-height: 1.2; }

  .sauces { align-items: stretch; gap: 20px; padding: 40px 0 56px 20px; }
  .sauce-grid { align-items: stretch; }
  .sauce { flex: 0 0 280px; min-height: 326px; padding: 14px 14px 20px; border-radius: var(--radius-img); gap: 8px; }
  .sauce__img { height: 170px; }
  .sauce__title { font-size: 22px; }
  .sauces__cta { flex-direction: column; align-items: stretch; gap: 14px; margin-right: 20px; padding: 20px; border-radius: var(--radius-img); }
  .sauces__cta-text { font-size: 22px; line-height: 1.15; }
  .sauces__cta .btn { justify-content: space-between; }
  .sauces__peek {
    position: static; transform: none;
    align-self: center; margin-left: -20px;
    width: 176px; height: 223px;
    filter: drop-shadow(0 6px 14.4px rgba(0, 0, 0, .18));
  }

  .sides {
    align-items: stretch; gap: 20px;
    padding: 230px 0 64px 20px;
    background:
      linear-gradient(180deg, rgba(34, 30, 31, 0) 30%, var(--char) 62%) top / 100% 520px no-repeat,
      radial-gradient(120% 60% at 0% 0%, rgba(176, 18, 34, .95) 0%, rgba(110, 16, 28, .5) 50%, rgba(34, 30, 31, 0) 100%) top / 100% 520px no-repeat,
      var(--char);
  }
  .sides .section-head { gap: 16px; padding-right: 20px; }
  .sides .h2 { font-size: 34px; line-height: 1.04; }
  .sides .lead { color: rgba(255, 255, 255, .85); }
  .side-card { flex: 0 0 260px; min-height: 297px; padding: 22px 22px 26px; border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); gap: 10px; }
  .side-card__img { height: 160px; }
  .side-card__title { font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
  .side-card__text { font-size: 15px; line-height: 1.48; color: rgba(255, 255, 255, .78); }
  .sides__cta { padding-right: 20px; }
  .sides__cta .btn--cream { --btn-bg: var(--red); --btn-fg: var(--white); --chip-bg: var(--white); --chip-fg: var(--red); }

  .page-menu .closing { padding-bottom: 78px; }
}
