/* ============================================================
   IROH Foundation — style.css v3
   Palette: Sky blue + warm slate, derived from logo
   Fonts: Lora (headings) + Nunito (body) — warm, human
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Nunito:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Blues from logo stars */
  --sky:        #3598c0;
  --sky-deep:   #2878a0;
  --sky-lt:     #64c8f0;
  --sky-pale:   #e2f3fa;
  --sky-mid:    #b0d9ed;

  /* Neutrals */
  --ink:        #2c3a42;
  --ink-mid:    #4e626d;
  --ink-light:  #7a909b;
  --warm-white: #f5f5f5;
  --linen:      #f0ede8;
  --linen-mid:  #e2ddd8;
  --white:      #ffffff;

  /* Typography */
  --ff-display: 'Lora', Georgia, serif;
  --ff-body:    'Nunito', 'Helvetica Neue', sans-serif;

  /* Scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-hero: clamp(2.75rem, 6vw, 5rem);

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Misc */
  --nav-h:        90px;
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-xs:    0 1px 4px rgba(44,58,66,.07);
  --shadow-sm:    0 2px 12px rgba(44,58,66,.09);
  --shadow-md:    0 6px 28px rgba(44,58,66,.11);
  --shadow-hover: 0 10px 40px rgba(44,58,66,.16);
  --transition:   0.28s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linen-mid);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 78px; width: auto; max-width: none; object-fit: contain; }
.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.nav-logo-text .accent { color: var(--sky); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--sky); border-bottom-color: var(--sky); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE HEADER (inner pages) ─────────────────────────── */
.page-header {
  background: var(--linen);
  border-bottom: 1px solid var(--linen-mid);
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Banner image overlay — behind the text */
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,58,66,0.35) 0%, rgba(44,58,66,0.62) 100%);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

/* Default (no banner) text colors */
.page-header .eyebrow {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--sp-sm);
  display: block;
}
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; color: var(--ink); }
.page-header p { max-width: 560px; margin: var(--sp-xs) auto 0; color: var(--ink-mid); font-size: var(--fs-md); }

/* With banner — flip to white text, taller header */
.page-header.has-banner { min-height: 500px; }
.page-header.has-banner .eyebrow { color: var(--sky-lt); }
.page-header.has-banner h1 { color: var(--white); }
.page-header.has-banner p { color: rgba(255,255,255,.82); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.section { padding: var(--sp-2xl) 0; }
.section--linen { background: var(--linen); }
.section--white { background: var(--white); }
.section--sky   { background: var(--sky-pale); }

/* ─── LABELS & HEADINGS ──────────────────────────────────── */
.eyebrow,
.section-label {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--sp-sm);
  display: block;
}
.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
  line-height: 1.2;
}
.section-sub {
  color: var(--ink-mid);
  font-size: var(--fs-md);
  line-height: 1.72;
  max-width: 560px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-xl);
  gap: var(--sp-md);
  flex-wrap: wrap;
}

/* Sky rule divider */
.sky-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 120px;
  margin: 0 auto var(--sp-md);
}
.sky-rule::before, .sky-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sky-lt);
  opacity: 0.6;
}
.sky-rule-dot { width: 5px; height: 5px; background: var(--sky-lt); border-radius: 50%; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-gold,
.btn-sky {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(53,152,192,.25);
}
.btn-gold:hover,
.btn-sky:hover {
  background: var(--sky-deep);
  box-shadow: 0 4px 16px rgba(53,152,192,.35);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--sky);
  color: var(--sky);
  background: transparent;
}
.btn-outline:hover { background: var(--sky-pale); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover { border-color: var(--sky-lt); color: var(--sky-lt); }

/* ─── HOME HERO ──────────────────────────────────────────── */
.hero {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 50%;
  height: 110%;
  background: var(--sky-pale);
  border-radius: 0 0 0 60% / 0 0 0 40%;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  width: 100%;
}
.hero-text .eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.hero-text .eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sky-lt);
  border-radius: 2px;
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--sp-md);
}
.hero h1 em { font-style: italic; color: var(--sky); }
.hero-desc {
  color: var(--ink-mid);
  font-size: var(--fs-md);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: var(--sp-lg);
}
.hero-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

