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

.footer {
  background-color: var(--navy);
  color: white;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Footer Brand */
.footer__brand {
  max-width: 350px;
}

.footer__logo {
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--dusty-blue);
  margin-bottom: var(--space-lg);
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: white;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--electric-blue);
  color: white;
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer Links */
.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--electric-blue);
}

/* Footer Contact Info */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--electric-blue);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item a:hover {
  color: var(--electric-blue);
}

/* Footer Bottom */
.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--electric-blue);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--electric-blue);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--navy);
  color: white;
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 991px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}
