/* ==========================================================================
   BFA Public Website — أكاديمية فتنس البحرين / Bahrain Fitness Academy

   Visual direction: Premium SportsTech + modern institutional academy +
   professional data-intelligence platform.

   DIRECTION MODEL (identical to bfa.css, and mandatory):
     dir="rtl" (Arabic)  -> header navigation starts RIGHT, sidebar on the RIGHT
     dir="ltr" (English) -> header navigation starts LEFT,  sidebar on the LEFT
   Every geometric rule below uses CSS LOGICAL PROPERTIES (inline-start /
   inline-end / margin-inline / padding-inline). Never `left` or `right` for
   geometry: a hardcoded side is the defect that breaks one language only, and
   it is invisible to a reviewer working in the other one.

   This file extends public/css/bfa.css. It does not redefine the app's tokens,
   because StylesheetContrastTest pins those to WCAG AA and a second definition
   here could silently break that guarantee. It adds a DISPLAY scale (the app
   uses 12–22px; a marketing page needs 48–64px headings) and the public
   sections.

   COLOUR PROVENANCE: the accent red and ink scale are inherited from the
   existing token layer, which is PROVISIONAL and unverified against the official
   brand asset (blocker B-02). Nothing here asserts they are the academy's
   official colours.

   IMAGERY: there is no licensed photography (blocker B-17). Rather than
   substitute stock photos of other people's athletes — which would misrepresent
   the academy — the hero and section visuals are composed from CSS: gradient
   fields, geometric forms and the icon set. They read as deliberate graphic
   design, not as a missing image.
   ========================================================================== */

/* ------------------------------------------------------- public tokens ---- */
:root {
  /* Display type scale. The app's --bfa-fs-* scale stops at 22px, which is
     correct for a dense admin table and far too small for a hero headline.
     clamp() is used rather than breakpoint overrides so a heading scales
     continuously with the viewport instead of jumping at three fixed widths. */
  --bfa-fs-display: clamp(2.4rem, 1.4rem + 4.2vw, 4rem);      /* 38 → 64px */
  --bfa-fs-h1: clamp(2rem, 1.3rem + 2.6vw, 3rem);             /* 32 → 48px */
  --bfa-fs-h2: clamp(1.6rem, 1.15rem + 1.9vw, 2.125rem);      /* 26 → 34px */
  --bfa-fs-h3: clamp(1.15rem, 1rem + 0.7vw, 1.375rem);        /* 18 → 22px */
  --bfa-fs-lead: clamp(1rem, 0.93rem + 0.35vw, 1.1875rem);    /* 16 → 19px */

  /* Section rhythm. One value controls the vertical space between every
     marketing section, so the page has a consistent pulse. */
  --bfa-section-y: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --bfa-container: 1200px;

  /* Public surfaces. `--bfa-ink-900` doubles as the dark section background:
     it is already the heading colour, so the dark sections and the headings
     share one near-black rather than introducing a second that clashes. */
  --bfa-pub-dark: #111318;
  --bfa-pub-dark-2: #1a1e25;
  --bfa-pub-charcoal: #20242b;
  --bfa-pub-off-white: #f7f8fa;
  --bfa-pub-border: #e8eaee;
  --bfa-pub-text-muted: #687180;

  --bfa-pub-header-h: 72px;
}

/* ------------------------------------------------------------- layout ---- */
.bfa-public {
  background: #ffffff;
  color: var(--bfa-ink-900);
  font-size: var(--bfa-fs-md);
  line-height: 1.7;
}

