/* ============================================================
   CYAC — Child & Youth Advocacy Centres (sub-page of Non-Profits).
   Loaded AFTER home-v2.css + about-us.css + industrial-services.css + non-profits.css.
   Reuses the shared .rd-* system (hero, pains, .rd-is-better/.rd-is-help,
   .rd-cases, .rd-is-work, .rd-cta) and adds bespoke CYAC sections.
   Text on any colored/dark bg is given an EXPLICIT light color (CLAUDE.md §6).
   ============================================================ */

/* ---- 1. Hero (reuses .rd-about-hero; photo is 478x318) ---- */
.rd-cyac-hero .rd-about-hero-inner { grid-template-columns: minmax(0, 496px) 478px; gap: 80px; align-items: start; }  /* copy column flexes so the photo is never clipped at 981-1140px widths */
.rd-cyac-hero h1 {
  font: 600 38px/1.16 var(--v2-font);
  letter-spacing: 2.4px;
  max-width: 505px;
  margin: 0 0 28px;
}
.rd-cyac-hero h1 span { color: var(--v2-purple); }
.rd-cyac-hero .rd-about-hero-copy p { max-width: 500px; }
.rd-cyac-hero .rd-about-hero-media { align-self: start; margin-top: 50px; }
.rd-cyac-hero .rd-about-hero-media img { aspect-ratio: 478 / 318; }
/* square: bounded offset behind the photo (height trimmed 379->308 so its bottom
   matches the Figma ~y450 instead of overshooting ~70px lower). dots: recoloured to
   a LIGHTER lavender (#c8bcd8, matching regulatory-colleges) and moved to the lower-
   right so the grid is actually VISIBLE on/below the square (was #9F84B7 = same as the
   square, so it vanished). Matches the standardized reg-colleges / non-profits hero. */
