/*
 * Social links (#916): the Join-section "social-follow" block and the footer
 * row share one markup (components/SocialLinks.tsx). Ported from the
 * designer's handoff social.css (8 Nov 2026) — white circles, navy glyphs —
 * plus the handoff's footer tweaks (tagline grouped with the logo, darker
 * copyright text). Ours to maintain, not vendored verbatim: the footer row
 * wraps at very narrow widths, which the handoff did not need to handle.
 */
.social-follow {
  margin: 38px auto 0;
  padding: 10px 0;
  color: #14132e;
  width: calc(100% - 32px);
  max-width: 500px;
}

.social-follow h3 {
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #14132e;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link svg {
  display: block;
  width: 22px;
  height: 22px;
}

.social-link:focus-visible {
  outline: 3px solid #7bdefc;
  outline-offset: 4px;
}

@media (hover: hover) {
  .social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px #14132e18;
  }
}

.social-link:active {
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }
  .social-link:hover,
  .social-link:active {
    transform: none;
  }
}

/* Footer (handoff): one row of six 36px circles at every width — 6*36 + 5*10
   = 266px fits a 320px phone, so it never wraps. */
.footer .social-links {
  flex-wrap: nowrap;
  margin-top: 0;
  gap: 9px;
}

.footer .social-link {
  width: 36px;
  height: 36px;
}

.footer .social-link svg {
  width: 18px;
  height: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.footer-brand .brand {
  flex-shrink: 0;
}

.footer-brand span {
  white-space: nowrap;
}

.footer small {
  color: #3e354f;
}

/* 761-1239px: brand + 6 icons + legal row + copyright do not fit on one line
   (the base desktop rule is nowrap), which squeezed the copyright and stacked
   the legal links. Let the footer wrap: brand and icons on the first row,
   legal links and copyright each on a full-width row. 1240px and up is the
   unchanged single row. */
@media (min-width: 761px) and (max-width: 1239px) {
  .footer {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
  }
  .footer .social-links {
    width: auto;
  }
  .footer .footer-legal,
  .footer small {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .footer .social-links {
    width: 100%;
    gap: 10px;
  }
  .footer-brand {
    gap: 14px;
  }
  .footer small {
    text-align: center;
  }
}

/* Narrow screens: the Join block goes to two rows of three (the footer row
   stays a single row, see above). */
@media (max-width: 540px) {
  .social-follow .social-links {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    justify-content: center;
    gap: 12px 18px;
  }
  .social-follow .social-link {
    width: 44px;
    height: 44px;
  }
  .social-follow {
    padding-inline: 20px;
  }
}
