.site-footer {
  background: #062c56;
  color: #edf6fb;
}

.site-footer-content,
.site-footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer-content {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 42px 0 34px;
}

.footer-brand {
  align-self: start;
}

.footer-social {
  align-self: start;
  justify-self: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 24px;
  text-align: center;
}

.footer-registration {
  justify-self: center;
  align-self: start;
  padding-left: 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-brand p {
  margin-top: 12px;
  color: #c7d9e6;
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer h2 {
  margin: 4px 0 14px;
  color: #ffffff;
  font-size: 0.92rem;
}

.site-footer-bottom a {
  color: #d8e8f2;
  font-size: 0.88rem;
  text-decoration: none;
}

.button-box {
  position: relative;
  width: 12rem;
  height: 5rem;
  display: flex;
  margin-inline: auto;
}
.button-box .button {
  width: 3.2rem;
  height: 3.2rem;
  position: absolute;
  left: 50%;
  top: 50%;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
}
.button-box .button .icon {
  width: 24px;
  height: 24px;
  opacity: 1;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.button-box .button:nth-child(4) {
  transform: translate(-50%, -50%) rotate(90deg);
  z-index: 30;
  background: #c13584;
}
.button-box .button:nth-child(4) .icon {
  transform: rotate(-90deg);
}
.button-box .button:nth-child(5) {
  transform: translate(-50%, -50%) rotate(-115deg);
  z-index: 40;
  background: #25d366;
}
.button-box .button:nth-child(5) .icon {
  transform: rotate(115deg);
}
.button-box .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 50;
  background: #ffffff;
}
.button-box .button:nth-child(6) .icon {
  transform: rotate(45deg);
}
.button-box .touch {
  position: relative;
  z-index: 60;
  height: 100%;
  flex: 1;
  cursor: pointer;
}
.button-box .touch.left:hover ~ .button:nth-child(4) {
  opacity: 1;
  transform: translate(-170%, -50%) rotate(-90deg) scale(1.05);
}
.button-box .touch.left:hover ~ .button:nth-child(4) .icon {
  width: 25px;
  opacity: 0.9;
}
.button-box .touch.left:active ~ .button:nth-child(4) {
  transform: translate(-170%, -50%) rotate(-90deg) scale(0.9);
}
.button-box .touch.right:hover ~ .button:nth-child(5) {
  opacity: 1;
  transform: translate(70%, -50%) rotate(90deg) scale(1.05);
}
.button-box .touch.right:hover ~ .button:nth-child(5) .icon {
  width: 25px;
  opacity: 0.9;
}
.button-box .touch.right:active ~ .button:nth-child(5) {
  transform: translate(70%, -50%) rotate(90deg) scale(0.9);
}
.button-box .touch.middle:hover ~ .button:nth-child(6) {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}
.button-box .touch.middle:hover ~ .button:nth-child(6) .icon {
  width: 25px;
  opacity: 0.9;
}
.button-box .touch.middle:active ~ .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
}
.button-box:hover .button:nth-child(4) {
  transform: translate(-170%, -50%) rotate(-90deg);
}
.button-box:hover .button:nth-child(4) .icon {
  transform: rotate(90deg);
}
.button-box:hover .button:nth-child(5) {
  transform: translate(70%, -50%) rotate(90deg);
}
.button-box:hover .button:nth-child(5) .icon {
  transform: rotate(-90deg);
}
.button-box:hover .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(0deg);
}
.button-box:hover .button:nth-child(6) .icon {
  transform: rotate(0deg);
}

.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible {
  color: var(--dourado);
  text-decoration: underline;
}

.footer-registration strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px 0;
}

.site-footer-bottom p {
  color: #c7d9e6;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .site-footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .footer-social {
    border: 0;
    padding: 0;
  }

  .footer-registration {
    grid-column: 1 / -1;
    justify-self: center;
    padding-left: 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-footer-content,
  .site-footer-bottom {
    width: min(100% - 32px, 420px);
  }

  .site-footer-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 0;
  }

  .footer-social {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 22px 0;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (hover: none) {
  .button-box .button:nth-child(4) {
    transform: translate(-170%, -50%) rotate(-90deg);
  }
  .button-box .button:nth-child(4) .icon {
    transform: rotate(90deg);
  }

  .button-box .button:nth-child(5) {
    transform: translate(70%, -50%) rotate(90deg);
  }
  .button-box .button:nth-child(5) .icon {
    transform: rotate(-90deg);
  }

  .button-box .button:nth-child(6) {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .button-box .button:nth-child(6) .icon {
    transform: rotate(0deg);
  }
}

/* Mantém os efeitos do rodapé no mesmo ritmo fluido. */
.button-box .button .icon {
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-footer-bottom a { outline: 2px solid transparent; outline-offset: 3px;
  transition: color 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    outline-color 0.72s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .button-box .button {
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.72s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .button-box .button .icon {
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .site-footer-bottom a {
    transition: color 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      outline-color 0.72s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}
