/* Mobile burger menu — shared by index, bookings, training and blog.
   Markup lives in each page's <header> (the .mm-burger button) plus a
   sibling .mm-sheet after the header. The sheet must NOT sit inside the
   header: the header's backdrop-filter would become the containing block
   for position:fixed and trap the sheet inside the header's box.
   State is a class on <html> (set by mobile-menu.js), which the dc-runtime
   never renders, so React re-renders can't reset it. */

.mm-burger, .mm-sheet { display: none; }

@media (max-width: 760px) {
  [data-navcta] { display: none !important; }

  .mm-burger {
    position: relative;
    display: inline-flex;
    flex: none;
    width: 46px; height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .25s ease, background-color .25s ease;
  }
  .mm-burger:focus-visible { outline: 2px solid var(--accent, #E8B24A); outline-offset: 3px; }
  .mm-burger span {
    position: absolute;
    left: 13px;
    width: 18px; height: 1.5px;
    border-radius: 2px;
    background: #EAEDF6;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease, width .3s ease, background-color .25s ease, top .3s ease;
  }
  .mm-burger span:nth-child(1) { top: 16px; }
  .mm-burger span:nth-child(2) { top: 22px; }
  .mm-burger span:nth-child(3) { top: 28px; left: 19px; width: 12px; background: var(--accent, #E8B24A); }

  html.mm-open .mm-burger { border-color: rgba(232,178,74,.55); background: rgba(232,178,74,.10); }
  html.mm-open .mm-burger span { background: var(--accent, #E8B24A); }
  html.mm-open .mm-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  html.mm-open .mm-burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  html.mm-open .mm-burger span:nth-child(3) { top: 22px; left: 13px; width: 18px; transform: rotate(-45deg); }

  .mm-sheet {
    position: fixed;
    inset: 0;
    z-index: 49; /* under the header (50), so the logo and the X stay on top */
    display: flex;
    flex-direction: column;
    padding: 104px 24px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0%, rgba(232,178,74,.16) 0%, rgba(232,178,74,.04) 30%, rgba(0,0,0,0) 55%),
      rgba(7,8,14,.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: 'Hanken Grotesque', system-ui, sans-serif;
    color: #EAEDF6;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  html.mm-open .mm-sheet { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
  html.mm-open, html.mm-open body { overflow: hidden; }

  .mm-eyebrow {
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent, #E8B24A);
  }
  .mm-list { display: flex; flex-direction: column; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: mm; }
  .mm-list li {
    counter-increment: mm;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  }
  html.mm-open .mm-list li { opacity: 1; transform: none; }
  html.mm-open .mm-list li:nth-child(1) { transition-delay: .04s; }
  html.mm-open .mm-list li:nth-child(2) { transition-delay: .08s; }
  html.mm-open .mm-list li:nth-child(3) { transition-delay: .12s; }
  html.mm-open .mm-list li:nth-child(4) { transition-delay: .16s; }
  html.mm-open .mm-list li:nth-child(5) { transition-delay: .20s; }
  html.mm-open .mm-list li:nth-child(6) { transition-delay: .24s; }

  .mm-list a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    text-decoration: none;
    color: #EAEDF6;
  }
  .mm-list a::before {
    content: counter(mm, decimal-leading-zero);
    width: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--accent, #E8B24A);
  }
  .mm-list a::after { content: "→"; color: #99a0b3; font-size: 18px; transition: transform .2s ease, color .2s ease; }
  .mm-list a:active::after, .mm-list a:hover::after { color: var(--accent, #E8B24A); transform: translateX(3px); }
  .mm-list a[aria-current="page"] { color: var(--accent, #E8B24A); }
  .mm-label {
    flex-grow: 1;
    font-family: 'Newsreader', serif;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.01em;
  }

  .mm-foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
  .mm-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    background: var(--accent, #E8B24A);
    color: #1a1304;
    font-weight: 700;
    font-size: 17px;
    padding: 17px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 40px -10px var(--accent, #E8B24A);
  }
  .mm-note { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: #99a0b3; }
  .mm-note a { color: var(--accent, #E8B24A); font-weight: 600; text-decoration: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mm-sheet, .mm-list li, .mm-burger span { transition: none !important; }
}

@media (max-width: 760px) {
  .mm-social {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #EAEDF6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
  .mm-social svg { color: var(--accent, #E8B24A); }
}
