/* topo.css: a marca à esquerda, o menu numa caixa branca à direita e a bolha amarela "Chegou agora?".
   No início e no Sobre o topo flutua sobre a foto (.topo--sobre-foto) e a marca fica branca.
   Depende de: base.css. Telefone nas regras soltas, computador no @media do fim. */

.topo {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--margem);
}

.topo--sobre-foto { position: absolute; inset: 0 0 auto; }

/* ------------------------------------------------------------ a marca: assinatura + caixa alta espaçada */

.marca { display: inline-flex; align-items: baseline; gap: 2px; color: var(--tinta); text-decoration: none; }

.marca__assinatura { font-family: var(--letra-assinatura); font-size: 40px; line-height: 1; }

.marca__resto { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }

.topo--sobre-foto .marca { color: var(--branco); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

/* ------------------------------------------------------------ o menu na caixa branca */

.topo__nav {
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 12px; background: var(--branco);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.topo__links { display: none; }

.topo__links a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.topo__links a[aria-current="page"] { background: var(--creme); }
.topo__links a:hover { background: var(--creme); }

.topo__icone {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: none; color: var(--tinta);
}
.topo__icone svg { width: 22px; height: 22px; }

/* o menu do telefone, dentro do modal */
.menu-telefone { display: grid; gap: 4px; }
.menu-telefone a {
  display: block; padding: 12px 14px; border-radius: var(--raio-pequeno);
  font-size: 20px; font-weight: 600; text-decoration: none;
}
.menu-telefone a:hover { background: var(--creme); }

/* ------------------------------------------------------------ a bolha amarela */

.chegou-agora {
  position: fixed; right: 12px; bottom: 16px; z-index: 20;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--amarelo); color: var(--tinta);
  font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.chegou-agora:hover { background: var(--amarelo-quente); }

@media (min-width: 900px) {
  .topo { padding: 28px 32px; }
  .marca__assinatura { font-size: 48px; }
  .marca__resto { font-size: 15px; }
  .topo__nav { padding: 8px 10px; }
  .topo__links { display: flex; gap: 6px; }
  .topo__menu { display: none; }
  .chegou-agora { right: 16px; bottom: auto; top: 48vh; width: 96px; height: 96px; font-size: 15px; }
}
