/* BFS Theme — legacy base (premium.css extends design system v2) */

:root {
  --bfs-blue-dark: #0E7AA6;
  --bfs-blue-light: #4EA6D1;
  --bfs-gray-dark: #5F6C6C;
  --bfs-gray-mid: #ADBABA;
  --bfs-gray-light: #ADBABA;
  --bfs-black: #161A1A;
  --bfs-white: #ffffff;
  --bfs-success: #2E7D32;
  --bfs-warning: #E8A33D;
  --bfs-error: #C62828;
  --bfs-proprietary: #B08D57;
  --bfs-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bfs-max-width: 1320px;
  --bfs-radius: 8px;
  --bfs-shadow: 0 8px 24px rgba(14, 90, 138, 0.08);
  --bfs-space-1: 8px;
  --bfs-space-2: 16px;
  --bfs-space-3: 24px;
  --bfs-space-4: 32px;
  --bfs-space-5: 48px;
  --bfs-space-6: 64px;
  --bfs-header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--bfs-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bfs-gray-dark);
  background: var(--bfs-white);
  overflow-x: clip;
  min-width: 0;
}

.bfs-main {
  overflow-x: clip;
  min-width: 0;
}

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bfs-blue-dark); text-decoration: none; }
a:hover { color: var(--bfs-blue-light); }

.bfs-container {
  width: min(100% - 2rem, var(--bfs-max-width));
  margin-inline: auto;
}

@media (max-width: 479px) {
  .bfs-container {
    width: min(100% - 1.25rem, var(--bfs-max-width));
  }
}

/* Header */
.bfs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bfs-white);
  box-shadow: var(--bfs-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.admin-bar .bfs-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .bfs-header {
    top: 46px;
  }
}

.bfs-header.is-scrolled {
  background: var(--bfs-white);
  box-shadow: var(--bfs-shadow);
}

.bfs-logo {
  flex-shrink: 0;
  min-width: 0;
}

.bfs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--bfs-header-height);
  gap: var(--bfs-space-2);
  flex-wrap: nowrap;
}
.bfs-logo img,
.bfs-logo__img { height: 56px; width: auto; max-width: 220px; }

.bfs-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.bfs-nav-toggle__bar,
.bfs-nav-toggle__bar::before,
.bfs-nav-toggle__bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bfs-black);
}
.bfs-nav-toggle__bar { position: relative; background: transparent; }
.bfs-nav-toggle__bar::before { position: absolute; top: -7px; left: 0; }
.bfs-nav-toggle__bar::after { position: absolute; top: 7px; left: 0; }

.bfs-nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.bfs-nav-open { overflow: hidden; }

.bfs-nav {
  position: fixed;
  inset: var(--bfs-header-height) 0 0 0;
  background: var(--bfs-white);
  padding: var(--bfs-space-3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999;
}
.bfs-nav.is-open { transform: translateX(0); }

.bfs-menu { list-style: none; margin: 0; padding: 0; }
.bfs-menu-item { border-bottom: 1px solid #eef2f5; }
.bfs-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0;
  color: var(--bfs-black);
  font-weight: 600;
}

.bfs-menu-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.bfs-menu-item.is-open > .bfs-menu-link .bfs-menu-chevron {
  transform: rotate(-135deg);
}
.bfs-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.bfs-menu-item.is-open > .bfs-submenu { max-height: 600px; }

.bfs-header__cta { width: 100%; margin-top: var(--bfs-space-2); text-align: center; }

@media (min-width: 1440px) {
  .bfs-nav-toggle { display: none; }
  .bfs-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--bfs-space-2);
    transform: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }
  .bfs-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem 0.25rem;
    align-items: center;
    justify-content: flex-end;
  }
  .bfs-menu-item { position: relative; border: 0; }
  .bfs-menu-link {
    padding: 0.35rem 0.45rem;
    font-weight: 500;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .bfs-header__cta {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .bfs-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--bfs-white);
    box-shadow: var(--bfs-shadow);
    border-radius: var(--bfs-radius);
    padding: var(--bfs-space-2);
    max-height: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .bfs-submenu--mega {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-width: min(480px, calc(100vw - 2rem));
    max-width: 560px;
  }
  .bfs-menu-item:last-child > .bfs-submenu,
  .bfs-menu-item:nth-last-child(2) > .bfs-submenu {
    left: auto;
    right: 0;
  }
  .bfs-menu-chevron { display: none; }
  .bfs-menu-item:hover > .bfs-submenu,
  .bfs-menu-item:focus-within > .bfs-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .bfs-header__cta { width: auto; margin-top: 0; }
}