.hero-stats { display: flex; flex-direction: column; gap: var(--sp-sm); }
.hero-stat-card {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-left: 3px solid var(--sky-lt);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.hero-stat-num {
  font-family: var(--ff-display);
  font-size: 2.25rem;
  color: var(--sky);
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}
.hero-stat-label { font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.5; }

/* ─── MISSION BAND ───────────────────────────────────────── */
.mission-band {
  background: var(--sky-pale);
  border-top: 1px solid var(--sky-mid);
  border-bottom: 1px solid var(--sky-mid);
  padding: var(--sp-lg) 0;
}
.mission-band .container { display: flex; align-items: center; justify-content: center; }
.mission-band p {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  text-align: center;
}
.mission-band strong { font-weight: 600; font-style: normal; color: var(--ink); }

/* ─── PILLARS ────────────────────────────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.pillar {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: var(--radius);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--sky-mid); }
.pillar-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto var(--sp-md);
  background: var(--sky-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg {
  width: 22px; height: 22px;
  stroke: var(--sky); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-sm); }
.pillar p { font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.72; }

/* ─── GRANTEE CARDS (home / featured — photo + logo) ────── */
.grantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }

.grantee-card {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.grantee-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Photo */
.gc-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--linen);
  flex-shrink: 0;
}
.gc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.grantee-card:hover .gc-photo img { transform: scale(1.04); }
.gc-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--sky-mid);
  font-style: italic;
}

/* Logo strip — same full width as photo */
.gc-logo {
  width: 100%;
  height: 100px;
  background: var(--white);
  border-top: 1px solid var(--linen-mid);
  border-bottom: 1px solid var(--linen-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.gc-logo img {
  max-width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}
.gc-logo-placeholder {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  color: var(--sky-mid);
  font-style: italic;
}

.grantee-card-body { padding: var(--sp-md); }
.grantee-card-region {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
}
.grantee-card-body h3 { font-family: var(--ff-display); font-size: var(--fs-lg); margin-bottom: var(--sp-xs); }
.grantee-card-body p { font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.68; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--sky);
  transition: gap var(--transition);
}
.card-link:hover { gap: 9px; }
.card-link svg { width: 13px; height: 13px; }

/* ─── WHO WE FUND — full grantee list ───────────────────── */
.grantees-title {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink);
  padding-bottom: var(--sp-md);
  margin-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--linen-mid);
  margin-top: var(--sp-xl);
}
.grantees-title:first-child { margin-top: 0; }

/* Grid — align-items: start gives ragged bottom */
.grantee-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.grantee-item {
  background: var(--white);
  border: 1px solid var(--linen-mid);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.grantee-item:hover { box-shadow: var(--shadow-md); border-color: var(--sky-mid); }

/* Photo */
.gi-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--linen);
  flex-shrink: 0;
}
.gi-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.grantee-item:hover .gi-photo img { transform: scale(1.03); }
.gi-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--sky-mid);
  font-style: italic;
}

/* Logo strip */
.gi-logo {
  width: 100%;
  height:100px;
  background: var(--white);
  border-top: 1px solid var(--linen-mid);
  border-bottom: 1px solid var(--linen-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.gi-logo img {
  max-width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}
.gi-logo-placeholder {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  color: var(--sky-mid);
  font-style: italic;
}

/* Body — top-aligned, natural (ragged) bottom */
.gi-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;  /* fill card height — blank space stays inside body */
}
.gi-region {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 4px;
}
.gi-name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}
.gi-desc {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
/* Impact — flows directly after description, no auto margin */
.gi-impact {
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--linen-mid);
  margin-bottom: var(--sp-sm);
}
.gi-impact-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.gi-impact ul { display: flex; flex-direction: column; gap: 5px; }
.gi-impact li {
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.5;
  padding-left: var(--sp-sm);
  position: relative;
}
.gi-impact li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--sky);
  font-size: 0.65em;
  top: 0.3em;
}
.gi-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  transition: gap var(--transition);
  align-self: flex-start;
}
.gi-link:hover { gap: 9px; }
.gi-link svg { width: 11px; height: 11px; }

