/* =========================================================================
   Renewal Funds — site styles
   No-build React site (React 18 UMD + Babel standalone), deployed on
   Cloudflare Pages. Palette and type match renewalfunds.com: Open Sans,
   white surfaces, Renewal greens (the old brown accents are gone).
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap");

:root {
  /* ---------- Renewal Funds palette (from the current site) ---------- */
  --rf-green:      #4c721d;  /* primary — links, buttons, section labels */
  --rf-green-brt:  #92b343;  /* bright leaf — accents, hovers, underlines */
  --rf-green-2:    #93b630;  /* alt bright green */
  --rf-lime:       #cdd529;  /* lime pop, used sparingly */
  --rf-heading:    #3f5a26;  /* muted deep-olive headings (calmer green) */
  --rf-deep:       #33501a;  /* dark green — footer, exited banner */

  --rf-ink:        #333333;  /* strong text */
  --rf-body:       #5b5f57;  /* body text (green-grey) */
  --rf-subtle:     #8a9083;  /* captions */

  --rf-white:      #ffffff;
  --rf-light:      #f5f7f1;  /* faint green-grey background */
  --rf-panel:      #f0f3ea;  /* muted panels */
  --rf-border:     #e2e6da;

  /* ---------- Type ---------- */
  --font-sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rf-white);
  color: var(--rf-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--rf-heading); margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(30px, 3.4vw, 40px); }
h2 { font-size: clamp(24px, 2.4vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
a { color: var(--rf-green); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rf-green-brt);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }
.section { padding: 64px 40px; }
.nav-toggle { display: none; }

/* Simple page intro (replaces any hero) — white, matches current site */
.page-intro { padding: 56px 40px 8px; }
.page-intro h1 { margin-bottom: 16px; }
.page-intro .lead { max-width: 820px; font-size: 18px; color: #2f322e; }
.page-intro .lead a { color: var(--rf-green); font-weight: 600; }

/* =======================================================================
   SPLASH (landing gateway)
   ======================================================================= */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 24px 40px; background: var(--rf-white); }
.splash__title { font-size: clamp(20px, 2.2vw, 26px); color: #222; font-weight: 400; text-align: center; margin: 6px 0 4px; }
.splash__sub { color: #454842; text-align: center; max-width: 740px; margin: 12px auto 40px; font-size: 16px; line-height: 1.6; font-weight: 700; }
.splash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; max-width: 1040px; flex: 1; align-content: start; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 40px 44px; border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  border: 1px solid var(--rf-border); background: var(--rf-white);
  transition: transform var(--ease) 220ms, box-shadow var(--ease) 220ms, border-color var(--ease) 220ms;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(51,80,26,0.15); border-color: var(--rf-green-brt); }
.card--dark { background: var(--rf-deep); color: #fff; border-color: transparent; }
.card--disabled { cursor: default; }
.card--disabled:hover { transform: none; box-shadow: none; border-color: var(--rf-border); }
.card__blurb { font-size: 17px; line-height: 1.6; color: var(--rf-body); margin: 0 0 26px; flex: 1; }
.card--dark .card__blurb { color: rgba(255,255,255,0.85); }
.card__cue { font-size: 14px; font-weight: 600; margin: 0 0 30px; color: #4b4f47; }
.card__logo { height: 60px; width: auto; margin-bottom: 26px; }
.card__logo--rcv { height: 92px; }
.card__go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: var(--radius);
  background: var(--rf-green); color: #fff; transition: background var(--ease) 160ms, gap var(--ease) 160ms;
}
.card--dark .card__go { background: var(--rf-green-brt); color: var(--rf-deep); }
.card:hover .card__go { gap: 14px; }
.card__go--disabled { background: #d7ddd0; color: #7c837a; cursor: default; }
.card--disabled:hover .card__go--disabled { gap: 8px; background: #d7ddd0; }
.splash__foot { margin-top: 40px; font-size: 14px; color: var(--rf-subtle); text-align: center; }

/* =======================================================================
   ABOUT — themes + accordions + images
   ======================================================================= */
.themes { list-style: none; margin: 28px 0 0; padding: 0; }
.themes li { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rf-border); align-items: baseline; }
.themes li:last-child { border-bottom: 1px solid var(--rf-border); }
.themes .theme-name { font-weight: 700; color: var(--rf-green); }
.themes .theme-desc { color: var(--rf-body); }

.accordion { border-top: 1px solid var(--rf-border); margin-top: 8px; }
.accordion__item { border-bottom: 1px solid var(--rf-border); }
.accordion__btn {
  width: 100%; background: none; border: 0; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  font-family: inherit; font-size: 20px; font-weight: 700; color: var(--rf-heading); text-align: left;
}
.accordion__btn:hover { color: var(--rf-green-brt); }
.accordion__icon { flex: none; width: 24px; height: 24px; position: relative; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--rf-green-brt); left: 50%; top: 50%; }
.accordion__icon::before { width: 2px; height: 16px; transform: translate(-50%,-50%); transition: opacity 240ms var(--ease); }
.accordion__icon::after  { width: 16px; height: 2px; transform: translate(-50%,-50%); }
.accordion__item[data-open="true"] .accordion__icon::before { opacity: 0; }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height 340ms var(--ease); }
.accordion__panel-inner { padding: 0 4px 28px; }
.accordion__panel-inner p { font-size: 16.5px; line-height: 1.7; color: var(--rf-body); }
.accordion__figure { margin: 8px 0 4px; }
.accordion__figure img { width: 100%; border-radius: var(--radius-lg); display: block; }
.accordion__figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--rf-subtle); font-style: italic; }