@media (min-width: 1280px) {
  .bfs-menu-link {
    padding: 0.5rem;
    font-size: 0.9375rem;
  }

  .bfs-menu {
    gap: var(--bfs-space-1);
  }
}

/* Buttons */
.bfs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--bfs-radius);
  border: 2px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bfs-btn--primary { background: var(--bfs-blue-dark); color: var(--bfs-white); }
.bfs-btn--primary:hover { background: var(--bfs-blue-light); color: var(--bfs-white); }
.bfs-btn--secondary { background: transparent; border-color: var(--bfs-blue-dark); color: var(--bfs-blue-dark); }
.bfs-btn--accent { background: linear-gradient(135deg, var(--bfs-blue-dark), var(--bfs-blue-light)); color: var(--bfs-white); }
.bfs-btn--powerbi { border-color: var(--bfs-proprietary); }

/* Hero */
.bfs-hero {
  padding: var(--bfs-space-5) 0;
  background: linear-gradient(180deg, #f4f9fc 0%, var(--bfs-white) 100%);
}
.bfs-hero__grid {
  display: grid;
  gap: var(--bfs-space-4);
  align-items: center;
}
.bfs-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-2);
}
.bfs-hero__subtitle { font-size: 1.125rem; margin: 0 0 var(--bfs-space-3); max-width: 56ch; }
.bfs-hero__actions { display: flex; flex-wrap: wrap; gap: var(--bfs-space-2); }
.bfs-hero__media img { border-radius: calc(var(--bfs-radius) * 2); box-shadow: var(--bfs-shadow); }

@media (min-width: 992px) {
  .bfs-hero__grid { grid-template-columns: 1fr 1fr; }
}

/* Sections & grids */
.bfs-section { padding: var(--bfs-space-5) 0; }
.bfs-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-4);
}
.bfs-section__eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--bfs-gray-mid);
  margin-bottom: var(--bfs-space-2);
}
.bfs-section__action { text-align: center; margin-top: var(--bfs-space-3); }

.bfs-grid { display: grid; gap: var(--bfs-space-3); }
.bfs-grid--solutions,
.bfs-grid--sectors,
.bfs-grid--cards,
.bfs-grid--why { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .bfs-grid--solutions,
  .bfs-grid--sectors,
  .bfs-grid--cards,
  .bfs-grid--why { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .bfs-grid--solutions { grid-template-columns: repeat(3, 1fr); }
  .bfs-grid--sectors { grid-template-columns: repeat(3, 1fr); }
  .bfs-grid--cards,
  .bfs-grid--why { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .bfs-grid--sectors { grid-template-columns: repeat(5, 1fr); }
}

/* Cards */
.bfs-card {
  background: var(--bfs-white);
  border: 1px solid #e8edf2;
  border-radius: var(--bfs-radius);
  padding: var(--bfs-space-3);
  box-shadow: var(--bfs-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bfs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 90, 138, 0.12);
  z-index: 1;
}
.bfs-card__title { margin: 0 0 0.5rem; font-size: 1.125rem; color: var(--bfs-black); }
.bfs-card__text { margin: 0; font-size: 0.9375rem; }
.bfs-card__link { display: inline-block; margin-top: var(--bfs-space-2); font-weight: 600; }
.bfs-card__meta { font-size: 0.875rem; color: var(--bfs-gray-mid); }
.bfs-card__logo { max-height: 48px; width: auto; object-fit: contain; margin-bottom: var(--bfs-space-2); }

.bfs-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f4fa;
  color: var(--bfs-blue-dark);
}
.bfs-badge--proprietary { background: #e3f2f8; color: var(--bfs-proprietary); }

/* Counters */
.bfs-counters { background: var(--bfs-blue-dark); color: var(--bfs-white); }
.bfs-counters__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bfs-space-3);
  text-align: center;
}
@media (min-width: 768px) { .bfs-counters__grid { grid-template-columns: repeat(4, 1fr); } }
.bfs-counter__value { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1; }
.bfs-counter__label { font-size: 0.9375rem; opacity: 0.9; }

