/* THE CENTRE FOR FINANCIAL CAPABILITY — Norbit concept demo */

:root {
  --navy: #0e2a47;
  --navy-deep: #091d33;
  --teal: #0f8a7c;
  --teal-dark: #0b6e63;
  --gold: #f2b32b;
  --gold-soft: #fce8bd;
  --coral: #e8604c;
  --paper: #faf7f0;
  --white: #ffffff;
  --ink: #1c2b3a;
  --ink-soft: #4d5f70;
  --line: #e5ddcd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.10);
  --banner-h: 2.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 900;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-logo {
  height: 52px;
  width: auto;
  flex: 0 0 auto;
  mix-blend-mode: multiply;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--navy);
}

.brand-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover { color: var(--navy); }

.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border-bottom: none;
  transition: background 0.2s;
}

.main-nav a.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(15, 138, 124, 0.35), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(242, 179, 43, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  padding: 5.5rem 0 4.5rem;
  max-width: 60rem;
}

.hero .kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 21ch;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #d4e0ec;
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffc74a; }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--teal-dark); }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 2.4rem;
}

.stat h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--teal-dark);
}

.stat:nth-child(2) h2 { color: var(--coral); }
.stat:nth-child(3) h2 { color: var(--gold); }

.stat p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 30ch;
}

.stats-note {
  padding-bottom: 1.6rem;
  font-size: 0.75rem;
  color: #93a1af;
}

/* ---------- Generic sections ---------- */

.section { padding: 4.5rem 0; }

.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2.6rem; }

.section-head .kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }

.section-head p { color: var(--ink-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
}

.section-alt .card { background: var(--paper); box-shadow: none; }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }

.card p { color: var(--ink-soft); font-size: 0.94rem; }

.card a.more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.card a.more:hover { text-decoration: underline; }

/* ---------- Photos ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.photo-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.photo-strip img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.photo-strip figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.prose-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.6rem 0;
}

.prose-photo img { width: 100%; display: block; }

.prose-photo figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--white);
}

/* ---------- Fund callout ---------- */

.callout {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(242, 179, 43, 0.25), transparent 60%),
    linear-gradient(140deg, var(--teal-dark), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.callout h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.7rem; }

.callout p { color: #d8e6e2; max-width: 52ch; }

/* ---------- Quote ---------- */

.quote {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.quote blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.page-hero .container { padding: 3.6rem 0 3rem; }

.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.7rem; }

.page-hero p { color: #cdd9e5; max-width: 60ch; }

/* ---------- Prose ---------- */

.prose { max-width: 46rem; }

.prose h2 { font-size: 1.7rem; margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 0.7rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

/* ---------- People ---------- */

.person-card { display: flex; flex-direction: column; }

.person-card .avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--teal), var(--navy));
  margin-bottom: 1.1rem;
}

.person-card:nth-child(even) .avatar {
  background: linear-gradient(140deg, var(--gold), var(--coral));
}

.person-card .avatar-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.1rem;
  border: 3px solid var(--gold-soft);
}

.person-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Members / logos ---------- */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.member-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1rem;
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  display: grid;
  place-items: center;
  min-height: 84px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.member-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.member-tile img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- News ---------- */

.news-list { display: grid; gap: 1rem; max-width: 52rem; }

.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 1.3rem;
  align-items: baseline;
}

.news-item .date {
  flex: 0 0 7.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.03em;
}

.news-item h3 { font-size: 1.05rem; font-weight: 600; }

.press-item {
  border-left: 3px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin-bottom: 1.1rem;
}

.press-item p { color: var(--ink); font-weight: 600; }

.press-item .outlet { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Newsletter ---------- */

.newsletter {
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(15, 138, 124, 0.3), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.newsletter .container {
  padding: 3.8rem 0;
  text-align: center;
  max-width: 40rem;
}

.newsletter h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }

.newsletter p { color: #c8d6e3; margin-bottom: 1.6rem; }

.newsletter form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
}

.newsletter .privacy { font-size: 0.75rem; color: #8fa3b5; margin-top: 0.9rem; }

.newsletter button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gold);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b7c6d4;
  font-size: 0.9rem;
}

.site-footer .container {
  padding: 3.2rem 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  text-align: center;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.site-footer a { color: #d8e4ee; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }

.footer-brand p { max-width: 40ch; margin-top: 0.8rem; margin-left: auto; margin-right: auto; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: block;
  padding: 1.2rem 0 1.4rem;
  font-size: 0.78rem;
  color: #7e93a6;
  text-align: center;
}

.footer-bottom p { margin-bottom: 0.3rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4%;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); }

  .main-nav a.nav-cta { margin: 0.7rem 0; text-align: center; }

  .nav-toggle { display: block; }

  .stats-band .container { grid-template-columns: 1fr; gap: 1.4rem; }

  .site-footer .container { grid-template-columns: 1fr; gap: 1.8rem; }

  .news-item { flex-direction: column; gap: 0.3rem; }
}