/* =======================================================================
   TEAM — 4-up grid matching current site
   ======================================================================= */
.team-group + .team-group { margin-top: 56px; }
.team-group__label {
  font-size: 22px; font-weight: 800; color: var(--rf-heading);
  padding-bottom: 14px; border-bottom: 2px solid var(--rf-green-brt); margin: 0 0 34px;
}
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.member__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--rf-panel); display: block; }
.member__name { margin: 16px 0 2px; font-size: 19px; font-weight: 700; color: var(--rf-heading); }
.member__role { color: var(--rf-green); font-size: 13.5px; font-weight: 700; margin: 0 0 12px; }
.member__bio { color: var(--rf-body); font-size: 14px; line-height: 1.62; }
.member__bio p { margin: 0 0 10px; }
.member__more { background: none; border: 0; padding: 2px 0; margin-top: 2px; color: var(--rf-green); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.member__more:hover { color: var(--rf-green-brt); }
.member__email { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--rf-green); text-decoration: none; word-break: break-all; }
.member__email:hover { text-decoration: underline; }

/* =======================================================================
   PORTFOLIO — logo grid, hover reveals description, corner Exited banner
   ======================================================================= */
.pf-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.pf-filter {
  font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rf-border); background: var(--rf-white); color: var(--rf-body); transition: all 160ms var(--ease);
}
.pf-filter:hover { border-color: var(--rf-green-brt); color: var(--rf-green); }
.pf-filter[aria-pressed="true"] { background: var(--rf-green); border-color: var(--rf-green); color: #fff; }

.pf-fund + .pf-fund { margin-top: 56px; }
.pf-fund__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--rf-green-brt); }
.pf-fund__name { font-size: 22px; font-weight: 800; color: var(--rf-heading); }
.pf-fund__meta { color: var(--rf-subtle); font-size: 14px; }

.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pf-card {
  position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-lg);
  background: var(--rf-white); border: 1px solid var(--rf-border); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.pf-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(51,80,26,0.14); border-color: var(--rf-green-brt); }
.pf-card__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; }

/* prominent Exited banner, top-left corner (rcv.vc style) */
.pf-card__exited {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--rf-deep); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-bottom-right-radius: 10px;
}

/* hover reveal */
.pf-card__hover {
  position: absolute; inset: 0; background: var(--rf-deep); color: #fff; padding: 20px;
  display: flex; flex-direction: column; opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none;
}
.pf-card:hover .pf-card__hover, .pf-card:focus-visible .pf-card__hover { opacity: 1; }
/* exited cards: push hover content below the corner banner so it isn't covered */
.pf-card--exited .pf-card__hover { padding-top: 42px; }
.pf-card:hover .pf-card__hover { pointer-events: auto; }
.pf-card__hover .h-name { font-weight: 800; font-size: 16px; margin-bottom: 8px; color: #fff; }
.pf-card__hover .h-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.86); overflow: hidden; }
.pf-card__hover .h-visit { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 800; color: var(--rf-lime); }

/* =======================================================================
   INVESTORS / ENTREPRENEURS
   ======================================================================= */
.pull-quote { border-left: 4px solid var(--rf-green-brt); padding: 4px 0 4px 26px; margin: 0 0 34px; max-width: 780px; }
.pull-quote p { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 400; font-style: italic; color: var(--rf-ink); margin: 0 0 14px; }
.pull-quote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--rf-green); }
.rich { max-width: 780px; }
.rich p { font-size: 17px; color: var(--rf-body); }
.criteria { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 780px; }
.criteria li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--rf-panel); color: var(--rf-ink); font-weight: 600; }
.criteria li::before { content: "✓"; color: var(--rf-green); font-weight: 800; }
.cta-line { margin-top: 34px; font-size: 17px; color: var(--rf-body); }
.cta-line a { color: var(--rf-green); font-weight: 700; }

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1024px) {
  .section { padding: 56px 28px; }
  .page-intro { padding: 44px 28px 4px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .splash__grid { grid-template-columns: 1fr; }
  .section { padding: 44px 20px; }
  .page-intro { padding: 36px 20px 4px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .themes li { grid-template-columns: 1fr; gap: 4px; }
  .criteria { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex !important; }
  header nav.site-nav { display: none !important; }
  header nav.site-nav.nav-open { display: flex !important; }
}
@media (max-width: 430px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
}
