/* FOOTER */

.footer {
  position: relative;

  padding: 120px 0 60px;

  background: var(--text);

  overflow: hidden;
}

/* FOOTER CONTENT */

.footer-content {
  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 80px;
}

.footer-brand {
  justify-self: start;
}

/* FOOTER BOTTOM */

.footer-bottom {
  margin-top: 80px;

  padding-top: 32px;

  border-top:
    1px solid var(--border-white);

  text-align: center;
}

/* FOOTER DESCRIPTION */

.footer-description {
  max-width: 640px;

  margin:
    0 auto 20px;

  color:
    var(--text-white-muted);

  font-size:
    clamp(0.9rem, 1.4vw, 1.1rem);

  line-height: 1.8;
}

/* COPYRIGHT */

.footer-copyright {
  color:
    var(--text-white-light);

  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
}

/* FOOTER LOGO */

.footer-logo img {
  width: 240px;

  height: auto;
}

/* FOOTER CONTACT LINK */

.footer-contact {
  justify-self: end;

  width: 100%;
  max-width: 280px;

  padding-inline: 36px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 1rem;
}

.footer-contact a {
  position: relative;

  width: fit-content;

  color: var(--white);

  font-size: 1.1rem;
  font-weight: 500;

  transition: var(--transition);
}

/* FOOTER CONTACT UNDERLINE */

.footer-contact a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;

  background: var(--primary);

  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact a:hover::after {
  width: 100%;
}

/* FOOTER GLOW*/

.footer::before {
  content: "";

  position: absolute;
  inset: 0;

  background: var(--footer-glow);

  pointer-events: none;
}

/* COPYRIGHT */

.footer-bottom p {
  color: var(--text-white-light);

  font-size: 0.95rem;
}

/* FOOTER LEGAL */

.footer-legal {
  display: flex;
  justify-content: center;

  margin-top: 1.2rem;
}

.footer-legal a {
  color: var(--text-white-muted);

  font-size: 0.95rem;

  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;

  justify-content: center;

  gap: 1rem;

  margin-block: 2rem;
}

.footer-socials a {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: var(--primary-hover-soft);

  border: 1px solid var(--border);

  color: var(--primary);

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    background .35s ease;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: block;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.footer-socials a:hover .social-icon {
  transform: translateY(-2px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-socials a:hover {
  transform:
    translateY(-4px)
    scale(1.08);

  border-color: var(--primary);

  background: rgba(0,255,140,.08);

  box-shadow:
    0 0 20px rgba(0,255,140,.18);
}

.footer-contact-item {
  display: flex;

  align-items: center;

  gap: 0.85rem;

  color: var(--text);

  text-decoration: none;

  transition: color .3s ease;
}

.footer-contact-item:hover {
  color: var(--primary);
}

@media (max-width: 768px) {

  .footer-content {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 40px;
  }

  .footer-contact {
    width: 100%;

    align-items: center;
  }

  .footer-contact a {
    width: 100%;

    text-align: center;
  }

}