/* ==========================================================================
   Footer Component Styles
   ========================================================================== */

/* Site Footer */
.footer-section {
  position: relative;
  z-index: 9;
}
.top-footer-content {
  padding: 6.25rem 0;
  background-color: var(--bs-dark);
  color: var(--bs-white);
  @media (max-width: 768px) {
    padding: 1.875rem 0;
  }
}
.bottom-footer-content {
  padding: 1.25rem 0;
  background-color: var(--bs-white);
  color: #31383e;
  font-size: 0.75rem;
  line-height: 1rem;
  a {
    color: #31383e;
  }
  @media (max-width: 768px) {
    padding: 0.625rem 0;
    text-align: center;
  }
}

.footer-subheading {
  font-size: 1.25rem;
  line-height: 1.5;

  margin-top: 1.5rem;
  @media (max-width: 768px) {
    font-size: 1.125rem;
    text-align: center;
  }
}
.footer-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.59;
  @media (max-width: 768px) {
    font-size: 1.75rem;
    text-align: center;
  }
}

.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1.5rem;
  column-gap: 2.75rem;
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.875rem;
  font-weight: 400;
  color: var(--bs-white);
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  a {
    color: var(--bs-white);
    text-decoration: none;
  }
  .footer-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 2.875rem;
  height: 5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;

  background-color: transparent;
  border-radius: 50%;
}

/* Improve icon contrast on light backgrounds */
.back-to-top img {
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.35));
}

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

.back-to-top:hover {
  background: var(--bs-primary-dark);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}
