/* CHOICE Home (Gutenberg rebuild) v3 - scoped styles.
   Add to: Appearance > Customize > Additional CSS (replace the previous version entirely).
   All rules are scoped under .chc / .chc-header / .chc-footer so they never
   touch the rest of the site. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Montserrat:wght@400;500;600;700&display=swap");

.chc, .chc-header, .chc-footer {
  --chc-bg: #FFF5F3;
  --chc-surface: #FFFFFF;
  --chc-soft: #FDE7E9;
  --chc-ink: #2A2828;
  --chc-muted: #5E5555;
  --chc-accent: #9C1450;
  --chc-accent-2: #C2185B;
  --chc-accent-hover: #6E0E38;
  --chc-line: #F0D3D8;
  --chc-band: #2A2828;
  --chc-band-soft: #3A3535;
  --chc-on-band: #FFFFFF;
  --chc-display: "Fraunces", Georgia, serif;
  --chc-body: "Montserrat", system-ui, sans-serif;
  background: var(--chc-bg);
  color: var(--chc-ink);
  font-family: var(--chc-body);
}
.chc h2, .chc h3 { font-family: var(--chc-display); font-weight: 600; letter-spacing: -.01em; }
.chc .chc-h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.03; margin-bottom: 20px; }
.chc .chc-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--chc-accent); margin-bottom: 12px; }
.chc .chc-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--chc-muted); max-width: 62ch; }
.chc .chc-small { font-size: 12.5px; color: var(--chc-muted); }
.chc a { color: var(--chc-accent); text-decoration-color: var(--chc-line); }
.chc a:hover { color: var(--chc-accent-hover); }

/* Buttons (with the prototype hover lift) */
.chc .wp-block-button__link {
  background: var(--chc-accent);
  color: #fff;
  font-family: var(--chc-body);
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 14px 26px;
  font-size: 15px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background-color .25s, color .25s;
}
.chc .wp-block-button__link:hover {
  background: var(--chc-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(156,20,80,.6);
}
.chc-hero .wp-block-buttons .wp-block-button:nth-of-type(2) .wp-block-button__link,
.chc-involve .wp-block-button__link {
  background: transparent;
  color: var(--chc-accent);
  border: 2px solid var(--chc-accent);
}
.chc-hero .wp-block-buttons .wp-block-button:nth-of-type(2) .wp-block-button__link:hover,
.chc-involve .wp-block-button__link:hover { background: var(--chc-soft); color: var(--chc-accent-hover); }

/* ==== Hero (text column + animated SVG art column) ==== */
.chc-hero { padding-block: clamp(48px, 7vw, 88px); padding-inline: 0; margin-block: 0; }
.chc-hero-cols { align-items: center; gap: 56px; }
.chc-hero-cols .wp-block-column { min-width: 0; }
.chc-hero-art { position: relative; width: min(440px, 100%); aspect-ratio: 1 / 1.05; margin-inline: auto; }
.chc-hero-art .blob {
  position: absolute; inset: 0;
  border-radius: 44% 56% 52% 48% / 46% 44% 56% 54%;
  background: linear-gradient(150deg, var(--chc-soft), #F4A9BE);
}
.chc-hero-art .ribbon-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chc-hero-art .rb path.p1, .chc-hero-art .rb path.p2 { stroke-dasharray: 1; animation: chc-draw 1.8s ease-out backwards; }
.chc-hero-art .rb path.p2 { animation-delay: .25s; }
.chc-hero-art .rb path.flow { stroke-dasharray: 2 16; animation: chc-flow 3.2s linear infinite; }
.chc-hero-art .orb { transform-box: view-box; transform-origin: 100px 105px; animation: chc-orbit linear infinite; }
@keyframes chc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chc-flow { to { stroke-dashoffset: -36; } }
@keyframes chc-orbit { to { transform: rotate(360deg); } }

/* Rotating fact card over the art (pure CSS, no JS) */
.chc-hero-art .chc-float {
  position: absolute; right: -4%; bottom: 4%; z-index: 2;
  width: 236px; max-width: 62%;
  min-height: 124px;
  background: var(--chc-surface);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 36px -22px rgba(156,20,80,.38);
  font-size: 12.5px; line-height: 1.45; color: var(--chc-muted);
}
.chc-hero-art .chc-float b {
  display: block; font-family: var(--chc-display); font-weight: 600;
  font-size: 34px; line-height: 1; color: var(--chc-accent); margin-bottom: 2px;
}
.chc-hero-art .chc-float p { position: absolute; top: 16px; left: 18px; right: 18px; margin: 0; opacity: 0; animation: chc-facts-cycle 36s infinite; }
@keyframes chc-facts-cycle { 0% { opacity: 0; } 1.5%, 15% { opacity: 1; } 16.7%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .chc-hero-art .rb path, .chc-hero-art .orb, .chc-hero-art .chc-float p { animation: none; }
  .chc-hero-art .chc-float p:first-child { opacity: 1; }
}

/* Fact chips under the hero */
.chc-facts { border-top: 1px solid var(--chc-line); margin-top: 36px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.chc-facts p { margin: 0; font-size: 13.5px; color: var(--chc-muted); flex: 1 1 260px; }
.chc-facts strong { font-family: var(--chc-display); font-size: 18px; color: var(--chc-accent); margin-right: 4px; }

/* ==== Full-bleed section bands (like the prototype) ==== */
.chc-numbers, .chc-why, .chc-toolkit, .chc-impact {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  margin-block: 0;
  padding-block: clamp(48px, 7vw, 88px);
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--chc-line);
}
.chc-numbers, .chc-impact { background: var(--chc-surface); }
.chc-why { background: var(--chc-soft); }
.chc-toolkit { border-top: 0; }
.chc-involve, .chc-news { padding-block: clamp(48px, 7vw, 88px); padding-inline: 0; margin-block: 0; }

/* KPI grid */
.chc-kpis { margin-top: 20px; gap: 24px; }
.chc-kpi {
  background: var(--chc-bg); border: 1px solid var(--chc-line); border-radius: 12px;
  padding: 16px; margin: 0; font-size: 13.5px; color: var(--chc-muted);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s;
}
.chc-kpi strong { display: block; font-family: var(--chc-display); font-size: 26px; color: var(--chc-ink); margin-bottom: 4px; transition: color .3s; }
.chc-kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(156,20,80,.38); border-color: var(--chc-accent-2); }
.chc-kpi:hover strong { color: var(--chc-accent-2); }

/* Risk bars (Why it matters) */
.chc-risk { margin: 16px 0 28px; }
.chc-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chc-bar-label { flex: 0 0 150px; font-size: 13.5px; font-weight: 600; }
.chc-bar-track { flex: 1; background: var(--chc-surface); border-radius: 999px; overflow: hidden; }
.chc-bar { height: 14px; border-radius: 999px; background: var(--chc-accent); }
.chc-bar-pop { background: #C9A0A8; }
.chc-bar-val { flex: 0 0 90px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Toolkit (dark band) */
.chc-toolkit { background: var(--chc-band); color: var(--chc-on-band); }
.chc-toolkit .chc-eyebrow { color: #F8BFCB; }
.chc-toolkit h2, .chc-toolkit h3 { color: var(--chc-on-band); }
.chc-toolkit p:not(.chc-eyebrow) { color: #E6DADA; }
.chc-toolkit a { color: #F8BFCB; }
.chc-toolkit .wp-block-columns { gap: 24px; margin-top: 20px; }
.chc-toolkit .wp-block-column {
  background: var(--chc-band-soft);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.chc-toolkit .wp-block-column:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(0,0,0,.55); }

/* Get involved cards */
.chc-involve .wp-block-columns { gap: 24px; margin-top: 24px; }
.chc-involve .wp-block-column {
  background: var(--chc-surface); border: 1px solid var(--chc-line); border-radius: 16px; padding: 24px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s;
}
.chc-involve .wp-block-column:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(156,20,80,.38); border-color: var(--chc-accent-2); }

/* News cards */
.chc-cards { gap: 24px; }
.chc-cards .wp-block-column {
  background: var(--chc-surface); border: 1px solid var(--chc-line); border-radius: 16px; padding: 24px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .25s;
}
.chc-cards .wp-block-column:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(156,20,80,.38); border-color: var(--chc-accent-2); }
.chc-tag { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--chc-accent); }

/* Header: full-width sticky bar, content locked to the 1240px grid */
.chc-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--chc-surface);
  border-bottom: 1px solid var(--chc-line);
  padding: 8px max(24px, calc((100% - 1192px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.admin-bar .chc-header { top: 32px; }
.chc-header .wp-block-navigation { flex: 1 1 auto; }
.chc-header .wp-block-navigation__container { justify-content: center; gap: 4px; }
.chc-header .wp-block-navigation-item__content {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chc-ink);
  padding: 14px 10px;
}
.chc-header .wp-block-navigation-item__content:hover { color: var(--chc-accent); }
.chc-header .current-menu-item > .wp-block-navigation-item__content { color: var(--chc-accent); }
.chc-header .wp-block-navigation__submenu-container {
  background: var(--chc-surface);
  border: 1px solid var(--chc-line);
  border-radius: 12px;
  box-shadow: 0 24px 40px rgba(0,0,0,.12);
  padding: 8px;
  min-width: 260px;
}
.chc-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 10px;
  border-radius: 10px;
}
.chc-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--chc-soft);
  color: var(--chc-accent);
}

/* Footer: full-bleed soft band, content locked to the 1240px grid */
.chc-footer {
  background: var(--chc-soft);
  border-top: 1px solid var(--chc-line);
  border-radius: 0;
  padding: 44px max(24px, calc((100% - 1192px) / 2)) 28px;
}
.chc-footer .wp-block-columns { gap: 24px; }
.chc-footer .chc-fh { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; }
.chc-footer .chc-flinks { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: 14.5px; }
.chc-footer .chc-flinks p { margin: 0 0 8px; }
.chc-footer .chc-flinks a, .chc-footer a { color: var(--chc-accent); text-decoration: underline; text-decoration-color: rgba(156,20,80,.35); text-underline-offset: 3px; }
.chc-footer .chc-flinks a:hover { text-decoration-color: currentColor; }
.chc-footer .chc-foot-logo img, .chc-header .chc-header-logo img { max-height: 56px; width: auto; }
.chc-footer .chc-foot-logos img { max-height: 64px; width: auto; }
.chc-footer .wp-block-social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--chc-line);
  color: var(--chc-accent);
  background: transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.chc-footer .wp-block-social-link:hover { background: var(--chc-accent); color: #fff; border-color: var(--chc-accent); transform: translateY(-2px); }
.chc-footer .chc-fdisc { font-size: 12px; line-height: 1.65; color: var(--chc-muted); margin-top: 18px; }

/* Mobile */
@media (max-width: 781px) {
  .chc-hero, .chc-involve, .chc-news { padding-block: 40px; }
  .chc-numbers, .chc-why, .chc-toolkit, .chc-impact { padding-block: 40px; }
  .chc-hero-cols { gap: 32px; }
  .chc-hero-art { width: min(340px, 84%); }
  .chc-hero-art .chc-float { right: 0; bottom: -6%; }
  .chc-involve .wp-block-column, .chc-cards .wp-block-column { padding: 18px; }
  .chc-bar-label { flex-basis: 110px; }
}
@media (max-width: 782px) {
  body.admin-bar .chc-header { top: 46px; }
}

/* ==== lativ theme compatibility fixes ==== */
/* lativ constrains block content to 620px; the prototype is 1240px wide */
.chc { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.chc .is-layout-constrained { max-width: none; }
.chc .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none; }
/* whole-page pink background, only on pages using the CHOICE Page template;
   overflow-x: clip prevents a stray scrollbar from the full-bleed bands
   (uses clip instead of hidden so the sticky header keeps working) */
body.page-template-choice-page { background: #FFF5F3; overflow-x: clip; }
/* heading sizes: match the prototype scale, not the theme presets */
.chc h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.chc h3 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.2; }