.bfa-pub-container {
  inline-size: 100%;
  max-inline-size: var(--bfa-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.bfa-pub-main { display: block; }

.bfa-pub-section {
  padding-block: var(--bfa-section-y);
}
.bfa-pub-section--tight { padding-block: calc(var(--bfa-section-y) * 0.6); }
.bfa-pub-section--dark {
  background: var(--bfa-pub-dark);
  color: #ffffff;
}
.bfa-pub-section--alt { background: var(--bfa-pub-off-white); }

/* Section heading block, used by every section for a consistent start. */
.bfa-pub-head {
  max-inline-size: 62ch;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.bfa-pub-head--center {
  margin-inline: auto;
  text-align: center;
}
.bfa-pub-eyebrow {
  display: inline-block;
  margin-block-end: var(--bfa-space-3);
  font-size: var(--bfa-fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bfa-red);
}
.bfa-pub-section--dark .bfa-pub-eyebrow { color: #ff6b7f; }

.bfa-pub-title {
  margin: 0 0 var(--bfa-space-4);
  font-size: var(--bfa-fs-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bfa-pub-title--lg { font-size: var(--bfa-fs-h1); }

.bfa-pub-lead {
  margin: 0;
  font-size: var(--bfa-fs-lead);
  color: var(--bfa-pub-text-muted);
  line-height: 1.65;
}
.bfa-pub-section--dark .bfa-pub-lead { color: #b6bec9; }

/* ------------------------------------------------------------- header ---- */
.bfa-pub-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: #ffffff;
  border-block-end: 1px solid var(--bfa-pub-border);
}
/* Applied by public.js once the page is scrolled, so the header separates
   from the hero without a shadow at rest. */
.bfa-pub-header.is-scrolled {
  box-shadow: 0 1px 20px #11131814;
}

.bfa-pub-header-inner {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-5);
  max-inline-size: var(--bfa-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem);
  block-size: var(--bfa-pub-header-h);
  /* The row must never be wider than its container. Without this the flex
     children overflowed the left edge in RTL at 360px. */
  inline-size: 100%;
  min-inline-size: 0;
}

.bfa-pub-brand {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-3);
  text-decoration: none;
  color: inherit;
  /* Shrinkable, with a zero minimum, so the brand yields space to the actions
     rather than pushing them off the edge. At 360px the wordmark and the CTA
     together exceeded the viewport and the header scrolled sideways. */
  min-inline-size: 0;
  flex-shrink: 1;
}
.bfa-pub-brand .bfa-brand-mark { flex-shrink: 0; }
.bfa-pub-brand .bfa-brand-text { min-inline-size: 0; overflow: hidden; }
/* The wordmark is a placeholder while the official logo is missing (B-01).
   Styled as a deliberate brand lockup rather than an obvious gap, but it is
   never presented as the logo. */
.bfa-public .bfa-brand-mark {
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: var(--bfa-radius-sm);
  background: var(--bfa-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.bfa-public .bfa-brand-text strong {
  display: block;
  font-size: var(--bfa-fs-md);
  font-weight: 700;
  color: var(--bfa-ink-900);
  line-height: 1.2;
}
.bfa-public .bfa-brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--bfa-pub-text-muted);
  text-transform: uppercase;
}

/* Desktop navigation. `margin-inline-start: auto` pushes it away from the
   brand, so it sits at the inline-end of the row — the RIGHT in Arabic and the
   LEFT in English, from one rule. */
.bfa-pub-nav {
  margin-inline-start: auto;
}
.bfa-pub-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.1rem + 0.6vw, 0.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bfa-pub-nav-link {
  display: block;
  padding: var(--bfa-space-2) var(--bfa-space-3);
  border-radius: var(--bfa-radius-sm);
  font-size: var(--bfa-fs-base);
  font-weight: 500;
  color: var(--bfa-ink-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.bfa-pub-nav-link:hover {
  color: var(--bfa-ink-900);
  background: var(--bfa-pub-off-white);
}
.bfa-pub-nav-link.is-active {
  color: var(--bfa-red);
  font-weight: 600;
}

.bfa-pub-actions {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-3);
  flex-shrink: 0;
}
.bfa-public .bfa-lang {
  font-size: var(--bfa-fs-base);
  font-weight: 500;
  color: var(--bfa-ink-700);
  text-decoration: none;
  padding: var(--bfa-space-2);
  border-radius: var(--bfa-radius-sm);
}
.bfa-public .bfa-lang:hover { color: var(--bfa-red); }

.bfa-pub-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--bfa-pub-border);
  border-radius: var(--bfa-radius-sm);
  background: #ffffff;
  color: var(--bfa-ink-900);
  cursor: pointer;
}

/* Mobile navigation panel. Toggled with the `hidden` attribute so it is
   absent from the accessibility tree when closed and works with no JS beyond
   flipping the attribute. */
.bfa-pub-mobile-nav {
  border-block-start: 1px solid var(--bfa-pub-border);
  background: #ffffff;
  padding: var(--bfa-space-4) clamp(1rem, 0.5rem + 2vw, 2rem);
}
.bfa-pub-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bfa-space-1);
}
.bfa-pub-mobile-nav .bfa-pub-nav-link {
  padding: var(--bfa-space-3);
  font-size: var(--bfa-fs-md);
}

/* ------------------------------------------------------------- buttons --- */
/* The app's button set is reused; these are the public-page size modifiers. */
.bfa-public .bfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bfa-space-2);
  padding: var(--bfa-space-3) var(--bfa-space-5);
  border: 1px solid transparent;
  border-radius: var(--bfa-radius-sm);
  font-family: inherit;
  font-size: var(--bfa-fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bfa-btn-sm { padding: var(--bfa-space-2) var(--bfa-space-4); }
.bfa-btn-lg { padding: var(--bfa-space-4) var(--bfa-space-6); font-size: var(--bfa-fs-md); }

.bfa-public .bfa-btn-primary {
  background: var(--bfa-red);
  color: #ffffff;
}
.bfa-public .bfa-btn-primary:hover { background: var(--bfa-red-strong); }

.bfa-public .bfa-btn-ghost {
  background: transparent;
  color: var(--bfa-ink-700);
  border-color: var(--bfa-pub-border);
}
.bfa-public .bfa-btn-ghost:hover {
  background: var(--bfa-pub-off-white);
  color: var(--bfa-ink-900);
}

/* Outline button for use on dark sections, where the ghost variant would
   disappear. */
.bfa-public .bfa-btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff40;
}
.bfa-public .bfa-btn-outline-light:hover {
  background: #ffffff14;
  border-color: #ffffff70;
}

