/* ==========================================================================
   bi-consulting-services.html-only rules. Everything else (header, footer,
   buttons, cards, hero shell, related-links, CTA, back-to-top, global
   typography, dark-mode colors) comes from css/*.css and must not be
   redefined here.
   Requires the full shared foundation to be loaded first.
   ========================================================================== */

/* ---- hero summary card ----
   Uses the shared .hero-card--icon family (hero.css) - no page-specific
   rules needed here. */

/* The nbsp-joined "reporting problems." (added to avoid a trailing
   single-word orphan) doesn't fit its container's default heading size at
   320px - measured: 313px rendered vs a 296px container, a 17px overflow.
   Rather than drop the orphan fix, shrink just this heading's floor
   slightly (only engages at <=340px; verified fitting with room to spare
   at 1.8rem, vs the 1.85rem bare-fit threshold). */
@media (max-width: 340px) {
  .bi-options-heading h2 {
    font-size: 1.8rem;
  }
}

/* ---- "common custom engagements": 3-card icon grid ----
   Reuses the shared .card-base.icon-card shell; only this file's grid
   layout and the "may include" list label are page-specific. 3 columns
   hold down to 640px (matching .trio-grid's convention in cards.css for
   3-item grids - no intermediate 2-col tier that would leave one card
   alone on its own row), then 1 column below that. */

.bi-engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .bi-engagement-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.bi-engagement-label {
  margin: 16px 0 10px;
  color: var(--accent-label-color);
  font-size: var(--fs-label-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- "choosing the right engagement" comparison ----
   Two .card-base columns (not the shared 3-column .trio-grid - this is a
   contained two-way comparison, not an item grid) with the shared
   .dot-list inside each. */

.bi-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .bi-compare-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- "how scoping and pricing work": four-step process panel ----
   One bordered panel (same surface/border/radius/shadow tokens as
   .helps-fit-table-wrap on who-it-helps.html) holding four equal-width
   steps read left to right, divided by thin vertical rules rather than
   the row/table feel of the earlier iteration. No max-width - fills the
   container like .bi-compare-grid above, so the two line up. */

.bi-process-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-panel);
  background: var(--surface-bg);
  box-shadow: var(--shadow-card);
}

.bi-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.bi-process-step {
  padding: 24px;
  border-left: 1px solid var(--border-color);
}

.bi-process-step:first-child {
  border-left: none;
}

.bi-process-number {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 10px;
  color: var(--accent-label-color);
  font-size: var(--fs-label-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bi-process-number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-color);
}

.bi-process-title {
  margin: 0 0 8px;
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

.bi-process-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-secondary);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .bi-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bi-process-step {
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .bi-process-step:nth-child(odd) {
    border-left: none;
  }

  .bi-process-step:nth-child(3),
  .bi-process-step:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .bi-process-grid {
    grid-template-columns: 1fr;
  }

  .bi-process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: baseline;
    padding: 18px 22px;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }

  .bi-process-step:last-child {
    border-bottom: none;
  }

  .bi-process-number {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .bi-process-number::after {
    display: none;
  }

  .bi-process-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .bi-process-text {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }
}

/* ---- "defined services": compact box grid ----
   Deliberately smaller/simpler than the .bi-engagement-grid cards above
   (no icon, reduced padding, no "may include" list) and structurally
   different from both the engagement cards and who-it-helps.html's
   situation/service decision panel - just four short, equal-height
   service boxes, each with an explicit link (never the whole box). */

.bi-defined-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bi-defined-box {
  padding: 22px 24px;
}

.bi-defined-box h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.bi-defined-box p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-secondary);
  line-height: 1.55;
}

.bi-service-guide-link {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .bi-defined-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
