/* =============================================================
   MOBILE DRAWER — MDJR Theme
   Gerado pelo header.php. Compartilhado por TODAS as páginas.
   ============================================================= */

.mobile-drawer {
  position: fixed;
  top: var(--mdjr-header-h);
  left: 0;
  right: 0;
  background: rgba(22,33,62,.98);
  padding: 16px 24px 28px;
  max-height: calc(100vh - var(--mdjr-header-h));
  overflow-y: auto;
  transform: translateY(-110%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 90;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 89;
}

.drawer-overlay.open {
  display: block;
}

/* — Itens do menu no drawer — */
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer > ul > li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-drawer a {
  display: block;
  color: #fff;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s;
}

.mobile-drawer a:hover {
  color: var(--mdjr-primaria);
}

/* — Sub-menu dentro do drawer — */
.mobile-drawer .sub-menu {
  display: none;
  padding-left: 16px;
}

.mobile-drawer li.open > .sub-menu {
  display: block;
}

.mobile-drawer .sub-menu li {
  border-bottom: none;
}

.mobile-drawer .sub-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 0;
  color: rgba(255,255,255,.75);
}

/* Seta em itens com sub-menu no drawer */
.mobile-drawer li:has(.sub-menu) > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer li:has(.sub-menu) > a::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform .2s;
}

.mobile-drawer li.open > a::after {
  transform: rotate(180deg);
}
