/* Flexionex unified header/footer (match homepage) */
/* Montserrat loaded via <link> in JS to avoid @import parse issues */

body.flexionex-unified-header,
.fx-site-header,
.fx-site-footer,
.wpf-footer {
  --brand: #08a840;
  --brand-dark: #078a36;
  --navy: #0c2f1f;
  --navy-deep: #061a10;
  --muted: #f3f9f5;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

/* Hide Kadence chrome when unified header/footer is active */
body.flexionex-unified-header #colophon,
body.flexionex-unified-header footer.site-footer {
  display: none !important;
}

/* Site footer (homepage match) */
.fx-site-footer.wpf-footer,
footer.wpf-footer.fx-site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 56px 0 0;
  margin: 0;
}
.fx-site-footer .wpf-container,
.wpf-footer .wpf-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.fx-site-footer .wpf-footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .fx-site-footer .wpf-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  }
}
.fx-site-footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.fx-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fx-site-footer li,
.fx-site-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.fx-site-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.fx-site-footer a:hover { color: #fff; }
.fx-site-footer .wpf-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.fx-site-footer .wpf-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.fx-site-footer .wpf-social a:hover img { opacity: 1; }
.fx-site-footer .wpf-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* Category/marketing pages: kill hairline under sticky header */
body.flexionex-unified-header header.fx-site-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}
body.flexionex-unified-header.page .content-area,
body.flexionex-unified-header #primary {
  margin-top: 0 !important;
}
/* Pull first full-bleed hero flush under header if needed */
body.flexionex-unified-header .entry-content > main[class^="ux-"] > section:first-child,
body.flexionex-unified-header .entry-content > main[class^="ux-"] > .ux-hero-full:first-child,
body.flexionex-unified-header .entry-content > main[class^="ux-"] > .ux-hero-split:first-child,
body.flexionex-unified-header .entry-content > main[class^="ux-"] > .ux-mag-hero:first-child {
  margin-top: 0 !important;
}

/* === Mobile menu: scroll + lock (global) === */
.fx-site-header .wpf-mobile.is-open,
.wpf-header .wpf-mobile.is-open,
#wpf-mobile-menu.is-open,
#wpf-mobile-menu-site.is-open {
  display: block !important;
  max-height: calc(100dvh - 64px);
  max-height: calc(100vh - 64px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
html.wpf-menu-open,
html.wpf-menu-open body {
  overflow: hidden !important;
  touch-action: none;
  height: 100%;
}
/* Homepage SnapHTML header burger/panel (when MU header removed) */
.wpf-header .wpf-mobile { display: none; border-top: 1px solid #eee; background: #fff; }
.wpf-header .wpf-mobile.is-open { display: block; }
.wpf-header .wpf-mobile-inner { padding: 8px 20px 18px; max-width: 1440px; margin: 0 auto; }
.wpf-header .wpf-mobile a {
  display: block; padding: 12px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 14px; font-weight: 600; text-transform: uppercase; color: #222;
}
@media (min-width: 1024px) {
  .wpf-header .wpf-mobile,
  .wpf-header .wpf-mobile.is-open { display: none !important; }
}
