/*
 * Case study detail - header (breadcrumb/kicker/title), stat bar, Client
 * Overview + testimonial quote. Scoped to .vm-csh so it won't restyle
 * anything else. Kept in its own file (separate from casestudies-detail.css,
 * which owns this page's fonts and the legacy .cs-intro/.cs-article
 * styling) so the two can be edited independently without merge conflicts.
 * Enqueued only for is_singular('case_study') - see vm_enqueue_assets() in
 * functions.php. Rendered by single-case_study.php.
 *
 * Colors/fonts pull the same tokens as the rest of the site (--red,
 * --red-dark, --font-display, --container-width, all defined in
 * style.css) instead of a separate palette/typeface.
 */

.vm-csh,
.vm-csh * {
  box-sizing: border-box;
}

.vm-csh {
  --vm-csh-accent: var(--red, #8D0101);
  --vm-csh-accent-dark: var(--red-dark, #621C15);
  --vm-csh-max: var(--container-width, 1200px);
  width: 100%;
  margin: 0;
  background: #fff;
  color: var(--text, #1a1a1a);
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  line-height: 1.5;
}

.vm-csh h1,
.vm-csh h3,
.vm-csh p,
.vm-csh a,
.vm-csh dl,
.vm-csh dt,
.vm-csh dd {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vm-csh a {
  color: inherit;
  text-decoration: none;
}

.vm-csh__hero {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-dark) 100%);
  padding: clamp(40px, 5vw, 52px) clamp(20px, 5vw, 64px) clamp(52px, 6vw, 64px);
}

.vm-csh__hero-inner,
.vm-csh__body-inner {
  max-width: var(--vm-csh-max);
  margin: 0 auto;
}

.vm-csh__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.vm-csh__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.vm-csh__crumbs a {
  color: rgba(255, 255, 255, 0.86);
}

.vm-csh__crumbs a:hover,
.vm-csh__crumbs a:focus-visible {
  color: #fff;
  outline: none;
}

.vm-csh__crumbs-current {
  color: #fff;
}

.vm-csh__kicker {
    font-family: var(--font-display, sans-serif) !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f0c4c1;
}

.vm-csh__title {
    max-width: 880px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.4;
    letter-spacing: 1.2px;
    color: #fff;
    text-wrap: pretty;
}

/* Floats over the bottom edge of the hero via the negative top margin -
   the hero's own bottom padding is sized (see .vm-csh__hero) to leave
   room for exactly this much overlap. */
.vm-csh__stats {
  padding: 0 clamp(20px, 5vw, 64px);
  margin-top: clamp(-40px, -4vw, -28px);
  position: relative;
  z-index: 1;
}

.vm-csh__stats-inner {
  max-width: var(--vm-csh-max);
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-grey, #ececef);
  overflow: hidden;
}

.vm-csh__stat {
  background: #fff;
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vm-csh__stat-value {
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--black, #111111);
}

.vm-csh__stat--accent .vm-csh__stat-value {
  color: var(--vm-csh-accent);
}

.vm-csh__stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9aa2;
}

.vm-csh__body {
  padding: 44px clamp(20px, 5vw, 64px) 60px;
}

.vm-csh__body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.vm-csh__overview {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vm-csh__overview-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-csh__eyebrow {
    font-family: var(--font-display, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vm-csh-accent);
}

.vm-csh__overview-copy p:not(.vm-csh__eyebrow) {
  font-size: 16.5px;
  line-height: 1.68;
  color: #3a3a41;
  text-wrap: pretty;
}

.vm-csh__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-grey, #e3e3e3);
}

.vm-csh__meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vm-csh__meta-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9aa2;
}

.vm-csh__meta-value {
    font-family: var(--wix-font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--black, #111111);
}

.vm-csh__meta-value a {
  color: var(--vm-csh-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-csh__meta-value a:hover,
.vm-csh__meta-value a:focus-visible {
  color: var(--vm-csh-accent-dark);
  outline: none;
}

.vm-csh__quote {
  background: var(--light-grey, #f5f5f5);
  border-radius: 20px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vm-csh__quote-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.vm-csh__quote-stat {
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--vm-csh-accent);
}

.vm-csh__quote-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9aa2;
}

/* Pushes the rating to the far end of the top row when both a stat and a
   kicker are present; collapses harmlessly to normal flow when either is
   missing since flex-wrap still keeps things readable. */
.vm-csh__rating {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.vm-csh__star {
  fill: #d8d8dc;
}

.vm-csh__star.is-filled {
  fill: var(--vm-csh-accent);
}

.vm-csh__quote-heading {
  font-family: var(--wix-font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--black, #111111);
  text-wrap: pretty;
}

.vm-csh__quote-text {
  font-size: 14.5px;
  line-height: 1.66;
  color: #3a3a41;
  text-wrap: pretty;
}

.vm-csh__person {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid #e2e2e6;
    display: flex;
    align-items: end;
    gap: 12px;
    justify-content: space-between;
}

.vm-csh__quote--no-link  .vm-csh__person {
    justify-content: flex-start;
}

.vm-csh__quote--no-link .vm-csh__person .vm-csh__who {
    margin: 0;
}

.vm-csh__avatar,
.vm-csh__photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
}

.vm-csh__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8e8eb;
  color: #4a4a52;
  font-family: 'Khand', var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 13px;
}

.vm-csh__photo {
  object-fit: cover;
  background: #e8e8eb;
}

.vm-csh__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vm-csh__name {
  font-family:var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--black, #111111);
}

.vm-csh__role {
  font-size: 13px;
  color: #7a7a82;
}

.vm-csh__more {
    margin-left: auto;
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--vm-csh-accent) !important;
}

.vm-csh__more:hover,
.vm-csh__more:focus-visible {
  color: var(--vm-csh-accent-dark);
  outline: none;
}

@media (max-width: 900px) {
  .vm-csh__body-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vm-csh__stats-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vm-csh__hero {
    padding: 36px 16px 52px;
  }

  .vm-csh__stats,
  .vm-csh__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vm-csh__stat {
    padding: 22px 24px;
  }

  .vm-csh__stat-value {
    font-size: 28px;
  }

  .vm-csh__meta {
    grid-template-columns: 1fr;
  }

  .vm-csh__rating {
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
    .vm-csh__who {
        margin-left: -50px;
    }
}
