/* ============================================================
   LUCID — Navegação compartilhada
   Botão CONVERSAR (WhatsApp) + menu hambúrguer responsivo.
   Usa as variáveis de cor da página (--red, --fg, --bg) para
   manter "o mesmo menu, mudando só o estilo".
   ============================================================ */

/* ---- botão CONVERSAR (WhatsApp) no topo ---- */
.nav-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 4px;
  white-space: nowrap;
  justify-self: end;
  transition: background 0.18s ease, padding 0.3s ease;
  animation: wa-attract 2.8s ease-in-out infinite;
}
.nav-cta-wa:hover { background: #3461d6; }
.nav-cta-wa svg { width: 19px; height: 19px; flex: none; transition: transform 0.25s ease; }
.nav-cta-wa:hover svg { transform: rotate(-8deg) scale(1.08); }
.nav.scrolled .nav-cta-wa { padding: 11px 20px; }
@keyframes wa-attract {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,97,214,0.0); }
  50% { box-shadow: 0 0 0 8px rgba(52,97,214,0); }
}
@media (prefers-reduced-motion: reduce) { .nav-cta-wa { animation: none; } }

/* ---- botão hambúrguer ---- */
.nav-burger {
  display: none;
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--fg, #fff);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- drawer mobile ---- */
.nav-drawer {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  background: var(--bg, #0a0a0a);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 90px clamp(28px, 8vw, 56px) 48px;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--fg, #fff);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  max-width: 320px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.1));
  transition: color 0.18s ease;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--red); }
.nav-drawer .nav-cta-wa {
  margin-top: 26px;
  justify-content: center;
  animation: none;
  padding: 16px 24px;
  font-size: 15px;
}
.nav-drawer .nav-cta-wa:hover { background: #3461d6; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1050;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 940px) {
  .nav-menu, .nav > .nav-cta-wa, .nav-cta { display: none !important; }
  .nav-burger { display: flex; }
}
