/*
 * BWS 2.0 BBBB Page
 * Description: Better Black Business Bureau public landing page for trust,
 * score building, credibility education, and funding opportunities.
 * TOC:
 * - Base shell and hero
 * - Ribbon filters and overview panels
 * - Scoreboard, article, and funding cards
 * - SEO brief and responsive layout
 * Summary: Funding now lives inside BBBB as a score/trust-driven lane.
 */
.bbbb-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 55% 0%, rgba(218, 151, 45, .18), transparent 34%),
    linear-gradient(180deg, #070301 0%, #190803 46%, #050201 100%);
  color: #f8ead2;
}

.bbbb-shell {
  padding-bottom: 76px;
}

.bbbb-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 28px;
  align-items: center;
  padding: 120px max(24px, calc((100vw - 1220px) / 2)) 72px;
  overflow: hidden;
}

.bbbb-hero-bg,
.bbbb-hero-overlay {
  position: absolute;
  inset: 0;
}

.bbbb-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.04);
}

.bbbb-hero-overlay {
  background:
    linear-gradient(90deg, rgba(5,2,0,.96), rgba(20,7,2,.58) 45%, rgba(5,2,0,.84)),
    linear-gradient(180deg, rgba(0,0,0,.5), rgba(10,4,1,.96));
}

.bbbb-hero-content,
.bbbb-score-card {
  position: relative;
  z-index: 1;
}

.bbbb-kicker,
.bbbb-panel-head span,
.bbbb-source,
.bbbb-card-type {
  color: #dda34a;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bbbb-hero h1 {
  max-width: 880px;
  margin: 10px 0 18px;
  color: #fff1d8;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 96px);
  line-height: .92;
  text-shadow: 0 5px 0 rgba(65, 26, 8, .92), 0 22px 50px rgba(0,0,0,.8);
}

.bbbb-hero p {
  max-width: 720px;
  color: rgba(255, 239, 216, .88);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.4;
}

.bbbb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bbbb-hero-actions a,
.bbbb-section-head a,
.bbbb-card-actions a {
  border: 1px solid rgba(255, 190, 80, .42);
  border-radius: 7px;
  background: linear-gradient(180deg, #e1a339, #b66b1d);
  color: #170802;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 11px 15px;
  text-decoration: none;
  text-transform: uppercase;
}

.bbbb-hero-actions a:not(:first-child),
.bbbb-section-head a,
.bbbb-card-actions a {
  background: rgba(26, 9, 2, .72);
  color: #f6d49a;
}

.bbbb-score-card {
  border: 1px solid rgba(207, 132, 31, .42);
  border-radius: 8px;
  background: rgba(12, 4, 1, .78);
  box-shadow: 0 28px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,227,178,.1);
  overflow: hidden;
}

.bbbb-score-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.bbbb-score-card div {
  padding: 18px;
}

.bbbb-score-card strong {
  display: block;
  color: #f4ad38;
  font-family: var(--font-display);
  font-size: 82px;
  line-height: .9;
  margin: 8px 0;
}

.bbbb-ribbon,
.bbbb-overview-grid,
.bbbb-section,
.bbbb-seo-brief {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
}

.bbbb-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid rgba(207, 132, 31, .28);
  border-radius: 8px;
  background: rgba(7, 3, 1, .82);
  padding: 12px;
}

.bbbb-ribbon button {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 7px;
  background: rgba(27, 9, 2, .84);
  color: #f7ddb1;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 10px 13px;
  text-transform: uppercase;
}

.bbbb-ribbon button.is-active {
  background: rgba(216, 154, 43, .28);
  border-color: rgba(255, 213, 130, .78);
}

.bbbb-source {
  margin-left: auto;
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 999px;
  padding: 8px 10px;
}

.bbbb-source[data-state="live"] { color: #75e2ba; }
.bbbb-source[data-state="fallback"] { color: #f7c873; }

.bbbb-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 16px;
}

.bbbb-panel,
.bbbb-score-item,
.bbbb-card,
.bbbb-seo-brief {
  border: 1px solid rgba(207, 132, 31, .36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 11, 2, .88), rgba(8, 3, 1, .92)),
    rgba(10, 4, 1, .88);
  box-shadow: 0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,227,178,.08);
}

.bbbb-panel {
  padding: 18px;
}

.bbbb-panel-head,
.bbbb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bbbb-panel-head strong,
.bbbb-section-head h2,
.bbbb-seo-brief h2 {
  margin: 0;
  color: #fff0d7;
  font-family: var(--font-ui);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.bbbb-score-factors,
.bbbb-funding-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bbbb-score-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px;
}

.bbbb-score-item b {
  color: #fff1d8;
  font-family: var(--font-ui);
}

.bbbb-score-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 235, 206, .74);
  line-height: 1.4;
}

.bbbb-score-meter {
  width: 100%;
  height: 8px;
  grid-column: 1 / -1;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.bbbb-score-meter span {
  display: block;
  width: var(--score);
  height: 100%;
  background: linear-gradient(90deg, #ad681e, #e9b24a);
}

.bbbb-scoreboard,
.bbbb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
}

.bbbb-card {
  position: relative;
  min-height: 340px;
  border-radius: 0;
  overflow: hidden;
}

.bbbb-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.bbbb-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.bbbb-card h3 {
  margin: 0;
  color: #fff4e2;
  font-family: var(--font-ui);
  font-size: 26px;
  line-height: 1;
}

.bbbb-card p {
  margin: 0;
  color: rgba(255, 235, 206, .76);
  line-height: 1.42;
}

.bbbb-badges,
.bbbb-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bbbb-badges span {
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  color: #f0c576;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.bbbb-seo-brief {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
}

.bbbb-seo-brief img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.bbbb-seo-brief p {
  color: rgba(255, 235, 206, .78);
  font-size: 18px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .bbbb-hero,
  .bbbb-overview-grid,
  .bbbb-scoreboard,
  .bbbb-card-grid,
  .bbbb-seo-brief {
    grid-template-columns: 1fr;
  }

  .bbbb-source {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .bbbb-hero {
    min-height: 760px;
    padding-top: 110px;
  }

  .bbbb-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
