/* caseStudy.css - Styles for case study pages */

/* Entrance animation */
@keyframes cs-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-fade-in {
  animation: cs-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .cs-fade-in {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .cs-stat-card,
  .cs-stat-card:hover,
  .cs-cta-button,
  .cs-cta-button:hover,
  .cs-cta-button:focus-visible {
    transition: none !important;
    transform: none !important;
  }
}

/* Page wrapper */
.cs-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Hero Section */
.cs-hero {
  background: radial-gradient(circle at 50% 0%, #101f3c 0%, #091225 100%);
  color: #ffffff;
  padding: 80px 20px 70px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.cs-headline {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 18px 0;
}

.cs-client-line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #37c3a8;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.5;
}

/* Restrained Stat Strip */
.cs-stat-strip {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 44px 20px;
}

.cs-stat-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cs-stat-context {
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cs-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.cs-stat-value {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #09152b;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cs-stat-label {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

/* Main Content */
.cs-content {
  padding: 60px 20px 70px 20px;
  background-color: #ffffff;
}

.cs-content-container {
  max-width: 820px;
  margin: 0 auto;
}

.cs-section {
  margin-bottom: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid #f1f5f9;
}

.cs-section-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cs-section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 750;
  color: #09152b;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
}

.cs-section-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}

.cs-paragraph {
  margin: 0 0 18px 0;
  color: #334155;
}

.cs-paragraph:last-child {
  margin-bottom: 0;
}

.cs-list {
  margin: 18px 0 24px 0;
  padding-left: 24px;
  list-style-type: disc;
}

.cs-list-item {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #334155;
}

.cs-list-item:last-child {
  margin-bottom: 0;
}

/* CTA Band */
.cs-cta-band {
  background: radial-gradient(circle at 50% 0%, #101f3c 0%, #091225 100%);
  color: #ffffff;
  padding: 72px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-cta-container {
  max-width: 720px;
  margin: 0 auto;
}

.cs-cta-title {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
}

.cs-cta-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 28px 0;
}

.cs-cta-action {
  margin-top: 8px;
}

.cs-cta-button {
  display: inline-block;
  background-color: #0f766e;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 8px;
  border: 1px solid #0f766e;
  text-decoration: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.cs-cta-button:hover,
.cs-cta-button:focus-visible {
  background-color: #115e59;
  border-color: #115e59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
  color: #ffffff !important;
}

.cs-cta-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #0f766e;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .cs-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cs-hero {
    padding: 64px 20px 54px 20px;
  }
  .cs-cta-band {
    padding: 56px 20px;
  }
}

@media (max-width: 576px) {
  .cs-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cs-stat-card {
    padding: 20px 16px;
  }
  .cs-content {
    padding: 44px 16px 54px 16px;
  }
  .cs-section {
    margin-bottom: 36px;
    padding-bottom: 32px;
  }
}
