/*
 * Case studies archive banner - full-bleed photo with a dark scrim,
 * breadcrumb/title/industry pills on the left, a red "Result" stat card
 * on the right. Scoped to .vm-csb so it won't restyle anything else; kept
 * in its own file (separate from casestudies.css, which owns this page's
 * fonts and the grid/tabs below) so the two can be edited independently.
 * Enqueued only for is_post_type_archive('case_study') - see
 * vm_enqueue_assets() in functions.php. Rendered by archive-case_study.php.
 *
 * The "+400%" counter reuses the sitewide .counter[data-target] animation
 * (assets/js/custom.js) already used on the homepage hero stats - no
 * separate count-up script needed.
 *
 * 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-csb,
.vm-csb * {
  box-sizing: border-box;
}

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

.vm-csb h1,
.vm-csb p,
.vm-csb a,
.vm-csb nav,
.vm-csb ul,
.vm-csb li,
.vm-csb dl,
.vm-csb dt,
.vm-csb dd {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.vm-csb ul {
  list-style: none;
}

.vm-csb__media {
  position: relative;
  overflow: hidden;
  background: #e6e6e9;
}

.vm-csb__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vm-csb__scrim {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62%;
  background: linear-gradient(100deg, rgba(15, 15, 18, 0.94) 0%, rgba(15, 15, 18, 0.86) 55%, rgba(15, 15, 18, 0) 100%);
  pointer-events: none;
}

.vm-csb__inner {
  position: relative;
  z-index: 1;
  max-width: var(--vm-csb-max);
  margin: 0 auto;
  padding: clamp(52px, 6vw, 76px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 4vw, 56px);
  align-items: center;
}

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

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

.vm-csb__crumbs a {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.vm-csb__title {
  font-family: var(--wix-font-nuckle-bold);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: pretty;
}

.vm-csb__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.vm-csb__pill {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.vm-csb__result {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px 42px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--vm-csb-accent) 0%, var(--vm-csb-accent-dark) 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  min-width: 0;
}

.vm-csb__eyebrow {
  font-family: var(--wix-font-nuckle-bold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2c4bd;
}

.vm-csb__stat {
  display: flex;
  flex-direction: column;
}

.vm-csb__stat-value {
  display: block;
  font-family: var(--wix-font-nuckle-bold);
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #fff;
}

.vm-csb__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 400;
  color: #f7e2df;
}

.vm-csb__meta {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.vm-csb__meta-label {
  font-family: var(--wix-font-nuckle-bold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2c4bd;
}

.vm-csb__meta-value {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

@container (max-width: 860px) {
  .vm-csb__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .vm-csb__scrim {
    width: 100%;
  }

  .vm-csb__result {
    max-width: 420px;
    width: 100%;
    padding: 32px 30px;
  }
}

@media (max-width: 860px) {
  .vm-csb__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .vm-csb__scrim {
    width: 100%;
  }

  .vm-csb__result {
    max-width: 420px;
    width: 100%;
    padding: 32px 30px;
  }
}
