/* Customer case studies (/quad-fitness, /plancover, /shri-educare, /bluewaters, /holisticinvestment,
   /pressmach, /spacewood, /ziffitysolutions, /barry, /spastics, /producerbazaar).
   One shared template; measurements from the Framer desktop layout at 1440px.
   Per-page values (accent colour, logo / hero / product-icon sizes) are set as custom
   properties on <main class="cs cs--<slug>"> at the bottom of this file. */

.cs { --accent: #000; background: var(--white); color: #000; }

/* ---------- Client logo ---------- */
.cs-logo { padding: 140px 20px 50px; display: flex; justify-content: center; }
.cs-logo img { width: var(--logo-w, 312px); aspect-ratio: var(--logo-ar, 312 / 83); }

/* ---------- Title, intro and hero visual ---------- */
.cs-intro { padding: 50px 75px; display: flex; flex-direction: column; align-items: center; gap: 52px; }
.cs-intro-head { width: 100%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; gap: 47px; text-align: center; }
.cs-title { font-family: var(--font-gilroy); font-weight: 600; font-size: 42px; line-height: 50.4px; letter-spacing: 0; color: #000; }
.cs-title--bold { font-weight: 700; }
.cs-title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); }
.cs-title .cs-accent { color: var(--accent); }
.cs-lede { font-family: var(--font-gilroy); font-weight: 500; font-size: 24px; line-height: 33px; letter-spacing: .06px; color: #000; }
.cs-lede--muted { color: #5a5a5a; }
.cs-lede strong { font-weight: 700; }
.cs-lede b { font-weight: 600; }
.cs-hero { width: 100%; max-width: 1200px; display: flex; justify-content: center; }
.cs-hero img { width: var(--hero-w, 1200px); max-width: 100%; aspect-ratio: var(--hero-ar, 1200 / 656); border-radius: var(--hero-r, 24px); }

/* ---------- Story body + facts card ---------- */
.cs-body { padding: 100px 75px; }
.cs-grid { max-width: 1200px; margin-inline: auto; display: flex; align-items: flex-start; gap: 60px; }
.cs-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 42px; }

/* A block = heading + one or more rich-text groups (gap between them varies per page on Framer) */
.cs-block { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cs-block--16 { gap: 16px; }
.cs-block--24 { gap: 24px; }
.cs-block--42 { gap: 42px; }
.cs-block h2 { font-family: var(--font-gilroy); font-weight: 700; font-size: 32px; line-height: 48px; letter-spacing: 0; color: #000; }
.cs-block h2.cs-h2--tight { line-height: 35px; letter-spacing: .06px; }
.cs-stack { width: 100%; display: flex; flex-direction: column; gap: 24px; }

/* Rich text: Gilroy Regular 20/33 like the Framer text frames */
.cs-rich { width: 100%; font-family: var(--font-gilroy); font-weight: 400; font-size: 20px; line-height: 33px; letter-spacing: .06px; color: #000; }
.cs-rich--soft { color: #333; }
.cs-rich--medium { font-weight: 500; }
.cs-rich strong { font-weight: 600; }
.cs-rich b { font-weight: 600; }
.cs-rich .cs-leadin { font-weight: 700; font-size: 24px; }
.cs-rich .cs-li-title { display: block; font-weight: 500; }
.cs-rich h3, .cs-rich h4 { font-family: var(--font-gilroy); font-weight: 600; font-size: 24px; line-height: 33px; letter-spacing: .06px; }
.cs-rich .cs-h3--sm { font-size: 20px; font-weight: 700; }
.cs-rich .cs-h3--soft { font-size: 20px; font-weight: 600; color: #333; }
.cs-rich .cs-h3--tall { line-height: 45px; }
.cs-rich .sp { margin-top: 33px; }          /* one blank Framer line */
.cs-rich .cs-indent { padding-left: 4.4em; }
.cs-rich ul { margin: 0; padding: 0; list-style: none; }
.cs-rich li { position: relative; padding-left: 2ch; }
.cs-rich li::before { content: "\2022"; position: absolute; left: 0; }
.cs-rich li > ul { margin-top: 0; }
.cs-rich ul.cs-list--spaced > li + li { margin-top: 33px; }
.cs-rich ul.cs-list--lg { font-size: 22px; }

/* Facts card (products / industry / location) */
.cs-card { flex: 0 0 350px; max-width: 350px; height: 537px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 73px; margin: 0; padding: 0 22px; background: #fff; border: 1px solid #bfbfbf; border-radius: 16px; box-shadow: 0 2px 0 2px #bfbfbf; text-align: center; }
.cs-fact { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cs-fact--products { gap: 24px; }
.cs-fact dt { font-family: var(--font-gilroy); font-weight: 400; font-size: 18px; line-height: 19.8px; color: #5a5a5a; }
.cs-fact dd { margin: 0; font-family: var(--font-gilroy); font-weight: 600; font-size: 22px; line-height: 28.6px; color: #000; max-width: 304px; }
.cs-fact dd.cs-fact-place { line-height: 24.2px; white-space: nowrap; }
.cs-products { display: flex; justify-content: center; gap: 10px; }
.cs-products img { width: var(--prod-w, 78px); aspect-ratio: var(--prod-ar, 1); }

/* ---------- Closing CTA ---------- */
.cs-cta { background: #fafafa; padding: 150px 75px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-cta--compact { padding-block: 100px; }
.cs-cta h2 { max-width: 800px; font-family: var(--font-gilroy); font-weight: 700; font-size: 42px; line-height: 50.4px; letter-spacing: 0; color: #000; }
.cs-cta p { margin-top: 25px; max-width: 800px; font-family: var(--font-gilroy); font-weight: 500; font-size: 20px; line-height: 24px; color: #3b3b3b; }
.cs-cta .btn { margin-top: 32px; min-height: 56px; padding: 16px; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.16px; }

/* ---------- Tablet + phone (Framer 810–1199, measured at 900) ---------- */
@media (max-width: 1199px) {
  .cs-logo { padding: 100px 20px 50px; }
  .cs-logo img { width: var(--logo-w-t, var(--logo-w, 312px)); max-width: 100%; }
  .cs-intro { padding: 50px; gap: 51px; }
  .cs-intro-head { gap: 20px; }
  .cs-title { font-size: 32px; line-height: 38.4px; }
  .cs-lede { font-size: 20px; line-height: 33px; }
  .cs-hero img { width: var(--hero-w-t, 100%); }
  .cs-body { padding: 50px 25px; }
  .cs-grid { flex-direction: column; align-items: center; gap: 90px; padding-inline: 50px; }
  .cs-content { order: 1; width: 100%; flex: none; }
  .cs-card { order: 0; flex: none; width: 350px; max-width: 100%; gap: var(--card-gap, 73px); }
  .cs-rich .cs-leadin { font-weight: 600; }
  .cs-rich li { padding-left: 1.26em; }
}

/* ---------- Phone (Framer <810, measured at 390) ---------- */
@media (max-width: 809px) {
  .cs-logo { padding: 101px 20px var(--logo-pb-p, 44px); }
  .cs-logo img { width: var(--logo-w-p, var(--logo-w, 312px)); }
  /* Framer's intro column is a fixed 400px (wider than a 390 phone); ours fills the screen instead */
  .cs-intro { padding: 50px 0; gap: 44px; }
  .cs-title { font-size: 26px; line-height: 31.2px; }
  .cs-lede { font-size: 15px; line-height: 25px; }
  .cs-hero img { width: 100%; border-radius: var(--hero-r-p, var(--hero-r, 24px)); }
  .cs-body { padding: 40px 20px; }
  .cs-grid { gap: 60px; padding-inline: 0; }
  .cs-card { width: 100%; height: auto; min-height: 552px; padding: 24px 22px; }
  .cs-fact dd.cs-fact-place { white-space: normal; }
  .cs-rich { font-size: 18px; line-height: 30px; }
  .cs-rich .sp { margin-top: 30px; }
  .cs-rich ul.cs-list--spaced > li + li { margin-top: 30px; }
  .cs-cta { padding: 100px 20px 150px; }
  .cs-cta--compact { padding-bottom: 100px; }
  .cs-cta h2 { font-size: 28px; line-height: 33.6px; }
}

/* ---------- Per-page values ---------- */
.cs--quad-fitness        { --accent: rgb(240, 65, 35);  --logo-w: 312px; --logo-ar: 312 / 83;  --hero-ar: 1200 / 656; --prod-w: 223px; --prod-ar: 223 / 136; }
.cs--quad-fitness .cs-rich h3 { line-height: 35px; }
.cs--plancover           { --accent: rgb(255, 115, 0);  --logo-w: 332px; --logo-ar: 332 / 84;  --hero-w: 959px; --hero-ar: 959 / 678; --hero-r: 0; --prod-w: 224px; --prod-ar: 224 / 84; }
.cs--shri-educare        { --accent: rgb(8, 92, 168);   --logo-w: 297px; --logo-ar: 297 / 90;  --hero-ar: 1200 / 801; --prod-w: 222px; --prod-ar: 222 / 84; }
.cs--bluewaters          { --accent: rgb(22, 86, 162);  --logo-w: 317px; --logo-ar: 317 / 141; --hero-ar: 1200 / 799; }
.cs--holisticinvestment  { --accent: rgb(140, 34, 32);  --logo-w: 328px; --logo-ar: 328 / 156; --hero-ar: 1200 / 800; }
.cs--pressmach           { --accent: rgb(64, 173, 72);  --logo-w: 329px; --logo-ar: 329 / 147; --hero-ar: 1200 / 707; }
.cs--spacewood           { --accent: rgb(201, 148, 0);  --logo-w: 407px; --logo-ar: 407 / 70;  --hero-ar: 1200 / 675; --prod-w: 193px; --prod-ar: 193 / 87; }
.cs--ziffitysolutions    { --accent: rgb(117, 117, 117); --logo-w: 397px; --logo-ar: 397 / 140; --hero-ar: 1200 / 802; }
.cs--barry               { --accent: rgb(54, 227, 224); --logo-w: 532px; --logo-ar: 532 / 115; --hero-ar: 1200 / 667; --prod-w: 234px; --prod-ar: 234 / 142; }
.cs--spastics            { --accent: rgb(0, 108, 178);  --logo-w: 200px; --logo-ar: 1;         --hero-w: 1050px; --hero-ar: 1050 / 600; }
.cs--producerbazaar      { --accent: rgb(199, 69, 44);  --logo-w: 174px; --logo-ar: 1;         --hero-ar: 1200 / 750; --hero-r: 39px; }

/* ---------- Per-page tablet + phone values (Framer differs page by page) ---------- */
@media (max-width: 1199px) {
  .cs--barry              { --logo-w-t: 466px; --card-gap: 60px; }
  .cs--bluewaters         { --logo-w-t: 282px; }
  .cs--holisticinvestment { --logo-w-t: 261px; }
  .cs--plancover          { --hero-w-t: 699px; }
  .cs--pressmach          { --logo-w-t: 286px; }
  .cs--producerbazaar     { --card-gap: 60px; --hero-r: 30px; }
  .cs--quad-fitness       { --logo-w-t: 202px; }
  .cs--spacewood          { --logo-w-t: 338px; }
  .cs--spastics           { --card-gap: 60px; }
  .cs--bluewaters .cs-title, .cs--holisticinvestment .cs-title, .cs--pressmach .cs-title,
  .cs--producerbazaar .cs-title, .cs--shri-educare .cs-title, .cs--spastics .cs-title { font-size: 42px; line-height: 50.4px; }
  .cs--barry .cs-lede, .cs--pressmach .cs-lede, .cs--producerbazaar .cs-lede, .cs--spastics .cs-lede { font-size: 24px; line-height: 33px; }
  .cs--plancover .cs-lede { line-height: 30px; }
}
@media (max-width: 809px) {
  .cs--barry              { --logo-w-p: 272px; }
  .cs--bluewaters         { --logo-w-p: 216px; --logo-pb-p: 38px; }
  .cs--holisticinvestment { --logo-w-p: 192px; --logo-pb-p: 38px; }
  .cs--plancover          { --logo-w-p: 242px; --logo-pb-p: 34px; }
  .cs--pressmach          { --logo-w-p: 269px; --logo-pb-p: 38px; }
  .cs--producerbazaar     { --hero-r-p: 17px; }
  .cs--quad-fitness       { --logo-w-p: 180px; --logo-pb-p: 13px; }
  .cs--shri-educare       { --logo-w-p: 225px; --logo-pb-p: 38px; }
  .cs--spacewood          { --logo-w-p: 280px; }
  .cs--bluewaters .cs-title, .cs--holisticinvestment .cs-title, .cs--shri-educare .cs-title { font-size: 26px; line-height: 31.2px; }
  .cs--pressmach .cs-title, .cs--producerbazaar .cs-title, .cs--spastics .cs-title { font-size: 42px; line-height: 50.4px; }
  .cs--barry .cs-lede, .cs--spastics .cs-lede, .cs--ziffitysolutions .cs-lede { font-size: 18px; line-height: 33px; }
  .cs--bluewaters .cs-lede, .cs--producerbazaar .cs-lede { font-size: 18px; line-height: 25px; }
  .cs--pressmach .cs-lede, .cs--plancover .cs-lede { font-size: 15px; line-height: 25px; }
}

/* ---------- Per-page phone rich-text details (Framer's phone variants were tuned by hand per page) ---------- */
@media (max-width: 809px) {
  /* barry: a blank line between list items */
  .cs--barry .cs-rich li + li { margin-top: 30px; }

  /* bluewaters: smaller sub-headings, blank line after each */
  .cs--bluewaters .cs-rich h3 { font-size: 20px; line-height: 30px; }
  .cs--bluewaters .cs-rich h3 + p { margin-top: 30px; }

  /* holisticinvestment */
  .cs--holisticinvestment .cs-block--16 { gap: 23px; }
  .cs--holisticinvestment .cs-rich h3 { line-height: 30px; }
  .cs--holisticinvestment .cs-rich .cs-h3--soft { line-height: 30px; }
  .cs--holisticinvestment .cs-block:nth-child(2) .cs-rich:nth-of-type(n+4):nth-of-type(-n+6) ul,
  .cs--holisticinvestment .cs-block:nth-child(2) .cs-rich:nth-of-type(7) p,
  .cs--holisticinvestment .cs-block:nth-child(3) ul,
  .cs--holisticinvestment .cs-block:nth-child(4) li:first-child { line-height: 33px; }
  .cs--holisticinvestment .cs-block:nth-child(2) .cs-rich:nth-of-type(n+4):nth-of-type(-n+6) ul > li + li,
  .cs--holisticinvestment .cs-block:nth-child(3) ul > li + li,
  .cs--holisticinvestment .cs-block:nth-child(4) li:nth-child(2) { margin-top: 33px; }
  .cs--holisticinvestment .cs-block:nth-child(2) .cs-rich:nth-of-type(6) ul { font-size: 20px; }
  .cs--holisticinvestment .cs-block:nth-child(2) .cs-rich:nth-of-type(7) ul.sp { margin-top: 33px; }
  .cs--holisticinvestment .cs-block:nth-child(3) h2 { font-size: 24px; }

  /* pressmach: most text on a 33px line */
  .cs--pressmach .cs-rich { line-height: 33px; }
  .cs--pressmach .cs-rich .sp,
  .cs--pressmach .cs-rich ul.cs-list--spaced > li + li { margin-top: 33px; }
  .cs--pressmach .cs-rich .cs-h3--soft { line-height: 30px; }
  .cs--pressmach .cs-block:nth-last-child(2) li + li { line-height: 30px; margin-top: 30px; }

  /* producerbazaar: a blank line between every paragraph and list item */
  .cs--producerbazaar .cs-rich .cs-h3--sm { line-height: 30px; }
  .cs--producerbazaar .cs-rich > ul > li + li,
  .cs--producerbazaar .cs-rich > p + ul,
  .cs--producerbazaar .cs-rich > ul + p,
  .cs--producerbazaar .cs-rich li > ul { margin-top: 30px; }
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(2) ul,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(5) ul,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(7) ul,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(3) li > ul,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(4) li > p:first-of-type,
  .cs--producerbazaar .cs-block:nth-child(3) li:first-child { line-height: 33px; }
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(2) ul > li + li,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(5) ul > li + li,
  .cs--producerbazaar .cs-block:nth-child(2) .cs-rich:nth-of-type(7) ul > li + li,
  .cs--producerbazaar .cs-block:nth-child(3) li:nth-child(2) { margin-top: 33px; }

  /* quad-fitness */
  .cs--quad-fitness .cs-rich > p:only-child { line-height: 33px; letter-spacing: 0; }
  .cs--quad-fitness .cs-rich ul.cs-list--lg { font-size: 18px; }
  .cs--quad-fitness .cs-cta p { font-size: 18px; line-height: 21.6px; }

  /* spastics: 33px lines throughout */
  .cs--spastics .cs-rich { line-height: 33px; }
  .cs--spastics .cs-rich .sp { margin-top: 33px; }
  .cs--spastics .cs-block:nth-child(5) .cs-rich { font-size: 20px; line-height: 30px; }

  /* ziffitysolutions */
  .cs--ziffitysolutions .cs-rich .sp { margin-top: 33px; }
  .cs--ziffitysolutions .cs-block:nth-child(1) .cs-rich { font-size: 20px; }
  .cs--ziffitysolutions .cs-block:nth-child(1) .cs-rich p + p { line-height: 33px; }
  .cs--ziffitysolutions .cs-block:nth-child(2) .cs-rich h3 { font-size: 20px; }
  .cs--ziffitysolutions .cs-block:nth-child(2) .cs-rich ul { line-height: 33px; }
  .cs--ziffitysolutions .cs-block:nth-child(2) .cs-rich ul > li + li { margin-top: 44px; }
  .cs--ziffitysolutions .cs-rich .cs-li-title { font-size: 20px; margin-bottom: 3px; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:first-of-type p { font-size: 20px; line-height: 33px; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(3) ul,
  .cs--ziffitysolutions .cs-rich .cs-indent,
  .cs--ziffitysolutions .cs-block:nth-child(5) li:first-child { line-height: 33px; }
  .cs--ziffitysolutions .cs-rich .cs-indent { padding-left: 0; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(3) .cs-indent:last-child,
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(5) .cs-indent:nth-last-child(2) { padding-bottom: 33px; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(5) .cs-indent:last-child { line-height: 30px; padding-bottom: 30px; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(4) li + li { margin-top: 30px; }
  .cs--ziffitysolutions .cs-block:nth-child(4) .cs-rich:nth-of-type(5) p.sp { margin-top: 30px; }
}
