/* Profenx site chrome: header + footer.
   Shared by every page (new design and the legacy news / press release pages),
   so every selector is prefixed with px- to avoid clashing with legacy.css. */

:root {
  --px-navy: #0b2c69;
  --px-ink-muted: #4a5568;
  --px-dark: #020617;
  --px-dark-fg: #f0f6fc;
  --px-dark-muted: #94a6be;
  --px-dark-line: rgba(255, 255, 255, 0.1);
  --px-grad: linear-gradient(100deg, #2981fb, #00d1da 55%, #e5e74d);
  --px-on-grad: #040a1c;
  --px-header-h: 84px;
}

/* ---------- Header (white, full-colour logo) ---------- */
.px-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 44, 105, 0.08);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  transition: box-shadow 0.2s ease;
}
.px-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(2, 6, 23, 0.35); }

.px-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--px-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.px-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.px-brand img { height: 56px; width: auto; display: block; }

.px-nav { display: flex; align-items: center; gap: 28px; }
.px-nav__links { display: flex; align-items: center; gap: 24px; }
.px-nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--px-ink-muted);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.px-nav__links a:hover,
.px-nav__links a.is-active { color: var(--px-navy); }
.px-nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--px-grad);
}

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--px-grad);
  color: var(--px-on-grad);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.px-btn:hover { color: var(--px-on-grad); transform: translateY(-1px); filter: brightness(1.05); }

.px-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(11, 44, 105, 0.15);
  border-radius: 10px;
  background: #fff;
  color: var(--px-navy);
  cursor: pointer;
}
.px-nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1140px) {
  .px-nav-toggle { display: inline-flex; }
  .px-nav {
    position: absolute;
    top: var(--px-header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid rgba(11, 44, 105, 0.08);
    box-shadow: 0 18px 30px -18px rgba(2, 6, 23, 0.4);
    display: none;
  }
  .px-nav.is-open { display: flex; }
  .px-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .px-nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(11, 44, 105, 0.08); }
  .px-nav__links a.is-active::after { display: none; }
  .px-nav .px-btn { margin-top: 20px; padding: 14px 20px; font-size: 15px; }
}

/* ---------- Footer (dark) ---------- */
.px-footer {
  background: var(--px-dark);
  color: var(--px-dark-muted);
  border-top: 1px solid var(--px-dark-line);
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.px-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.px-footer__logo { height: 44px; width: auto; display: block; }
.px-footer__tagline { margin: 16px 0 0; max-width: 22rem; color: var(--px-dark-muted); }
.px-footer h4 {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00d1da;
}
.px-footer ul { list-style: none; margin: 0; padding: 0; }
.px-footer li { margin: 0 0 8px; }
.px-footer a { color: var(--px-dark-muted); text-decoration: none; transition: color 0.15s ease; }
.px-footer a:hover { color: var(--px-dark-fg); }
.px-footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--px-dark-line);
  font-size: 13px;
}
.px-footer__legal a { margin-left: 16px; }
.px-footer__company { grid-column: 1 / -1; margin: -24px 0 0; font-size: 12px; line-height: 1.6; color: var(--px-dark-muted); opacity: 0.85; }

@media (max-width: 760px) {
  .px-footer__inner { grid-template-columns: 1fr 1fr; padding-top: 48px; }
  .px-footer__brand { grid-column: 1 / -1; }
  .px-footer__legal { flex-direction: column; }
  .px-footer__legal a { margin: 0 16px 0 0; }
}
