/* ==========================================================================
   Case Study v2 block styles
   New, self-contained — does not touch .Product-single-banner, .about-section,
   .results-section, .hero-section or any class used by the legacy cs_* blocks.
   Enqueue this file alongside style.min.css; see enqueue snippet in the
   documentation for the functions.php hook.
   ========================================================================== */

.cs2-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-phlox-flame);
  margin-bottom: 10px;
}

.cs2-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.cs2-highlight {
  background: linear-gradient(90deg, var(--secondary-egg-shell-blue) -2.77%, var(--secondary-phlox-flame) 99.86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero ------------------------------------------------------------------ */

.cs2_hero {
  padding: 28px 0 20px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(98, 0, 179, 0.35), transparent 70%),
    radial-gradient(500px 260px at 90% 20%, rgba(87, 74, 226, 0.25), transparent 70%),
    #010106;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.cs2-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cs2-customer-logo {
  margin-bottom: 18px;
}

.cs2-customer-logo img {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.cs2-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  display: block;
  object-fit: cover;
}

.cs2-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cs2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cs2-badge-industry {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary-egg-shell-blue);
}

.cs2-badge-solution {
  background: rgba(87, 74, 226, 0.14);
  border-color: rgba(87, 74, 226, 0.3);
  color: #c9b6ff;
}

.cs2-hero-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  max-width: 760px;
  margin-bottom: 16px;
}

.cs2-hero-sub {
  font-size: 18px;
  color: #d5d5d6;
  max-width: 620px;
  margin-bottom: 28px;
}

.cs2-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cs2-btn-primary,
.cs2-btn-secondary {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
}

.cs2-btn-primary {
  background: var(--primary-dark-amethyst);
  color: #ffffff;
  border: none;
}

.cs2-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 11px 24px;
}

/* KPI strip -------------------------------------------------------------- */


.cs2_kpi_strip {
  padding: 40px 0;
  background: #010106;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs2-metrics-row {
  display: flex;
  flex-wrap: wrap;
}

.cs2-metric {
  flex: 1 1 0;
  min-width: 180px;
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.cs2-metric:first-child {
  border-left: none;
}

.cs2-metric-value {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  display: block;
  padding-top: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--secondary-egg-shell-blue), var(--secondary-phlox-flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs2-metric-desc {
  font-size: 13.5px;
  color: #b7b3c2;
  font-weight: 500;
  line-height: 1.45;
  display: block;
}

/* Challenge --------------------------------------------------------------- */

.cs2_challenge {
  padding: 20px 0;
  background: #01060e;
}

.cs2-challenge-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.cs2-challenge-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #d5d5d6;
  margin-bottom: 14px;
}

.cs2-context-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  padding: 24px;
}

.cs2-context-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9d97ad;
  margin-bottom: 6px;
}

.cs2-context-value {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.cs2-context-value:last-child {
  margin-bottom: 0;
}

/* Why grid ---------------------------------------------------------------- */

.cs2_why_grid {
  padding: 20px 0;
  background: #010106;
}

.cs2-why-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cs2-why-card {
  background: #ffffff;
  border-radius: 17px;
  padding: 30px 26px;
}

.cs2-why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary-electric-indigo), var(--secondary-phlox-flame));
  overflow: hidden;
}

.cs2-why-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cs2-why-heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark-amethyst);
  margin-bottom: 8px;
}

.cs2-why-description p {
  font-size: 14.5px;
  color: #4d525f;
  line-height: 1.6;
  margin: 0;
}

/* Benefits ------------------------------------------------------------------ */

.cs2_benefits {
  padding: 20px 0;
  background: #01060e;
}

.cs2-benefits-band {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  padding: 36px;
}

.cs2-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cs2-benefits-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #d5d5d6;
}

.cs2-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-egg-shell-blue);
  color: #04222c;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Bottom line ---------------------------------------------------------------- */

.cs2_bottom_line {
  padding: 20px 0;
  background: #010106;
}

.cs2-bottom-line-card {
  background: linear-gradient(180deg, var(--primary-dark-amethyst) 0%, #2a004d 100%);
  border-radius: 34px;
  padding: 44px 40px;
}

.cs2-bottom-line-card .cs2-eyebrow {
  color: #e6d9ff;
}

.cs2-bottom-line-text p {
  font-size: 18px;
  line-height: 1.75;
  color: #f1ecff;
  margin-bottom: 14px;
}

.cs2-bottom-line-text p:last-child {
  margin-bottom: 0;
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .cs2-why-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cs2-hero-title {
    font-size: 30px;
  }

  .cs2-metric {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 12px;
  }

  .cs2-metric:first-child {
    border-top: none;
    padding-top: 0;
  }

  .cs2-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs2-hero-image {
    order: -1;
  }

  .cs2-challenge-grid {
    grid-template-columns: 1fr;
  }

  .cs2-benefits-list {
    grid-template-columns: 1fr;
  }

  .cs2-bottom-line-card {
    padding: 36px 26px;
  }
}