/* Case Study page template — reuses theme design tokens (colors, spacing, radius, font) */

.cs-page{width:100%;overflow:hidden;}
.cs-container{
  width:var(--clb-container-width-laptop, 86vw);
  max-width:1240px;
  margin:0 auto;
  padding:0 var(--clb-grid-gutter, 1rem);
  box-sizing:border-box;
}
.cs-section{padding:clamp(2.75rem, 5.5vw, 4.5rem) 0;}
.cs-eyebrow{
  color:var(--clb-color-button,#e5652f);
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:600;
  font-size:0.85rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-bottom:0.75rem;
}
.cs-h1{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:clamp(2.2rem, 4.2vw, 3.2rem);
  line-height:1.1;
  color:#24262B;
  margin:0 0 1rem;
}
.cs-h2{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:clamp(1.6rem, 2.6vw, 2.1rem);
  line-height:1.2;
  color:#24262B;
  margin:0 0 1rem;
}
.cs-p{font-size:1.03rem;line-height:1.75;color:#5b5d63;margin:0 0 1rem;}
.cs-p:last-child{margin-bottom:0;}

/* breadcrumb */
.cs-breadcrumb{
  padding:0;
  margin-bottom:1.5rem;
  font-size:0.85rem;
  color:#8a8c92;
}
.cs-breadcrumb a{color:#8a8c92;text-decoration:none;}
.cs-breadcrumb a:hover{color:var(--clb-color-button,#e5652f);}
.cs-breadcrumb .sep{margin:0 0.4rem;}
.cs-breadcrumb .current{color:#24262B;font-weight:600;}

/* ---------- HERO ---------- */
.cs-hero{
  padding:calc(var(--clb-header-height, 12vh) + 1.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:linear-gradient(135deg,#fff6ee 0%,#fdf1e4 45%,#fbeadb 100%);
}
.cs-hero-grid{
  display:grid;
  grid-template-columns:1.4fr 0.8fr;
  gap:clamp(2rem, 5vw, 3.5rem);
  align-items:start;
}
.cs-hero-stat{
  display:inline-flex;
  align-items:baseline;
  gap:0.5rem;
  background:#24262B;
  color:#fff;
  border-radius:999px;
  padding:0.6rem 1.2rem;
  margin-bottom:1.5rem;
}
.cs-hero-stat-num{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:1.1rem;
  color:var(--clb-color-button,#e5652f);
}
.cs-hero-stat-label{font-size:0.85rem;color:#e5e5e5;}

.cs-hero-cover{
  aspect-ratio:16/9;
  height:auto;
  border-radius:var(--clb-border-radius-large,16px);
  margin-top:1.75rem;
  position:relative;
  overflow:hidden;
}
.cs-hero-cover::before{
  content:"";
  position:absolute;
  inset:18px;
  border-radius:10px;
  background:rgba(255,255,255,0.18);
}
.cs-hero-cover.-a{background:linear-gradient(135deg,#e5652f,#8a3418);}
.cs-hero-cover.-b{background:linear-gradient(135deg,#24262B,#54575f);}
.cs-hero-cover.-c{background:linear-gradient(135deg,#f2a15e,#e5652f);}
.cs-hero-cover.-d{background:linear-gradient(135deg,#54575f,#24262B);}

/* meta sidebar card */
.cs-meta-card{
  background:#fff;
  border-radius:var(--clb-border-radius-large,16px);
  border:1px solid rgba(36,38,43,0.08);
  padding:1.75rem;
  box-shadow:0 20px 45px -25px rgba(36,38,43,0.35);
}
.cs-meta-row{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:0.85rem 0;
  border-bottom:1px solid rgba(36,38,43,0.08);
}
.cs-meta-row:last-child{border-bottom:none;padding-bottom:0;}
.cs-meta-row:first-child{padding-top:0;}
.cs-meta-label{font-size:0.82rem;color:#8a8c92;}
.cs-meta-value{font-size:0.92rem;font-weight:600;color:#24262B;text-align:right;}

/* ---------- CHALLENGE / SOLUTION ---------- */
.cs-two-col{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:clamp(2rem, 5vw, 4rem);
}
.cs-highlight-list{
  list-style:none;
  margin:1.25rem 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.cs-highlight-list li{
  display:flex;
  align-items:flex-start;
  gap:0.65rem;
  font-size:0.98rem;
  color:#3d3f45;
  line-height:1.5;
}
.cs-highlight-list svg{
  flex-shrink:0;
  color:var(--clb-color-button,#e5652f);
  margin-top:0.15rem;
}

/* ---------- RESULTS ---------- */
.cs-results{background:#faf8f5;}
.cs-results-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1.5rem;
}
.cs-result-card{
  background:#fff;
  border-radius:var(--clb-border-radius-large,16px);
  border:1px solid rgba(36,38,43,0.06);
  padding:1.75rem 1.4rem;
  text-align:center;
}
.cs-result-num{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:2rem;
  color:var(--clb-color-button,#e5652f);
  line-height:1;
  margin-bottom:0.5rem;
}
.cs-result-label{font-size:0.9rem;color:#6b6d73;}

/* ---------- TECH STACK ---------- */
.cs-tech-row{display:flex;flex-wrap:wrap;gap:0.6rem;}
.cs-tech-pill{
  display:inline-flex;
  align-items:center;
  background:#f4f1ec;
  color:#24262B;
  font-weight:600;
  font-size:0.9rem;
  padding:0.6rem 1.1rem;
  border-radius:999px;
}

/* ---------- TESTIMONIAL ---------- */
.cs-testimonial-card{
  max-width:760px;
  margin:0 auto;
  background:#faf8f5;
  border-radius:var(--clb-border-radius-large,16px);
  padding:2.25rem;
  border:1px solid rgba(36,38,43,0.06);
  text-align:center;
}
.cs-testimonial-card .testimonial p{
  font-size:1.1rem;
  line-height:1.7;
  color:#3d3f45;
}
.cs-avatar-initials{
  display:flex !important;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:1.1rem;
  letter-spacing:0.02em;
  background-size:auto !important;
}

/* ---------- NEXT PROJECT ---------- */
.cs-next{
  background:#24262B;
  border-radius:var(--clb-border-radius-large,16px);
  padding:clamp(2rem, 4vw, 3rem);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  flex-wrap:wrap;
}
.cs-next-label{
  color:#9a9ca3;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.06em;
  margin-bottom:0.4rem;
}
.cs-next-title{
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:700;
  font-size:1.5rem;
  color:#fff;
  margin:0;
}
.cs-next-link{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.cs-next-link svg{transition:transform .2s ease;}
.cs-next-link:hover svg{transform:translateX(3px);}

.cs-cta-outer{padding:0 var(--clb-grid-gutter,1rem) clamp(3rem, 6vw, 5rem);}
.cs-cta{
  background:#fdece2;
  border-radius:var(--clb-border-radius-large,16px);
  padding:clamp(2.25rem, 4.5vw, 3.5rem);
  text-align:center;
}
.cs-cta .cs-h2{color:#24262B;}
.cs-cta .cs-p{max-width:520px;margin:0 auto 1.75rem;}

.cs-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--clb-color-button,#e5652f);
  color:#fff !important;
  font-family:'Bricolage Grotesque', sans-serif;
  font-weight:600;
  font-size:0.95rem;
  padding:0.95rem 1.8rem;
  border-radius:999px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:opacity .2s ease;
}
.cs-btn:hover{opacity:0.88;}
.cs-btn:hover,.cs-btn:focus,.cs-btn:active,.cs-btn:visited{
  color:#fff !important;
  background:var(--clb-color-button,#e5652f) !important;
}

@media (max-width: 980px){
  .cs-hero-grid{grid-template-columns:1fr;}
  .cs-two-col{grid-template-columns:1fr;}
  .cs-results-grid{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width: 600px){
  .cs-results-grid{grid-template-columns:1fr;}
  .cs-next{flex-direction:column;align-items:flex-start;}
}

/* ============ DARK MODE ============ */
.dark-scheme .cs-page{background:#1c1e22;}
.dark-scheme .cs-h1,
.dark-scheme .cs-h2,
.dark-scheme .cs-meta-value,
.dark-scheme .cs-tech-pill{color:#f3f4f6;}
.dark-scheme .cs-p,
.dark-scheme .cs-result-label{color:#a7a9b0;}
.dark-scheme .cs-breadcrumb,
.dark-scheme .cs-breadcrumb a,
.dark-scheme .cs-meta-label{color:#9a9ca3;}
.dark-scheme .cs-breadcrumb .current{color:#f3f4f6;}
.dark-scheme .cs-hero{
  background:linear-gradient(135deg,#22242a 0%,#1c1e22 45%,#18191d 100%);
}
.dark-scheme .cs-meta-card{
  background:#26282e;
  border-color:rgba(255,255,255,0.08);
  box-shadow:none;
}
.dark-scheme .cs-meta-row{border-bottom-color:rgba(255,255,255,0.08);}
.dark-scheme .cs-highlight-list li{color:#c7c9ce;}
.dark-scheme .cs-results{background:#202226;}
.dark-scheme .cs-result-card{
  background:#26282e;
  border-color:rgba(255,255,255,0.08);
}
.dark-scheme .cs-tech-pill{background:#2c2e34;}
.dark-scheme .cs-testimonial-card{
  background:#26282e;
  border-color:rgba(255,255,255,0.08);
}
.dark-scheme .cs-testimonial-card .testimonial p{color:#d5d6da;}
.dark-scheme .cs-cta{background:rgba(229,101,47,0.14);}
.dark-scheme .cs-cta .cs-h2{color:#f3f4f6;}
