/* Mobile navigation drawer — shown where the desktop nav is hidden (<=900px) */
.nav-toggle,
.mobile-menu {
  display: none;
}

@media (width<=900px) {
  .nav-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    color: #0b2a57;
    flex: none;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    display: flex;
  }

  .nav-toggle-bars {
    width: 23px;
    height: 13px;
    display: block;
    position: relative;
  }

  .nav-toggle-bars span {
    background: currentColor;
    border-radius: 2px;
    height: 1.5px;
    position: absolute;
    left: 0;
    right: 0;
  }

  .nav-toggle-bars span:nth-child(1) { top: 0 }
  .nav-toggle-bars span:nth-child(2) { top: 6px }
  .nav-toggle-bars span:nth-child(3) { top: 12px }

  .mobile-menu {
    z-index: 60;
    visibility: hidden;
    display: block;
    position: fixed;
    inset: 0;
  }

  .mobile-menu.is-open { visibility: visible }

  .mobile-menu-scrim {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background: #0b2a5761;
    opacity: 0;
    transition: opacity .32s ease;
    position: absolute;
    inset: 0;
  }

  .mobile-menu.is-open .mobile-menu-scrim { opacity: 1 }

  .mobile-menu-panel {
    background: linear-gradient(180deg, #fffdfc 0%, #fff7f5 100%);
    flex-direction: column;
    width: min(360px, 86vw);
    padding: 0 clamp(22px, 5vw, 34px) 34px;
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -24px 0 60px #0b2a5726;
  }

  .mobile-menu.is-open .mobile-menu-panel { transform: none }

  .mobile-menu-top {
    flex: none;
    justify-content: space-between;
    align-items: center;
    height: 88px;
    display: flex;
  }

  .mobile-menu-label {
    color: #8f9cb2;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-menu-close {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    color: #0b2a57;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    position: relative;
  }

  .mobile-menu-close span {
    background: currentColor;
    border-radius: 2px;
    width: 21px;
    height: 1.5px;
    position: absolute;
    top: 50%;
    left: 50%;
  }

  .mobile-menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg) }
  .mobile-menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg) }

  .mobile-menu-panel nav {
    border-top: 1px solid #ead9d7;
    flex-direction: column;
    gap: 0;
    font-size: inherit;
    display: flex;
  }

  .mobile-menu-panel nav a {
    color: #0b2a57;
    border-bottom: 1px solid #ead9d7;
    justify-content: space-between;
    align-items: center;
    padding: 19px 2px;
    font-family: Georgia, Times New Roman, serif;
    font-size: 20px;
    display: flex;
  }

  .mobile-menu-panel nav a:hover { color: #c97f79 }

  .mobile-menu-panel .active-nav { color: var(--gold) }

  .mobile-menu-panel .active-nav:after {
    background: var(--gold);
    border-radius: 50%;
    flex: none;
    width: 6px;
    height: 6px;
    position: static;
  }

  .mobile-menu-cta {
    text-align: center;
    letter-spacing: .9px;
    width: 100%;
    margin-top: 34px;
    padding: 18px 16px;
    font-size: 10px;
  }

  .mobile-menu-contact {
    border-top: 1px solid #ead9d7;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
    padding-top: 26px;
    display: flex;
  }

  .mobile-menu-contact b {
    color: #8f9cb2;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-size: 9px;
  }

  .mobile-menu-contact a {
    color: #31496d;
    font-family: Georgia, Times New Roman, serif;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  body.menu-open { overflow: hidden }
}

@media (width<=560px) {
  .mobile-menu-top { height: 76px }
  .mobile-menu-panel nav a { font-size: 19px }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-scrim,
  .mobile-menu-panel { transition: none }
}
