/* ──────────────────────────────────────────────────────────────────
   project.css — Clean Water Help individual project pages
   Loaded after site.css. Scoped to the project-page components.
   ────────────────────────────────────────────────────────────────── */

/* ── HERO ─────────────────────────────────────────────────────────── */
.proj-hero {
  background: var(--navy);
  padding: 48px 56px 52px;
  border-bottom: 5px solid var(--accent, var(--blue));
}
.proj-hero__crumb {
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.proj-hero__crumb a { color: rgba(255,255,255,.55); }
.proj-hero__crumb a:hover { color: #fff; }
.proj-hero__crumb span { color: rgba(255,255,255,.3); margin: 0 9px; }
.proj-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-tag {
  font-family: var(--fh);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.proj-tag--pillar { background: var(--accent, var(--blue)); }
.proj-hero h1 {
  font-family: var(--fh);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 16px;
  max-width: 16ch;
}
.proj-hero__lead {
  font-family: var(--fb);
  font-size: 1.1875rem;
  color: rgba(255,255,255,.74);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.proj-hero__cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.proj-hero__ghost {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
}
.proj-hero__ghost:hover { color: var(--blue); border-color: var(--blue); }

/* ── IMPACT STAT STRIP ────────────────────────────────────────────── */
.pstat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.pstat {
  padding: 26px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}
.pstat:last-child { border-right: none; }
.pstat__num {
  font-family: var(--fh);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 4px;
}
.pstat__label {
  font-family: var(--fb);
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── BODY (main + sidebar) ────────────────────────────────────────── */
.proj-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 56px;
  padding: 64px 56px;
  align-items: start;
}
.proj-body__main h2 {
  font-family: var(--fh);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 40px 0 14px;
}
.proj-body__main h2:first-child { margin-top: 0; }
.proj-body__main p {
  font-family: var(--fb);
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 15px;
}
.proj-lead-in { color: var(--text) !important; font-style: italic; }

/* roles */
.proj-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.proj-role-card { background: var(--off-white); border-radius: 12px; padding: 24px 24px 20px; }
.proj-role-card__t {
  font-family: var(--fh);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.proj-role-card__t--cwh { color: var(--blue); }
.proj-role-card__t--partner { color: var(--orange); }
.proj-role-card ul { list-style: none; padding: 0; margin: 0; }
.proj-role-card li {
  font-family: var(--fb);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
  margin-bottom: 9px;
}
.proj-role-card li:last-child { margin-bottom: 0; }
.proj-role-card li::before { content: "\2192"; position: absolute; left: 0; color: var(--orange); font-family: var(--fh); font-weight: 700; }

/* project team — full-width square cards (home-page style) */
.pteam-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 16px 0 8px;
}
.pteam-card { text-align: center; display: block; }
a.pteam-card:hover .pteam__name { color: var(--blue); }
a.pteam-card:hover .pteam__photo { border-color: var(--blue); }
.pteam__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gray-100);
  background: var(--off-white);
  margin-bottom: 8px;
  transition: border-color var(--transition-fast);
}
.pteam__photo--ph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 800; color: var(--gray-400);
  font-size: 1.5rem; letter-spacing: .04em;
}
.pteam__name { font-family: var(--fh); font-size: 0.8125rem; font-weight: 700; color: var(--navy); line-height: 1.2; transition: color var(--transition-fast); }
.pteam__creds { font-family: var(--fh); font-size: 0.6875rem; font-weight: 600; color: var(--blue); margin-top: 1px; }
.pteam__role { font-family: var(--fb); font-size: 0.6875rem; color: var(--gray-400); line-height: 1.3; margin-top: 2px; }

/* gallery */
.pgal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.pgal__item { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.pgal__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pgal__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 11px;
  background: linear-gradient(transparent, rgba(0,46,93,.82));
  color: #fff; font-family: var(--fh); font-size: 0.75rem; font-weight: 600;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.proj-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.proj-side__card { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 22px 22px 24px; box-shadow: var(--sh-sm); }
.proj-side__label {
  font-family: var(--fh);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.proj-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; }
.proj-facts dt { font-family: var(--fh); font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); padding-top: 2px; }
.proj-facts dd { margin: 0; font-family: var(--fb); font-size: 0.9375rem; color: var(--navy); line-height: 1.45; }

/* expanded partner spotlight (sidebar) */
.proj-side__card--partners { background: linear-gradient(180deg, #fff, var(--off-white)); border-color: var(--gray-200); }
.psp { padding: 16px 0; border-top: 1px solid var(--gray-100); }
.psp:first-of-type { padding-top: 4px; border-top: none; }
.psp__head { display: flex; gap: 13px; align-items: center; margin-bottom: 10px; }
/* Flexible-shape logo chip: navy border, logo keeps its natural proportions */
.psp__logo { border-radius: 10px; flex-shrink: 0; border: 2px solid var(--navy); background: #fff; display: flex; align-items: center; justify-content: center; padding: 5px 9px; }
.psp__logo img { display: block; width: auto; height: auto; max-height: 44px; max-width: 104px; object-fit: contain; }
.psp__logo--text { font-family: var(--fh); font-weight: 800; color: var(--navy); font-size: 1.05rem; min-width: 52px; min-height: 52px; }
.psp__name { font-family: var(--fh); font-size: 1rem; font-weight: 700; color: var(--navy); display: block; line-height: 1.2; }
a.psp__name:hover { color: var(--blue); }
.psp__role { font-family: var(--fh); font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-top: 3px; }
.psp__blurb { font-family: var(--fb); font-size: 0.875rem; color: var(--gray-500); line-height: 1.55; margin: 0; }
.proj-side__morelink { display: inline-block; margin-top: 16px; font-family: var(--fh); font-size: 0.8125rem; font-weight: 700; color: var(--blue); }
.proj-side__morelink:hover { color: var(--blue-hover); }

/* ── CTA ──────────────────────────────────────────────────────────── */
.proj-cta { background: var(--navy); border-radius: 16px; padding: 48px; margin: 8px 56px 72px; text-align: center; }
.proj-cta h2 { font-family: var(--fh); font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -0.025em; margin-bottom: 12px; }
.proj-cta p { font-family: var(--fb); font-size: 1.0625rem; color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto 26px; line-height: 1.6; }
.proj-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.proj-cta__note { font-size: 0.875rem !important; color: rgba(255,255,255,.5) !important; margin: 24px auto 0 !important; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .proj-hero { padding: 40px 32px 44px; }
  .pstat-strip { grid-template-columns: 1fr 1fr; }
  .pstat:nth-child(2) { border-right: none; }
  .pstat:nth-child(1), .pstat:nth-child(2) { border-bottom: 1px solid var(--gray-100); }
  .proj-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px; }
  .proj-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .proj-side__card { flex: 1 1 300px; }
  .pteam-grid { grid-template-columns: repeat(5, 1fr); }
  .proj-cta { margin: 8px 32px 56px; padding: 40px 28px; }
}
@media (max-width: 760px) { .pteam-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) {
  .proj-hero { padding: 32px 20px 36px; }
  .proj-hero h1 { font-size: 1.875rem; }
  .pstat-strip { grid-template-columns: 1fr 1fr; }
  .proj-body { padding: 40px 20px; }
  .proj-roles { grid-template-columns: 1fr; }
  .pteam-grid { grid-template-columns: repeat(3, 1fr); }
  .pgal { grid-template-columns: 1fr; }
  .proj-cta { margin: 8px 20px 48px; padding: 32px 20px; }
}

/* ── FUNDING THERMOMETER (inside .proj-cta, live via js/finance.js) ── */
.fund-thermo { max-width: 460px; margin: 0 auto 26px; }
.fund-thermo__nums { font-family: var(--fm); font-size: 0.9375rem; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.fund-thermo__nums strong { color: var(--orange); font-size: 1.25rem; font-weight: 700; }
.fund-thermo__track { height: 14px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.fund-thermo__fill { height: 100%; border-radius: 999px; background: var(--orange); transition: width .8s ease; }
.fund-thermo__date { font-family: var(--fh); font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 8px; }