/* Logos ticker */
.bfs-logos-ticker { overflow: hidden; padding-bottom: var(--bfs-space-4); }
.bfs-logos-ticker__track { overflow: hidden; }
.bfs-logos-ticker__inner {
  display: flex;
  gap: var(--bfs-space-4);
  width: max-content;
  animation: bfs-ticker 40s linear infinite;
}
.bfs-logos-ticker:hover .bfs-logos-ticker__inner { animation-play-state: paused; }
.bfs-logos-ticker__inner img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.bfs-logos-ticker__inner img:hover { opacity: 1; filter: grayscale(0); }

@keyframes bfs-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CTA banner */
.bfs-cta-banner {
  background: linear-gradient(135deg, var(--bfs-blue-dark), var(--bfs-blue-light));
  color: var(--bfs-white);
  padding: var(--bfs-space-5) 0;
}
.bfs-cta-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--bfs-space-3);
  align-items: flex-start;
}
.bfs-cta-banner__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--bfs-white); }
@media (min-width: 768px) {
  .bfs-cta-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Forms */
.bfs-form { display: grid; gap: var(--bfs-space-2); }
.bfs-field { display: grid; gap: 0.35rem; }
.bfs-field span { font-weight: 600; font-size: 0.875rem; }
.bfs-field input,
.bfs-field select,
.bfs-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cfd8df;
  border-radius: var(--bfs-radius);
  font: inherit;
}
.bfs-field input:focus,
.bfs-field select:focus,
.bfs-field textarea:focus {
  outline: 2px solid var(--bfs-blue-light);
  border-color: var(--bfs-blue-light);
}
.bfs-hp { position: absolute; left: -9999px; }
.bfs-form__status { font-weight: 600; }
.bfs-form__status.is-error { color: var(--bfs-error); }
.bfs-form__status.is-success { color: var(--bfs-success); }

.bfs-conversion { display: grid; gap: var(--bfs-space-4); }
@media (min-width: 992px) {
  .bfs-conversion { grid-template-columns: 2fr 1fr; }
}

/* Accordion */
.bfs-accordion__item { border-bottom: 1px solid #e8edf2; }
.bfs-accordion__item summary {
  cursor: pointer;
  padding: var(--bfs-space-2) 0;
  font-weight: 600;
  list-style: none;
}
.bfs-accordion__item summary::-webkit-details-marker { display: none; }
.bfs-accordion__content { padding-bottom: var(--bfs-space-2); }

/* Footer */
.bfs-footer {
  background: #0a3048;
  color: #d7e4ee;
  padding-top: var(--bfs-space-5);
}
.bfs-footer__grid {
  display: grid;
  gap: var(--bfs-space-4);
  padding-bottom: var(--bfs-space-4);
}
.bfs-footer a { color: #d7e4ee; }
.bfs-footer__title { color: var(--bfs-white); margin: 0 0 var(--bfs-space-2); }
.bfs-footer__logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  margin-bottom: var(--bfs-space-2);
}
.bfs-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bfs-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--bfs-space-2) 0;
}
.bfs-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--bfs-space-2);
  font-size: 0.875rem;
}
.bfs-footer__legal { display: flex; gap: var(--bfs-space-2); }
@media (min-width: 768px) {
  .bfs-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .bfs-footer__bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Utilities */
.bfs-sticky-cta {
  position: fixed;
  bottom: var(--bfs-space-2);
  right: var(--bfs-space-2);
  z-index: 99;
  background: var(--bfs-blue-dark);
  color: var(--bfs-white);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--bfs-shadow);
}
.bfs-split { display: grid; gap: var(--bfs-space-3); }
@media (min-width: 768px) { .bfs-split { grid-template-columns: 1fr 1fr; align-items: center; } }

.bfs-filters { display: flex; flex-wrap: wrap; gap: var(--bfs-space-2); margin-bottom: var(--bfs-space-3); }
.bfs-filters select { min-width: 200px; padding: 0.5rem; }

.bfs-contact { display: grid; gap: var(--bfs-space-4); }

.bfs-thankyou { text-align: center; padding: var(--bfs-space-6) 0; }

/* Fade-in animation */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero variants ── */
.bfs-hero--compact {
  padding: var(--bfs-space-4) 0;
}

.bfs-hero--compact .bfs-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.bfs-hero--compact .bfs-hero__grid {
  grid-template-columns: 1fr;
}