/* --------------------------------------------------------------- hero ---- */
/* No photography is licensed (B-17), so the hero is a composed graphic:
   a dark field, a soft radial accent, a faint grid and a diagonal sheen. It is
   deliberately restrained — one accent, no heavy gradient, no oversized glow —
   because the brief asks for a credible institution rather than a game
   trailer. */
.bfa-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 82% 8%, #c8102e2e 0%, transparent 55%),
    radial-gradient(90% 90% at 8% 100%, #1f6feb1f 0%, transparent 50%),
    linear-gradient(160deg, #111318 0%, #16191f 55%, #1a1e25 100%);
  color: #ffffff;
}
/* Faint grid. `repeating-linear-gradient` needs no asset and no request. */
.bfa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0a 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
/* Diagonal sheen, subtle. */
.bfa-hero::after {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  inline-size: 60%;
  block-size: 160%;
  background: linear-gradient(100deg, transparent 40%, #ffffff08 50%, transparent 60%);
  transform: rotate(12deg);
  pointer-events: none;
}

.bfa-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  max-inline-size: var(--bfa-container);
  margin-inline: auto;
  padding: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(1rem, 0.5rem + 2vw, 2rem);
}

.bfa-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bfa-space-2);
  margin-block-end: var(--bfa-space-5);
  padding: var(--bfa-space-2) var(--bfa-space-4);
  border: 1px solid #ffffff26;
  border-radius: var(--bfa-radius-pill);
  background: #ffffff0f;
  font-size: var(--bfa-fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffffd9;
}
.bfa-hero-eyebrow .bfa-icon { color: #ff6b7f; }

.bfa-hero-title {
  margin: 0 0 var(--bfa-space-5);
  font-size: var(--bfa-fs-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.bfa-hero-sub {
  max-inline-size: 56ch;
  margin: 0 0 var(--bfa-space-6);
  font-size: var(--bfa-fs-lead);
  line-height: 1.7;
  color: #c4ccd6;
}

.bfa-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bfa-space-3);
}

/* Hero visual: a composed "data panel" rather than a fake photograph. It
   reads as a product surface, which is honest — the platform is the product. */
.bfa-hero-visual {
  position: relative;
  padding: var(--bfa-space-5);
  border: 1px solid #ffffff1f;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff12 0%, #ffffff06 100%);
  backdrop-filter: blur(2px);
}
.bfa-hero-visual-head {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-2);
  margin-block-end: var(--bfa-space-4);
  font-size: var(--bfa-fs-sm);
  color: #b6bec9;
}
.bfa-hero-visual-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: #16855a;
}

/* Bars are decorative shapes, not a chart of real values. Marked
   aria-hidden in the markup. */
.bfa-hero-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--bfa-space-2);
  block-size: 120px;
  margin-block-end: var(--bfa-space-4);
}
.bfa-hero-bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #c8102e 0%, #c8102e66 100%);
}
.bfa-hero-bar:nth-child(odd) { background: linear-gradient(180deg, #ffffff33 0%, #ffffff14 100%); }

.bfa-hero-visual-rows {
  display: flex;
  flex-direction: column;
  gap: var(--bfa-space-2);
}
.bfa-hero-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bfa-space-2) var(--bfa-space-3);
  border-radius: var(--bfa-radius-sm);
  background: #ffffff0d;
  font-size: var(--bfa-fs-sm);
  color: #cdd4dd;
}
.bfa-hero-visual-row strong { color: #ffffff; font-weight: 600; }

/* --------------------------------------------------- capabilities grid --- */
.bfa-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--bfa-space-5);
}
.bfa-cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--bfa-space-5);
  border: 1px solid var(--bfa-pub-border);
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.bfa-cap-card:hover,
.bfa-cap-card:focus-visible {
  border-color: #c8102e40;
  box-shadow: 0 10px 34px #11131814;
  transform: translateY(-2px);
}
.bfa-cap-icon {
  display: grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  margin-block-end: var(--bfa-space-4);
  border-radius: 12px;
  background: var(--bfa-red-soft);
  color: var(--bfa-red);
}
.bfa-cap-title {
  margin: 0 0 var(--bfa-space-2);
  font-size: var(--bfa-fs-h3);
  font-weight: 700;
  line-height: 1.3;
}
.bfa-cap-summary {
  margin: 0 0 var(--bfa-space-4);
  font-size: var(--bfa-fs-base);
  color: var(--bfa-pub-text-muted);
  line-height: 1.65;
}
.bfa-cap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bfa-space-3);
  margin-block-start: auto;
  padding-block-start: var(--bfa-space-3);
  border-block-start: 1px solid var(--bfa-pub-border);
  font-size: var(--bfa-fs-sm);
  font-weight: 600;
  color: var(--bfa-red);
}
.bfa-cap-more {
  display: inline-flex;
  align-items: center;
  gap: var(--bfa-space-1);
}
/* The arrow points along the reading direction. In RTL the mirrored glyph is
   correct, which is why the icon is flipped rather than swapped in markup. */
