/* ==========================================================================
   Site footer — reusable on every page.
   Markup: <footer class="site-footer"> in index.html.
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-zinc-900);
  color: var(--color-white);
  border-radius: 30px 30px 0 0;
}

/* faint 6×2 grid behind the footer (Figma "bg", 10% opacity) */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 504px;
  max-width: var(--container-max);
  margin-inline: auto;
  opacity: 0.1;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--color-grid-line) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 6) 100%,
    linear-gradient(to bottom, var(--color-grid-line) 1px, transparent 1px) 0 0 / 100% 252px;
}

.site-footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ---- CTA ---- */

.site-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__cta-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
}

.site-footer__cta-title em {
  font-style: normal;
  color: var(--color-main);
}

.join-btn {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  padding: 24px;
  border-radius: 50%;
  background: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.join-btn:hover {
  transform: scale(1.04);
}

.join-btn__sparkle {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
}

/* ---- Bottom: about + menus ---- */

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 334px;
}

.site-footer__logo {
  display: block;
  width: 100px;
  height: 64px;
}

.site-footer__logo img {
  width: 98.8px;
  height: 63px;
  object-fit: cover;
}

.site-footer__tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-medium);
  color: var(--color-zinc-200);
}

.social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social__link {
  display: flex;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease;
}

.social__link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.social__link img {
  width: 24px;
  height: 24px;
}

.site-footer__menus {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  width: 503px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100px;
  flex-shrink: 0;
}

.site-footer__menu a {
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-footer__menu a:hover {
  color: var(--color-main);
}

.site-footer__menu--contact {
  flex: 1 1 0;
  width: auto;
  flex-shrink: 1;
}

.site-footer__menu--contact address {
  font-style: normal;
}

@media (max-width: 992px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__menus {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-footer__inner {
    padding-bottom: 40px;
  }

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

  .site-footer__cta-title br {
    display: none;
  }

  .join-btn {
    width: 120px;
    height: 120px;
    font-size: 24px;
    line-height: 32px;
  }

  .join-btn__sparkle {
    width: 36px;
    height: 36px;
  }

  .site-footer__about {
    width: 100%;
  }

  .site-footer__menus {
    flex-wrap: wrap;
    gap: 32px 40px;
  }

  .site-footer__menu--contact {
    flex-basis: 100%;
  }
}
