/* ===== Drawer (mesmo padrão dark do site: #020617 / #0b1120 + azul #38bdf8) ===== */

.cap-side-menu{
  position: fixed;
  top: 70px;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: calc(100vh - 70px);

  background: rgba(2,6,23,.96);                 /* ✅ fundo igual do site */
  border-right: 1px solid rgba(148,163,184,0.18);
  box-shadow: 18px 0 50px rgba(0,0,0,.55);

  transition: left 0.28s ease-in-out;
  z-index: 200;

  display: flex;
  flex-direction: column;
  padding: 10px 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.cap-side-menu::-webkit-scrollbar{ display:none; }
.cap-side-menu.is-open{ left: 0; }

/* topo */
.cap-menu-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}

.cap-menu-title{
  color: rgba(229,231,235,.95);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* botão fechar */
.cap-menu-close{
  appearance:none;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(2,6,23,.55);
  color: rgba(229,231,235,.92);
  width: 40px;
  height: 36px;
  cursor:pointer;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  transition: background .18s ease, border-color .18s ease, transform .06s ease;
}
.cap-menu-close:hover{
  background: rgba(56,189,248,0.10);
  border-color: rgba(56,189,248,.45);
}
.cap-menu-close:active{ transform: translateY(1px); }

/* links */
.cap-menu-links a{
  color: rgba(229,231,235,.92);
  padding: 11px 14px;
  text-decoration: none;
  display: block;

  border-bottom: 1px solid rgba(148,163,184,0.12);
  transition: background .18s ease, border-color .18s ease;
}
.cap-menu-links a:hover{
  background: rgba(56,189,248,0.10);
}
.cap-menu-links a:focus-visible{
  outline: 2px solid rgba(56,189,248,.55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* dica / rodapé do menu */
.cap-menu-hint{
  color: rgba(229,231,235,0.65);
  font-size: 12.5px;
  padding: 12px 14px;
  line-height: 1.45;
}

/* Overlay */
.cap-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;
  z-index: 150;
}
.cap-overlay.is-open{ display:block; }

/* Botão hamburger (no mesmo padrão do header) */
.cap-menu-toggle{
  position: fixed;
  right: 16px;
  top: 14px;
  width: 46px;
  height: 38px;
  cursor: pointer;
  z-index: 310;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  background: rgba(2,6,23,.55);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  padding: 8px;
  border-radius: 14px;

  transition: background .18s ease, border-color .18s ease;
}
.cap-menu-toggle:hover{
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,.35);
}

.cap-menu-toggle span{
  display:block;
  height: 3px;
  width: 100%;
  background-color: rgba(229,231,235,.95);
  border-radius: 999px;
  transition: all 0.28s ease;
}
.cap-menu-toggle.is-open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.cap-menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.cap-menu-toggle.is-open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* Mobile: menu ocupa mais largura */
@media (max-width: 520px){
  .cap-side-menu{
    width: 92%;
    max-width: 360px;
  }
}