.bfs-hero--compact .bfs-hero__media {
  display: none;
}

/* ── Section backgrounds ── */
.bfs-solutions-preview,
.bfs-sector-refs,
.bfs-references-preview {
  background: #f8fafc;
}

.bfs-testimonial-featured,
.bfs-sector-testimonials {
  background: #f4f9fc;
}

.bfs-signature {
  background: #f8fafc;
}

.bfs-section__intro {
  max-width: 65ch;
  margin: -1rem auto var(--bfs-space-4);
  text-align: center;
  color: var(--bfs-gray-mid);
  line-height: 1.7;
}

.bfs-why .bfs-section__title,
.bfs-signature .bfs-section__title {
  text-align: center;
}

.bfs-card--signature {
  border-color: #d4e8f4;
  background: var(--bfs-white);
}

.bfs-card--signature h3 {
  color: var(--bfs-blue-dark);
}

.bfs-counters + .bfs-section,
.bfs-logos-ticker + .bfs-section {
  padding-top: var(--bfs-space-4);
}

/* ── Card variants ── */
.bfs-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.bfs-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--bfs-black);
}

.bfs-card--solution .bfs-card__icon {
  margin-bottom: var(--bfs-space-2);
}

.bfs-card--solution .bfs-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bfs-card--solution .bfs-badge {
  align-self: flex-start;
  margin-bottom: var(--bfs-space-1);
}

.bfs-card--solution .bfs-card__text {
  flex: 1;
}

.bfs-card--sector {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: var(--bfs-space-3) var(--bfs-space-2);
  color: inherit;
  text-decoration: none;
}

.bfs-card--sector:hover {
  color: inherit;
}

.bfs-card__icon--sector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f4fa, #d4ebf7);
  margin-bottom: var(--bfs-space-2);
}

.bfs-card__icon--sector::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bfs-blue-dark);
  opacity: 0.7;
}

.bfs-card--icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: var(--bfs-space-2);
}

.bfs-card--reference {
  align-items: flex-start;
}

.bfs-card__confidential {
  font-weight: 600;
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-2);
}

.bfs-card--testimonial {
  max-width: 720px;
  margin-inline: auto;
}

.bfs-stars {
  color: #f5a623;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--bfs-space-2);
}

.bfs-card__quote {
  margin: 0 0 var(--bfs-space-3);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--bfs-black);
  font-style: italic;
}

.bfs-card__author {
  display: flex;
  align-items: center;
  gap: var(--bfs-space-2);
  margin-top: auto;
}

.bfs-card__author p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bfs-gray-mid);
}

.bfs-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.bfs-card--news {
  overflow: hidden;
  padding: 0;
}

.bfs-card--news img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bfs-card--news time,
.bfs-card--news h3,
.bfs-card--news p {
  padding-inline: var(--bfs-space-3);
}

.bfs-card--news time {
  display: block;
  padding-top: var(--bfs-space-2);
  font-size: 0.8125rem;
  color: var(--bfs-gray-mid);
}

.bfs-card--news h3 {
  padding-bottom: 0;
}

.bfs-card--news p {
  padding-bottom: var(--bfs-space-3);
  margin: 0;
}

.bfs-card--news h3 a {
  color: var(--bfs-black);
  text-decoration: none;
}

.bfs-card--news h3 a:hover {
  color: var(--bfs-blue-dark);
}

.bfs-card--news h2 {
  padding-inline: var(--bfs-space-3);
  padding-bottom: 0;
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.bfs-card--news h2 a {
  color: var(--bfs-black);
  text-decoration: none;
}

.bfs-card--news h2 a:hover {
  color: var(--bfs-blue-dark);
}

.bfs-card--career h3 {
  margin: 0 0 0.5rem;
}

.bfs-card--career h3 a {
  color: var(--bfs-black);
  text-decoration: none;
}

.bfs-card--career h3 a:hover {
  color: var(--bfs-blue-dark);
}

.bfs-card--highlight {
  margin-top: var(--bfs-space-4);
  text-align: center;
  background: linear-gradient(180deg, #f4f9fc 0%, var(--bfs-white) 100%);
}

.bfs-card--highlight h3 {
  margin: 0 0 var(--bfs-space-2);
}

/* ── Pagination ── */
.navigation.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--bfs-space-4);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid #e8edf2;
  border-radius: var(--bfs-radius);
  color: var(--bfs-blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--bfs-blue-dark);
  border-color: var(--bfs-blue-dark);
  color: var(--bfs-white);
}

