/* ─────────────────────────────────────────────────────────────
   CASE STUDY — Shared Stylesheet
   Used by all case-study-*.html pages
   ───────────────────────────────────────────────────────────── */

/* ── Hero ── */
.cs-hero {
  padding: calc(var(--nav-height, 96px) + 64px) 0 64px;
  background: linear-gradient(180deg, #060C1A 0%, #0A1220 100%);
  position: relative; overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(52,211,153,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cs-hero--blue::before  { background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(79,142,247,0.1) 0%, transparent 70%); }
.cs-hero--purple::before{ background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(167,139,250,0.1) 0%, transparent 70%); }
.cs-hero--orange::before{ background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(251,146,60,0.1) 0%, transparent 70%); }
.cs-hero--cyan::before  { background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(34,211,238,0.1) 0%, transparent 70%); }

.cs-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary, #94A3B8);
  text-decoration: none; margin-bottom: 32px;
  transition: color 0.2s ease;
}
.cs-back-link:hover { color: #fff; }
.cs-back-link svg { width: 15px; height: 15px; }

.cs-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cs-hero-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
}
.cs-hero-tag--healthcare { background: rgba(52,211,153,0.12); color: #34D399; }
.cs-hero-tag--web        { background: rgba(79,142,247,0.12);  color: #4F8EF7; }
.cs-hero-tag--ecommerce  { background: rgba(251,146,60,0.12);  color: #fb923c; }
.cs-hero-tag--edtech     { background: rgba(167,139,250,0.12); color: #A78BFA; }
.cs-hero-tag--mobile     { background: rgba(34,211,238,0.12);  color: #22D3EE; }
.cs-hero-tag--legal      { background: rgba(248,113,113,0.12); color: #f87171; }
.cs-hero-tag--events     { background: rgba(251,191,36,0.12);  color: #fbbf24; }
.cs-hero-tag--logistics  { background: rgba(34,211,238,0.12);  color: #22D3EE; }
.cs-hero-tag--enterprise { background: rgba(79,142,247,0.12);  color: #4F8EF7; }
.cs-hero-tag--devops     { background: rgba(167,139,250,0.12); color: #A78BFA; }

.cs-hero-title {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  line-height: 1.15; color: #fff;
  margin-bottom: 20px;
}
.cs-hero-subtitle {
  font-size: clamp(15px, 2vw, 18px); color: #94A3B8;
  max-width: 680px; line-height: 1.65; margin-bottom: 40px;
}

/* Stat chips */
.cs-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-stat-chip {
  display: flex; flex-direction: column;
  background: rgba(52,211,153,0.07);
  border: 1px solid rgba(52,211,153,0.18);
  border-radius: 12px; padding: 14px 20px; min-width: 140px;
}
.cs-stat-chip--blue   { background: rgba(79,142,247,0.07);  border-color: rgba(79,142,247,0.2); }
.cs-stat-chip--purple { background: rgba(167,139,250,0.07); border-color: rgba(167,139,250,0.2); }
.cs-stat-chip--orange { background: rgba(251,146,60,0.07);  border-color: rgba(251,146,60,0.2); }
.cs-stat-chip--cyan   { background: rgba(34,211,238,0.07);  border-color: rgba(34,211,238,0.2); }
.cs-stat-num { font-size: 26px; font-weight: 800; color: #34D399; }
.cs-stat-chip--blue   .cs-stat-num { color: #4F8EF7; }
.cs-stat-chip--purple .cs-stat-num { color: #A78BFA; }
.cs-stat-chip--orange .cs-stat-num { color: #fb923c; }
.cs-stat-chip--cyan   .cs-stat-num { color: #22D3EE; }
.cs-stat-lbl { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* ── Body layout ── */
.cs-body { padding: 64px 0 80px; }
.cs-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }

/* ── Sections ── */
.cs-section { margin-bottom: 56px; }
.cs-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #34D399; margin-bottom: 12px;
}
.cs-section-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.cs-section-body { font-size: 16px; line-height: 1.75; color: #94A3B8; }
.cs-section-body p { margin-bottom: 14px; }
.cs-section-body p:last-child { margin-bottom: 0; }

.cs-divider { height: 1px; background: #1E3A5F; margin: 56px 0; }

/* Highlight blocks */
.cs-highlight-block {
  background: #0A1628; border: 1px solid #1E3A5F;
  border-left: 4px solid #34D399;
  border-radius: 0 12px 12px 0; padding: 24px 28px; margin: 24px 0;
}
.cs-highlight-block--blue   { border-left-color: #4F8EF7; }
.cs-highlight-block--purple { border-left-color: #A78BFA; }
.cs-highlight-block--orange { border-left-color: #fb923c; }
.cs-highlight-block p { font-size: 15px; line-height: 1.7; color: #94A3B8; margin: 0; }
.cs-highlight-block strong { color: #fff; }
.cs-quote-attr { font-size: 13px; color: #6B7280; margin-top: 6px; display: block; }

/* Lists */
.cs-challenge-list,
.cs-solution-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.cs-challenge-list li,
.cs-solution-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: #94A3B8; }
.cs-challenge-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #f87171; }
.cs-solution-list li svg  { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #34D399; }
.cs-solution-list li strong, .cs-challenge-list li strong { color: #fff; }

/* Tech grid */
.cs-tech-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cs-tech-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(79,142,247,0.07); border: 1px solid rgba(79,142,247,0.18);
  border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: #94A3B8;
}
.cs-tech-badge svg { width: 16px; height: 16px; color: #4F8EF7; }

/* Timeline */
.cs-timeline { position: relative; padding-left: 28px; margin-top: 20px; }
.cs-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #34D399, rgba(52,211,153,0.1)); }
.cs-timeline-item { position: relative; padding-bottom: 32px; }
.cs-timeline-item:last-child { padding-bottom: 0; }
.cs-timeline-dot { position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #34D399; border: 2px solid #060C1A; }
.cs-timeline-week { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #34D399; margin-bottom: 4px; }
.cs-timeline-task { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cs-timeline-desc { font-size: 14px; color: #6B7280; line-height: 1.5; }

/* Results grid */
.cs-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.cs-result-card { background: rgba(52,211,153,0.06); border: 1px solid rgba(52,211,153,0.15); border-radius: 12px; padding: 20px; }
.cs-result-card--blue   { background: rgba(79,142,247,0.06);  border-color: rgba(79,142,247,0.15); }
.cs-result-card--purple { background: rgba(167,139,250,0.06); border-color: rgba(167,139,250,0.15); }
.cs-result-card--orange { background: rgba(251,146,60,0.06);  border-color: rgba(251,146,60,0.15); }
.cs-result-card--cyan   { background: rgba(34,211,238,0.06);  border-color: rgba(34,211,238,0.15); }
.cs-result-num { font-size: 30px; font-weight: 800; color: #34D399; }
.cs-result-card--blue   .cs-result-num { color: #4F8EF7; }
.cs-result-card--purple .cs-result-num { color: #A78BFA; }
.cs-result-card--orange .cs-result-num { color: #fb923c; }
.cs-result-card--cyan   .cs-result-num { color: #22D3EE; }
.cs-result-unit { font-size: 18px; font-weight: 700; }
.cs-result-desc { font-size: 13px; color: #6B7280; margin-top: 4px; }

/* ── Sidebar ── */
.cs-sidebar { position: sticky; top: 120px; }
.cs-sidebar-card { background: #0A1628; border: 1px solid #1E3A5F; border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.cs-sidebar-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6B7280; margin-bottom: 16px; }
.cs-sidebar-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(30,58,95,0.5); gap: 12px; }
.cs-sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }
.cs-sidebar-key { font-size: 12px; color: #6B7280; flex-shrink: 0; }
.cs-sidebar-val { font-size: 13px; font-weight: 600; color: #fff; text-align: right; }
.cs-status-live { color: #34D399; }
.cs-sidebar-cta { background: linear-gradient(135deg, rgba(79,142,247,0.1), rgba(34,211,238,0.05)); border: 1px solid rgba(79,142,247,0.25); border-radius: 14px; padding: 28px; text-align: center; }
.cs-sidebar-cta-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cs-sidebar-cta-desc { font-size: 13px; color: #6B7280; margin-bottom: 20px; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 1023px) { .cs-layout { grid-template-columns: 1fr; } .cs-sidebar { position: static; } }
@media (max-width: 767px)  { .cs-hero-stats { flex-direction: column; } .cs-stat-chip { min-width: unset; } }
@media (max-width: 479px)  { .cs-results-grid { grid-template-columns: 1fr; } }