[dir="rtl"] .bfa-cap-more .bfa-icon { transform: scaleX(-1); }

/* --------------------------------------------- availability status badge -- */
/* Rendered on every service card. The brief forbids presenting a service as
   live when it is not, and this badge is the mechanism that makes that
   structural rather than a matter of remembering. */
.bfa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--bfa-radius-pill);
  font-size: var(--bfa-fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.bfa-status::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
}
.bfa-status--available {
  background: #e1f5ed;
  color: #0a6640;
}
.bfa-status--integration_ready {
  background: #e8f0fe;
  color: #1a4fa0;
}
.bfa-status--planned {
  background: #fff0cf;
  color: #7d4d00;
}
/* On a dark surface the tinted badges lose contrast, so the dark section uses
   an outline treatment instead of a fill. */
.bfa-pub-section--dark .bfa-status--available { background: #16855a33; color: #6ee7b7; }
.bfa-pub-section--dark .bfa-status--integration_ready { background: #1f6feb33; color: #93c5fd; }
.bfa-pub-section--dark .bfa-status--planned { background: #d9911833; color: #fcd34d; }

/* Qualifier shown beside a service that is not yet available. */
.bfa-status-note {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-2);
  margin-block-start: var(--bfa-space-3);
  padding: var(--bfa-space-3);
  border-radius: var(--bfa-radius-sm);
  background: var(--bfa-pub-off-white);
  font-size: var(--bfa-fs-sm);
  line-height: 1.55;
  color: var(--bfa-ink-700);
}
.bfa-pub-section--dark .bfa-status-note {
  background: #ffffff0f;
  color: #c4ccd6;
}
.bfa-status-note .bfa-icon { flex-shrink: 0; margin-block-start: 2px; color: var(--bfa-pub-text-muted); }

/* ------------------------------------------------ problems / responses --- */
.bfa-problem-list {
  display: grid;
  gap: var(--bfa-space-4);
}
.bfa-problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: var(--bfa-space-4);
  padding: var(--bfa-space-5);
  border: 1px solid var(--bfa-pub-border);
  border-radius: 14px;
  background: #ffffff;
}
.bfa-problem-side { display: flex; gap: var(--bfa-space-3); }
.bfa-problem-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  background: var(--bfa-pub-off-white);
  font-size: var(--bfa-fs-sm);
  font-weight: 700;
  color: var(--bfa-pub-text-muted);
}
.bfa-problem-title {
  margin: 0 0 6px;
  font-size: var(--bfa-fs-md);
  font-weight: 700;
}
.bfa-problem-body {
  margin: 0;
  font-size: var(--bfa-fs-base);
  color: var(--bfa-pub-text-muted);
  line-height: 1.6;
}
/* The arrow between challenge and response, and the visual hinge of the
   whole section. */
.bfa-problem-arrow {
  display: grid;
  place-items: center;
  color: var(--bfa-red);
}
[dir="rtl"] .bfa-problem-arrow .bfa-icon { transform: scaleX(-1); }

.bfa-problem-response {
  padding: var(--bfa-space-4);
  border-radius: var(--bfa-radius-md);
  background: var(--bfa-red-soft);
}
.bfa-problem-response .bfa-problem-title { color: var(--bfa-red-strong); }

/* ------------------------------------------------ ecosystem diagram ------ */
/* A hub with satellites. Built as a responsive grid rather than absolutely
   positioned SVG nodes: absolute positioning cannot reflow, and this has to
   work at 360px. On wide screens the hub sits centred with the nodes around it;
   below that it becomes a single column, which is the "readable mobile
   alternative" the brief requires. */
