/* ═══════════════════════════════════════════════
   TOPBAR  ·  Portal da Conexão
   ═══════════════════════════════════════════════ */

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* ─── Brandmark ─── */
.brandmark {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 44vw;
  display: block;
  object-fit: contain;
}

/* ─── Navegação ─── */
.topbar nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.topbar nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.topbar nav a:hover {
  color: var(--ink);
}

/* ─── Grupo direito (toggle + CTA) ─── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Toggle PT / EN ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(42, 40, 36, 0.07);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--cream);
}

.lang-btn:hover:not(.active) {
  color: var(--ink);
}

/* ─── Mini CTA ─── */
.topbar .cta-mini {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.topbar .cta-mini:hover {
  transform: translateY(-1px);
  background: var(--terra);
  box-shadow: 0 6px 16px -6px rgba(196, 115, 87, 0.55);
}

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .topbar nav { display: none; }
  .lang-btn { padding: 5px 10px; }
}

@media (max-width: 480px) {
  .brand-logo { height: 30px; max-width: 40vw; }
  .topbar .cta-mini { padding: 7px 12px; font-size: 11.5px; letter-spacing: 0; }
  .topbar-actions { gap: 6px; }
}

/* Em telas muito estreitas o CTA do topbar fica oculto —
   os botões CTA estão disponíveis ao longo da página */
@media (max-width: 400px) {
  .brand-logo { max-width: 36vw; }
  .topbar .cta-mini { display: none; }
  .topbar-actions { gap: 4px; }
  .lang-btn { padding: 5px 8px; font-size: 10.5px; }
}