/* ── Legacy migrated content safety ── */
.bfs-content .wpb_row,
.bfs-content .vc_row,
.bfs-content .wpb_column,
.bfs-content .vc_column_container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

.bfs-content [style*="width:"] {
  max-width: 100% !important;
}

.bfs-content pre {
  overflow-x: auto;
  max-width: 100%;
  padding: var(--bfs-space-2);
  background: #f8fafc;
  border-radius: var(--bfs-radius);
  font-size: 0.875rem;
}

/* ── Lists & accordion ── */
.bfs-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.bfs-accordion__cat {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: #e8f4fa;
  color: var(--bfs-blue-dark);
  border-radius: 999px;
  vertical-align: middle;
}

.bfs-accordion__content .bfs-content {
  max-width: none;
}

/* ── Integrations grid ── */
.bfs-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--bfs-space-3);
  align-items: center;
}

.bfs-logos-grid figure {
  margin: 0;
  text-align: center;
  min-width: 0;
}

.bfs-logos-grid img {
  max-height: 48px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.bfs-logos-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--bfs-gray-mid);
  overflow-wrap: break-word;
}

.bfs-integration-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bfs-integration-mark__img {
  max-height: 48px;
  max-width: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bfs-integration-mark__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.bfs-integration-mark__glyph svg {
  width: 48px;
  height: 48px;
  display: block;
}

.bfs-integration-mark__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e8f6fc;
  color: #0a4f6b;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── WYSIWYG prose ── */
.bfs-content {
  max-width: 75ch;
  line-height: 1.75;
}

.bfs-content > *:first-child {
  margin-top: 0;
}

.bfs-content > *:last-child {
  margin-bottom: 0;
}

.bfs-content h2,
.bfs-content h3,
.bfs-content h4 {
  color: var(--bfs-black);
  margin: var(--bfs-space-4) 0 var(--bfs-space-2);
  line-height: 1.3;
}

.bfs-content p,
.bfs-content ul,
.bfs-content ol {
  margin: 0 0 var(--bfs-space-2);
}

.bfs-content ul,
.bfs-content ol {
  padding-left: 1.25rem;
}

.bfs-content img,
.bfs-content iframe,
.bfs-content video,
.bfs-content embed {
  max-width: 100%;
  height: auto;
  border-radius: var(--bfs-radius);
}

.bfs-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin-bottom: var(--bfs-space-3);
  -webkit-overflow-scrolling: touch;
}

.bfs-content th,
.bfs-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e8edf2;
  text-align: left;
  font-size: 0.9375rem;
}

.bfs-content th {
  background: #f4f9fc;
  font-weight: 600;
}

.bfs-content blockquote {
  margin: var(--bfs-space-3) 0;
  padding: var(--bfs-space-2) var(--bfs-space-3);
  border-left: 4px solid var(--bfs-blue-light);
  background: #f8fafc;
  font-style: italic;
}

.bfs-content .wp-block-embed,
.bfs-content .bfs-video-embed {
  position: relative;
  width: 100%;
  margin: var(--bfs-space-3) 0;
}

.bfs-content .wp-block-embed iframe,
.bfs-video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  border: 0;
  border-radius: var(--bfs-radius);
}

/* ── Article layout ── */
.bfs-article {
  padding: 0;
}

.bfs-article__header {
  margin-bottom: var(--bfs-space-4);
}

.bfs-article__header time {
  display: block;
  font-size: 0.875rem;
  color: var(--bfs-gray-mid);
  margin-bottom: var(--bfs-space-2);
}

.bfs-article__header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bfs-black);
  margin: 0;
  line-height: 1.2;
}

.bfs-article__image {
  margin-bottom: var(--bfs-space-3);
  border-radius: calc(var(--bfs-radius) * 2);
  overflow: hidden;
}

.bfs-article__content {
  max-width: 75ch;
}

/* ── Contact page ── */
.bfs-contact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-3);
}

.bfs-contact__info address {
  font-style: normal;
  line-height: 1.8;
}

.bfs-contact__info address p {
  margin: 0 0 0.5rem;
}

/* Legacy contact layout overrides handled in premium-fix.css */