.bfa-ecosystem {
  display: grid;
  gap: var(--bfa-space-6);
}
.bfa-eco-hub {
  display: grid;
  place-items: center;
  gap: var(--bfa-space-2);
  justify-self: center;
  padding: var(--bfa-space-6) var(--bfa-space-7, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(150deg, var(--bfa-red) 0%, var(--bfa-red-strong) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 44px #c8102e2e;
}
.bfa-eco-hub strong { font-size: var(--bfa-fs-h3); font-weight: 800; }
.bfa-eco-hub small { font-size: var(--bfa-fs-sm); opacity: 0.85; }

.bfa-eco-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--bfa-space-3);
}
.bfa-eco-node {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-3);
  padding: var(--bfa-space-3) var(--bfa-space-4);
  border: 1px solid var(--bfa-pub-border);
  border-radius: var(--bfa-radius-md);
  background: #ffffff;
  font-size: var(--bfa-fs-base);
  font-weight: 500;
}
.bfa-eco-node .bfa-icon { color: var(--bfa-red); flex-shrink: 0; }

.bfa-eco-note {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-3);
  padding: var(--bfa-space-4);
  border-radius: var(--bfa-radius-md);
  background: var(--bfa-pub-off-white);
  border: 1px solid var(--bfa-pub-border);
  font-size: var(--bfa-fs-base);
  color: var(--bfa-ink-700);
}
.bfa-eco-note .bfa-icon { flex-shrink: 0; color: var(--bfa-red); margin-block-start: 3px; }

/* ------------------------------------------------- journey timeline ------ */
/* Horizontal on wide screens, vertical below 900px. The connector line is a
   pseudo-element on the step, positioned with logical insets so it mirrors. */
.bfa-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--bfa-space-4);
  counter-reset: step;
}
.bfa-journey-step {
  position: relative;
  padding-block-start: var(--bfa-space-7, 2.5rem);
}
.bfa-journey-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: 50%;
  background: var(--bfa-red);
  color: #ffffff;
  font-size: var(--bfa-fs-base);
  font-weight: 700;
  z-index: 1;
}
/* Connector: runs from this step's marker toward the next. */
.bfa-journey-step::after {
  content: "";
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 34px;
  inline-size: calc(100% - 34px + var(--bfa-space-4));
  block-size: 2px;
  background: var(--bfa-pub-border);
}
.bfa-journey-step:last-child::after { display: none; }

.bfa-journey-title {
  margin: 0 0 var(--bfa-space-1);
  font-size: var(--bfa-fs-md);
  font-weight: 700;
  line-height: 1.35;
}
.bfa-journey-body {
  margin: 0 0 var(--bfa-space-2);
  font-size: var(--bfa-fs-base);
  color: var(--bfa-pub-text-muted);
  line-height: 1.6;
}
/* Which steps are usable today and which are waiting. The brief requires the
   distinction, and it is shown per step rather than in a footnote. */