/* ─── HOW WE FUND ────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }
.col-label {
  font-size: var(--fs-md); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sky); margin-bottom: var(--sp-sm); display: block;
}
.col-heading {
  font-family: var(--ff-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); line-height: 1.2;
}
.col-body { color: var(--ink-mid); font-size: var(--fs-md); line-height: 1.8; }
.col-body p + p { margin-top: var(--sp-sm); }

.grant-box {
  background: var(--sky-pale);
  border: 1px solid var(--sky-mid);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: var(--sp-lg);
}
.grant-box .amount {
  font-family: var(--ff-display); font-size: var(--fs-2xl);
  color: var(--sky); margin-bottom: 4px; line-height: 1;
}
.grant-box .amount-label {
  font-size: var(--fs-sm); color: var(--ink-light); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md); border-bottom: 1px solid var(--sky-mid);
}
.grant-box ul { display: flex; flex-direction: column; gap: var(--sp-sm); }
.grant-box li {
  display: flex; gap: var(--sp-sm);
  font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.6;
}
.grant-box li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sky-lt); border-radius: 50%;
  flex-shrink: 0; margin-top: 0.55em;
}

.criteria-list { display: flex; flex-direction: column; }
.criteria-item {
  display: flex; gap: var(--sp-md);
  padding: var(--sp-md) 0; border-bottom: 1px solid var(--linen-mid);
}
.criteria-item:last-child { border-bottom: none; }
.criteria-num {
  font-family: var(--ff-display); font-size: var(--fs-2xl);
  color: var(--sky-lt); line-height: 1; flex-shrink: 0;
  width: 2.5rem; font-weight: 600; -webkit-text-stroke: 1px var(--sky-mid);
}
.criteria-text h4 { font-family: var(--ff-display); font-size: var(--fs-lg); color: var(--ink); margin-bottom: 4px; }
.criteria-text p { font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.65; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }

/* ─── CASA CRIANÇA ───────────────────────────────────────── */
.casa-hero-section { background: var(--linen); border-bottom: 1px solid var(--linen-mid); }
.casa-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: var(--sp-2xl) var(--sp-lg);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-2xl); align-items: center;
}
.casa-hero-inner h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 400; margin-bottom: var(--sp-md); }
.casa-hero-inner p { color: var(--ink-mid); font-size: var(--fs-md); line-height: 1.8; margin-bottom: var(--sp-sm); }
.casa-stats {
  background: var(--white); border: 1px solid var(--linen-mid);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.casa-stat { padding: var(--sp-lg); text-align: center; border-bottom: 1px solid var(--linen-mid); }
.casa-stat:last-child { border-bottom: none; }
.casa-stat-num { font-family: var(--ff-display); font-size: var(--fs-2xl); color: var(--sky); line-height: 1; margin-bottom: 4px; }
.casa-stat-label { font-size: var(--fs-sm); color: var(--ink-mid); }

.activities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); }
.activity-item {
  background: var(--white); border: 1px solid var(--linen-mid);
  border-radius: var(--radius); padding: var(--sp-md) var(--sp-sm); text-align: center;
  transition: background var(--transition), border-color var(--transition);
}
.activity-item:hover { background: var(--sky-pale); border-color: var(--sky-mid); }
.activity-item .icon { font-size: 1.75rem; margin-bottom: 6px; }
.activity-item h4 { font-family: var(--ff-display); font-size: var(--fs-base); }

.casa-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.casa-gallery-item { aspect-ratio: 4/3; overflow: hidden; background: var(--linen); position: relative; }
.casa-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.casa-gallery-item:hover img { transform: scale(1.04); }
.casa-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--sp-sm);
  background: linear-gradient(transparent, rgba(44,58,66,.55));
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white); text-align: center;
}

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.support-card {
  background: var(--white); border: 1px solid var(--linen-mid);
  border-top: 2px solid var(--sky); border-radius: var(--radius);
  padding: var(--sp-lg); box-shadow: var(--shadow-xs);
}
.support-card h3 { font-family: var(--ff-display); font-size: var(--fs-xl); margin-bottom: var(--sp-sm); }
.support-card p { font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.72; }

