/* ═══════════════════════════════════════════════════
   NEXAURO — Social Proof (Apple Cinematic)
   Case Study + Testimonials
   ═══════════════════════════════════════════════════ */

/* ═══ CASE STUDY ═══ */
#case-study {
  background: linear-gradient(180deg, var(--bg-dark), #000);
  text-align: center;
}

#case-study .eyebrow { color: var(--gold); }
#case-study h2 {
  color: var(--text);
  max-width: 800px;
  margin: 14px auto 0;
}

.cs-transform-visual {
  margin: 56px auto;
  max-width: 700px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.cs-transform-visual img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.cs-transform-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  z-index: 2;
  animation: csLine 3s ease-in-out infinite;
}

@keyframes csLine { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.cs-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.cs-before-card, .cs-after-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: left;
}

.cs-before-card { border-color: rgba(231,76,60,0.15); }
.cs-after-card { border-color: rgba(212,175,55,0.15); }

.cs-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cs-card-label.before { color: #E74C3C; }
.cs-card-label.after { color: var(--gold); }

.cs-card-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cs-card-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-dim); line-height: 1.6; }
.cs-card-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.cs-before-card .cs-card-list li::before { background: #E74C3C; }
.cs-after-card .cs-card-list li::before { background: var(--gold); }

/* ── Metrics ── */
.cs-sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.cs-sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
}

.cs-sol-card:hover { border-color: rgba(212,175,55,0.15); transform: translateY(-4px); }

.sp-counter { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.sp-label { font-size: 13px; color: var(--text-dim); }

/* ═══ TESTIMONIALS ═══ */
#testimonials {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

#testimonials h2 { color: var(--text); }

.carousel-container { position: relative; margin-top: 56px; }

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
  transition: all 0.5s var(--ease-out);
}

.testimonial-card.active { border-color: rgba(212,175,55,0.2); }

.tq { font-size: 36px; color: var(--gold); opacity: 0.3; font-family: Georgia; line-height: 1; }
.t-text { font-size: 16px; color: var(--text-dim); line-height: 1.8; margin: 16px 0 20px; font-style: italic; }
.t-name { font-family: var(--font-heading); font-weight: 700; color: var(--text); font-size: 16px; }
.t-role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Carousel controls */
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }

.carousel-prev, .carousel-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}

.carousel-prev:hover, .carousel-next:hover { border-color: var(--gold); color: var(--gold); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.carousel-dot.active { background: var(--gold); transform: scale(1.2); }

@media (max-width: 768px) {
  .cs-problem-grid { grid-template-columns: 1fr; }
  .cs-sol-grid { grid-template-columns: 1fr 1fr; }
}