.bfa-journey-state {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--bfa-radius-pill);
  font-size: var(--bfa-fs-sm);
  font-weight: 600;
}
.bfa-journey-state--available { background: #e1f5ed; color: #0a6640; }
.bfa-journey-state--partial { background: #e8f0fe; color: #1a4fa0; }
.bfa-journey-state--pending { background: #fff0cf; color: #7d4d00; }

/* ------------------------------------------------- two-column feature --- */
.bfa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}
.bfa-split--reverse .bfa-split-visual { order: -1; }

.bfa-feature-list {
  display: grid;
  gap: var(--bfa-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bfa-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-3);
  font-size: var(--bfa-fs-md);
}
.bfa-feature-list .bfa-icon {
  flex-shrink: 0;
  margin-block-start: 3px;
  color: var(--bfa-red);
}
.bfa-pub-section--dark .bfa-feature-list .bfa-icon { color: #ff6b7f; }

/* Composed visual for the assessment section: a mock data surface, clearly
   labelled as demonstration. */
.bfa-surface {
  padding: var(--bfa-space-5);
  border: 1px solid var(--bfa-pub-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 40px #1113180f;
}
.bfa-pub-section--dark .bfa-surface {
  background: var(--bfa-pub-dark-2);
  border-color: #ffffff1a;
}
.bfa-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bfa-space-3);
  margin-block-end: var(--bfa-space-4);
  padding-block-end: var(--bfa-space-3);
  border-block-end: 1px solid var(--bfa-pub-border);
  font-size: var(--bfa-fs-sm);
  font-weight: 600;
}
.bfa-pub-section--dark .bfa-surface-head { border-color: #ffffff1a; }

.bfa-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--bfa-radius-pill);
  background: var(--bfa-pub-off-white);
  border: 1px solid var(--bfa-pub-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--bfa-pub-text-muted);
}
.bfa-pub-section--dark .bfa-demo-tag {
  background: #ffffff0f;
  border-color: #ffffff1f;
  color: #b6bec9;
}

.bfa-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--bfa-space-3);
}
.bfa-metric {
  padding: var(--bfa-space-3);
  border-radius: var(--bfa-radius-md);
  background: var(--bfa-pub-off-white);
}
.bfa-pub-section--dark .bfa-metric { background: #ffffff0d; }
.bfa-metric-label { font-size: var(--bfa-fs-sm); color: var(--bfa-pub-text-muted); }
.bfa-pub-section--dark .bfa-metric-label { color: #98a2b0; }
.bfa-metric-value {
  margin-block-start: 4px;
  font-size: var(--bfa-fs-lg);
  font-weight: 700;
}

/* Decorative trend line. aria-hidden in markup: it depicts no real series. */
.bfa-sparkline {
  inline-size: 100%;
  block-size: 88px;
  margin-block-start: var(--bfa-space-4);
}
.bfa-sparkline path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.bfa-sparkline .line-a { stroke: var(--bfa-red); }
.bfa-sparkline .line-b { stroke: #687180; stroke-dasharray: 5 5; }
.bfa-sparkline .area { fill: #c8102e1a; stroke: none; }

/* ------------------------------------------------------ icon grid ------- */
.bfa-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--bfa-space-4);
}
.bfa-icon-card {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-3);
  padding: var(--bfa-space-4);
  border: 1px solid var(--bfa-pub-border);
  border-radius: var(--bfa-radius-md);
  background: #ffffff;
  font-size: var(--bfa-fs-md);
  font-weight: 500;
}
.bfa-icon-card .bfa-icon { color: var(--bfa-red); flex-shrink: 0; }
.bfa-pub-section--dark .bfa-icon-card {
  background: #ffffff0d;
  border-color: #ffffff1a;
  color: #ffffff;
}
.bfa-pub-section--dark .bfa-icon-card .bfa-icon { color: #ff6b7f; }

/* ------------------------------------------------------- impact grid ---- */
.bfa-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--bfa-space-5);
}
.bfa-impact-card {
  padding: var(--bfa-space-5);
  border: 1px solid var(--bfa-pub-border);
  border-radius: 14px;
  background: #ffffff;
}
.bfa-impact-title {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-2);
  margin: 0 0 var(--bfa-space-4);
  font-size: var(--bfa-fs-md);
  font-weight: 700;
  color: var(--bfa-red);
}
.bfa-impact-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--bfa-space-2);
}
.bfa-impact-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-2);
  font-size: var(--bfa-fs-base);
  color: var(--bfa-ink-700);
  line-height: 1.55;
}
.bfa-impact-card li .bfa-icon {
  flex-shrink: 0;
  margin-block-start: 4px;
  color: var(--bfa-red);
}

/* --------------------------------------------------- service detail ----- */
.bfa-service-hero {
  padding-block: calc(var(--bfa-section-y) * 0.7) var(--bfa-space-6);
  background: var(--bfa-pub-off-white);
  border-block-end: 1px solid var(--bfa-pub-border);
}
.bfa-service-hero-icon {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  margin-block-end: var(--bfa-space-4);
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--bfa-pub-border);
  color: var(--bfa-red);
}
.bfa-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bfa-space-2);
  margin-block-end: var(--bfa-space-5);
  font-size: var(--bfa-fs-base);
  font-weight: 600;
  color: var(--bfa-pub-text-muted);
  text-decoration: none;
}
.bfa-back-link:hover { color: var(--bfa-red); }
[dir="rtl"] .bfa-back-link .bfa-icon { transform: scaleX(-1); }

.bfa-prose {
  max-inline-size: 68ch;
  font-size: var(--bfa-fs-md);
  line-height: 1.8;
  color: var(--bfa-ink-700);
}
.bfa-prose p { margin-block: 0 var(--bfa-space-4); }

/* -------------------------------------------------------- contact ------- */
.bfa-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.bfa-contact-details {
  display: grid;
  gap: var(--bfa-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bfa-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-3);
  font-size: var(--bfa-fs-md);
}
.bfa-contact-details .bfa-icon {
  flex-shrink: 0;
  margin-block-start: 3px;
  color: var(--bfa-red);
}

