/*
  Footer de todas as páginas (Figma: componente "Footer", variantes Desktop e Mobile).
  Marca, navegação, redes sociais e o botão de voltar ao topo.
*/
html { scroll-behavior: smooth; }

.site-footer {
  padding: 48px 0 32px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { display: block; width: 40px; height: 40px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.footer__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.footer__name { display: block; font-size: 16px; font-weight: 700; }
.footer__role { display: block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .6); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer__nav a { color: rgba(255, 255, 255, .8); transition: color .2s ease; }
.footer__nav a:hover { color: #fff; }

.footer__social { display: flex; gap: 12px; }
.footer__social a { display: block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.footer__social a:hover { transform: translateY(-3px); }
.footer__social img { display: block; width: 32px; height: 32px; }

.footer__divider { height: 1px; margin: 32px 0; background: rgba(255, 255, 255, .08); }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* voltar ao topo: a seta sobe um pouco e o círculo fica azul no hover */
.footer__top { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.footer__top-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  transition: background-color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.footer__top-icon svg { width: 18px; height: 18px; }
.footer__top:hover .footer__top-icon { background: #0509ff; border-color: #0509ff; transform: translateY(-3px); }
.footer__top:focus-visible { outline: none; }
.footer__top:focus-visible .footer__top-icon { outline: 2px solid #0509ff; outline-offset: 3px; }

/* Mobile: tudo empilhado à esquerda; o botão de topo fica só com a seta */
@media (max-width: 600px) {
  .site-footer { padding: 40px 0 32px; }
  .footer__main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__divider { margin: 24px 0; }
  .footer__top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
