/* Mazhaka Foundation V39 | Mobile navigation refinement.
   Menu-only visual override; the desktop navigation and page are untouched. */
@media (max-width: 999px) {
  .mobile-menu {
    inset: 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: 0 clamp(23px, 6vw, 56px);
    gap: 0;
    background: #071f18;
    color: #f5efe4;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .32s cubic-bezier(.2,.7,.2,1),
                opacity .27s ease, visibility 0s .32s;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .27s ease;
  }
  .mobile-menu-content {
    width: 100%;
    max-width: 620px;
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h, 64px) + clamp(44px, 7vh, 76px)) 0
             calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-primary { width: 100%; }
  .mobile-menu-kicker {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 23px;
    color: #d98b56;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .17em;
    text-transform: uppercase;
  }
  .mobile-menu-kicker::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    flex: 0 0 20px;
    background: currentColor;
  }
  .mobile-menu .mobile-menu-primary > a:not(.small) {
    display: flex;
    align-items: center;
    min-height: clamp(62px, 8vh, 76px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(241, 235, 223, .16);
    font-family: var(--sans);
    font-size: clamp(29px, 6.9vw, 38px);
    font-weight: 450;
    font-style: normal;
    line-height: 1.14;
    letter-spacing: -.037em;
    color: #f5efe4;
    transition: color .2s ease, padding-left .2s ease;
  }
  .mobile-menu .mobile-menu-primary > a:hover,
  .mobile-menu .mobile-menu-primary > a:focus-visible {
    color: #e7a06c;
    padding-left: 5px;
  }
  .mobile-menu-bottom {
    margin-top: auto;
    padding-top: clamp(34px, 6.5vh, 62px);
  }
  .mobile-menu a.mobile-menu-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid #dc7944;
    border-radius: 100px;
    background: #cf6a35;
    color: #fffaf3;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.005em;
    transition: background .2s ease;
  }
  .mobile-menu .mobile-menu-action:hover { background: #df7b45; }
  .mobile-menu-bottom-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid rgba(241, 235, 223, .16);
  }
  .mobile-menu a.mobile-menu-story {
    padding: 5px 0;
    border: 0;
    margin: 0;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    color: #e6c3a8;
    text-decoration: underline;
    text-decoration-color: rgba(230, 195, 168, .4);
    text-underline-offset: 4px;
  }
  .mobile-menu .mobile-menu-story:hover { color: #fff4e9; }
  .mobile-menu-location {
    color: rgba(245, 239, 228, .48);
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .015em;
  }
  .site-header.menu-open {
    height: var(--header-h, 64px);
    background: #071f18;
    color: #f5efe4;
    box-shadow: none;
  }
  .site-header.menu-open .menu-btn,
  .site-header.menu-open .menu-btn:hover {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .site-header.menu-open .menu-btn span {
    height: 1.7px;
    background: #f5efe4;
  }
  .site-header.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
  .site-header.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
}
@media (max-width: 380px) {
  .mobile-menu .mobile-menu-primary > a:not(.small) { font-size: clamp(27px, 7.6vw, 32px); min-height: 59px; }
  .mobile-menu-content { padding-top: calc(var(--header-h, 64px) + 34px); }
}
@media (max-width: 999px) and (max-height: 690px) {
  .mobile-menu-content { padding-top: calc(var(--header-h, 64px) + 24px); }
  .mobile-menu-kicker { margin-bottom: 12px; }
  .mobile-menu .mobile-menu-primary > a:not(.small) { min-height: 52px; padding-block: 7px; font-size: clamp(26px, 6.2vw, 32px); }
  .mobile-menu-bottom { padding-top: 25px; }
  .mobile-menu-bottom-line { margin-top: 16px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.open, .mobile-menu .mobile-menu-primary > a,
  .mobile-menu a.mobile-menu-action { transition: none !important; }
}
