/* ==========================================================================
   TuringTec — navegação principal (Soluções / Ajuda)
   Componente autocontido: não depende de utilitários do Tailwind compilado,
   porque o build só gera as classes usadas no momento da compilação.
   ========================================================================== */

/* ---------- barra ---------- */
/* NÃO declarar display aqui: a visibilidade é do Tailwind (`hidden md:flex`).
   Declarar display:flex anulava o `hidden` e o menu desktop aparecia no mobile,
   empurrando o botão hambúrguer para fora da tela. */
.nav-desktop {
  align-items: center;
  gap: 2px;
}

.nav-desktop .nav-cta { margin-left: 10px; }

.nav-item-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  line-height: 1.2;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item-link:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.7);
  outline-offset: 2px;
}

.nav-group.is-open > .nav-item-link {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
}

.nav-caret {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.15s ease;
}

.nav-group.is-open .nav-caret,
.nav-item-link:hover .nav-caret { opacity: 0.9; }
.nav-group.is-open .nav-caret { transform: rotate(180deg); }

.nav-divider {
  width: 1px;
  height: 22px;
  margin: 0 10px 0 6px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* ---------- painel ---------- */
.nav-group { position: relative; }

.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -8px;
  width: 312px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 31, 60, 0.985) 0%, rgba(7, 19, 39, 0.985) 100%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px -14px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(6, 182, 212, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top center;
  transition: opacity 0.17s cubic-bezier(0.22, 0.9, 0.28, 1),
              transform 0.17s cubic-bezier(0.22, 0.9, 0.28, 1),
              visibility 0s linear 0.17s;
  z-index: 60;
}

.nav-group--end .nav-panel { left: auto; right: -8px; }

.nav-group.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.17s cubic-bezier(0.22, 0.9, 0.28, 1),
              transform 0.17s cubic-bezier(0.22, 0.9, 0.28, 1),
              visibility 0s;
}

/* ---------- itens do painel ---------- */
.nav-panel-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  text-decoration: none;
  outline-offset: -1px;
  transition: background 0.15s ease;
}

.nav-panel-item:hover,
.nav-panel-item:focus-visible { background: rgba(6, 182, 212, 0.09); }

.nav-panel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: #06b6d4;
  transform: translateY(-50%);
  transition: height 0.18s ease;
}

.nav-panel-item:hover::before,
.nav-panel-item:focus-visible::before { height: 22px; }

.nav-panel-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: #7dd3e8;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-panel-ico svg { width: 16px; height: 16px; }

.nav-panel-item:hover .nav-panel-ico,
.nav-panel-item:focus-visible .nav-panel-ico {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.28);
  color: #a5f3fc;
}

.nav-panel-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.nav-panel-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #e8eef7;
}

.nav-panel-desc {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
  color: #8fa3bc;
}

.nav-panel-item--slim { padding: 8px 11px; }

.nav-panel-tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #8fa3bc;
  white-space: nowrap;
}

.nav-panel-label {
  margin: 0;
  padding: 7px 12px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #64748b;
}

.nav-panel-label--sep {
  margin-top: 5px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding: 11px 12px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: #06b6d4;
  text-decoration: none;
  border-radius: 0 0 11px 11px;
}

.nav-panel-foot:hover { color: #67e8f9; }

.nav-panel-arrow {
  transition: transform 0.16s ease;
}

.nav-panel-foot:hover .nav-panel-arrow { transform: translateX(3px); }

/* ---------- mobile: acordeão ---------- */
[hidden] { display: none !important; }

.mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mobile-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.mobile-group-btn .nav-caret { width: 18px; height: 18px; }

.mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 1px solid rgba(6, 182, 212, 0.25);
  align-items: flex-start;
}

.mobile-sub-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #06b6d4;
  text-decoration: none;
  line-height: 1.3;
}

.mobile-sub-link span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 2px;
}

/* o menu mobile cresce quando os acordeões abrem: precisa rolar, não cortar */
#mobileMenu > div {
  justify-content: flex-start !important;
  overflow-y: auto;
  padding: 96px 20px 48px;
}

@media (min-width: 768px) {
  .mobile-group, .mobile-sub { display: none !important; }
}
