/* Cabeçalho da home: logo da G7 à esquerda, links simples ao centro e botão de destaque à direita.
   O botão aparece em todas as larguras. Os links ficam na barra até 900px; abaixo disso, ficam no menu lateral (botão Menu). */

.topbar .hdr-wrap { gap: 1rem; }

/* Logo da G7 */
.hdr-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 8px; }
.hdr-logo-img { display: block; height: 40px; width: auto; border-radius: 8px; }
.hdr-logo:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Links simples, centralizados. O site esconde a navegação abaixo de 1100px; aqui ela aparece até 900px. */
.topbar .hdr-nav { display: flex; gap: 1.25rem; margin: 0 auto; }
.topbar .hdr-nav > a { font-size: .95rem; font-weight: 500; color: var(--text-secondary); background: none; padding: .5rem .25rem; white-space: nowrap; }
.topbar .hdr-nav > a:hover { color: var(--text-primary); background: none; }

/* Botão de destaque à direita */
.hdr-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0 1.125rem; border-radius: .625rem;
  background: #1F6AE8; color: #fff; font-weight: 600; font-size: .9rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(31, 106, 232, .35);
  transition: background-color .2s, transform .2s;
}
.hdr-cta:hover { background: #1959C9; transform: translateY(-1px); }
.hdr-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1100px) {
  .topbar .hdr-nav { gap: .875rem; }
  .topbar .hdr-nav > a { font-size: .875rem; }
  .topbar .search { max-width: 9rem; }
}

@media (max-width: 900px) {
  .topbar .hdr-nav { display: none; } /* os links passam para o menu lateral */
}

@media (max-width: 720px) {
  .hdr-logo-img { height: 34px; }
  .topbar .hdr-wrap { gap: .5rem; }
  .hdr-cta { min-height: 36px; padding: 0 10px; font-size: .78rem; line-height: 1.15; white-space: normal; text-align: center; max-width: 128px; }
}

@media (max-width: 480px) {
  .hdr-logo-img { height: 30px; }
  .topbar .menu-btn { padding: 0 10px; min-height: 36px; font-size: .8rem; }
  .hdr-cta { max-width: 108px; padding: 0 8px; font-size: .72rem; }
}
