/* FBDM Systems shared footer — approved navigation hierarchy.
   Loaded after the legacy stylesheet so the shared shell stays consistent.
   See src/components/site-shell.tsx for the semantic three-group structure. */
.site-footer {
  padding: clamp(3.5rem, 5vw, 5rem) 0 2rem;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.site-footer .footer-positioning {
  max-width: 34ch;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
}
.site-footer .footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}
.site-footer .footer-group-label {
  font: 500 .6875rem/1.5 var(--font-mono);
  letter-spacing: .075em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--primary-foreground) 65%, transparent);
}
.site-footer .footer-nav,
.site-footer .footer-connect,
.site-footer .footer-legal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: .125rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.site-footer .footer-links nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  max-width: 100%;
  font-size: .9375rem;
  line-height: 1.4;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--primary-foreground);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer .footer-links nav a:hover,
.site-footer .footer-links nav a:focus-visible {
  color: color-mix(in oklab, var(--accent) 45%, var(--primary-foreground));
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer .footer-links nav svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  font: 400 .6875rem/1.5 var(--font-mono);
  color: color-mix(in oklab, var(--primary-foreground) 65%, transparent);
}
@media (max-width: 700px) {
  .site-footer .footer-top { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }
  .site-footer .footer-group-information { grid-column: 1 / -1; }
  .site-footer .footer-legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.5rem;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}
@media (max-width: 350px) {
  .site-footer .footer-links { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-group-information { grid-column: auto; }
  .site-footer .footer-legal-nav { flex-direction: column; }
}
