/* ── HAMBÚRGUER MENU ─────────────────────────────────── */

/* Botão hambúrguer — visível apenas no mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Wrapper das ações desktop — oculto no mobile */
.nav-desktop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Grupo direito (logo + back link + hambúrguer) para Tipo B */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Overlay escuro */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Painel lateral */
.nav-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 288px;
  max-width: 88vw;
  height: 100vh;
  background: #171717;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-mobile-panel.is-open {
  transform: translateX(0);
}

/* Cabeçalho do painel */
.nav-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  background: #171717;
  z-index: 1;
}
.nav-mobile-logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
}
.nav-mobile-logo span { color: #B91C2E; }

.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  transition: background 0.2s;
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.12); }

/* Links de navegação */
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.nav-mobile-links a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}
.nav-mobile-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

/* CTAs — logo abaixo dos links */
.nav-mobile-ctas {
  padding: 14px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-mobile-cta-ghost {
  display: block;
  padding: 13px 20px;
  border-radius: 100px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.nav-mobile-cta-ghost:hover { border-color: rgba(255,255,255,0.45); }

.nav-mobile-cta-primary {
  display: block;
  padding: 13px 20px;
  border-radius: 100px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: #B91C2E;
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-mobile-cta-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(185,28,46,0.5);
}

/* ── RESPONSIVO ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-desktop-actions { display: none; }
  .nav-right-group .nav-back { display: none; }
}
