/* ══════════════════════════════════════════════════════════
   CASE STUDY PAGE — Shared Styles
   Extracted from inline <style> blocks for template use
   ═══════════════════════════════════════════════════════════ */

/* ── Hero header — full viewport, dark CTA style ────────── */
.cs-header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--green-900);
}

.cs-header .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 6rem;
  padding-bottom: 4.5rem;
}

.cs-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; color: var(--green-400);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.cs-back:hover { color: var(--off-white); }
.cs-back svg { width: 14px; height: 14px; }

/* Pushes headline + intro block to the bottom of the hero */
.cs-header-content { margin-top: auto; }

/* ── Hero entrance animations ───────────────────────────── */
@keyframes csFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes csFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cs-title {
  opacity: 0;
  animation: csFadeUp 0.7s ease both;
}
.cs-meta {
  opacity: 0;
  animation: csFadeUp 0.7s ease both;
  animation-delay: 0.3s;
}
.cs-intro > div:nth-child(2) {
  opacity: 0;
  animation: csFadeUp 0.7s ease both;
  animation-delay: 0.6s;
}
.cs-intro > div:nth-child(3) {
  opacity: 0;
  animation: csFadeUp 0.7s ease both;
  animation-delay: 0.75s;
}
.cs-header .eyebrow {
  opacity: 0;
  animation: csFadeUp 0.7s ease both;
  animation-delay: 1.05s;
}
.cs-back {
  opacity: 0;
  animation: csFade 0.7s ease both;
  animation-delay: 3.0s;
}

@media (prefers-reduced-motion: reduce) {
  .cs-title,
  .cs-meta,
  .cs-intro > div:nth-child(2),
  .cs-intro > div:nth-child(3),
  .cs-header .eyebrow,
  .cs-back {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.cs-header .eyebrow { margin-bottom: 0.9rem; color: var(--green-400); }
.cs-header .eyebrow::before { content: none; }

.cs-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.08;
  max-width: 85%;
  margin-bottom: 0;
  color: var(--off-white);
}

/* Three-column intro: metadata (40%) | para 1 (30%) | para 2 (30%) */
.cs-intro {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
  max-width: 100%;
  margin-top: 2.5rem;
}

/* Metadata column */
.cs-meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 2rem;
  row-gap: 0.65rem;
  align-items: baseline;
}
.cs-meta-item { display: contents; }
.cs-meta-item dt {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-400);
  white-space: nowrap;
}
.cs-meta-item dd { font-size: 0.875rem; font-weight: 500; color: var(--green-100); line-height: 1.4; }

.cs-intro-col p {
  font-size: 0.875rem;
  color: var(--green-300);
  line-height: 1.8;
  text-align: left;
}

/* ── Hero Image ─────────────────────────────────────────── */
.cs-hero {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cs-hero-img {
  height: 520px;
  overflow: hidden;
}

.cs-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── Stat Cards ─────────────────────────────────────────── */
.cs-stats { padding: 5.5rem 0; }

.cs-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cs-stat-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.cs-stat-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.08); }

.cs-stat-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.cs-stat-card-title { font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.cs-stat-card-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

.cs-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700; color: var(--heading-text);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.5rem;
}
.cs-stat-num em { font-style: normal; color: var(--heading-text); }

.cs-stat-growth {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 500; color: #16a34a;
}
.cs-stat-growth svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Body Sections ──────────────────────────────────────── */
.cs-body { padding: 0; }

.cs-section { padding: 5.5rem 0; }
.cs-section + .cs-section { border-top: 1px solid rgba(0,0,0,0.06); }
.cs-section--alt { background: var(--warm-white); }

/* 2-col: image + text */
.cs-section-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem;
  align-items: center;
}
.cs-section-2col--wide-right { grid-template-columns: 1fr 2.33fr; }

.cs-section-img { border-radius: 20px; overflow: hidden; height: 480px; }
.cs-section-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-section-text .eyebrow { margin-bottom: 0.6rem; }

.cs-section-h {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.cs-section-body {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.85;
}

/* 2 side-by-side images + text below */
.cs-section-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.cs-section-duo-img { border-radius: 20px; overflow: hidden; height: 360px; }
.cs-section-duo-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.cs-section-text-below { max-width: 700px; }
.cs-section-text-below .eyebrow { margin-bottom: 0.6rem; }
.cs-section-text-below .cs-section-h { margin-bottom: 1.25rem; }

/* Wide image + text below */
.cs-section-wide-img { border-radius: 20px; overflow: hidden; height: 480px; margin-bottom: 3.5rem; }
.cs-section-wide-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* ── Proof Grid (Bantumen) ─────────────────────────────── */
.cs-proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cs-proof-left { display: flex; flex-direction: column; gap: 1.5rem; }
.cs-proof-chart-wrap {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
}
.cs-proof-chart-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.cs-proof-chart-canvas-wrap { position: relative; height: 220px; }
.cs-proof-chart-canvas { width: 100%; height: 100%; }
.cs-proof-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-proof-mini-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
}
.cs-proof-mini-card .cs-stat-card-header { margin-bottom: 0.75rem; }

