/* ============================================================
   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: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.ds4c-proof-item {
  flex: 0 1 130px;
}
.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); }

/* Small spacing around inline pill links so multiple actions do not touch when wrapping. */
.ds4c-learnmore {
  margin: .15rem .3rem .2rem 0;
}

/* --- 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; }

/* --- reference project cards --- */
.ds4c-reference-card {
  display: flex;
  flex-direction: column;
  border-radius: .9rem;
  border: 1px solid rgba(128,128,128,.2);
  box-shadow: 0 .35rem 1.2rem rgba(0,0,0,.04);
}
.ds4c-reference-card h5 {
  margin-top: .25rem;
  margin-bottom: .25rem;
  line-height: 1.25;
}
.ds4c-reference-card h5 a {
  text-decoration: none;
}
.ds4c-reference-card h5 a:hover,
.ds4c-reference-card h5 a:focus {
  text-decoration: underline;
}
.ds4c-card-meta {
  font-size: .84rem;
  color: var(--bs-secondary-color);
  margin-bottom: .75rem;
}
.ds4c-reference-card > p {
  margin-bottom: .85rem;
}
.ds4c-card-tags {
  margin-top: auto;
  padding-top: .35rem;
}
.ds4c-card-tags p {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
}
.ds4c-card-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(24,188,156,.45);
  color: var(--ds4c-cta);
  background: rgba(24,188,156,.06);
  border-radius: 999px;
  padding: .18rem .55rem;
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}
.quarto-dark .ds4c-card-tags span,
[data-bs-theme="dark"] .ds4c-card-tags span {
  background: rgba(24,188,156,.12);
}



/* ============================================================
   Modern DS4C card system
   Shared visual language for service, feature, stat, contact and listing cards.
   ============================================================ */

.ds4c-card,
.quarto-grid-item.card {
  border-radius: .95rem;
  border: 1px solid rgba(128,128,128,.2);
  box-shadow: 0 .35rem 1.2rem rgba(0,0,0,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ds4c-card:hover,
.ds4c-card:focus-within,
.quarto-grid-item.card:hover,
.quarto-grid-item.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 .65rem 1.6rem rgba(0,0,0,.08);
  border-color: rgba(24,188,156,.35);
}

.ds4c-card h4,
.ds4c-card h5 {
  margin-top: .35rem;
  margin-bottom: .45rem;
  line-height: 1.25;
}

.ds4c-card p:last-child {
  margin-bottom: 0;
}

.ds4c-card .bi:first-child {
  margin-bottom: .55rem;
}

.ds4c-service-card,
.ds4c-feature-card,
.ds4c-contact-card {
  position: relative;
}

.ds4c-service-card {
  padding-top: 1.35rem;
}

.ds4c-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ds4c-cta), rgba(24,188,156,.18));
}

.ds4c-feature-card {
  background: linear-gradient(180deg, rgba(24,188,156,.045), transparent 42%);
}

.ds4c-stat-card .display-6,
.ds4c-stat-card .fs-1,
.ds4c-stat-card strong:first-child {
  color: var(--ds4c-cta);
}

/* Keep the homepage proof strip clean: refined, but intentionally not card-like. */
.ds4c-proof {
  max-width: 72rem;
  margin: 1.75rem auto 2.75rem;
  padding: .7rem 0 1rem;
  border-top: 1px solid rgba(128,128,128,.16);
  border-bottom: 1px solid rgba(128,128,128,.16);
}

.ds4c-proof-item .num {
  letter-spacing: -.02em;
}

/* Logo wall/strip standardisation */
.ds4c-logos > p,
.ds4c-logostrip > p {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.ds4c-logostrip > p {
  padding: .35rem 0;
}

.ds4c-logostrip img {
  opacity: .92;
  filter: saturate(.9);
  transition: opacity .15s ease, filter .15s ease, transform .15s ease;
}

.ds4c-logostrip img:hover,
.ds4c-logos img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

/* Contact page */
.ds4c-contact-card {
  overflow: hidden;
}

.ds4c-contact-card:first-child {
  min-height: 100%;
}

.ds4c-contact-photo {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: .75rem;
  margin-bottom: 1rem;
}

.ds4c-contact-list {
  margin: .25rem 0 1.15rem;
}

.ds4c-contact-list .bi {
  color: var(--ds4c-cta);
  margin-right: .35rem;
}

.ds4c-contact-actions p {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
}

/* Reference cards inherit the same system without changing their existing markup. */
.ds4c-reference-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ds4c-reference-card:hover,
.ds4c-reference-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 .65rem 1.6rem rgba(0,0,0,.08);
  border-color: rgba(24,188,156,.35);
}

.quarto-dark .ds4c-card,
[data-bs-theme="dark"] .ds4c-card,
.quarto-dark .quarto-grid-item.card,
[data-bs-theme="dark"] .quarto-grid-item.card {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 .35rem 1.2rem rgba(0,0,0,.18);
}

.quarto-dark .ds4c-feature-card,
[data-bs-theme="dark"] .ds4c-feature-card {
  background: linear-gradient(180deg, rgba(24,188,156,.08), rgba(255,255,255,.02) 45%);
}

/* --- pull-quote (e.g. Oliver on the consulting page) --- */
.ds4c-quote {
  border-left: 4px solid var(--ds4c-cta);
  padding: .75rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 46rem;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}
.ds4c-quote p { margin-bottom: .5rem; }
.ds4c-quote-by {
  display: block;
  margin-top: .25rem;
  font-size: .95rem;
  font-style: normal;
  font-weight: 600;
  opacity: .8;
}
