/* ===========================================================
   Kye's Climate Action Fund — design system
   Colors, fonts and spacing all live here. Change a value once
   and it updates across every page.
   =========================================================== */
:root {
  /* Brand palette (taken from the live KCAF site) */
  --ink:        #252628;   /* near-black text */
  --paper:      #f1f1f1;   /* page background */
  --white:      #ffffff;
  --blue:       #506cbf;   /* periwinkle — primary action */
  --blue-dk:    #3f57a0;
  --red:        #bf383b;   /* donate red */
  --red-dk:     #a12e31;
  --gold:       #d9a443;   /* gold band */
  --sand:       #eed7ac;   /* light sand section */
  --sky:        #c1d3e4;   /* pale blue section */
  --card-blue:  #82b0d9;
  --brown:      #543829;

  --max: 1360px;
  --radius: 25px;
  --font: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.5rem); text-transform: uppercase; letter-spacing: .06em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: 90px 0; position: relative; }
.center { text-align: center; }
.lead { font-size: 1.06rem; max-width: 780px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons: pill shape with arrow ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; border-radius: 100px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--font);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn::after { content: "↗"; font-size: .95em; }
.btn.no-arrow::after { content: none; }
.btn:hover { transform: translateY(-2px); }
.btn-blue  { background: var(--blue); color: var(--paper); }
.btn-blue:hover { background: var(--blue-dk); }
.btn-dark  { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-gold  { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #c8942f; }
.btn-red   { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-dk); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 13px 26px; font-size: .95rem; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--gold); color: var(--ink); text-align: center; padding: 12px 20px; font-weight: 700; font-size: .95rem; }
.announce a { color: var(--ink); text-decoration: underline; font-weight: 800; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav .logo img { width: 190px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 700; font-size: 1rem; }
.menu a:hover, .menu a.active { color: var(--blue); }
.menu .btn { padding: 12px 30px; font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 660px; display: flex; align-items: flex-end; background-size: cover; background-position: center 25%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,20,22,.55) 0%, rgba(18,20,22,.12) 60%, rgba(18,20,22,0) 100%),
              linear-gradient(0deg, rgba(18,20,22,.72) 0%, rgba(18,20,22,.28) 42%, rgba(18,20,22,0) 72%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0,1.35fr) auto; gap: 40px; align-items: end; padding-block: 70px 64px; }
