/* ==========================================================================
   Proposed homepage ([bpo2sa_home]). Loaded only on pages using it.
   Builds on the tokens and card styles in buyers-guide.css.
   ========================================================================== */

.bgh {
  --bgh-night: #0E1220;
  --bgh-night-2: #161B2E;
  --bgh-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--bg-text);
  overflow-x: clip;
}
.bgh *, .bgh *::before, .bgh *::after { box-sizing: border-box; }
.bgh h1, .bgh h2, .bgh h3 { color: var(--bg-ink); margin: 0; text-wrap: balance; }
.bgh h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.15; }
.bgh p { margin: 0; }
.bgh a, .bgh a:hover, .bgh a:focus, .bgh a * { text-decoration: none !important; }
.bgh ul, .bgh ol { margin-left: 0 !important; padding-left: 0 !important; }
.bgh li { margin-left: 0 !important; }
.bgh-num { font-family: 'Varela', sans-serif; }
.bgh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.bgh-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Shared bits ------------------------------------------------------------- */
.bgh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--bgh-sys); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bg-amber-dark); margin-bottom: 14px !important; }
.bgh-eyebrow--dark { color: #FFD08A; background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.28); padding: 8px 14px 7px; border-radius: 999px; margin-bottom: 26px !important; }
.bgh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-amber); box-shadow: 0 0 0 4px rgba(245,166,35,.22); }
.bgh-sub { color: var(--bg-slate); font-size: 1.05rem; line-height: 1.6; margin-top: 12px !important; max-width: 60ch; }

.bgh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 8px; font-family: var(--bgh-sys); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .2px; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease; white-space: nowrap; }
.bgh-btn:hover { transform: translateY(-1px); }
.bgh-btn--amber { background: var(--bg-amber); color: var(--bg-ink) !important; box-shadow: 0 6px 18px rgba(245,166,35,.28); }
.bgh-btn--amber:hover { background: #FFB43C; box-shadow: 0 10px 24px rgba(245,166,35,.36); }
.bgh-btn--ink { background: var(--bg-ink); color: #fff !important; }
.bgh-btn--ink:hover { background: #000; }
.bgh-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.bgh-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.bgh-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bg-ink) !important; border-bottom: 2px solid var(--bg-amber); padding-bottom: 3px; white-space: nowrap; }
.bgh-link .bgh-ico { width: 16px; height: 16px; transition: transform .15s ease; }
.bgh-link:hover .bgh-ico { transform: translateX(3px); }

.bgh-section { padding: clamp(64px, 8vw, 104px) 0; }
.bgh-section--panel { background: var(--bg-panel); }
.bgh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.bgh-head--center { justify-content: center; text-align: center; }

/* 1. Hero ----------------------------------------------------------------- */
.bgh-hero { position: relative; background-color: var(--bgh-night); color: #fff; padding: clamp(56px, 7vw, 92px) 0 clamp(56px, 7vw, 88px); isolation: isolate; }
.bgh-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bgh-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: 70% center; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 8s ease-out; }
.bgh-hero__slide.is-on { opacity: 1; transform: scale(1); }
.bgh-hero__place { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(14px, 2vw, 22px); z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0 !important; font-family: var(--bgh-sys); font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: .3px; color: rgba(255,255,255,.72); transition: opacity .6s ease; }
.bgh-hero__place.is-fading { opacity: 0; }
.bgh-hero__place svg { width: 14px; height: 14px; fill: none; stroke: var(--bg-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .bgh-hero__slide { transition: none; transform: none; } }
.bgh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(14,18,32,.97) 0%, rgba(14,18,32,.90) 38%, rgba(14,18,32,.55) 68%, rgba(14,18,32,.35) 100%),
    linear-gradient(0deg, rgba(14,18,32,.85) 0%, rgba(14,18,32,0) 35%); }
