/* ============================================================
   CASE-STUDY.CSS — single-case_study.php
   Shared utilities (.two-col, .section-label, .body-copy,
   .reveal, .container) already load globally via style.css/
   about.css/nav.css.
   ============================================================ */

/* ── Hero — full height photo, content overlaid ────────────── */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-black, #141414);
}
.cs-hero__image {
  width: 100%;
  height: 72vh;
  min-height: 520px;
  max-height: 720px;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--color-black, #141414);
}
.cs-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.cs-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 4;
}
.cs-hero__left {
  max-width: 800px;
}
.cs-hero__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.cs-hero__headline {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 120px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 12px;
}
.cs-hero__headline span {
  color: var(--color-red, #ed1c24);
}
.cs-hero__tagline {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}
.cs-hero__meta {
  display: flex;
  flex-wrap: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  overflow-x: auto;
}
.cs-hero__meta-item {
  padding: 16px 24px 16px 0;
  margin-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.cs-hero__meta-item:last-child {
  border-right: none;
  margin-right: 0;
}
.cs-meta-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
}
.cs-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.cs-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.cs-hero__tag-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ── Results ─────────────────────────────────────────────── */
.cs-results-section {
  background: var(--color-white, #fff);
  padding: 40px 0 var(--pad-sec, clamp(56px, 7vw, 96px));
}
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-result-card {
  background: var(--color-off, #f8f7f5);
  padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
  transition: background 0.2s;
}
.cs-result-card:hover {
  background: #f0eeec;
}
.cs-result-card h3 {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-black, #141414);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.cs-result-card p {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  line-height: 1.75;
}

/* ── Body / sections ─────────────────────────────────────── */
.cs-body {
  padding: var(--pad-sec, clamp(56px, 7vw, 96px)) 0 0;
}
.cs-section {
  margin-bottom: var(--pad-sec, clamp(56px, 7vw, 96px));
}
.cs-section:last-child {
  margin-bottom: 24px;
}
.cs-subhead {
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--color-black, #141414);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 24px;
}

/* Pluralytics callout */
.cs-pluralytics-callout {
  background: var(--color-off, #f8f7f5);
  padding: clamp(32px, 3.5vw, 48px) clamp(24px, 2.5vw, 36px);
  margin: 40px 0 0;
  transition: background 0.22s;
}
.cs-pluralytics-callout:hover {
  background: #f0eeec;
}
.cs-pluralytics-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 12px;
}
.cs-pluralytics-callout .body-copy p {
  font-size: clamp(13px, 1.3vw, 14px);
  color: #666;
}
.cs-pluralytics-callout__whitepaper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 22px;
  background: var(--color-red, #ed1c24);
  color: #fff;
  border-radius: 25px 25px 0 25px;
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.cs-pluralytics-callout__whitepaper:hover {
  background: var(--color-red-dark, #c01820);
}

/* ── Media blocks (Connection / Community / Conversion) ─────── */
.cs-img-full {
  width: 100%;
  aspect-ratio: 16/7;
  margin: 28px 0;
  overflow: hidden;
}
.cs-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-img-full a,
.cs-img-grid-item a {
  display: block;
  height: 100%;
}

.cs-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.cs-img-grid-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.cs-img-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-img-caption {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-mid, #888);
  margin-top: 8px;
}
.cs-img-caption--video {
  margin-top: 8px;
}

/* Pluralytics in Action — image or video showcase */
.cs-pluralytics-action {
  background: var(--color-off, #f8f7f5);
  border: 1px solid var(--color-line, #e8e6e2);
  border-radius: 4px;
  padding: 24px;
  margin: 28px 0;
}
.cs-pluralytics-action__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  margin-bottom: 16px;
}
.cs-pluralytics-action__media {
  background: #e0ddd8;
  border-radius: 3px;
  overflow: hidden;
}
.cs-pluralytics-action__media img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-pluralytics-action__video {
  position: relative;
  aspect-ratio: 16/9;
}
.cs-pluralytics-action__video video,
.cs-pluralytics-action__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.cs-pluralytics-action__caption {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-mid, #888);
  line-height: 1.7;
  text-align: center;
  max-width: 640px;
  margin: 16px auto 0;
}

/* Block Quote */
.cs-block-quote {
  border-left: 4px solid var(--color-red, #ed1c24);
  padding-left: clamp(20px, 3vw, 32px);
  margin: clamp(32px, 4vw, 48px) 0;
}
.cs-block-quote__text {
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-black, #141414);
  line-height: 1.5;
  margin-bottom: 12px;
}
.cs-block-quote__attr {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-mid, #888);
}
.cs-info-boxes {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}
/* Info Boxes — 2, 3, or 4 shown side by side */
.cs-info-boxes--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cs-info-boxes--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cs-info-boxes--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cs-info-box {
  background: var(--color-off, #f8f7f5);
  border-top: 4px solid var(--color-red, #ed1c24);
  padding: 24px 22px 26px;
}
.cs-info-box__stat {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 52px;
  font-weight: 900;
  color: var(--color-red, #ed1c24);
  line-height: 1;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.cs-info-box__subheader--top {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  margin-bottom: 8px;
}
.cs-info-box__subheader--bottom {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-mid, #888);
  margin-top: -2px;
  margin-bottom: 12px;
}
.cs-info-box__title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  color: var(--color-black, #141414);
  line-height: 1.1;
  margin-bottom: 8px;
}
.cs-info-box__desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--color-text, #50585b);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .cs-info-boxes--2,
  .cs-info-boxes--3,
  .cs-info-boxes--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cs-info-boxes--2,
  .cs-info-boxes--3,
  .cs-info-boxes--4 {
    grid-template-columns: 1fr;
  }
}

/* Video embed */
.cs-video-embed {
  background: var(--color-black, #141414);
  width: 100%;
  aspect-ratio: 16/8;
  margin: 28px 0;
  overflow: hidden;
  position: relative;
}
.cs-img-grid--video .cs-video-embed {
  margin: 0;
  aspect-ratio: 4/3;
}
.cs-video-embed__frame {
  position: absolute;
  inset: 0;
}
.cs-video-embed__frame iframe,
.cs-video-embed__frame video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
  object-fit: cover;
}

/* ── Services Delivered ──────────────────────────────────── */
.cs-services-strip {
  background: var(--color-off, #f8f7f5);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--color-line, #e8e6e2);
}
.cs-services-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.cs-services-label {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-black, #141414);
  line-height: 0.95;
  letter-spacing: -1px;
  border-left: 4px solid var(--color-red, #ed1c24);
  padding-left: 16px;
}
.cs-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-svc-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text, #50585b);
  border: 1px solid var(--color-line, #e8e6e2);
  padding: 8px 16px;
  transition:
    border-color 0.18s,
    color 0.18s;
}
.cs-svc-tag:hover {
  border-color: var(--color-red, #ed1c24);
  color: var(--color-red, #ed1c24);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-hero__headline {
    font-size: clamp(56px, 8vw, 90px);
    line-height: 0.92;
  }
  .cs-results-grid {
    grid-template-columns: 1fr;
  }
  .cs-services-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .cs-hero__image {
    height: 52vh;
    min-height: 380px;
    max-height: 480px;
  }
  .cs-hero__headline {
    font-size: clamp(40px, 11vw, 60px);
  }
  .cs-hero__meta {
    flex-wrap: wrap;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cs-img-grid,
  .cs-img-grid--video {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .cs-hero__image {
    height: 48vh;
    min-height: 340px;
    max-height: 420px;
  }
  .cs-hero__headline {
    font-size: clamp(34px, 12vw, 46px);
  }
}
