/* ============================================================
   CABEÇALHO DO SITE PRINCIPAL · usado nas landing pages
   ------------------------------------------------------------
   Mesma barra do hyperflow.global: fundo branco, logo escura,
   itens com dropdown e botão Contato. Injetado pelo
   hyperflow-nav.js, que também esconde a navbar antiga da LP.
   Prefixo hnav- para não colidir com nada das páginas.
   ============================================================ */

.hnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  border-bottom: 1px solid #e8e6f0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
}
.hnav *,
.hnav *::before,
.hnav *::after { box-sizing: border-box; }

.hnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hnav-logo { display: flex; align-items: center; flex-shrink: 0; }
.hnav-logo img { height: 30px; width: auto; display: block; }

.hnav-menu {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .hnav-menu { display: flex; } }

.hnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  background: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a2c58;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.hnav-link i { font-size: 10px; transition: transform .2s; }
.hnav-link:hover { background: #f5f4f9; color: #24135f; }

.hnav-drop { position: relative; }
.hnav-drop:hover .hnav-link,
.hnav-drop:focus-within .hnav-link { background: #f5f4f9; color: #24135f; }
.hnav-drop:hover .hnav-link i,
.hnav-drop:focus-within .hnav-link i { transform: rotate(180deg); }

.hnav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: none;
  gap: 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #e8e6f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(36, 19, 95, .25);
}
.hnav-drop:hover .hnav-panel,
.hnav-drop:focus-within .hnav-panel { display: flex; }
/* ponte invisível para o mouse não "cair" entre o item e o painel */
.hnav-panel::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}

.hnav-col { min-width: 190px; }
.hnav-col + .hnav-col { border-left: 1px solid #efedff; padding-left: 28px; }
.hnav-col h5 {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #786d9f;
}
.hnav-col a {
  display: block;
  padding: 7px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a2c58;
  text-decoration: none;
  white-space: nowrap;
}
.hnav-col a:hover { color: #685bc7; }

.hnav-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #24135f;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s;
}
.hnav-cta:hover { background: #685bc7; }
@media (min-width: 1024px) { .hnav-cta { margin-left: 0; } }

/* ── Mobile ── */
.hnav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 8px;
  border: 1px solid #e8e6f0;
  border-radius: 12px;
  background: #fff;
  color: #24135f;
  font-size: 17px;
  cursor: pointer;
}
@media (min-width: 1024px) { .hnav-burger { display: none; } }

.hnav-mob {
  display: none;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #e8e6f0;
  padding: 10px 18px 26px;
}
.hnav.aberto .hnav-mob { display: block; }
@media (min-width: 1024px) { .hnav.aberto .hnav-mob { display: none; } }

.hnav-mob > a,
.hnav-mob details > summary {
  display: block;
  padding: 13px 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #24135f;
  text-decoration: none;
  border-bottom: 1px solid #f0eef8;
  cursor: pointer;
  list-style: none;
}
.hnav-mob details > summary::-webkit-details-marker { display: none; }
.hnav-mob details > summary::after { content: "+"; float: right; color: #786d9f; }
.hnav-mob details[open] > summary::after { content: "–"; }
.hnav-mob details a {
  display: block;
  padding: 10px 6px 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a2c58;
  text-decoration: none;
}
.hnav-mob .hnav-mob-h5 {
  margin: 8px 0 0;
  padding: 6px 6px 0 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #786d9f;
}