.hero h1 { color: var(--paper); margin-bottom: .35em; }
.hero p { color: var(--paper); font-size: 1.02rem; max-width: 640px; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.hero-actions .btn { font-size: 1.15rem; padding: 20px 40px; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: 50px; }
.wave path { }

/* ---------- Two-column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split.tall img { aspect-ratio: 3/4; }

/* ---------- Mosaic (impact stats + photos) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tile { border-radius: var(--radius); overflow: hidden; }
.tile.stat { padding: 30px 30px 34px; }
.tile.stat .icon { width: 46px; height: 46px; margin-bottom: 16px; }
.tile.stat .row { display: flex; align-items: center; gap: 20px; }
.tile.stat .num { font-size: 3.4rem; font-weight: 800; line-height: 1; flex: 0 0 auto; }
.tile.stat .label { font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.tile.stat.blue  { background: var(--card-blue); }
.tile.stat.red   { background: var(--red);  color: var(--paper); }
.tile.stat.gold  { background: var(--gold); }
.tile.stat.paper { background: var(--paper); }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.photo.t-tall img { aspect-ratio: 3/4; }
.tile.photo.t-wide img { aspect-ratio: 4/3; }
.stat-col { display: grid; gap: 22px; }

/* ---------- Section colour blocks ---------- */
.bg-sand  { background: var(--sand); }
.bg-sky   { background: var(--sky); }
.bg-gold  { background: var(--gold); }
.bg-paper { background: var(--paper); }
.bg-ink   { background: var(--ink); color: var(--paper); }
.bg-ink h2 { color: var(--paper); }

/* ---------- Illustrated band ---------- */
.illus { position: relative; overflow: hidden; }
.illus .art-left { position: absolute; left: 0; bottom: 0; width: 30%; max-width: 420px; pointer-events: none; }
.illus .inner { position: relative; z-index: 2; padding-block: 90px 120px; }

/* ---------- Cards (board / grantees) ---------- */
.grid { display: grid; gap: 26px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.card .photo { aspect-ratio: 4/5; background: var(--sky); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 24px 26px 30px; }
.card h3 { margin-bottom: 2px; }
.card .role { color: var(--blue); font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.card .bio { font-size: .97rem; margin: 0; }
.tag { display: inline-block; background: var(--sand); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 7px 16px; border-radius: 100px; margin-bottom: 12px; }

/* ---------- Page banner (interior pages) ---------- */
.banner { position: relative; background-size: cover; background-position: center; min-height: 340px; display: flex; align-items: center; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(18,20,22,.42); }
.banner .wrap { position: relative; z-index: 2; }
.banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.45); }

/* ---------- Newsletter band ---------- */
.newsletter { background: var(--gold); padding: 80px 0; }
.newsletter .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.newsletter h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .2em; }
.news-card { background: var(--white); border-radius: var(--radius); padding: 30px; }
.news-card input[type=email] { width: 100%; padding: 14px 16px; border: 1px solid #d9d9d9; border-radius: 8px; font: inherit; margin-bottom: 14px; }
.news-card button { width: 100%; justify-content: center; }

/* ---------- Forms ---------- */
.form { background: var(--white); border-radius: var(--radius); padding: 38px; max-width: 760px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; margin-bottom: 7px; font-size: .97rem; }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #d9d9d9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: flex; gap: 24px; }
.radio-row label { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hint { font-size: .88rem; color: #5d6166; }

/* ---------- Zeffy embed ---------- */
.zeffy-wrap { position: relative; width: 100%; max-width: 660px; margin: 0 auto; height: 900px; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.zeffy-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding: 70px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.site-footer h4 { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; font-weight: 800; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.foot-note { font-weight: 400; font-size: .95rem; }
.foot-bottom { border-top: 1px solid #dcdcdc; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .87rem; color: #5d6166; }
.ig { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .newsletter .inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 1060px) {
  .menu { position: fixed; inset: 74px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 22px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu li { width: 100%; padding: 9px 0; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .illus .art-left { display: none; }
}
@media (max-width: 600px) {
  .cols-3, .cols-2, .mosaic { grid-template-columns: 1fr; }
  .name-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 540px; }
}

/* small label above a heading */
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; font-weight: 800; color: var(--blue); margin-bottom: .7em; }

/* ===========================================================
   Page-specific components
   =========================================================== */

/* gold dash accent used above page titles */
.dash { width: 58px; height: 3px; background: var(--gold); margin: 0 auto 26px; border: 0; }
.dash.left { margin-left: 0; }

/* centred page header (Board, Impact, Grantees…) */
.page-head { padding: 84px 0 54px; text-align: center; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { margin-left: auto; margin-right: auto; }

/* cream person card (Board) */
.card-cream { background: #e8e5de; border-radius: 14px; overflow: hidden; }
.card-cream .photo { aspect-ratio: 1/1; background: #ded9cf; }
.card-cream .photo img { width: 100%; height: 100%; object-fit: cover; }
.card-cream .body { padding: 26px 28px 32px; }
.card-cream h3 { font-size: 1.6rem; margin-bottom: 10px; }
.card-cream .namebar { width: 46px; height: 3px; background: var(--gold); border: 0; margin: 0 0 16px; }
.card-cream .role { color: #6a6f6c; font-weight: 700; font-size: .92rem; margin-bottom: 12px; }
.card-cream .bio { font-size: 1rem; margin: 0; }

/* Impact — grantee rows on the red band */
.band-red { background: var(--red); color: var(--paper); padding: 80px 0 90px; }
.band-red h2 { color: var(--paper); }
.cohort { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 1.05rem;
          color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 16px; margin: 70px 0 46px; }
.grantee { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: center; margin-bottom: 54px; }
.grantee .avatar { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255,255,255,.35); }
.grantee h3 { color: var(--paper); font-size: 1.7rem; margin-bottom: 12px; }
.grantee p { margin: 0; font-size: 1rem; line-height: 1.7; }
.grantee a { color: var(--paper); }

/* grant cards (For Grantees) */
.grant-card { background: #e8e5de; border-radius: 14px; padding: 34px 34px 38px; }
.grant-card h3 { font-size: 1.5rem; }

@media (max-width: 760px) {
  .grantee { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
  .grantee .avatar { width: 200px; height: 200px; }
}
