/* ============================================================
   DS4C – cards, steps, proof numbers, logos, chips, refs
   Works in both flatly (light) + darkly (dark).
   ============================================================ */

:root { --ds4c-cta: #18bc9c; }

/* --- numbered step cards (how it works / four levels) --- */
.ds4c-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ds4c-step {
  border: 1px solid rgba(128,128,128,.2);
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
}
.ds4c-step > p { margin: .35rem 0; }
.ds4c-step > p:last-child { margin-bottom: 0; }
.ds4c-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ds4c-cta);
  color: #fff;
  font-weight: 600;
  margin-bottom: .25rem;
}

/* --- by-the-numbers proof strip --- */
.ds4c-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}
.ds4c-proof-item .num {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ds4c-cta);
  line-height: 1.1;
}
.ds4c-proof-item .lbl {
  display: block;
  font-size: .85rem;
  opacity: .75;
  margin-top: .25rem;
}

/* --- single highlighted stat callout --- */
.ds4c-stat {
  text-align: center;
  border: 1px solid rgba(128,128,128,.2);
  border-radius: .75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.ds4c-stat .big {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ds4c-cta);
  line-height: 1;
}

/* --- capability chips --- */
.ds4c-chips { text-align: center; margin: 1rem 0; }
.ds4c-chips p {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 0;
}
.ds4c-chip {
  border: 1px solid var(--ds4c-cta);
  color: var(--ds4c-cta);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* --- small animated "learn more" pill (product cards) --- */
.ds4c-learnmore {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ds4c-cta);
  background: transparent;
  border: 1px solid var(--ds4c-cta);
  border-radius: 999px;
  padding: .35rem .8rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, gap .15s ease;
}
.ds4c-learnmore:hover,
.ds4c-learnmore:focus {
  background: var(--ds4c-cta);
  color: #fff;
  gap: .55rem;
  text-decoration: none;
}
.ds4c-learnmore .bi { transition: transform .15s ease; }
.ds4c-learnmore:hover .bi { transform: translateX(2px); }

/* --- trusted-by logo wall (two rows, large) --- */
.ds4c-logos > p {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}
.ds4c-logos img {
  height: 90px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* --- small inline logo strip (e.g. clients referenced on a page) --- */
.ds4c-logostrip > p {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}
.ds4c-logostrip img { height: 60px; width: auto; max-width: 150px; object-fit: contain; }

/* --- client logo inside a reference card --- */
.ds4c-clientlogo {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 1rem;
}

/* --- dark-mode: give transparent logos a light chip so they stay legible --- */
.quarto-dark .ds4c-logos img:not(.ds4c-logo-keep),
.quarto-dark .ds4c-logostrip img:not(.ds4c-logo-keep),
.quarto-dark .ds4c-clientlogo:not(.ds4c-logo-keep),
[data-bs-theme="dark"] .ds4c-logos img:not(.ds4c-logo-keep),
[data-bs-theme="dark"] .ds4c-logostrip img:not(.ds4c-logo-keep),
[data-bs-theme="dark"] .ds4c-clientlogo:not(.ds4c-logo-keep) {
  background: #fff;
  border-radius: .5rem;
  padding: .5rem .7rem;
}

/* team listing cards: full portrait on top, tight text box below */
.quarto-grid-item .card-img-top,
.quarto-grid-item .thumbnail-image {
  height: auto;          /* let the image set its own height */
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  aspect-ratio: auto;    /* cancel any forced ratio from the theme */
  background-color: rgba(128,128,128,.06);
}

/* stop the card body from reserving a giant empty block */
.quarto-grid-item .card-body { padding: 1rem 1.25rem; }
.quarto-grid-item.card { height: auto; }