/* ─── MEDICAL RESEARCH ───────────────────────────────────── */
.focus-list { display: flex; flex-direction: column; }
.focus-item {
  display: flex; gap: var(--sp-sm); padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--linen-mid);
  font-size: var(--fs-sm); color: var(--ink-mid); line-height: 1.6;
}
.focus-item:last-child { border-bottom: none; }
.focus-dot { width: 7px; height: 7px; background: var(--sky-lt); border-radius: 50%; flex-shrink: 0; margin-top: 0.45em; }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.impact-card {
  background: var(--white); border: 1px solid var(--linen-mid);
  border-radius: var(--radius); padding: var(--sp-lg); box-shadow: var(--shadow-xs);
}
.impact-card h4 {
  font-family: var(--ff-display); font-size: var(--fs-lg);
  margin-bottom: var(--sp-sm); padding-bottom: var(--sp-xs); border-bottom: 1px solid var(--linen-mid);
}
.impact-card ul { display: flex; flex-direction: column; gap: 5px; }
.impact-card li {
  font-size: var(--fs-sm); color: var(--ink-mid); padding-left: var(--sp-sm);
  position: relative; line-height: 1.5;
}
.impact-card li::before { content: '—'; position: absolute; left: 0; color: var(--sky); font-size: 0.7em; top: 0.35em; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--sp-2xl); align-items: start; }
.contact-notice {
  background: var(--sky-pale); border: 1px solid var(--sky-mid);
  border-left: 3px solid var(--sky); border-radius: var(--radius-sm);
  padding: var(--sp-md); font-size: var(--fs-sm); color: var(--ink); font-weight: 600; line-height: 1.5;
}
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--linen-mid);
  border-radius: var(--radius-lg); padding: var(--sp-xl); box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 400; margin-bottom: var(--sp-lg); }
.form-group { margin-bottom: var(--sp-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group label .req { color: var(--sky); margin-left: 2px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 0.75em 1em;
  background: var(--warm-white); border: 1px solid var(--linen-mid);
  border-radius: var(--radius-sm); font-family: var(--ff-body);
  font-size: var(--fs-base); font-weight: 400; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(53,152,192,.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { width: 100%; justify-content: center; margin-top: var(--sp-sm); }

/* ─── CTA BAND ───────────────────────────────────────────── */
.cta-band {
  background: var(--sky-pale);
  border-top: 1px solid var(--sky-mid);
  border-bottom: 1px solid var(--sky-mid);
  padding: var(--sp-2xl) 0;
  text-align: center;
}
.cta-band .section-heading { margin-bottom: var(--sp-sm); }
.cta-band .section-sub { margin: 0 auto var(--sp-lg); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); padding: var(--sp-2xl) 0 var(--sp-lg); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-lg); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-xl);
  padding-bottom: var(--sp-xl); border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-family: var(--ff-display); font-size: var(--fs-xl);
  font-weight: 500; color: var(--white); margin-bottom: var(--sp-sm);
}
.footer-brand-name .accent { color: var(--sky-lt); }
.footer-tagline { font-size: var(--fs-sm); color: rgba(255,255,255,.4); line-height: 1.7; max-width: 275px; }
.footer-nav h4 {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sky-lt); margin-bottom: var(--sp-md);
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.footer-nav a { font-size: var(--fs-sm); color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--sp-md);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-md); flex-wrap: wrap;
}
.footer-copy { font-size: var(--fs-xs); color: rgba(255,255,255,.25); }
.footer-credit { font-size: var(--fs-xs); color: rgba(255,255,255,.25); font-style: italic; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp .7s ease .1s both; }
.anim-2 { animation: fadeUp .7s ease .25s both; }
.anim-3 { animation: fadeUp .7s ease .4s both; }
.anim-4 { animation: fadeUp .7s ease .55s both; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-logo img { height: 62px; width: auto; max-width: none; }
  .hero-inner, .two-col, .casa-hero-inner, .contact-grid { grid-template-columns: 1fr; }
  .grantee-grid, .grantee-list, .pillars-grid, .support-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(3, 1fr); }
  .hero::before { display: none; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .hero-stat-card { flex: 1 1 200px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav-logo img { height: 50px; width: auto; max-width: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    /* drop down from the bottom of the nav bar, full width */
    top: var(--nav-h);
    left: 0;
    right: 0;
    /* only as tall as its content — not full screen */
    bottom: auto;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--linen-mid);
    box-shadow: 0 8px 32px rgba(44,58,66,0.18);
    z-index: 99;
    /* keep banner/content visible below the panel */
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--linen-mid); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: var(--sp-md) var(--sp-lg);
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: #ffffff;
    border-bottom: none;       /* override desktop underline style */
    transition: background var(--transition), color var(--transition);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--sky-pale);
    color: var(--sky);
    border-bottom: none;
  }
  .grantee-grid, .grantee-list, .pillars-grid, .support-grid,
  .process-grid, .activities-grid, .impact-grid, .casa-gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-md  { margin-bottom: var(--sp-md); }
