/**
 * Case Study single template styles.
 *
 * Reuses the design tokens already defined in the child theme's style.css
 * (--blue, --blue-deep, --ink, --body-text, --muted, --muted-2, --card-bg,
 * --orange, --font-display). If this file is enqueued standalone (not on
 * a page that already loads style.css), uncomment the fallback block below.
 */

/*
:root{
  --blue:#2D93FF; --blue-deep:#1B76D6; --orange:#FA8B21;
  --ink:#0F172B; --body-text:#1A2333; --muted:#6B7280; --muted-2:#9AA3B2;
  --card-bg:#F1F4F9; --font-display:'Plus Jakarta Sans', sans-serif;
}
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
.case-study{ font-family:var(--font-display); color:var(--body-text); }

/* ============ HERO ============ */
.case-hero{ padding:64px 24px 0; }
.case-hero-inner{ max-width:900px; margin:0 auto; text-align:center; }

.case-hero-title{
  font-size:clamp(28px,4vw,48px) !important; font-weight:600 !important; line-height:1.4 !important;
  letter-spacing:-0.01em; color:var(--ink); margin:0 0 22px;
}
.case-hero-subtitle{
  font-size:18px !important; line-height:1.65; color:var(--muted);
  max-width:660px; margin:0 auto 28px;
}

.case-hero-actions{
  display:flex; align-items:center; justify-content:center; gap:28px;
  margin-bottom:40px;
}
.case-action-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:16px !important; font-weight:600; color:var(--blue) !important;
  background:none; border:none; cursor:pointer; padding:0;
  text-decoration:underline; text-underline-offset:3px;
  background: none !important;
}
.case-action-link svg{ width:15px; height:15px; }
.case-action-link:hover{ color:var(--blue-deep); }

.case-hero-image-wrap{ position:relative; max-width:1100px; margin:0 auto; text-align:left; }
.case-hero-image{
  width:100%; height:auto; display:block; border-radius:20px;
  aspect-ratio:16/9.4; object-fit:cover;
}

.case-stat-card{
  position:absolute; left:-150px; bottom:50px;
  background:rgba(255, 255, 255, 0.72); border-radius:18px;
  padding:30px; width:320px; max-width:calc(100% - 48px);
  box-shadow:0 2px 10px 4px rgba(15, 23, 43, 0.09);
  backdrop-filter: blur(28px);
}
.case-stat{ margin-bottom:25px; }
.case-stat:last-child{ margin-bottom:0; }
.case-stat-value{
  display:block; font-size:2rem !important; font-weight:800; color:var(--blue);
  line-height:1.2; margin-bottom:4px;
  margin-top: 0 !important;
}
.case-stat-label{ display:block; font-size:16px !important; color:var(--body-text); font-weight: 400 !important;}

@media (max-width:640px){
  .case-hero{ padding:48px 16px 0; }
  .case-stat-card{ position:static; margin-top:16px; width:100%; }
  .case-hero-actions{ gap:20px; }
}

/* ============ STAT / HEADLINE CAROUSEL ============ */
.case-carousel{
  background:#F3F7FC; margin-top:96px; padding:90px 24px;
  position:relative; overflow:hidden;
}
.case-carousel-track{ max-width:1100px; margin:0 auto; position:relative; min-height:1.4em; }
.case-carousel-slide{
  display:none; opacity:0; transition:opacity .3s ease;
}
.case-carousel-slide.is-active{ display:block; opacity:1; }
.case-carousel-slide h2{
   font-weight:700; line-height:1.5;
  color:var(--ink); margin:0; 
   text-align: center;
}

.case-carousel-controls{
  position:absolute; right:24px; bottom:24px;
  display:flex; align-items:center; gap:10px;
}
.case-carousel-btn{
  width:36px; height:36px; border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:#E4E9F0; color:var(--ink);
  transition:background .18s ease, transform .18s ease;
}
.case-carousel-btn:hover{ transform:translateY(-1px); }
.case-carousel-btn.is-primary{ background:var(--blue); }
.case-carousel-btn.is-primary:hover{ background:var(--blue-deep); }
.case-carousel-btn svg{ width:15px; height:15px; }

@media (max-width:640px){
  .case-carousel{ padding:40px 16px 72px; margin-top:64px; }
  .case-carousel-controls{ right:16px; bottom:16px; }
}

