/* ============================================
   Shared Case Study Styles
   Used by: grow-with-the-flow.html, closet-crush.html
   ============================================ */

/* ── Section border (transparent, Figma spec) ── */
.cs-section-border {
  border-bottom: 1.5px solid transparent;
}

/* ── Text sections ─────────────────────────── */

.cs-text-section {
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #ffffff;
}

/* ── Headings ──────────────────────────────── */

.cs-heading {
  font-family: var(--font-regular);
  font-size: 32px;
  font-weight: 400;
  color: #000;
  letter-spacing: -0.64px;
  line-height: 1.2;
  margin: 0;
}

.cs-heading--spaced {
  margin-top: 32px;
}

/* ── Body text ─────────────────────────────── */

.cs-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  color: #000;
  letter-spacing: -0.96px;
  line-height: 1.2;
  margin: 0;
}

/* ── Bullet list ───────────────────────────── */

.cs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 28px;
  list-style: disc;
  margin: 0;
}

.cs-list li {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  color: #000;
  letter-spacing: -0.96px;
  line-height: 1.2;
}

.cs-list--ordered {
  list-style: decimal;
}

/* ── Sketch / flow cards ───────────────────── */

.cs-sketch-cards {
  padding: 40px 64px 80px;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  background-color: #ffffff;
}

.cs-sketch-card {
  margin: 0;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.cs-sketch-card:first-child {
  width: 326px;
  height: 447px;
}

.cs-sketch-card:not(:first-child) {
  width: 336px;
  height: 447px;
}

.cs-sketch-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Videos ────────────────────────────────── */

.cs-videos {
  padding: 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  background-color: #ffffff;
}

.cs-video {
  display: block;
  width: 100%;
  /* aspect-ratio is set per page (GWTF: 2938/1590, CC: 1134/611) */
  border-radius: 20px;
  object-fit: cover;
  cursor: default;
}

/* ── Responsive: tablet ≤1100px ────────────── */

@media (max-width: 1100px) {
  .cs-text-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cs-sketch-cards {
    padding-left: 32px;
    padding-right: 32px;
    gap: 16px;
  }

  .cs-sketch-card:first-child,
  .cs-sketch-card:not(:first-child) {
    width: clamp(180px, 30%, 336px);
    height: auto;
  }

  .cs-videos {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cs-heading {
    font-size: clamp(22px, 2.8vw, 32px);
  }

  .cs-body,
  .cs-list li {
    font-size: clamp(16px, 2vw, 24px);
  }
}

/* ── Responsive: mobile ≤767px ─────────────── */

@media (max-width: 767px) {
  .cs-text-section {
    padding: 48px 24px;
  }

  .cs-sketch-cards {
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 48px;
    gap: 24px;
  }

  .cs-sketch-card:first-child,
  .cs-sketch-card:not(:first-child) {
    width: 100%;
    max-width: 380px;
    height: auto;
  }

  .cs-videos {
    padding: 32px 24px;
    gap: 40px;
  }

  .cs-heading {
    font-size: clamp(22px, 6vw, 32px);
  }

  .cs-body,
  .cs-list li {
    font-size: clamp(16px, 4.5vw, 20px);
  }
}
