/* ========================================
   SITE FOOTER
======================================== */

.site-footer {
  position: relative;
  overflow: hidden;

  padding: 110px 7% 40px;

  color: white;

  background:
    radial-gradient(
      circle at top right,
      rgba(60,155,70,0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(59,130,246,0.08),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #020617 0%,
      #02040d 100%
    );

  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: 14px;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.62);

  font-size: 13px;
  text-decoration: none;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.footer-legal-links a:hover {
  color: white;

  opacity: 1;
}

@media (max-width: 768px) {

  .footer-legal-links {
    justify-content: center;
  }

}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.03;

  background-image:
    linear-gradient(
      rgba(255,255,255,0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.12) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  mask-image:
    radial-gradient(
      circle,
      black 20%,
      transparent 80%
    );
}

.site-footer::after {
  content: "";
  position: absolute;

  right: 7%;
  bottom: 14%;

  width: 360px;
  height: 360px;

  background:
    url("../assets/icons/qm-icon-white.png")
    center / contain
    no-repeat;

  opacity: 0.035;

  transform: rotate(-8deg);

  pointer-events: none;
}

/* ========================================
   FOOTER LAYOUT
======================================== */

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;

  padding-bottom: 70px;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
  padding-top: 34px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* ========================================
   BRAND
======================================== */

.footer-brand-icon {
  width: 58px;
  height: 58px;

  object-fit: contain;

  margin-bottom: 24px;

  opacity: 0.9;

  filter:
    drop-shadow(0 0 18px rgba(60,155,70,0.28));
}

.footer-brand h3 {
  margin: 0 0 20px;

  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.footer-brand p {
  max-width: 580px;

  margin: 0;

  color: #94a3b8;

  font-size: 18px;
  line-height: 1.9;
}

/* ========================================
   FOOTER TAGS
======================================== */

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 28px;
}

.footer-tags span {
  padding: 10px 14px;

  border-radius: 999px;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.08);

  color: #cbd5e1;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;

  backdrop-filter: blur(10px);

  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.footer-tags span:hover {
  transform: translateY(-2px);

  border-color: rgba(60,155,70,0.28);

  background: rgba(60,155,70,0.10);

  color: white;
}

/* ========================================
   LINKS
======================================== */

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  margin: 0 0 24px;

  color: white;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;

  margin-bottom: 16px;

  color: #94a3b8;

  font-size: 16px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-column a:hover {
  color: white;

  transform: translateX(4px);
}

/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-contact span {
  color: #94a3b8;

  font-size: 14px;
  font-weight: 700;
}

.footer-legal {
  max-width: 620px;

  text-align: right;
}

.footer-legal span {
  color: #64748b;

  font-size: 13px;
  line-height: 1.7;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 850px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 650px) {
  .site-footer {
    padding: 80px 22px 34px;
  }

  .site-footer::after {
    width: 240px;
    height: 240px;
    right: -40px;
    bottom: 18%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-brand h3 {
    font-size: 34px;
  }

  .footer-brand p {
    font-size: 16px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}