.footer {
  width: 100%;
  min-height: 13rem;
  background: var(--almost-white);
  margin-top: 7.5rem;
  position: relative;
  content-visibility: visible !important;
}

.footer__back-to-top {
  width: 4.6875rem;
  height: 4.6875rem;
  background: var(--almost-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

#back-to-top {
  background-color: var(--lilas);
  border: none;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

#back-to-top i {
  font-size: 1.875rem;
}

#back-to-top:hover {
  background-color: var(--roxo);
}

.footer__content {
  position: relative;
  top: 3.75rem;
  height: calc(100% - 3.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__credito {
  width: 18%;
}

.footer__descricao {
  font-size: 0.75rem;
  margin-top: 0.625rem;
  text-align: center;
}

.footer__menu {
  width: 44.64%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: var(--font-semibold);
}

.footer__menu ul {
  display: flex;
  gap: 2.5rem;
}

.footer__social {
  width: 20.53%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6875rem;
  font-size: 1.875rem;
  color: var(--lilas);
  transition:
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.footer__social::before,
.footer__social::after {
  content: "";
  width: 1.6875rem;
  height: 1.6875rem;
  background-size: cover;
  background-image: var(--emoji-azul);
}

.footer__social-link:hover {
  color: var(--roxo);
}

@media (max-width: 768px) {
  .footer {
    height: auto;
    margin-top: 5rem;
  }

  .footer__content {
    flex-direction: column;
    padding: 3.75rem 0 2.5rem;
    top: 0;
  }

  .footer__credito {
    width: 60%;
  }

  .footer__descricao {
    font-size: 1rem;
  }

  .footer__menu {
    display: none;
  }

  .footer__social {
    width: 90%;
    justify-content: center;
    margin-top: 1rem;
    font-size: 2.8rem;
    gap: 1rem;
  }

  .footer__social::before,
  .footer__social::after {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .footer__content {
    flex-direction: row;
    padding: 3.75rem 2rem 2.5rem;
    justify-content: space-around;
  }
  .footer__credito {
    width: 40%;
  }
  .footer__social {
    width: 45%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer__content {
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .footer__credito {
    order: 2;
    display: flex;
    width: 55%;
    align-items: center;
    margin: 2rem 0;
  }

  .footer__logo {
    width: 40%;
    margin-right: 2rem;
  }

  .footer__descricao {
    margin-top: 0;
    font-size: 1rem;
  }

  .footer__menu {
    order: 1;
    width: 100%;
    justify-content: space-around;
  }

  .navbar__link {
    font-size: 1.15rem;
  }

  .footer__social {
    order: 3;
    width: 35%;
    font-size: 2.4rem;
  }
}