.mb-lg  { margin-bottom: var(--sp-lg); }
.mb-xl  { margin-bottom: var(--sp-xl); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Footer logo ───────────────────────────────────────── */
.footer-logo-wrap {
  margin-bottom: var(--sp-sm);
}
.footer-logo-wrap img {
  height: 84px;
  width: auto;
  /* subtle brightness boost so logo reads on dark footer */
  filter: brightness(1.05);
}

/* ── Home hero banner ──────────────────────────────────── */
.hero {
  /* already position:relative, overflow:hidden */
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,58,66,0.72) 0%,
    rgba(44,58,66,0.45) 60%,
    rgba(44,58,66,0.30) 100%
  );
}
/* When banner present, flip hero text to white */
.hero.has-banner .hero-text .eyebrow { color: var(--sky-lt); }
.hero.has-banner h1 { color: var(--white); }
.hero.has-banner h1 em { color: var(--sky-lt); }
.hero.has-banner .hero-desc { color: rgba(255,255,255,0.82); }
.hero.has-banner::before { display: none; } /* hide the sky-pale blob */
.hero.has-banner .hero-stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.2);
}
.hero.has-banner .hero-stat-num { color: var(--sky-lt); }
.hero.has-banner .hero-stat-label { color: rgba(255,255,255,0.7); }

/* ── Casa hero banner ──────────────────────────────────── */
.casa-hero-section {
  position: relative;
  overflow: hidden;
}
.casa-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.casa-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.casa-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(44,58,66,0.75) 0%,
    rgba(44,58,66,0.45) 55%,
    rgba(44,58,66,0.30) 100%
  );
}
.casa-hero-section.has-banner .casa-hero-inner { position: relative; z-index: 1; }
.casa-hero-section.has-banner h1 { color: var(--white); }
.casa-hero-section.has-banner p { color: rgba(255,255,255,0.82); }
.casa-hero-section.has-banner .eyebrow { color: var(--sky-lt); }
.casa-hero-section.has-banner .btn-gold,
.casa-hero-section.has-banner .btn-sky { background: var(--sky); }
.casa-hero-section.has-banner .casa-stats {
  background: rgba(255,255,255,0.92);
}

/* ── Page header variants ──────────────────────────────────── */
/* Taller version for the home page */
.page-header.has-banner.page-header--home {
  min-height: 65vh;
  justify-content: center;
}
/* Italic/coloured h1 em works inside page-header too */
.page-header.has-banner h1 em { font-style: italic; color: var(--sky-lt); }

/* CTA buttons inside page headers */
.page-header-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-lg);
}

/* ── Stats strip (below home and casa headers) ────────────── */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--linen-mid);
}
.stats-row {
  display: flex;
  divide: 1px solid var(--linen-mid);
}
.stat-item {
  flex: 1;
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  border-right: 1px solid var(--linen-mid);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  color: var(--sky);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-mid);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--linen-mid); }
  .stat-item:last-child { border-bottom: none; }
  .page-header.has-banner.page-header--home { min-height: 55vh; }
}

/* ── Logo scaling for narrow viewports ─────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 62px; }
  .nav-logo img { height: 44px; width: auto; max-width: none; }
}
