/* Soft rounded footer backdrop, extending behind the Find Products panel. */
.closing-cta {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-bottom: 50px;
}

.site-footer {
  position: relative;
  background: var(--surface-footer);
  border-radius: 110px 0 0 0;
  margin-top: -110px;
  padding: 165px 6% 32px;
  color: var(--brand-blue);
}
.site-footer .footer-top {
  padding-bottom: 40px;
  gap: 30px;
}
.site-footer .footer-links {
  gap: 18px 28px;
  line-height: 1.7;
}
.site-footer .footer-bottom {
  border-color: var(--line);
  padding-top: 26px;
}
@media (max-width: 760px) {
  .closing-cta { padding-bottom: 38px; }
  .site-footer {
    border-top-left-radius: 65px;
    margin-top: -95px;
    padding-top: 135px;
  }
  .site-footer .footer-top { gap: 24px; }
  .site-footer .footer-links { gap: 14px 22px; }
}

/* Clear link groups with larger type and the existing Setria social marks. */
.footer-directory {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(160px, 1fr);
  gap: 45px;
  margin: 12px 0 45px;
}
.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.footer-directory h2 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 18px;
  line-height: 1.4;
}
.footer-link-group ul { list-style: none; padding: 0; margin: 0; }
.footer-link-group li + li { margin-top: 10px; }
.footer-link-group a { display: inline-block; padding: 3px 0; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--brand-blue);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social-links svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social-links a:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
@media (max-width: 1000px) {
  .footer-directory { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .footer-directory { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-social-links a { transition: none; }
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 0 28px;
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.7;
}

/* Alternative composition: brand rail, navigation panel, separate legal row. */
.footer-main{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,2fr);gap:70px;margin-bottom:48px}
.footer-brand-logo{display:inline-block;margin-bottom:24px}
.footer-brand-logo img{display:block;width:195px;height:auto}
.footer-brand>p{font-size:19px;line-height:1.5;margin:0 0 28px;letter-spacing:-.025em}
.footer-brand .footer-social h2{font-family:"DM Sans",Arial,sans-serif;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin:0 0 14px}
.footer-navigation{border-left:1px solid var(--line);padding-left:45px}
.footer-contact{font-size:24px;font-weight:500;letter-spacing:-.03em;margin-bottom:30px;padding-bottom:12px;border-bottom:1px solid #c6d0c9}
.site-footer .footer-links{gap:26px}
.footer-link-group h2{font-family:"DM Sans",Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0 0 18px;line-height:1.4}
.footer-legal{border-top:1px solid var(--line);padding-top:26px;display:flex;gap:40px;align-items:flex-start;justify-content:space-between}
.footer-legal .footer-disclaimer{font-size:13px;max-width:760px;margin:0;flex:2}
.footer-copyright{font-size:12px;line-height:1.7;margin:0;flex:1;text-align:right}
@media(max-width:1000px){.footer-main{grid-template-columns:1fr;gap:36px}.footer-brand{display:grid;grid-template-columns:1fr 1fr;gap:12px 30px;align-items:center}.footer-brand-logo{margin:0}.footer-brand>p{margin:0}.footer-brand .footer-social{grid-column:1/-1;margin-top:12px}.footer-navigation{border-left:0;border-top:1px solid var(--line);padding:30px 0 0}.footer-legal{flex-direction:column;gap:20px}.footer-copyright{text-align:left}}
@media(max-width:560px){.footer-brand{grid-template-columns:1fr;gap:20px}.footer-brand .footer-social{margin:0}.footer-brand>p{font-size:18px}.site-footer .footer-links{gap:28px 22px}.footer-contact{font-size:22px}}

/* The homepage ends with formulators; only the education page overlaps the CTA. */
body:has(#manufacturers) .site-footer { margin-top: 0; padding-top: 55px; }
@media (max-width: 760px) {
  body:has(#manufacturers) .site-footer { padding-top: 40px; }
}

@media (max-width: 760px) {
  .footer-disclaimer br { display: none; }
}
