/* Marketing site footer — safe to load on app layouts (no global body resets). */

.site-footer {
  /* Tokens (scoped so app pages don't need marketing :root) */
  --color-brand: #057a44;
  --color-footer-bg: #121212;
  --color-footer-body-light: rgba(255, 255, 255, 0.7);
  --color-footer-white: #ffffff;
  --footer-radius: 1.5rem;
  --container-pad: clamp(1rem, 3vw, 2.5rem);
  --text-sm-size: 14px;
  --text-sm-line: 1.4;
  --text-sm-weight: 400;
  --text-xs-size: 12px;
  --text-xs-line: 18px;
  --footer-heading-size: 16px;
  --footer-heading-line: 24px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Reset conflicting app `footer` / site.css rules */
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: inherit;
  line-height: inherit;
  color: var(--color-footer-body-light);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* Avoid app `.container { max-width: 1240px }` collapsing the panel */
.site-footer > .container {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.site-footer__panel {
  padding: 2.5rem 2.5rem 1.75rem;
  background: var(--color-footer-bg);
  border-radius: var(--footer-radius);
  color: var(--color-footer-body-light);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 2rem;
  align-items: start;
}

.site-footer__links {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: start;
  justify-content: start;
  min-width: 0;
}

.site-footer__logo {
  display: inline-block;
  text-decoration: none;
}

.site-footer__logo img {
  display: block;
  width: 189px;
  max-width: 100%;
  height: auto;
}

.site-footer__tagline {
  margin: 1rem 0 0;
  /* ~2 lines for “Advanced benchmarking and financial intelligence network.” */
  max-width: 20rem;
  font-size: var(--text-sm-size);
  font-weight: var(--text-sm-weight);
  line-height: var(--text-sm-line);
  color: var(--color-footer-body-light);
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: var(--footer-heading-size);
  font-weight: 600;
  line-height: var(--footer-heading-line);
  letter-spacing: 0;
  text-transform: uppercase;
  color: #6ee7a8;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 0.75rem;
}

.site-footer__list a {
  font-size: var(--text-sm-size);
  font-weight: var(--text-sm-weight);
  line-height: var(--text-sm-line);
  color: var(--color-footer-body-light);
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--color-footer-white);
}

.site-footer__list--contact,
.site-footer__list--contact a {
  color: var(--color-footer-white);
  font-size: var(--text-sm-size);
  font-weight: var(--text-sm-weight);
  line-height: var(--text-sm-line);
}

.site-footer__col--contact {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}

.site-footer__list--contact li {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.site-footer__list--contact a:hover {
  color: var(--color-brand);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copyright {
  margin: 0;
  font-size: var(--text-xs-size);
  font-weight: 400;
  line-height: var(--text-xs-line);
  color: var(--color-footer-body-light);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.site-footer__legal-links a {
  font-size: var(--text-xs-size);
  font-weight: 400;
  line-height: var(--text-xs-line);
  color: var(--color-footer-body-light);
  text-decoration: none;
}

.site-footer__legal-links a:hover {
  color: var(--color-footer-white);
}

@media (max-width: 48rem) {
  .site-footer {
    padding: 0;
  }

  .site-footer__panel {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: var(--footer-radius, 1.5rem);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  /* Brand centered; link columns + contact left-aligned (Figma mobile) */
  .site-footer__links {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    width: 100%;
    justify-content: stretch;
    text-align: left;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .site-footer__logo img {
    margin-inline: auto;
  }

  .site-footer__tagline {
    width: 100%;
    max-width: 326px;
    margin-inline: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
  }

  .site-footer__heading {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    color: rgba(6, 147, 82, 1);
    text-align: left;
  }

  .site-footer__list,
  .site-footer__list a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
  }

  .site-footer__list a:hover {
    color: rgba(255, 255, 255, 1);
  }

  .site-footer__list--contact,
  .site-footer__list--contact a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 1);
  }

  .site-footer__col--contact {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    justify-self: stretch;
    text-align: left;
  }

  .site-footer__copyright,
  .site-footer__legal-links a {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.7);
  }

  .site-footer__legal-links a:hover {
    color: rgba(255, 255, 255, 1);
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .site-footer__copyright {
    text-align: center;
  }

  .site-footer__legal-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}
