/* * WASIAT4D2 LP v1.0.5 — Stable non-fullscreen navigation drawer.
 * Preserve native document scrolling, browser chrome, viewport width and
 * scrollbar. This file intentionally loads after the other stylesheets. */

:root {
  --drawer-header-height: 84px;
  --drawer-duration: 300ms;
}

/* No body/html overflow overrides: retain the browser's native scroll. */

/* The backdrop overlays the page, but the navigation itself stays in a
 * bounded side panel instead of replacing the entire browser viewport. */

.mobile-menu {
  position: fixed;
  inset: var(--drawer-header-height) 0 0;
  z-index: 89;
  display: block;
  padding: 0;
  margin: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  opacity: 1;
  transform: none;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--drawer-duration);
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: none;
  transition: visibility 0s;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 8 10 / 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--drawer-duration) ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(410px, calc(100vw - 24px));
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: clamp(21px, 3.4vw, 33px);
  padding-bottom: calc(clamp(21px, 3.4vw, 33px) + env(safe-area-inset-bottom, 0px));
  background: #171515;
  color: #faf5ed;
  border-left: 1px solid rgb(255 255 255 / 11%);
  box-shadow: -16px 0 45px rgb(0 0 0 / 17%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(24px, 0, 0);
  transition: transform var(--drawer-duration) cubic-bezier(.22, .76, .24, 1),
    opacity var(--drawer-duration) ease;
  scrollbar-width: thin;
}

.mobile-menu.is-open .mobile-menu__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mobile-menu__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 37px;
  flex: 0 0 auto;
  margin-bottom: clamp(18px, 3.2vh, 32px);
  color: #bdb3aa;
  font: 700 11px/1.3 var(--body-font);
  letter-spacing: .14em;
}

.mobile-menu .mobile-menu__visual {
  position: absolute;
  inset: 0;
  opacity: .10;
  pointer-events: none;
}

.mobile-menu__nav {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 53px;
  padding: clamp(9px, 1.7vh, 13px) 0;
  gap: 12px;
  font-size: clamp(24px, 3.1vw, 36px);
  line-height: 1.1;
  letter-spacing: -.016em;
  overflow-wrap: anywhere;
}

.mobile-menu__nav a span {
  flex: 0 0 20px;
  font-size: 10px;
}

.mobile-menu__caption {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 28px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: #bfb6ac;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .1em;
}

.mobile-menu__caption span {
  color: #b89269;
}

/* Keep header CTAs above the sheet; the side drawer starts below the header. */

@media (max-width: 900px) {
  :root {
    --drawer-header-height: 72px;
  }
}

@media (max-width: 640px) {
  :root {
    --drawer-header-height: 68px;
  }
  .mobile-menu__panel {
    width: min(380px, calc(100vw - 22px));
    padding-inline: clamp(16px, 5vw, 28px);
  }
  .mobile-menu__nav a {
    font-size: clamp(23px, 7vw, 32px);
  }
}

@media (max-width: 330px) {
  .mobile-menu__panel {
    padding-inline: 15px;
  }
  .mobile-menu__nav a {
    font-size: 22px;
  }
  .mobile-menu__nav a span {
    flex-basis: 16px;
  }
}

@media (max-height: 570px) {
  .mobile-menu__head {
    margin-bottom: 12px;
  }
  .mobile-menu__nav a {
    min-height: 42px;
    padding-block: 6px;
  }
  .mobile-menu__caption {
    margin-top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --drawer-duration: 0ms;
  }
  .mobile-menu,
  .mobile-menu__backdrop,
  .mobile-menu__panel {
    transition: none;
  }
}

/* The smallest supported phones must still show the entire header,
 * including the native-sized hamburger target. */

@media (max-width: 300px) {
  .header-inner {
    width: calc(100% - 16px);
    gap: 3px;
  }
  .header-actions {
    gap: 3px;
  }
  .brand__logo {
    width: 82px;
    max-height: 21px;
  }
  .header-cta {
    min-height: 32px;
    padding-inline: 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .menu-button {
    width: 30px;
    height: 32px;
    flex-basis: 30px;
  }
}
