/* V70 — clean mobile header + GIST-style left drawer (isolated from old nav CSS) */

/* Desktop nav stays in header; mobile panel is body-level */
.mda-mobile-backdrop,
.mda-mobile-panel {
  display: none;
}

.mda-header .mda-nav--desktop {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.4vw, 28px);
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  grid-template-columns: none !important;
}

.mda-header .mda-menu-button {
  display: none !important;
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mda-header .mda-menu-button .mda-menu-svg,
.mda-header .mda-menu-button .mda-menu-line {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.mda-header .mda-menu-button .mda-menu-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mda-header.is-scrolled .mda-menu-button {
  color: #fff !important;
}

.mda-header .mda-menu-button:hover,
.mda-header.is-scrolled .mda-menu-button:hover,
body.menu-open .mda-header .mda-menu-button {
  color: #ffa200 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mda-header .mda-menu-button[aria-expanded="true"] .mda-menu-line--1 {
  transform: translateY(5px) rotate(45deg);
}
.mda-header .mda-menu-button[aria-expanded="true"] .mda-menu-line--2 {
  opacity: 0;
}
.mda-header .mda-menu-button[aria-expanded="true"] .mda-menu-line--3 {
  transform: translateY(-5px) rotate(-45deg);
}

.mda-header .mda-menu-button .mda-menu-line {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform .22s ease, opacity .18s ease;
}

@media (max-width: 1160px) {
  .mda-header .mda-nav--desktop {
    display: none !important;
  }

  .mda-header .mda-menu-button {
    display: inline-grid !important;
  }

  .mda-header .mda-brand,
  .mda-header.is-scrolled .mda-brand {
    width: min(250px, calc(100% - 72px)) !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .mda-header-inner,
  .mda-header .mda-header-inner {
    min-height: 76px !important;
    gap: 12px !important;
  }

  /* Backdrop */
  .mda-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(4, 3, 2, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity .28s ease;
  }

  body.menu-open .mda-mobile-backdrop {
    pointer-events: auto;
    opacity: 1;
  }

  /* Left drawer — body-level, above everything */
  .mda-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(255, 162, 0, .28);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 24%),
      #0b0a08;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    visibility: visible;
  }

  .mda-mobile-panel.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mda-mobile-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
  }

  .mda-mobile-panel__brand {
    display: block;
    width: min(180px, 62%);
    flex: 0 1 auto;
  }

  .mda-mobile-panel__brand img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mda-mobile-panel__close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
  }

  .mda-mobile-panel__close svg {
    width: 18px;
    height: 18px;
  }

  .mda-mobile-panel__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 0 18px;
  }

  .mda-mobile-panel__nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 8px;
    color: rgba(255, 255, 255, .82);
    font-family: "Inter", "Roboto", system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: color .18s ease, background .18s ease;
  }

  .mda-mobile-panel__nav a.is-active,
  .mda-mobile-panel__nav a:hover {
    color: #ffa200;
    background: rgba(255, 162, 0, .08);
  }

  .mda-mobile-panel__foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .mda-mobile-panel__cta {
    min-height: 52px;
    display: grid;
    place-items: center;
    padding: 0 18px;
    color: #111;
    font-family: "Inter", "Roboto", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1.5px solid #ffa200;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 42%),
      linear-gradient(135deg, #ffd27a 0%, #ffa200 55%, #f08a00 100%);
  }

  .mda-mobile-panel__cta--ghost {
    color: #fff;
    border-color: rgba(255, 162, 0, .55);
    background: transparent;
  }

  .mda-mobile-panel__wa {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #25d366;
    font-family: "Inter", "Roboto", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, .35);
    background: rgba(37, 211, 102, .08);
  }

  .mda-mobile-panel__wa svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 400px) {
  .mda-header .mda-brand,
  .mda-header.is-scrolled .mda-brand {
    width: min(200px, calc(100% - 64px)) !important;
  }

  .mda-mobile-panel__nav a {
    font-size: 20px;
    min-height: 48px;
  }
}

@media (min-width: 1161px) {
  .mda-mobile-backdrop,
  .mda-mobile-panel,
  .mda-header .mda-menu-button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mda-mobile-panel,
  .mda-mobile-backdrop,
  .mda-header .mda-menu-button .mda-menu-line {
    transition: none;
  }
}