.rd-cyac-hero .rd-about-hero-square { top: -92px; left: 82px; width: 640px; height: 308px; background: #9F84B7; }
.rd-cyac-hero .rd-about-hero-dots {
  top: 147px; left: 544px; width: 160px; height: 140px;
  background-image: radial-gradient(#c8bcd8 2px, transparent 2.6px); background-size: 16px 16px;
}
.rd-cyac-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.rd-page .rd-cyac-hero-btns .rd-btn { border-color: var(--v2-purple); color: var(--v2-purple); background: transparent; }
.rd-page .rd-cyac-hero-btns .rd-btn:hover { background: var(--v2-purple-10); }

/* ---- 2. Why CYACs Are Different (intro band, white bg; 120px breakout) ---- */
.rd-cyac-intro { padding: 86px 0 82px; }
.rd-cyac-intro .rd-container { max-width: 1248px; }
.rd-cyac-intro-label {
  display: block; font: 600 20px/1 var(--v2-font); letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--v2-purple-70); margin-bottom: 20px;
}
.rd-cyac-intro-h {
  font: 600 30px/1.3 var(--v2-font); letter-spacing: 1px; text-transform: uppercase;  /* R2: cut letter-spacing 4.3->1px so heading fits one line like the mock */
  color: var(--v2-text); margin: 0 0 26px;
}
.rd-cyac-intro-h span { color: var(--v2-purple); }
.rd-cyac-intro p { font: 400 16px/1.6 var(--v2-font); color: var(--v2-grey); margin: 0 0 16px; }  /* R2: body 24->16px to match mock (client: bring font size down) */
.rd-cyac-intro p:last-child { margin-bottom: 0; }

/* ---- 4. Better Coordination Creates Better Outcomes (reuses .rd-is-better) ---- */
/* nothing to override — inherits the light-purple band, dots, 3 white icon cards */

/* ---- 6. Purpose-Built CYAC Platform (bespoke dark-purple feature block) ---- */
.rd-cyac-platform { background: #fff; padding: 84px 0 90px; }
.rd-cyac-plat-block {
  position: relative; max-width: 1200px; margin: 0 auto; min-height: 622px;
  display: flex; align-items: center;  /* vertically centre the copy within the block */
  background: #410986; border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(65, 9, 134, .22);
}
.rd-cyac-plat-copy { position: relative; z-index: 2; max-width: 415px; padding: 42px 0 42px 65px; }
.rd-cyac-plat-h { color: #fff; font: 600 28px/1.15 var(--v2-font); letter-spacing: 4.2px; text-transform: uppercase; margin: 0 0 12px; max-width: 305px; }
.rd-cyac-plat-sub { color: #fff; font: 700 18px/1.35 var(--v2-font); margin: 0 0 20px; max-width: 350px; }
.rd-cyac-plat-rule { display: block; width: 120px; height: 1px; background: rgba(255, 255, 255, .38); margin: 0 0 22px; }
.rd-cyac-plat-copy p { color: #E7D8FA; font: 400 16px/1.56 var(--v2-font); margin: 0 0 18px; max-width: 350px; }
.rd-cyac-plat-copy p:last-child { margin-bottom: 0; }
.rd-cyac-plat-media { position: absolute; z-index: 1; right: 0; top: 50%; transform: translateY(-50%); width: 672px; }
.rd-cyac-plat-media img { width: 100%; height: auto; display: block; }

/* Key Capabilities list */
.rd-cyac-caps { margin-top: 48px; }
.rd-cyac-caps-h {
  font: 700 22px/1.2 var(--v2-font); color: var(--v2-text); margin: 0 0 26px;
  border-left: 4px solid var(--v2-purple); padding-left: 15px;
}
.rd-cyac-caps-list { list-style: none; margin: 0; padding: 0; }
.rd-cyac-caps-list li {
  font: 400 16px/1.5 var(--v2-font); color: var(--v2-grey); margin-bottom: 18px;
  padding-left: 22px; position: relative;
}
.rd-cyac-caps-list li:last-child { margin-bottom: 0; }
.rd-cyac-caps-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-purple); }
.rd-cyac-caps-list li strong { color: var(--v2-text); font-weight: 700; }

/* Outcomes box */
.rd-cyac-out { margin-top: 40px; border: 1px solid #E6E6E6; border-radius: 10px; padding: 26px 34px 28px; box-shadow: 0 8px 22px rgba(72, 57, 92, .06); }
.rd-cyac-out-h { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 var(--v2-font); color: var(--v2-text); margin: 0 0 20px; }
.rd-cyac-out-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.rd-cyac-out-cols ul { list-style: none; margin: 0; padding: 0; }
.rd-cyac-out-cols li { font: 400 16px/1.5 var(--v2-font); color: var(--v2-grey); margin-bottom: 12px; padding-left: 28px; position: relative; }
.rd-cyac-out-cols li::before { content: "\2713"; position: absolute; left: 4px; top: 0; color: #00961E; font-weight: 700; }

/* ---- 7. Experience That Shapes Better Solutions (light-purple band) ---- */
.rd-cyac-exp { position: relative; background: #F6F1FC; padding: 84px 0 88px; overflow: hidden; }
.rd-cyac-exp .rd-container { max-width: 1248px; }
.rd-cyac-exp-dots {
  position: absolute; z-index: 0; left: 120px; top: 262px; width: 198px; height: 110px;  /* R2: move dots below the heading (were overlapping it) + align to heading left */
  background-image: radial-gradient(var(--v2-purple-50) 2px, transparent 2.6px); background-size: 22px 22px;
}
.rd-cyac-exp-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr; gap: 42px; align-items: start; }
.rd-cyac-exp-h { font: 600 30px/1.3 var(--v2-font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--v2-text); margin: 0; }  /* R2: tighter letter-spacing to match mock */
.rd-cyac-exp-h span { color: var(--v2-purple); }
.rd-cyac-exp-copy p { font: 400 16px/1.6 var(--v2-font); color: var(--v2-text); margin: 0 0 16px; max-width: 806px; }  /* R2: body 21->16px (client: decrease this content font size) */
.rd-cyac-exp-copy p:last-child { margin-bottom: 0; }

/* ---- 8. Featured Success Story (reuses .rd-cases; wider heading tracking) ---- */
.rd-cyac-cases .rd-h2 { letter-spacing: 1px; }

/* ---- 10. CTA (reuses .rd-cta + .rd-is-cta; longer heading -> smaller size) ---- */
.rd-cyac-cta h2 { font-size: 22px; line-height: 1.38; letter-spacing: 1px; }

/* ============ MOBILE (additive; desktop rendering untouched) ============ */
@media (max-width: 980px) {
  /* hero: stack copy over photo; reset deco */
  .rd-cyac-hero .rd-about-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rd-cyac-hero h1 { max-width: none; font-size: 31px; }
  .rd-cyac-hero .rd-about-hero-copy p { max-width: none; }
  .rd-cyac-hero .rd-about-hero-media { align-self: auto !important; margin-top: 0 !important; width: 100% !important; }
  .rd-cyac-hero .rd-about-hero-media img { width: 100% !important; height: auto; }
  .rd-cyac-hero .rd-about-hero-square, .rd-cyac-hero .rd-about-hero-dots { display: none !important; }

  .rd-cyac-intro-h { font-size: 27px; }

  /* platform block: title/text above, laptop below */
  .rd-cyac-plat-block { min-height: 0; flex-direction: column; }
  .rd-cyac-plat-copy { max-width: none; padding: 30px 24px 8px; }
  .rd-cyac-plat-media { position: static; width: 100%; padding: 8px 16px 24px; transform: none; }
  .rd-cyac-out-cols { grid-template-columns: 1fr; gap: 0; }

  /* experience: stack heading over copy */
  .rd-cyac-exp-inner { grid-template-columns: 1fr; gap: 26px; }
  .rd-cyac-exp-dots { display: none; }
}
@media (max-width: 640px) {
  .rd-cyac-hero h1 { font-size: 27px; }
  .rd-cyac-intro-h { font-size: 22px; letter-spacing: .2px; }
  .rd-cyac-intro p, .rd-cyac-exp-copy p { font-size: 17px; }
  .rd-cyac-plat-h { font-size: 25px; }
  .rd-cyac-exp-h { font-size: 27px; }
  .rd-cyac-cta h2 { font-size: 25px; }
}
