/* Phone/tablet menu styles (2026-10-10). body[data-nav] picks one; 'classic' keeps the old
   site's off-canvas panel (site.css). All the new styles share a slim sticky bar that tucks
   away while scrolling down; they differ in how the menu itself opens:
     sheet    rises from the bottom, swipe down to close
     overlay  full-screen green panel that opens in a circle from the menu button
     tabs     app-style tab bar along the bottom; "More" opens the sheet
     pill     floating "Menu · Order Now" capsule that grows into the menu card
   mnav.js does the opening/closing, swipe, focus and back-button handling. */

.mbar, .mnav, .mtabs, .mpill { display: none; }

/* Lab switcher (staging and local only): menu style and footer style */
.navlab {
  position: fixed; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 950;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(19, 49, 21, .92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  font: 500 12px/1 Roboto, sans-serif; color: #f3ebe1;
}
.navlab select { padding: 5px 6px; border: 0; border-radius: 999px; font: 500 12px Roboto, sans-serif; }
.navlab__reset { color: inherit; font: 500 12px Roboto, sans-serif; text-decoration: underline; white-space: nowrap; }
@media (max-width: 767px) {
  /* phones: the switcher wraps onto several lines instead of running off the screen */
  .navlab { right: 10px; flex-wrap: wrap; row-gap: 6px; border-radius: 16px; }
}
@media (min-width: 1025px) { .navlab__nav { display: none; } }  /* menu styles only apply below 1025px */
body[data-nav="tabs"] .navlab { bottom: calc(76px + env(safe-area-inset-bottom)); }
body[data-nav="pill"] .navlab { bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (max-width: 1024px) {
  /* !important: the old theme's per-device header rules (devices/*.css) are more specific */
  body:not([data-nav="classic"]) .mainbar { display: none !important; }
  body:not([data-nav="classic"]) .site-header { padding-top: 64px; }
  html.mnav-lock, html.mnav-lock body { overflow: hidden; }

  /* ---------- slim bar ---------- */
  body:not([data-nav="classic"]) .mbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    display: flex; align-items: center; gap: 10px;
    height: 64px; padding: 0 12px 0 14px; padding-top: env(safe-area-inset-top);
    background: #f3ebe2 var(--tile) 0 0 / 700px;
    box-shadow: 0 1px 0 rgba(19, 49, 21, .08);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
  }
  .mbar.is-scrolled { box-shadow: 0 6px 18px -8px rgba(19, 49, 21, .35); }
  .mbar.is-hidden { transform: translateY(-100%); }
  .mbar__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
  .mbar__brand img { width: 46px; height: 46px; }
  .mbar__brand span { display: grid; font: 400 25px/1 var(--tanker); letter-spacing: 1px; color: var(--red); }
  /* "Wholesale" stacked and centred under the name, like the logo (the padding balances the letter-spacing after the last letter) */
  .mbar__brand small { justify-self: center; margin-top: 2px; padding-left: 4px; font: 400 12.5px/1 var(--tanker); letter-spacing: 4px; color: var(--green-dark); }
  .mbar__icon, .mbar__menu {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
  }
  .mbar__icon { border: 1.5px solid rgba(19, 49, 21, .25); }
  .mbar__icon .icon { width: 18px; height: 18px; fill: var(--green-dark); }
  .mbar__menu { border: 0; background: var(--red); cursor: pointer; }
  .mbar__lines { position: relative; display: block; width: 20px; height: 14px; }
  .mbar__lines i {
    position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: #fff;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, top .3s;
  }
  .mbar__lines i:nth-child(1) { top: 0; }
  .mbar__lines i:nth-child(2) { top: 5.75px; }
  .mbar__lines i:nth-child(3) { top: 11.5px; }
  [aria-expanded="true"] > .mbar__lines i:nth-child(1) { top: 5.75px; transform: rotate(45deg); }
  [aria-expanded="true"] > .mbar__lines i:nth-child(2) { opacity: 0; }
  [aria-expanded="true"] > .mbar__lines i:nth-child(3) { top: 5.75px; transform: rotate(-45deg); }

  /* ---------- shared menu contents ---------- */
  body:not([data-nav="classic"]) .mnav { display: block; position: fixed; inset: 0; z-index: 1000; }
  .mnav { visibility: hidden; }
  .mnav.is-open, .mnav.is-closing { visibility: visible; }
  .mnav__scrim {
    position: absolute; inset: 0;
    background: rgba(19, 49, 21, .45);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .3s;
  }
  .mnav.is-open .mnav__scrim { opacity: 1; }
  .mnav__panel { position: absolute; outline: none; overscroll-behavior: contain; }
  .mnav__handle { display: none; }
  .mnav__close {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    display: grid; place-items: center;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(19, 49, 21, .07); cursor: pointer;
  }
  .mnav__close .icon { width: 14px; height: 20px; fill: var(--green-dark); }
  .mnav__links { margin: 0; padding: 0; list-style: none; }
  .mnav__links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(19, 49, 21, .1);
    font: 400 31px/1 var(--tanker); letter-spacing: 1px; color: var(--green-dark); text-decoration: none;
  }
  .mnav__links a .icon { width: 10px; height: 16px; fill: rgba(19, 49, 21, .35); transition: transform .2s; }
  .mnav__links a:active .icon { transform: translateX(4px); }
  .mnav__links a[aria-current] { color: var(--red); }
  .mnav__links a[aria-current] span::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--red); vertical-align: 6px; }
  .mnav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .mnav__btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; border-radius: 12px;
    font: 400 22px/1 var(--tanker); letter-spacing: 1px; color: #fff; text-decoration: none;
  }
  .mnav__btn .icon { width: 16px; height: 16px; fill: currentColor; }
  .mnav__btn--call { background: var(--green-dark); }
  .mnav__btn--order { background: var(--red); }
  .mnav__meta { margin: 16px 0 0; text-align: center; font: 400 16px/1.4 var(--ballinger); color: #6b665e; }
  .mnav__meta a { color: inherit; }
  .mnav__social { display: flex; justify-content: center; gap: 22px; margin: 14px 0 0; padding: 0; list-style: none; }
  .mnav__social a { display: grid; place-items: center; width: 40px; height: 40px; }
  .mnav__social .icon { width: auto; height: 19px; fill: var(--green-dark); }

  /* items slide in, one after another */
  .mnav.is-open .mnav__links li, .mnav.is-open .mnav__actions, .mnav.is-open .mnav__meta, .mnav.is-open .mnav__social {
    animation: mnav-item .45s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 35ms + 90ms);
  }

  /* ---------- sheet (also the tab bar's "More") ---------- */
  /* the site's paper, torn along the top (the torn-edge image used as a mask) */
  .mnav--sheet .mnav__panel, .mnav--tabs .mnav__panel {
    left: 0; right: 0; bottom: 0;
    max-height: 88dvh; overflow-y: auto;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    background: url("../img/lineart-dark.png") 0 0 / 520px, #f3ebe2 var(--tile) 0 0 / 700px;
    -webkit-mask: url("/media/textures/torn-paper-edge.png") left top / auto 30px repeat-x, linear-gradient(#000, #000) left 29px top 29px / 100% 100% no-repeat;
    mask: url("/media/textures/torn-paper-edge.png") left top / auto 30px repeat-x, linear-gradient(#000, #000) 0 29px / 100% 100% no-repeat;
    transform: translateY(105%);
    transition: transform .42s cubic-bezier(.2, .8, .2, 1);
  }
  .mnav--sheet.is-open .mnav__panel, .mnav--tabs.is-open .mnav__panel { transform: translateY(var(--drag, 0px)); }
  .mnav.is-dragging .mnav__panel { transition: none; }
  /* room for the close button above the first link */
  .mnav--sheet nav, .mnav--tabs nav, .mnav--pill nav { margin-top: 34px; }
  .mnav--pill .mnav__close { top: 12px; right: 12px; }
  .mnav--sheet .mnav__handle, .mnav--tabs .mnav__handle { display: block; width: 44px; height: 5px; margin: 2px auto 14px; border-radius: 3px; background: rgba(19, 49, 21, .25); }
  .mnav--sheet .mnav__close, .mnav--tabs .mnav__close { top: 26px; }
  .mnav--sheet .mnav__links a, .mnav--tabs .mnav__links a { border-bottom: 2px dashed rgba(40, 99, 48, .22); }

  /* ---------- full-screen overlay ---------- */
  .mnav--overlay .mnav__scrim { display: none; }
  .mnav--overlay .mnav__panel {
    inset: 0; overflow-y: auto;
    padding: calc(84px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
    background: var(--green-dark);
    clip-path: circle(0 at var(--ox, 90%) var(--oy, 32px));
    transition: clip-path .55s cubic-bezier(.65, 0, .35, 1);
  }
  .mnav--overlay.is-open .mnav__panel { clip-path: circle(150vmax at var(--ox, 90%) var(--oy, 32px)); }
  .mnav--overlay .mnav__panel::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url("/media/textures/food-line-art-pattern.png") 0 0 / 520px repeat; filter: invert(1); opacity: .08;
  }
  /* contents centred on tall screens; the auto margins keep it scrollable on short ones */
  .mnav--overlay .mnav__panel { display: flex; flex-direction: column; }
  .mnav--overlay nav { margin-top: auto; }
  .mnav--overlay .mnav__social { margin-bottom: auto; }
  .mnav__logo { display: none; }
  .mnav--overlay .mnav__logo {
    position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 14px;
    display: block; width: 48px; height: 48px;
  }
  .mnav--overlay .mnav__logo img { width: 100%; height: auto; }
  .mnav--overlay .mnav__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 12px; background: var(--red); }
  .mnav--overlay .mnav__close .icon { fill: #fff; }
  .mnav--overlay .mnav__links a { padding: 10px 0; border-color: rgba(243, 235, 225, .12); font-size: clamp(40px, 11vw, 56px); color: #f3ebe1; }
  .mnav--overlay .mnav__links a .icon { fill: rgba(243, 235, 225, .4); }
  .mnav--overlay .mnav__links a[aria-current] { color: #e2a24f; }
  .mnav--overlay .mnav__links a[aria-current] span::after { background: #e2a24f; }
  .mnav--overlay .mnav__btn--call { background: transparent; border: 1.5px solid rgba(243, 235, 225, .5); }
  .mnav--overlay .mnav__meta { color: rgba(243, 235, 225, .7); }
  .mnav--overlay .mnav__social .icon { fill: #f3ebe1; }
  .mnav--overlay.is-open .mnav__links li { animation-name: mnav-slide; }

  /* ---------- tab bar ---------- */
  body[data-nav="tabs"] { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body[data-nav="tabs"] .mtabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: url("../img/lineart-light.png") 0 0 / 520px, var(--green-dark);
    filter: drop-shadow(0 -6px 14px rgba(0, 0, 0, .25));
  }
  /* torn edge along the top, in the bar's green */
  body[data-nav="tabs"] .mtabs::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px;
    background: var(--green-dark);
    -webkit-mask: url("/media/textures/torn-paper-edge.png") left bottom / auto 26px repeat-x;
    mask: url("/media/textures/torn-paper-edge.png") left bottom / auto 26px repeat-x;
  }
  .mtabs a, .mtabs button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    height: 64px; border: 0; background: none;
    font: 400 14px/1 var(--tanker); letter-spacing: 1px; color: rgba(243, 235, 225, .72); text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mtabs__icon { display: grid; place-items: center; width: 50px; height: 30px; border-radius: 999px; transition: background-color .2s, transform .2s; }
  .mtabs .icon { width: 19px; height: 19px; fill: currentColor; }
  .mtabs a:active .mtabs__icon, .mtabs button:active .mtabs__icon { transform: scale(.92); }
  .mtabs a[aria-current], .mtabs button[aria-expanded="true"] { color: #fff; }
  .mtabs a[aria-current] .mtabs__icon, .mtabs button[aria-expanded="true"] .mtabs__icon { background: var(--red); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }

  /* ---------- floating pill ---------- */
  body[data-nav="pill"] { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body[data-nav="pill"] .mpill {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900;
    display: flex; align-items: stretch;
    padding: 5px;
    border-radius: 999px;
    background: var(--green-dark);
    box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .45);
    transform: translateX(-50%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s;
  }
  .mpill.is-tucked { transform: translate(-50%, 140%); }
  .mpill__menu, .mpill__order {
    display: flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 20px;
    border: 0; border-radius: 999px;
    font: 400 21px/1 var(--tanker); letter-spacing: 1px; color: #fff; text-decoration: none; white-space: nowrap;
  }
  .mpill__menu { background: none; cursor: pointer; }
  .mpill__order { background: var(--red); }
  .mnav--pill .mnav__panel {
    left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 100px); overflow-y: auto;
    padding: 22px 20px 20px;
    border-radius: 26px;
    background: url("../img/lineart-light.png") 0 0 / 520px, var(--green-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    transform-origin: 50% 100%;
    transform: translateY(20px) scale(.4, .15);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2, .9, .25, 1.08), opacity .2s;
  }
  .mnav--pill.is-open .mnav__panel { transform: none; opacity: 1; }
  .mnav--pill .mnav__close { background: var(--red); border-radius: 12px; }
  .mnav--pill .mnav__close .icon { fill: #fff; }
  .mnav--pill .mnav__links a { border-color: rgba(243, 235, 225, .12); color: #f3ebe1; }
  .mnav--pill .mnav__links a .icon { fill: rgba(243, 235, 225, .4); }
  .mnav--pill .mnav__links a[aria-current] { color: #e2a24f; }
  .mnav--pill .mnav__links a[aria-current] span::after { background: #e2a24f; }
  .mnav--pill .mnav__btn--call { background: transparent; border: 1.5px solid rgba(243, 235, 225, .5); }
  .mnav--pill .mnav__meta { color: rgba(243, 235, 225, .7); }
  .mnav--pill .mnav__social .icon { fill: #f3ebe1; }
  body[data-nav="pill"].mnav-open .mpill { opacity: 0; pointer-events: none; }
}

@keyframes mnav-item { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mnav-slide { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .mbar, .mnav__panel, .mnav__scrim, .mpill, .mbar__lines i { transition: none !important; }
  .mnav.is-open .mnav__links li, .mnav.is-open .mnav__actions, .mnav.is-open .mnav__meta, .mnav.is-open .mnav__social { animation: none !important; }
}
@media print { .mbar, .mnav, .mtabs, .mpill, .navlab { display: none !important; } }
