/* FOOTER */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.8fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.footer-links h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.back-to-top {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--white);
}

/* RESPONSIVE FOOTER */

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 58px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    font-size: 30px;
  }
}