/* ============================================================
   sidebar.css — Menu lateral mobile (sidebar)
   ============================================================ */

/* ---- Overlay escuro ---- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* acima da navbar sticky (z-index 100) e de tudo mais */
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Sidebar panel ---- */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  /* usa 100svh para suporte a barra de navegação do browser mobile */
  height: 100vh;
  height: 100svh;
  /* background sólido com cor literal para garantir opacidade total */
  background-color: #071925;
  background-image: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  /* começa fora da tela à direita */
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  overflow: hidden;
  /* isola o contexto de empilhamento */
  isolation: isolate;
}

/* Linha decorativa no topo */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00D4FF, transparent);
}

.sidebar.is-open {
  transform: translateX(0);
}

/* ---- Header ---- */
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  flex-shrink: 0;
}

.sidebar__logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
}

.sidebar__logo span {
  color: var(--color-accent);
}

.sidebar__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--color-ice);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border-radius: 0;
}

.sidebar__close:hover,
.sidebar__close:focus-visible {
  background: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

/* ---- Nav (links centralizados verticalmente) ---- */
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar__links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 32px;
  color: rgba(200, 232, 245, 0.65);
  font-family: var(--font-condensed);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar__link:hover,
.sidebar__link:focus-visible {
  color: #fff;
  border-left-color: var(--color-accent);
  background: rgba(0, 212, 255, 0.06);
  padding-left: 38px;
}

.sidebar__link-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  opacity: 0.6;
  min-width: 24px;
  flex-shrink: 0;
}

/* ---- Footer com redes sociais ---- */
.sidebar__footer {
  flex-shrink: 0;
  padding: 28px 32px 40px;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(3, 76, 112, 0.18);
}

.sidebar__footer-label {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 232, 245, 0.4);
  margin-bottom: 16px;
}

.sidebar__socials {
  display: flex;
  gap: 12px;
}

.sidebar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--color-ice);
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  flex: 1;
  transition: all 0.2s ease;
}

.sidebar__social svg {
  flex-shrink: 0;
}

.sidebar__social--ig:hover,
.sidebar__social--ig:focus-visible {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: transparent;
  color: #fff;
}

.sidebar__social--wa:hover,
.sidebar__social--wa:focus-visible {
  background: #25D366;
  border-color: transparent;
  color: #fff;
}