/* ── Conversion / forms ── */
.bfs-conversion__reassurance {
  color: var(--bfs-gray-mid);
  margin: 0 0 var(--bfs-space-3);
}

.bfs-conversion h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-2);
}

@media (min-width: 992px) {
  .bfs-conversion__aside {
    position: sticky;
    top: calc(var(--bfs-header-height) + var(--bfs-space-2));
    align-self: start;
    min-width: 0;
  }
}

.bfs-form fieldset {
  border: 0;
  margin: 0 0 var(--bfs-space-3);
  padding: 0;
  min-width: 0;
}

.bfs-form legend {
  font-weight: 600;
  color: var(--bfs-black);
  margin-bottom: var(--bfs-space-2);
  padding: 0;
}

.bfs-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.bfs-field--checkbox input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ── Filters ── */
.bfs-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 200px;
  min-width: 0;
}

.bfs-filters__group label {
  font-size: 0.875rem;
  font-weight: 600;
}

.bfs-filters select {
  width: 100%;
  max-width: 100%;
}

[data-bfs-load-more] {
  display: block;
  margin: var(--bfs-space-3) auto 0;
}

.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Career page ── */
.bfs-career-single {
  padding: var(--bfs-space-5) 0 calc(var(--bfs-space-6) + 72px);
}

.bfs-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: var(--bfs-space-3);
  color: var(--bfs-gray-mid);
}

.bfs-breadcrumb a {
  color: var(--bfs-blue-dark);
}

.bfs-career-single h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-2);
}

.bfs-career-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bfs-space-2);
  margin-bottom: var(--bfs-space-4);
  font-size: 0.9375rem;
  color: var(--bfs-gray-mid);
}

.bfs-career-single__meta span {
  padding: 0.25rem 0.75rem;
  background: #f4f9fc;
  border-radius: 999px;
}

.bfs-form-section {
  margin-top: var(--bfs-space-5);
  padding-top: var(--bfs-space-4);
  border-top: 1px solid #e8edf2;
}

.bfs-form-section h2 {
  margin: 0 0 var(--bfs-space-3);
  color: var(--bfs-black);
}

.bfs-sticky-cta {
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
}

/* ── Footer details ── */
.bfs-footer__desc {
  margin: 0 0 var(--bfs-space-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bfs-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bfs-space-2);
}

.bfs-footer__social a {
  font-size: 0.875rem;
  font-weight: 600;
}

.bfs-footer__contact {
  font-style: normal;
}

.bfs-footer__contact p {
  margin: 0 0 0.5rem;
}

.bfs-footer__legal {
  flex-wrap: wrap;
}

@media (min-width: 480px) and (max-width: 767px) {
  .bfs-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Thank you page ── */
.bfs-thankyou h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bfs-black);
}

/* ── Section titles in inner pages ── */
.bfs-section h2:not(.bfs-section__title) {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bfs-black);
  margin: 0 0 var(--bfs-space-4);
}

/* ── Mobile refinements ── */
@media (max-width: 767px) {
  .bfs-section {
    padding: var(--bfs-space-4) 0;
  }

  .bfs-hero {
    padding: var(--bfs-space-4) 0;
  }

  .bfs-cta-banner {
    padding: var(--bfs-space-4) 0;
  }

  .bfs-filters {
    flex-direction: column;
  }

  .bfs-filters select {
    min-width: 0;
  }

  .bfs-counter__value {
    font-size: 2rem;
  }

  .bfs-footer__legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .bfs-split {
    gap: var(--bfs-space-4);
  }

  .bfs-logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (max-width: 479px) {
  .bfs-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bfs-hero__actions .bfs-btn {
    width: 100%;
  }

  .bfs-header__inner {
    gap: var(--bfs-space-1);
  }

  .bfs-logo img,
  .bfs-logo__img {
    height: 44px;
    max-width: 160px;
  }

  .bfs-cta-banner__inner .bfs-btn {
    width: 100%;
  }

  .bfs-card {
    padding: var(--bfs-space-2);
  }

  .bfs-sticky-cta {
    left: var(--bfs-space-2);
    right: var(--bfs-space-2);
    text-align: center;
  }
}

/* ── Tablet refinements ── */
@media (min-width: 768px) and (max-width: 991px) {
  .bfs-grid--sectors {
    grid-template-columns: repeat(3, 1fr);
  }

  .bfs-conversion {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .bfs-card:hover {
    transform: none;
  }
}
