/* ========================================
   Case Study Page Styles
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3a9be0;
  --primary-dark: #0e74b7;
  --accent: #e87a54;
  --success: #7dc244;
  --bg-dark: #0b1627;
  --bg-section: #0f1f3a;
  --bg-card: #172a48;
  --text-primary: #e8edf5;
  --text-secondary: #8ea2bf;
  --text-muted: #7a92b2;
  --border: #1e3456;
  --radius: 8px;
  --radius-lg: 16px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ── Nav (simplified) ── */
.cs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 22, 39, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 52, 86, 0.5);
}

.cs-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.cs-nav-logo img {
  height: 32px;
}

.cs-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.cs-nav-back:hover {
  color: var(--primary);
}

/* ── Hero ── */
.cs-hero {
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(58, 155, 224, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(232, 122, 84, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cs-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cs-breadcrumb a {
  color: var(--text-muted);
}

.cs-breadcrumb a:hover {
  color: var(--primary);
}

.cs-breadcrumb .sep {
  opacity: 0.4;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cs-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(58, 155, 224, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(58, 155, 224, 0.15);
}

.cs-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* ── Stats Bar ── */
.cs-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding: 24px 32px;
  background: rgba(15, 31, 58, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.cs-stat {
  text-align: center;
  flex: 1;
}

.cs-stat-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.cs-stat-val.accent { color: var(--accent); }
.cs-stat-val.green { color: var(--success); }

.cs-stat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Content Body ── */
.cs-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.cs-section {
  margin-bottom: 56px;
}

.cs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 16px;
}

.cs-section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.cs-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cs-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.cs-section ul {
  list-style: none;
  padding: 0;
}

.cs-section li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.cs-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

.cs-approach-item {
  padding: 24px;
  background: rgba(15, 31, 58, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.cs-approach-item h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cs-approach-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ── Results Grid ── */
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cs-result-card {
  padding: 24px;
  background: rgba(15, 31, 58, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.cs-result-card .cs-stat-val {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cs-result-card .cs-stat-lbl {
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ── CTA Bar ── */
.cs-cta {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

.cs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(58, 155, 224, 0.08) 0%, rgba(232, 122, 84, 0.06) 100%);
  border: 1px solid rgba(58, 155, 224, 0.15);
  border-radius: var(--radius-lg);
}

.cs-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cs-cta-text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.3s;
}

.cs-cta-btn:hover {
  background: #d96840;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 122, 84, 0.3);
}


/* ── Scroll Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Client Hero Image ── */
.cs-client-image {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 40px;
}

.cs-client-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Key Highlights ── */
.cs-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 20px 24px;
  background: rgba(15, 31, 58, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.cs-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-basis: 100%;
}

.cs-highlight::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Result Detail Cards ── */
.cs-result-detail {
  padding: 20px 24px;
  background: rgba(15, 31, 58, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.cs-result-detail h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.cs-result-detail p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ── Closing Section ── */
.cs-closing {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(58, 155, 224, 0.06) 0%, rgba(232, 122, 84, 0.04) 100%);
  border: 1px solid rgba(58, 155, 224, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
}

.cs-closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px;
}

.cs-closing p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
  font-style: italic;
}

/* ── Footer ── */
.cs-footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cs-hero {
    padding: 120px 20px 60px;
  }
  .cs-title {
    font-size: 2rem;
  }
  .cs-stats {
    flex-direction: column;
    gap: 20px;
  }
  .cs-content {
    padding: 0 20px 80px;
  }
  .cs-cta {
    padding: 0 20px;
  }
  .cs-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .cs-nav {
    padding: 16px 20px;
  }
  .cs-results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cs-client-image {
    padding: 0 20px;
    margin-bottom: 24px;
  }
  .cs-closing {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .cs-title {
    font-size: 1.625rem;
  }
  .cs-results-grid {
    grid-template-columns: 1fr;
  }
}
