/**
 * Footer styles.
 *
 * The source HTML had no footer, so this is authored for the theme. Values are
 * pulled from the existing design language in style.css: the #4349ed brand blue
 * used by .header-btn, the .goc-container width, and the Inter type stack.
 */

.site-footer {
  background: #0a0d12;
  color: #b6bcc9;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding: 72px 0 0;
}

/* ── Top ─────────────────────────────────────────────────────────────────── */

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 56px;
  padding-bottom: 56px;
}

.site-footer .footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.site-footer .footer-logo img {
  max-width: 180px;
  height: auto;
}

.site-footer .footer-about {
  margin: 0 0 24px;
  max-width: 38ch;
}

/* ── Socials ─────────────────────────────────────────────────────────────── */

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff14;
  transition: background 0.3s ease, transform 0.3s ease;
}

.site-footer .footer-socials a:hover {
  background: #4349ed;
  transform: translateY(-2px);
}

.site-footer .footer-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer .footer-socials span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ── Nav columns ─────────────────────────────────────────────────────────── */

.site-footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.site-footer .footer-col-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 18px;
}

.site-footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-col li + li {
  margin-top: 11px;
}

.site-footer .footer-col a {
  color: #b6bcc9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-col a:hover {
  color: #fff;
}

.site-footer .footer-address {
  max-width: 30ch;
}

/* ── Bottom ──────────────────────────────────────────────────────────────── */

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff1a;
  padding: 24px 0;
}

.site-footer .footer-copyright {
  margin: 0;
  font-size: 15px;
}

.site-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.site-footer .footer-legal a {
  color: #b6bcc9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-legal a:hover {
  color: #fff;
}

/* ── Scroll to top ───────────────────────────────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #4349ed;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 99;
}

.scroll-top-btn::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px auto 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
}

.scroll-top-btn:hover {
  background: #2530d8;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 56px;
  }

  .site-footer .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .site-footer .footer-about {
    max-width: none;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .site-footer .footer-nav {
    grid-template-columns: 1fr;
  }
}
