/*
 * The site footer, shared by the home page (and its experiment routes), the
 * document pages and the B2B pages, so every page ends the same way.
 * Self-contained like site-header.css: own tokens, px sizing.
 *
 * Markup: public/index.html (home) and templates/partials/site-footer.html.
 */
.site-footer {
  --sf-bg: #003314;
  --sf-text: hsl(80, 10%, 95%);
  --sf-accent: hsl(67, 100%, 50%);
  /* Same side margins as the header; a steady vertical rhythm. */
  --sf-gutter: clamp(20px, 8px + 3vw, 48px);

  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(48px, 32px + 3vw, 80px) var(--sf-gutter);
  box-sizing: border-box;
  background-color: var(--sf-bg);
  color: var(--sf-text);
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 1320px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 450px;
  max-width: 100%;
}
.site-footer .site-logo {
  display: inline-flex;
}
.site-footer .site-logo svg,
.site-footer .site-logo img {
  display: block;
  width: 200px;
  height: auto;
}
/* The wordmark asset is dark; the footer shows it white. */
.site-footer .site-logo img {
  filter: brightness(0) invert(1);
}
.site-footer p {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}
/* PT/EN switch (filled in by tools/localize-pages.ts). */
.site-footer .footer-language {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid hsla(80, 10%, 95%, 0.25);
  border-radius: 100px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.site-footer .footer-language a {
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--sf-text);
  text-decoration: none;
}
.site-footer .footer-language a:hover,
.site-footer .footer-language a:focus-visible {
  color: var(--sf-accent);
}
.site-footer .footer-language a[aria-current="true"] {
  background-color: var(--sf-accent);
  color: var(--sf-bg);
}

.site-footer .footer-groups {
  display: flex;
  gap: 75px;
}
.site-footer .footer-group {
  width: 170px;
}
.site-footer .footer-group h2 {
  margin: 0 0 24px;
  color: var(--sf-accent);
  font-family: "Funnel Display", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.05px;
}
.site-footer .footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-group li {
  margin-bottom: 14px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.site-footer .footer-group a {
  color: inherit;
  text-decoration: none;
}
.site-footer .footer-group a:hover,
.site-footer .footer-group a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.site-footer a:focus-visible {
  outline: 3px solid var(--sf-accent);
  outline-offset: 4px;
}

/* Brand above the link columns. */
@media (max-width: 1400px) {
  .site-footer .footer-inner {
    flex-direction: column;
  }
  .site-footer .footer-brand {
    width: 100%;
  }
}
/* Link columns stacked. */
@media (max-width: 768px) {
  .site-footer .footer-groups {
    flex-direction: column;
    gap: 30px;
  }
}

@media print {
  .site-footer {
    display: none;
  }
}