.bfa-form {
  display: grid;
  gap: var(--bfa-space-4);
  padding: clamp(1.25rem, 1rem + 2vw, 2rem);
  border: 1px solid var(--bfa-pub-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 40px #1113180f;
}
.bfa-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bfa-space-4);
}
.bfa-public .bfa-field { display: grid; gap: 6px; }
.bfa-public .bfa-field label {
  font-size: var(--bfa-fs-base);
  font-weight: 600;
  color: var(--bfa-ink-700);
}
.bfa-public .bfa-input,
.bfa-public .bfa-textarea {
  inline-size: 100%;
  padding: var(--bfa-space-3);
  border: 1px solid var(--bfa-pub-border);
  border-radius: var(--bfa-radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: var(--bfa-fs-md);
  color: var(--bfa-ink-900);
}
.bfa-public .bfa-input:focus,
.bfa-public .bfa-textarea:focus {
  outline: 2px solid var(--bfa-focus);
  outline-offset: 1px;
  border-color: var(--bfa-focus);
}
.bfa-public .bfa-textarea { min-block-size: 140px; resize: vertical; }

.bfa-required { color: var(--bfa-red); }

/* Honeypot. Off-screen rather than `display:none`: a bot that inspects the
   stylesheet can detect `display:none` and skip the field, while a field that
   is merely positioned off-screen looks ordinary to a parser. Hidden from
   assistive technology so a real person can never reach it. */
.bfa-honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------- footer ------ */
.bfa-pub-footer {
  background: var(--bfa-pub-dark);
  color: #b6bec9;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) var(--bfa-space-6);
}
.bfa-pub-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  max-inline-size: var(--bfa-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem);
}
.bfa-pub-footer-brand { display: grid; gap: var(--bfa-space-3); justify-items: start; }
.bfa-pub-footer-brand strong { color: #ffffff; font-size: var(--bfa-fs-md); display: block; }
.bfa-pub-footer-brand small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.bfa-pub-footer-brand p { margin: 0; font-size: var(--bfa-fs-base); line-height: 1.7; max-inline-size: 40ch; }

.bfa-pub-footer-col h2 {
  margin: 0 0 var(--bfa-space-4);
  font-size: var(--bfa-fs-base);
  font-weight: 700;
  color: #ffffff;
}
.bfa-pub-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--bfa-space-2);
}
.bfa-pub-footer-col a {
  color: #b6bec9;
  text-decoration: none;
  font-size: var(--bfa-fs-base);
}
.bfa-pub-footer-col a:hover { color: #ffffff; text-decoration: underline; }

.bfa-pub-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--bfa-space-2);
  font-size: var(--bfa-fs-base);
}
.bfa-pub-footer-contact .bfa-icon { flex-shrink: 0; margin-block-start: 3px; }
.bfa-pub-social { display: flex; gap: var(--bfa-space-4); flex-wrap: wrap; }

.bfa-pub-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bfa-space-4);
  flex-wrap: wrap;
  max-inline-size: var(--bfa-container);
  margin: var(--bfa-space-6) auto 0;
  padding: var(--bfa-space-5) clamp(1rem, 0.5rem + 2vw, 2rem) 0;
  border-block-start: 1px solid #ffffff1a;
  font-size: var(--bfa-fs-sm);
}
.bfa-pub-footer-bottom p { margin: 0; }

/* Wrapper for the pending legal note, so it can be aligned independently of
   the copyright line on a narrow screen. */
.bfa-pub-footer-legal { display: flex; justify-content: flex-end; }
@media (max-width: 620px) {
  .bfa-pub-footer-legal { justify-content: flex-start; }
}

/* A value that is pending rather than known. Used for contact details and the
   legal pages, both of which are genuinely unknown (blockers B-18). */
.bfa-pub-pending {
  display: inline-flex;
  align-items: center;
  gap: var(--bfa-space-2);
  color: var(--bfa-pub-text-muted);
  font-style: italic;
}
.bfa-pub-footer .bfa-pub-pending { color: #98a2b0; }

/* ------------------------------------------------------ flash banner ---- */
.bfa-pub-flash {
  display: flex;
  align-items: center;
  gap: var(--bfa-space-3);
  max-inline-size: var(--bfa-container);
  margin: var(--bfa-space-4) auto 0;
  padding: var(--bfa-space-3) var(--bfa-space-5);
  border: 1px solid #16855a40;
  border-radius: var(--bfa-radius-sm);
  background: #e1f5ed;
  color: #0a6640;
  font-size: var(--bfa-fs-md);
  font-weight: 500;
}
.bfa-pub-flash .bfa-icon { flex-shrink: 0; }

/* Alerts on public pages (validation errors). */
.bfa-public .bfa-alert {
  border-radius: var(--bfa-radius-sm);
  font-size: var(--bfa-fs-base);
}

/* ----------------------------------------------------- misc helpers ----- */
.bfa-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.bfa-mt-6 { margin-block-start: var(--bfa-space-6); }
.bfa-text-center { text-align: center; }

/* ------------------------------------------------------------ RTL ------- */
/* The only rules that need an explicit direction are the ones that mirror a
   GLYPH (an arrow) or a decorative transform. Geometry is handled by logical
   properties throughout, so there is no mirrored stylesheet and no chance of
   the two drifting apart. */

/* --------------------------------------------------- responsive --------- */
@media (max-width: 1080px) {
  .bfa-pub-nav { display: none; }
  .bfa-pub-menu-btn { display: inline-flex; }
  .bfa-pub-actions .bfa-btn { display: none; }
  .bfa-pub-actions .bfa-lang { display: none; }
  /* Keep the CTA reachable on tablet: it is the primary conversion action. */
  .bfa-pub-actions .bfa-btn-primary { display: inline-flex; }
}

@media (max-width: 980px) {
  .bfa-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .bfa-hero-visual { order: 2; }
  .bfa-split { grid-template-columns: minmax(0, 1fr); }
  .bfa-split--reverse .bfa-split-visual { order: 0; }
  .bfa-contact-grid { grid-template-columns: minmax(0, 1fr); }

  /* Timeline becomes vertical: the horizontal connector cannot survive a
     narrow column, and a six-column grid at 400px is unreadable. */
  .bfa-journey {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--bfa-space-5);
  }
  .bfa-journey-step {
    padding-block-start: 0;
    padding-inline-start: 3rem;
    min-block-size: 34px;
  }
  .bfa-journey-step::before { inset-block-start: 0; }
  .bfa-journey-step::after {
    inset-block-start: 34px;
    inset-inline-start: 16px;
    inline-size: 2px;
    block-size: calc(100% - 34px + var(--bfa-space-5));
  }

  .bfa-problem { grid-template-columns: minmax(0, 1fr); }
  .bfa-problem-arrow { transform: rotate(90deg); }
  [dir="rtl"] .bfa-problem-arrow .bfa-icon { transform: rotate(90deg) scaleX(-1); }

  .bfa-pub-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bfa-pub-footer-inner { grid-template-columns: minmax(0, 1fr); }
  .bfa-pub-footer-bottom { flex-direction: column; align-items: flex-start; }
  .bfa-hero-ctas { flex-direction: column; align-items: stretch; }
  .bfa-hero-ctas .bfa-btn { justify-content: center; }
}

