/* ============================================================
   Agratix — Case Study page styles
   Used by case-study-template.html and any case study built from it.
   ============================================================ */

.cs-wrap { max-width: 900px; margin: 0 auto; padding: 0 5%; }

/* ---------- Breadcrumb ---------- */
.cs-breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 5% 0;
  font-size: 0.85rem;
  color: #6b7280;
}
.cs-breadcrumb a { color: #489156; text-decoration: none; font-weight: 600; }
.cs-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.cs-hero { padding: 28px 0 48px; }
.cs-tag {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(72, 145, 86, 0.1);
  color: #489156;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.cs-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1rem;
}
.cs-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #4a5568;
  margin: 0 0 2rem;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(28, 55, 101, 0.1);
  border-bottom: 1px solid rgba(28, 55, 101, 0.1);
}
.cs-meta div { min-width: 130px; }
.cs-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa3af;
  font-weight: 700;
  margin-bottom: 4px;
}
.cs-meta dd { margin: 0; font-size: 0.96rem; color: #1c3765; font-weight: 600; }

/* ---------- Results bar ---------- */
.cs-results {
  background: linear-gradient(135deg, #1c3765 0%, #16213e 100%);
  border-radius: 22px;
  padding: 34px 28px;
  margin: 44px auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
}
.cs-result { text-align: center; flex: 0 0 auto; min-width: 150px; }
.cs-result .cs-num {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #5da86a, #8fd6a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-result .cs-num-label {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Narrative ---------- */
.cs-section { padding: 12px 0 32px; }
.cs-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1c3765;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(72, 145, 86, 0.2);
}
.cs-section p { font-size: 1.05rem; line-height: 1.75; color: #4a5568; margin: 0 0 1.1rem; }
.cs-section ul { margin: 0 0 1.2rem 1.2rem; color: #4a5568; line-height: 1.75; }
.cs-section li { margin-bottom: 0.6rem; font-size: 1.02rem; }

/* ---------- Tech stack ---------- */
.cs-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.cs-stack span {
  background: #eef2f8;
  color: #1c3765;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Client quote ---------- */
.cs-quote {
  background: #f7f9fc;
  border-left: 4px solid #489156;
  border-radius: 0 16px 16px 0;
  padding: 28px 30px;
  margin: 36px 0;
}
.cs-quote blockquote {
  margin: 0 0 16px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #23303f;
  font-style: italic;
}
.cs-quote figcaption { display: flex; align-items: center; gap: 12px; }
.cs-quote .cs-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #5da86a, #489156);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex: none;
}
.cs-quote .cs-who strong { display: block; color: #1c3765; font-size: 0.96rem; }
.cs-quote .cs-who span { font-size: 0.85rem; color: #6b7280; }

/* ---------- CTA ---------- */
.cs-cta {
  text-align: center;
  background: #f7f9fc;
  border-radius: 22px;
  padding: 44px 30px;
  margin: 48px auto 90px;
  max-width: 900px;
}
.cs-cta h2 { font-size: 1.6rem; color: #1c3765; margin: 0 0 0.6rem; }
.cs-cta p { color: #4a5568; margin: 0 0 1.6rem; }
.cs-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #5da86a 0%, #489156 100%);
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(72, 145, 86, 0.3);
  transition: transform .25s ease;
}
.cs-cta a:hover { transform: translateY(-2px); }

/* ---------- Dark theme ---------- */
body.dark-theme .cs-hero h1,
body.dark-theme .cs-section h2,
body.dark-theme .cs-cta h2 { color: #f8f9fa; }
body.dark-theme .cs-lede,
body.dark-theme .cs-section p,
body.dark-theme .cs-section li,
body.dark-theme .cs-cta p { color: rgba(226, 232, 240, 0.82); }
body.dark-theme .cs-meta dd { color: #e2e8f0; }
body.dark-theme .cs-quote { background: rgba(255,255,255,0.04); }
body.dark-theme .cs-quote blockquote { color: #e2e8f0; }
body.dark-theme .cs-stack span { background: rgba(255,255,255,0.08); color: #e2e8f0; }
body.dark-theme .cs-cta { background: rgba(255,255,255,0.04); }

@media (max-width: 600px) {
  .cs-breadcrumb { padding-top: 100px; }
  .cs-results { gap: 22px 26px; padding: 26px 20px; }
  .cs-result { min-width: 120px; }
}
