/* Footer */
.footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-bottom-content {
  flex-direction: row;
}

.footer-copyright {
  margin-bottom: 0;
}

.footer-logo {
  font-family: "Playfair Display", serif !important;
  font-size: 1.875rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.footer-text {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.35rem !important;
}

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--green-dark);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--green-dark);
  flex-shrink: 0;
}

.footer-contact-text {
  color: var(--gray-light);
}

.footer-contact-link {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-contact-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-medium);
  margin-top: 0rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-light);
}

.footer-bottom-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  color: var(--gray-light);
  font-size: 0.875rem;
  margin-bottom: 0rem;
}

.footer-legal {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.footer-legal-link {
  color: var(--gray-light);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-legal-link:hover {
  color: var(--white);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green-dark);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }
  .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}