/* Respect the OS reduced-motion setting. The only animations are the card
   lift and the smooth scroll in public.js. */
@media (prefers-reduced-motion: reduce) {
  .bfa-cap-card { transition: none; }
  .bfa-cap-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* CSP-safe extracted styles */
.bfa-inline-23a795b951 {block-size: 42%;}
.bfa-inline-8c393f4516 {block-size: 68%;}
.bfa-inline-1fc9ef146d {block-size: 55%;}
.bfa-inline-682eaac4e6 {block-size: 84%;}
.bfa-inline-0424dbe568 {block-size: 62%;}
.bfa-inline-a1b442cb1a {block-size: 92%;}
.bfa-inline-8bbc1313cf {block-size: 74%;}
.bfa-inline-b0882d8241 {list-style:none; margin:0; padding:0;}
.bfa-inline-ddadb2f4c5 {margin-block-end: var(--bfa-space-5);}
.bfa-inline-9d699cbe8e {background:#ffffff0f; border-color:#ffffff1a; color:#c4ccd6;}
.bfa-inline-a8a981b25f {background:#ffffff0f; color:#c4ccd6;}
.bfa-inline-2d8aa0d497 {margin-block-end: var(--bfa-space-4);}
.bfa-inline-861ac72e63 {margin-inline:auto; max-inline-size:52ch;}
.bfa-inline-2155324b80 {display:flex; gap:var(--bfa-space-3); justify-content:center; flex-wrap:wrap;}
.bfa-inline-b8c061dbae {max-inline-size:64ch;}
.bfa-inline-741ee4ef12 {margin:0 0 var(--bfa-space-2); font-weight:600;}
.bfa-inline-42ae08a086 {margin:0; font-size:var(--bfa-fs-sm); color:var(--bfa-pub-text-muted);}
.bfa-inline-4b87fa0bc2 {margin-inline:auto; max-inline-size:56ch;}
.bfa-inline-045ef903c0 {margin-block-end:var(--bfa-space-5);}
.bfa-inline-27c732e988 {margin-block-end:var(--bfa-space-6);}
.bfa-inline-4f30039895 {margin:0; display:flex; gap:var(--bfa-space-3); flex-wrap:wrap;}
.bfa-inline-80d51a7ea4 {max-inline-size:64ch; margin-block-end:var(--bfa-space-5);}
.bfa-inline-8dfdd1d81e {display:flex; gap:var(--bfa-space-3); align-items:center; flex-wrap:wrap; margin:0;}
.bfa-inline-4b497936bf {margin-block-start:var(--bfa-space-4); max-inline-size:70ch;}
.bfa-inline-5719535f0d {margin:0 0 var(--bfa-space-4); font-size:var(--bfa-fs-base); color:var(--bfa-pub-text-muted);}
.bfa-inline-a8dd1de854 {cursor:default;}
.bfa-inline-2dacc6e893 {background:#ffffff0d; border-color:#ffffff1a;}
.bfa-inline-b96a3ecf46 {color:#ff6b7f;}
.bfa-inline-352b01b577 {width:72px;max-height:72px;object-fit:contain;flex-shrink:0;}
