/* Footer: Platform / Solutions / Company columns + legal row (DESIGN-REFERENCE.md §9.5) */

.site-footer {
  background: var(--surface-dark);
  color: #CBD5E1;
  padding: 64px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}

.site-footer__logo {
  height: 28px;
  width: auto;
  /* the logo PNG is dark-on-transparent; brighten it for the dark footer background */
  filter: brightness(0) invert(1);
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--text-eyebrow-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__list a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 15px;
}

.site-footer__list a:hover {
  color: var(--accent-primary);
}

.site-footer__legal {
  border-top: 1px solid #334155;
  padding: 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94A3B8;
}

.site-footer__legal-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.site-footer__legal-links a {
  color: #94A3B8;
  text-decoration: none;
}

.site-footer__legal-links a:hover {
  color: var(--accent-primary);
}

/* Its own row (between the four-column grid and the copyright/legal row),
   with the same border-top rhythm as .site-footer__legal, so it reads as a
   deliberate part of the footer rather than something bolted onto a corner. */
.site-footer__social-row {
  border-top: 1px solid #334155;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer__social-label {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--text-eyebrow-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.site-footer__social {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

/* A visible pill button, not a bare icon -- filled circle with its own
   border, so it reads as part of the design at a glance instead of a small
   floating glyph. 40x40 comfortably clears the WCAG 2.2 24x24 minimum. */
.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: #0F172A;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

@media (max-width: 599px) {
  .site-footer__social-row {
    /* Stacked, left-aligned, well clear of the fixed call-widget's
       bottom-right corner (widgets.css) at every scroll position. */
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 899px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