.bgh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.bgh-hero__title { color: #fff !important; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.06; letter-spacing: -.5px; max-width: 15ch; }
.bgh-hero__title span { color: var(--bg-amber); }
.bgh-hero__lede { color: rgba(255,255,255,.78); font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.6; margin-top: 22px !important; max-width: 56ch; }

.bgh-search { display: flex; align-items: stretch; gap: 6px; margin-top: 34px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.35); max-width: 640px; }
.bgh-search__field { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--bg-mute); min-width: 0; margin: 0; }
.bgh-search input[type=search] { border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; padding: 0 !important; height: 48px; font-size: 16px; color: var(--bg-ink); width: 100%; min-width: 0; }
.bgh-search__select { flex: 0 0 auto; display: flex; align-items: center; border-left: 1px solid var(--bg-line); margin: 0; }
.bgh-search select { border: 0 !important; box-shadow: none !important; background-color: transparent !important; height: 48px; padding: 0 30px 0 14px !important; font-size: 15px; color: var(--bg-text); max-width: 190px; cursor: pointer; }
.bgh-search .bgh-btn { height: 48px; border-radius: 8px; }
.bgh-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px !important; font-size: 14px; color: rgba(255,255,255,.6); }
.bgh-hero__popular span { margin-right: 2px; }
.bgh-hero__popular a { color: rgba(255,255,255,.88) !important; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; height: 30px; padding: 1px 12px 0; display: inline-flex; align-items: center; font-family: var(--bgh-sys); font-size: 13px; line-height: 1; transition: all .15s ease; }
.bgh-hero__popular a:hover { border-color: var(--bg-amber); color: #fff !important; background: rgba(245,166,35,.12); }

.bgh-stats { display: flex; gap: clamp(28px, 5vw, 56px); margin: 36px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.bgh-stats div { margin: 0; }
.bgh-stats dd { margin: 0; order: -1; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1; font-weight: 400; color: #fff; font-family: 'Varela', sans-serif; }
.bgh-stats div { display: flex; flex-direction: column; gap: 8px; }
.bgh-stats dt { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 400; }

.bgh-stack { position: relative; height: 340px; }
.bgh-stack__card { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(255,255,255,.96); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.bgh-stack__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.bgh-stack__card strong { color: var(--bg-ink); font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgh-stack__card span:not(.bpo2sa-badge) { color: var(--bg-slate); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgh-stack__logo { width: 84px; height: 56px; flex: 0 0 84px; padding: 3px; }
.bgh-stack__card--1 { top: 0; transform: translateX(-18px) rotate(-2deg); }
.bgh-stack__card--2 { top: 118px; transform: translateX(24px); z-index: 2; }
.bgh-stack__card--3 { top: 236px; transform: translateX(-6px) rotate(1.5deg); }

/* 2. Marquee -------------------------------------------------------------- */
.bgh-marquee { padding: 34px 0 38px; border-bottom: 1px solid var(--bg-line-soft); background: #fff; }
.bgh-marquee__label { text-align: center; font-family: var(--bgh-sys); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bg-mute); margin-bottom: 22px !important; }
.bgh-marquee__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bgh-marquee__track { display: flex; width: max-content; animation: bgh-marquee 90s linear infinite; }
.bgh-marquee__viewport:hover .bgh-marquee__track { animation-play-state: paused; }
.bgh-marquee__set { display: flex; gap: 18px; padding-right: 18px; }
.bgh-marquee__item { display: flex; align-items: center; justify-content: center; width: 156px; height: 104px; border-radius: 12px; border: 1px solid var(--bg-line-soft); background: #fff; padding: 8px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.bgh-marquee__item img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.bgh-marquee__item:hover { border-color: var(--bg-line); transform: translateY(-2px); box-shadow: var(--bg-shadow); }
.bgh-marquee__item:hover img { filter: none; opacity: 1; }
@keyframes bgh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .bgh-marquee__track { animation: none; }
  .bgh-marquee__viewport { overflow-x: auto; }
  .bgh-marquee__set[aria-hidden] { display: none; }
}

/* 3. Capabilities --------------------------------------------------------- */
.bgh-caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bgh-cap { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; min-height: 150px; background: #fff; border: 1px solid var(--bg-line); border-radius: 14px; color: var(--bg-text) !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; overflow: hidden; }
.bgh-cap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bg-amber); transform: scaleY(0); transform-origin: bottom; transition: transform .2s ease; }
.bgh-cap:hover { border-color: #D9DDE6; box-shadow: var(--bg-shadow-lift); transform: translateY(-2px); }
.bgh-cap:hover::before { transform: scaleY(1); }
.bgh-cap__group { font-family: var(--bgh-sys); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--bg-mute); }
.bgh-cap strong { font-size: 1.2rem; line-height: 1.25; color: var(--bg-ink); }
.bgh-cap__count { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--bg-slate); }
.bgh-cap__count .bgh-ico { width: 18px; height: 18px; color: var(--bg-amber-dark); transition: transform .15s ease; }
.bgh-cap:hover .bgh-cap__count .bgh-ico { transform: translateX(3px); }

/* 4. Featured ------------------------------------------------------------- */
.bgh-featured { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* 5. Why ------------------------------------------------------------------ */
.bgh-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.bgh-why__media { position: relative; }
.bgh-why__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 18px; box-shadow: var(--bg-shadow-lift); }
.bgh-why__note { position: absolute; right: -24px; bottom: 32px; max-width: 250px; background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(20,24,36,.18); display: flex; flex-direction: column; gap: 6px; }
.bgh-why__note strong { font-size: 2.2rem; line-height: 1; color: var(--bg-ink); font-family: 'Varela', sans-serif; font-weight: 400; }
.bgh-why__note strong::after { content: ""; display: block; width: 28px; height: 3px; background: var(--bg-amber); margin-top: 10px; border-radius: 2px; }
.bgh-why__note span { font-size: 14px; line-height: 1.45; color: var(--bg-slate); }
.bgh-why__list { list-style: none; margin: 34px 0 0 !important; padding: 0; display: grid; gap: 22px; }
.bgh-why__list li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.bgh-why__list .bgh-ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--bg-amber-soft); color: var(--bg-amber-dark); stroke-width: 1.6; }
.bgh-why__list div { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.bgh-why__list strong { color: var(--bg-ink); font-size: 1.05rem; }
.bgh-why__list span { color: var(--bg-slate); line-height: 1.55; }

/* 6. Paths ---------------------------------------------------------------- */
.bgh-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bgh-path { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bg-line); border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.bgh-path--dark { background: var(--bgh-night); border-color: var(--bgh-night); color: #fff; }
.bgh-path__who { font-family: var(--bgh-sys); font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bg-amber-dark); margin-bottom: 12px !important; }
.bgh-path--dark .bgh-path__who { color: var(--bg-amber); }
.bgh-path h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.2; }
.bgh-path--dark h3 { color: #fff; }
.bgh-steps { list-style: none; margin: 28px 0 32px !important; padding: 0; display: grid; gap: 20px; }
.bgh-steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.bgh-steps .bgh-ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--bg-panel); color: var(--bg-ink); }
.bgh-path--dark .bgh-steps .bgh-ico { background: rgba(255,255,255,.08); color: var(--bg-amber); }
.bgh-steps div { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.bgh-steps strong { color: var(--bg-ink); }
.bgh-path--dark .bgh-steps strong { color: #fff; }
.bgh-steps span { color: var(--bg-slate); font-size: .95rem; line-height: 1.5; }
.bgh-path--dark .bgh-steps span { color: rgba(255,255,255,.66); }
.bgh-path .bgh-btn { margin-top: auto; align-self: flex-start; }
.bgh-prices { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin: -8px 0 28px; }
.bgh-prices div { border: 1px solid var(--bg-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bgh-prices .is-premium { border-color: var(--bg-amber); background: var(--bg-amber-soft); }
.bgh-prices span { font-family: var(--bgh-sys); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--bg-mute); }
.bgh-prices strong { font-size: 1.5rem; line-height: 1.1; color: var(--bg-ink); font-family: 'Varela', sans-serif; font-weight: 400; }
.bgh-prices em { font-style: normal; font-size: 12.5px; color: var(--bg-slate); }

.bgh-mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -8px 0 28px; }
.bgh-mix a { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); transition: border-color .15s ease, background .15s ease; }
.bgh-mix a:hover { border-color: var(--bg-amber); background: rgba(245,166,35,.08); }
.bgh-mix strong { font-family: 'Varela', sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.bgh-mix span { font-size: 12.5px; line-height: 1.3; color: rgba(255,255,255,.62); }

/* 7. Closing band --------------------------------------------------------- */
.bgh-cta { background: var(--bgh-night); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.bgh-cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.22), rgba(245,166,35,0) 65%); }
.bgh-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.bgh-cta h2 { color: #fff !important; }
.bgh-cta p { color: rgba(255,255,255,.72); line-height: 1.6; margin-top: 12px !important; max-width: 58ch; }
.bgh-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Theme reset: the page wrapper adds spacing we don't want around the sections. */
.page .entry-content > .bgh:first-child { margin-top: 0; }
body:has(.bgh) .site-content > .ast-container,
body:has(.bgh) #primary { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body:has(.bgh) .entry-content > p:empty { display: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bgh-hero__grid { grid-template-columns: 1fr; }
  .bgh-stack { display: none; }
  .bgh-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgh-featured { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px) {
  .bgh-why { grid-template-columns: 1fr; }
  .bgh-why__media img { aspect-ratio: 4 / 3; }
  .bgh-why__note { right: 16px; bottom: -24px; }
  .bgh-why__copy { margin-top: 12px; }
  .bgh-paths { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bgh-search { flex-wrap: wrap; }
  .bgh-search__field { flex: 1 1 100%; }
  .bgh-search__select { flex: 1 1 auto; border-left: 0; border-top: 1px solid var(--bg-line); }
  .bgh-search select { max-width: none; width: 100%; }
  .bgh-search .bgh-btn { flex: 0 0 auto; }
  .bgh-stats { gap: 22px; }
  .bgh-caps, .bgh-featured { grid-template-columns: 1fr !important; }
  .bgh-cap { min-height: 0; }
  .bgh-prices { grid-template-columns: 1fr; }
  .bgh-mix { grid-template-columns: 1fr 1fr 1fr; }
  .bgh-mix a { padding: 12px 10px; }
  .bgh-marquee__item { width: 126px; height: 84px; }
}

/* Links back to the brand site (bpo2africa.com) */
.bgh-why__more { margin-top: 30px; }
.bgh-cta__brand { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: #fff !important; border-bottom: 2px solid var(--bg-amber); padding-bottom: 3px; }
.bgh-cta__brand .bgh-ico { width: 16px; height: 16px; transition: transform .15s ease; }
.bgh-cta__brand:hover .bgh-ico { transform: translateX(3px); }
