/*--------------------------------------------------------------
# Mobile / tablet header + full-screen menu (below 992px)
# Desktop (992px+) is unchanged.
--------------------------------------------------------------*/
.mm-toggle,
.mm { display: none; }

@media (max-width: 991.98px) {
  /* Header: one clean row, logo left, menu button right */
  #header {
    background: #000;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  }
  #header > .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    max-width: none;
    flex-wrap: nowrap;
  }
  #header .logo { width: auto; max-height: none; }
  #header .logo img { height: 36px; max-height: 36px; width: auto; display: block; }
  #navbar { display: none !important; }

  /* While the menu is open the header sits on top of it, so the logo stays put
     and the burger itself turns into the close (X) button. */
  html.mm-open #header { z-index: 1001; background: transparent; transition: none; }

  /* Burger: three equal lines -> X */
  .mm-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mm-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, top .3s cubic-bezier(.4, 0, .2, 1);
  }
  .mm-toggle span:nth-child(1) { top: 15px; }
  .mm-toggle span:nth-child(2) { top: 21px; }
  .mm-toggle span:nth-child(3) { top: 27px; }
  .mm-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .mm-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .mm-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .mm-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }

  /* Full-screen overlay */
  .mm {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(255, 255, 255, .06), transparent 60%),
      #070707;
    color: #fff;
    padding:
      calc(64px + env(safe-area-inset-top, 0px))
      max(16px, env(safe-area-inset-right, 0px))
      calc(24px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .mm[hidden] { display: none; }
  .mm.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  html.mm-open, html.mm-open body { overflow: hidden; }

  .mm__body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-top: clamp(12px, 4vh, 40px);
  }

  /* Links */
  .mm__nav { display: flex; flex-direction: column; }
  .mm__nav a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: clamp(8px, 1.6vh, 14px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 5.6vw, 28px);
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: color .2s, opacity .4s ease, transform .4s ease;
  }
  .mm__nav a span {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .45);
    min-width: 20px;
  }
  .mm__nav a:hover, .mm__nav a:focus-visible { color: rgba(255, 255, 255, .7); outline: none; }
  .mm.is-open .mm__nav a { opacity: 1; transform: none; }
  .mm.is-open .mm__nav a:nth-child(1) { transition-delay: .04s; }
  .mm.is-open .mm__nav a:nth-child(2) { transition-delay: .08s; }
  .mm.is-open .mm__nav a:nth-child(3) { transition-delay: .12s; }
  .mm.is-open .mm__nav a:nth-child(4) { transition-delay: .16s; }
  .mm.is-open .mm__nav a:nth-child(5) { transition-delay: .20s; }
  .mm.is-open .mm__nav a:nth-child(6) { transition-delay: .24s; }

  /* Call / directions */
  .mm__side { display: flex; flex-direction: column; gap: 22px; }
  .mm__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .mm__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .6);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .5px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
  }
  .mm__btn:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
  .mm__btn--gold { background: #fff; border-color: #fff; color: #000; }
  .mm__btn--gold:hover { background: rgba(255, 255, 255, .85); color: #000; }

  /* Hours / address */
  .mm__info {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
  }
  .mm__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
  }
  .mm__status i { color: rgba(255, 255, 255, .4); }
  .mm__status.is-open i { color: #6fcf8a; }
  .mm__hours { list-style: none; margin: 0 0 12px; padding: 0; }
  .mm__hours li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .1);
  }
  .mm__hours li.is-today { color: #fff; font-weight: 600; }
  .mm__address { margin: 0 0 14px; font-style: normal; }
  .mm__social { display: flex; gap: 10px; }
  .mm__social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 16px;
    transition: border-color .2s, background .2s;
  }
  .mm__social a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
}

/* Wide-but-not-desktop screens: unfolded foldables, small tablets, landscape phones.
   Two columns: links left, details right. */
@media (min-width: 640px) and (max-width: 991.98px) and (min-aspect-ratio: 1/1),
       (min-width: 720px) and (max-width: 991.98px) {
  .mm__body {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: clamp(28px, 6vw, 64px);
  }
  .mm__nav a { font-size: clamp(20px, 2.9vw, 27px); }
  .mm__side { padding-top: 8px; }
}

/* Short screens (landscape phones): tighter links */
@media (max-width: 991.98px) and (max-height: 480px) {
  .mm__body { padding-top: 6px; }
  .mm__nav a { font-size: 19px; padding: 7px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mm, .mm__nav a, .mm-toggle span { transition: none !important; }
}