/* ============ STICKY SCROLLSPY TABS ============ */
.case-tabs{
  position:inherit; top:var(--header-h, 78px); z-index:40;
  display:flex; align-items:center; gap:15px;
  max-width:1100px; margin:50px auto 0; padding:10px 15px;
  background:#FFFAF7; border-radius:1rem;
  justify-content: space-evenly;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.06) !important;
}
.case-tab{
  flex:0 0 auto; padding:12px 20px; border-radius:10px;
  font-size:14.5px; font-weight:600; color:var(--ink);
  transition:background .18s ease, color .18s ease;
  flex: 1;
  text-align: center;
}
.case-tab:hover{ color:#fff !important; background:var(--blue); }
.case-tab.is-active{ background:var(--blue); color:#fff !important; }
.is-open {background: #F8FAFC !important;}
@media (max-width:820px){
  .case-tabs{ overflow-x:auto; gap:6px; margin:28px 16px 0; padding:14px; -webkit-overflow-scrolling:touch; }
  .case-tab{ white-space:nowrap; padding:10px 16px; }
}

/* ============ CONTENT SECTIONS ============ */
.case-content{ max-width:900px; margin:0 auto; padding:56px 24px 100px; }
.case-section{ padding-top:24px; scroll-margin-top:calc(var(--header-h, 78px) + 90px); }
.case-section + .case-section{ margin-top:56px; }

.case-eyebrow{
  font-size:14px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--orange); margin:0 0 5px;
}
.case-eyebrow--orange{ color:var(--orange); }

.case-heading{
  font-size:clamp(24px,3.2vw,34px); font-weight:800; line-height:1.25;
  color:var(--ink); margin:0 0 24px;
}
.case-heading-accent{ color:var(--blue); }
.case-heading--solid{ color:var(--blue); }

.case-body p{ font-size:1.1rem; line-height:1.75; color:#0F172B; margin:0 0 18px; }
.case-body strong{ color:var(--ink); }

.case-bullets{ margin:0 0 4px; padding-left:20px; list-style-type: unset;color: #0F172B !important;}
.case-bullets li{  line-height:1.7; color:#0F172B; margin-bottom:10px; }

.case-subheading{
  font-size:21px !important; font-weight:700; color:var(--ink);
  margin:28px 0 10px;
}
.case-subheading:first-of-type{ margin-top:8px; }

/* ---- Outcome stat rows ---- */
.case-outcome-list{ display:flex; flex-direction:column; gap:50px; margin-top:8px; }
.case-outcome-row{
  display:grid; grid-template-columns:200px 1fr; gap:28px; align-items:start;
}
.case-outcome-figure{ display:flex; flex-direction:column; }
.case-outcome-value{ font-size:3rem !important; font-weight:800; color:var(--blue); line-height:1.1; margin-top: 10px !important;margin-bottom: 5px;}
.case-outcome-label{ font-size:16px; color:#0F172B; margin-top:6px; }
.case-outcome-desc{  line-height:1.75;  margin:0; color: #0F172B;}

@media (max-width:640px){
  .case-outcome-row{ grid-template-columns:1fr; gap:10px; }
}

/* ============ FAQ ACCORDION ============ */
.case-faq{ max-width:900px; margin:0 auto; padding:56px 24px 100px; }
.case-faq-heading{ text-align:center; margin-bottom:40px; }
.case-faq-heading .case-eyebrow{ margin-left:auto; margin-right:auto; }
.case-faq-intro{
  font-size:15.5px; line-height:1.7; color:var(--body-text);
  max-width:560px; margin:12px auto 0;
}

.case-faq-list{ display:flex; flex-direction:column; gap:12px; }
.case-faq-item{
   border-radius:14px;
  background:#fff; overflow:hidden;
   font-family: ;
}

.case-faq-question[data-case-faq-toggle]{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:30px; text-align:left;
  background:none; border:none; cursor:pointer;
  font-family:DM Sans; font-size:24px; font-weight:600; color:var(--ink) !important;
  background: none !important;
  padding-bottom: 15px !important;
}
.case-faq-question .chev{
  width:18px; height:18px; flex:0 0 auto; color:var(--body-text);
  transition:transform .25s ease, color .18s ease;
}
.case-faq-item.is-open .case-faq-question .chev{ transform:rotate(180deg); color:var(--blue); }

.case-faq-answer{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.case-faq-item.is-open .case-faq-answer{ max-height:480px; }
.case-faq-answer p{
  margin:0; padding:30px;
  font-size:16px; line-height:1.7; color:var(--body-text);
  padding-top: 15px;
}

@media (max-width:640px){
  .case-faq{ padding:40px 16px 72px; }
  .case-faq-question[data-case-faq-toggle]{ padding:16px; font-size:15px; }
}
