/* topo.css: a barra verde-floresta do alto, com a marca (o ícone redondo e o nome) à esquerda e o menu em linha à
   direita; no telefone o menu vira os três tracinhos, que abrem o modal do comum.
   Depende de: base.css. Telefone nas regras soltas, computador no @media do fim. */

.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--margem);
  background: var(--floresta); color: var(--branco);
}

/* ------------------------------------------------------------ a marca */

.marca {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap;
}

.marca__icone { width: 34px; height: 34px; flex: none; }

/* ------------------------------------------------------------ o menu */

.topo__nav { display: flex; align-items: center; gap: 6px; }

.topo__links { display: none; }

.topo__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.topo__links a:hover { background: rgba(255, 255, 255, .12); }
.topo__links a[aria-current="page"] { background: var(--verde-claro); color: var(--texto); }

.topo__botao {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--branco);
}
.topo__botao:hover { background: rgba(255, 255, 255, .22); }
.topo__botao svg { width: 22px; height: 22px; }

/* o menu do telefone, dentro do modal */
.menu-telefone { display: grid; gap: 6px; }
.menu-telefone a {
  display: block; padding: 14px 18px; border-radius: 999px; background: var(--creme);
  font-size: 18px; font-weight: 700; text-decoration: none;
}
.menu-telefone a:hover { background: var(--verde-claro); }

@media (min-width: 900px) {
  .topo { padding: 16px 32px; }
  .marca { font-size: 22px; }
  .marca__icone { width: 40px; height: 40px; }
  .topo__links { display: flex; gap: 4px; }
  .topo__menu { display: none; }
}
