/*
  SEO Change List 07 · client logos ("Trusted by", "Used by"), Google reviews and /customers.
  Scoped to .tc-trust / .tc-used-by / .tc-reviews / .tc-customers so nothing else changes.
  Loaded only when a page sets ViewData["CustomersCss"] = true.
  Sizes are px on purpose: the EHR pages run a rem-root bridge, so rem would size differently per page.
*/
.tc-trust,
.tc-used-by,
.tc-reviews,
.tc-customers {
  color: var(--tc-ink, #1a2b2b);
  font-family: var(--tc-font, "Segoe UI", system-ui, -apple-system, sans-serif);
}

.tc-trust a:focus-visible,
.tc-reviews a:focus-visible,
.tc-customers a:focus-visible {
  outline: 2px solid var(--tc-focus, #5f9419);
  outline-offset: 2px;
}

.tc-trust__inner,
.tc-used-by__inner,
.tc-reviews__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 40px 16px;
  text-align: center;
}

.tc-trust__heading,
.tc-reviews__heading {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

/* ---- logos: one rule sizes every logo (all canvases are the same 400x160) ---- */
.tc-logos {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  max-width: 904px; /* 4 x 200px + 3 x 32px gap, so desktop rows hold 4 and the last row is centred */
}

.tc-logos__item {
  margin: 0;
}

.tc-logos__img {
  display: block;
  width: 200px; /* 80px tall */
  max-width: 100%;
  height: auto;
}

.tc-logos--compact .tc-logos__img {
  width: 160px; /* 64px tall */
}

.tc-trust__more {
  margin: 24px 0 0;
  font-weight: 600;
}

.tc-trust__more a,
.tc-reviews__more a {
  color: #3f7a0f;
  text-decoration: none;
}

.tc-trust__more a:hover,
.tc-reviews__more a:hover {
  text-decoration: underline;
}

.tc-used-by__inner {
  padding: 24px 16px 8px;
}

.tc-used-by__line {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tc-muted, #5c6b6b);
}

/* ---- Google reviews ---- */
.tc-reviews {
  background: var(--tc-surface, #f5fcf5);
}

.tc-reviews__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  text-align: left;
}

.tc-review {
  margin: 0;
}

.tc-review__figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--tc-border, #d4e8b8);
  border-radius: 12px;
}

.tc-review__stars {
  color: #f5a623;
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 1;
}

.tc-review__quote {
  margin: 0;
}

.tc-review__quote p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.tc-review__by {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tc-muted, #5c6b6b);
}

.tc-review__name {
  font-weight: 700;
  color: var(--tc-ink, #1a2b2b);
}

.tc-review__source::before {
  content: "\00b7";
  margin: 0 6px;
}

.tc-review__note {
  display: block;
  font-style: italic;
}

.tc-reviews__more {
  margin: 24px 0 0;
  font-weight: 600;
}

/* ---- /customers ---- */
.tc-customers {
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.tc-customers__crumbs {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--tc-muted, #5c6b6b);
}

.tc-customers__crumbs a {
  color: inherit;
}

.tc-customers__head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.tc-customers__head h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.tc-customers__head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tc-muted, #5c6b6b);
}

.tc-customers__grid {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.tc-customer-card {
  margin: 0;
  padding: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
}

.tc-customer-card__logo img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 8px;
}

.tc-customer-card__name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tc-customer-card__specialty,
.tc-customer-card__area {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tc-muted, #5c6b6b);
}

.tc-customer-card__area {
  font-size: 14px;
}

.tc-customers .tc-reviews {
  border-radius: 16px;
}

.tc-customers__cta {
  margin: 40px 0 0;
  text-align: center;
}

.tc-customers .btn-demo {
  display: inline-block;
  padding: 12px 22px;
  background: #3f7a0f;
  border: 0;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.tc-customers .btn-demo:hover {
  background: #356a0b;
}

/* ---- mobile: 2 logos per row ---- */
@media (max-width: 640px) {
  .tc-trust__inner,
  .tc-reviews__inner {
    padding: 28px 16px;
  }

  .tc-trust__heading,
  .tc-reviews__heading {
    font-size: 22px;
  }

  .tc-logos {
    gap: 8px 16px;
    max-width: 100%;
  }

  .tc-logos__item {
    flex: 0 0 calc(50% - 8px);
    display: flex;
    justify-content: center;
  }

  .tc-logos__img {
    width: 100%;
    max-width: 140px; /* 56px tall */
  }

  .tc-logos--compact .tc-logos__img {
    max-width: 120px;
  }

  .tc-customers__head h1 {
    font-size: 26px;
  }
}