/* ── CTA BAND ──────────────────────────────────────────── */
.cta-band-outer { padding: 5.5rem 0; display: flex; justify-content: center; }
.cta-band {
  background: var(--green-900); text-align: center; position: relative; overflow: hidden;
  max-width: 80%; width: 100%; border-radius: 24px; padding: 4rem 3rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08), 0 32px 72px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
}
.cta-band-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(58,122,80,0.3) 0%, transparent 70%); pointer-events: none; border-radius: 24px; }
.cta-band-content { position: relative; z-index: 1; }
.cta-band .eyebrow { font-size: 0.72rem; margin-bottom: 0.75rem; justify-content: center; color: var(--green-light); }
.cta-band .eyebrow::before { content: none; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); color: var(--off-white); margin-bottom: 1rem; }
.cta-band p { font-size: 1.1rem; color: var(--green-200); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Other Cases ────────────────────────────────────────── */
.other-cases { padding: 5.5rem 0; }
.other-cases-header { margin-bottom: 2rem; }
.other-cases-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.other-cases-grid { display: flex; gap: 2rem; justify-content: center; }
.other-case-card { flex: 0 0 360px; width: 360px; border-radius: 14px; overflow: hidden; background: var(--warm-white); border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease; display: flex; flex-direction: column; }
.other-case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.other-case-card-img { height: 175px; overflow: hidden; flex-shrink: 0; }
.other-case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.other-case-card:hover .other-case-card-img img { transform: scale(1.04); }
.other-case-card-body { padding: 1.2rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.other-case-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 6px; }
.other-case-label svg { flex-shrink: 0; }
.other-case-stat { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1rem, 1.7vw, 1.4rem); font-weight: 800; color: var(--heading-text); letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.5rem; }
.other-case-stat mark { background: none; color: var(--heading-text); }
.other-case-result { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.other-case-card-body .motion-btn { margin-top: auto; }

/* ── SLIDE BUTTON ──────────────────────────────────────── */
.btn-slide {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0.25rem 3.5rem 0.25rem 1.5rem;
  border-radius: 100px;
  background: var(--red-500);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: padding 0.5s ease;
}
.btn-slide:hover { padding: 0.25rem 1.5rem 0.25rem 3.5rem; }
.btn-slide-label { position: relative; z-index: 1; transition: transform 0.5s ease; white-space: nowrap; }
.btn-slide-icon {
  position: absolute;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: right 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.24), 0 2px 6px rgba(0,0,0,0.18);
}
.btn-slide:hover .btn-slide-icon { right: calc(100% - 44px); transform: rotate(45deg); }
.btn-slide:focus-visible { outline: 2.5px solid var(--red-500); outline-offset: 3px; }
.btn-slide:active { opacity: 0.85; }

/* ── LANG SWITCHER ─────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 0.35rem; margin-right: 0.75rem; }
.lang-btn { font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s ease; line-height: 1; text-decoration: none; }
.lang-btn:hover { color: var(--charcoal); }
.lang-btn.lang-active { font-weight: 700; color: var(--charcoal); }
.lang-divider { font-size: 0.65rem; color: var(--green-200); line-height: 1; }
@media (max-width: 1023px) { .lang-switcher { display: none; } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cs-header { min-height: auto; }
  .cs-header .container { padding-top: 5.5rem; padding-bottom: 3rem; }
  .cs-header-content { margin-top: 3rem; }
  .cs-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-section-2col { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-section-img { height: 360px; }
  .cs-section-duo { grid-template-columns: 1fr; }
  .cs-section-duo-img { height: 280px; }
  .cs-section-wide-img { height: 360px; }
  .other-cases-grid { flex-direction: column; align-items: center; }
  .cs-proof-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .cs-header { padding-top: 0; padding-bottom: 0; }
  .cs-header .container { padding-top: calc(64px + 1rem); padding-bottom: 2rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .cs-header-content { margin-top: calc(50vh - 100px); }
  .cs-title { max-width: 100%; }
  .cs-stats { padding-top: 2rem; }
  .cs-hero-img { height: 340px; }
  .cs-stat-card:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04); }
  .cs-stat-card.is-active { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.08); }
  .cs-stat-cards { grid-template-columns: 1fr; }
  .cs-section { padding: 4rem 0; }
  .cs-section:not(.cs-section--alt) { padding-bottom: 2rem; }
  .cs-section--alt { padding-top: 2rem; padding-bottom: 2rem; }
  .cs-section--alt + .cs-section { padding-top: 2rem; }
  .other-case-card { width: 100%; flex: none; }
  .other-case-label { margin-bottom: calc(0.4rem + 8px); }
  .other-case-card-body { padding-bottom: 2rem; }
  .other-case-card-body .motion-btn { align-self: flex-start; }
  .cta-band-outer { padding: 3rem 1.5rem; }
  .cta-band { max-width: 100%; border-radius: 16px; padding: 3rem 2rem; }
  .cta-buttons { flex-direction: row-reverse; }
  .cta-buttons .btn-slide, .cta-buttons .btn-outline-light { width: 100%; justify-content: center; }
  .cta-band .eyebrow { font-size: 0.72rem; }
  .cta-band p { margin-bottom: 2.5rem !important; }
  .cs-proof-mini-stats { grid-template-columns: 1fr; }
}
