/* ============================================================
   CASE STUDY PAGE — Filadd × Teapot
   ============================================================ */

.case-section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.case-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin-bottom: var(--space-xl);
}

/* ---- HERO ---- */
.case-hero {
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) 2rem var(--space-xl);
  position: relative;
}
.case-hero-inner {
  max-width: 700px;
}
.case-hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: var(--space-lg);
}
.case-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.case-logo-sep {
  font-size: 1.5rem;
  color: var(--ink-muted);
  font-weight: 300;
}
.case-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-sm);
}
.case-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.case-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- METRICS ---- */
.case-metrics {
  padding: var(--space-2xl) 2rem;
  background: var(--parchment);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.metric-card {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.metric-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-glow);
  margin-bottom: 0.75rem;
}
.metric-desc {
  font-size: 0.85rem;
  color: var(--light-muted);
  line-height: 1.6;
}

/* ---- CHALLENGE ---- */
.case-challenge {
  padding: var(--space-2xl) 2rem;
  background: var(--cream);
}
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.challenge-card {
  background: var(--parchment);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
}
.challenge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}
.challenge-icon--red {
  background: #fde8e8;
  color: #dc2626;
}
.challenge-icon--yellow {
  background: #fef3c7;
  color: #ca8a04;
}
.challenge-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}
.challenge-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.challenge-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---- PROCESS / TIMELINE ---- */
.case-process {
  padding: var(--space-2xl) 2rem;
  background: var(--parchment);
}
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream-mid);
}
.timeline-step {
  position: relative;
  margin-bottom: var(--space-lg);
}
.timeline-step:last-child {
  margin-bottom: 0;
}
.timeline-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline-number--green {
  background: #16a34a;
}
.timeline-content {
  background: var(--cream);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.timeline-phase {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.timeline-list {
  list-style: none;
  padding: 0;
}
.timeline-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---- TESTIMONIAL ---- */
.case-testimonial {
  padding: var(--space-2xl) 2rem;
  background: var(--cream);
}
.testimonial-card {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}
.testimonial-icon {
  color: var(--orange);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}
.testimonial-quote {
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: var(--space-lg);
}
.testimonial-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}
.testimonial-sub {
  font-size: 0.78rem;
  color: var(--light-muted);
  margin-top: 0.2rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .case-hero {
    min-height: auto;
    padding: 6rem 1.5rem var(--space-xl);
  }
  .metrics-grid,
  .challenge-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .case-metrics,
  .case-challenge,
  .case-process,
  .case-testimonial {
    padding: var(--space-xl) 1.5rem;
  }
}

@media (max-width: 640px) {
  .case-hero {
    padding: 5rem 1.25rem var(--space-lg);
  }
  .case-hero-title {
    font-size: 1.8rem;
  }
  .case-hero-sub {
    font-size: 0.95rem;
  }
  .case-logo {
    height: 32px;
  }
  .metric-value {
    font-size: 2.2rem;
  }
  .case-metrics,
  .case-challenge,
  .case-process,
  .case-testimonial {
    padding: var(--space-lg) 1.25rem;
  }
  .testimonial-card {
    padding: var(--space-lg) var(--space-md);
  }
  .testimonial-quote {
    font-size: 1rem;
  }
  .case-section-title {
    margin-bottom: var(--space-lg);
  }
}
