:root {
  --forest-950: #0f2a20;
  --forest-800: #184431;
  --forest-650: #2f6748;
  --moss-100: #e7eee6;
  --saffron-500: #e4a11b;
  --saffron-100: #faedc8;
  --clay-600: #a94d35;
  --ink: #17221c;
  --muted: #58665d;
  --paper: #fffdf8;
  --cream: #f5f0e4;
  --cream-deep: #e9e0ce;
  --line: #d8d1c1;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(22, 43, 32, .12);
  --max: 1180px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
p, h1, h2, h3, h4, figure, blockquote { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest-950);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 42, 32, .12);
  background: rgba(255, 253, 248, .95);
  backdrop-filter: blur(16px);
}
.utility-bar {
  display: flex;
  justify-content: center;
  gap: .6rem 1.4rem;
  padding: .42rem 1rem;
  color: rgba(255, 255, 255, .88);
  background: var(--forest-950);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.utility-bar a { color: inherit; text-decoration: none; }
.utility-bar a:hover { color: var(--saffron-500); }
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: .72rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--forest-950);
  text-decoration: none;
}
.brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--cream-deep);
}
.brand strong, .brand small { display: block; }
.brand strong {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.05;
}
.brand small {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .1rem;
}
.desktop-nav a,
.mobile-nav nav a {
  color: var(--forest-950);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.desktop-nav a {
  position: relative;
  padding: .7rem .62rem;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: .62rem;
  right: .62rem;
  bottom: .35rem;
  height: 2px;
  background: var(--saffron-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1); }
.desktop-nav .nav-donate {
  margin-left: .35rem;
  padding: .62rem .9rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest-800);
}
.desktop-nav .nav-donate::after { display: none; }
.desktop-nav .nav-donate:hover { background: var(--forest-950); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  padding: .58rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest-950);
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  display: grid;
  width: min(19rem, calc(100vw - 2rem));
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.mobile-nav nav a { padding: .7rem .8rem; border-radius: .6rem; }
.mobile-nav nav a:hover { background: var(--cream); }

.eyebrow,
.section-kicker,
.field-label,
.program-number {
  color: var(--clay-600);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow,
.section-kicker { margin-bottom: .85rem; }

.hero-split {
  overflow: hidden;
  background: var(--cream);
}
.hero-split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(25rem, .98fr);
  min-height: 38rem;
  max-width: 1480px;
  margin: 0 auto;
}
.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(1.25rem, 6vw, 6rem);
}
.hero-copy-panel h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(3.15rem, 6.2vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
}
.hero-lede {
  max-width: 39rem;
  margin-bottom: 1.65rem;
  color: #35463b;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}
.hero-image-panel {
  position: relative;
  min-height: 38rem;
  overflow: hidden;
  background: var(--forest-800);
}
.hero-image-panel img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-panel figcaption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: 18rem;
  padding: .72rem .85rem;
  border-radius: .65rem;
  color: var(--white);
  background: rgba(15, 42, 32, .88);
  font-size: .76rem;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.hero-tags span {
  padding: .38rem .7rem;
  border: 1px solid rgba(24, 68, 49, .22);
  border-radius: 999px;
  color: var(--forest-800);
  background: rgba(255, 253, 248, .55);
  font-size: .75rem;
  font-weight: 800;
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 30rem;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--forest-950);
}
.page-hero::before,
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; }
.page-hero::before { background-position: center; background-size: cover; }
.page-hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 42, 32, .97) 0%, rgba(15, 42, 32, .78) 55%, rgba(15, 42, 32, .22));
}
.hero-about::before { background-image: url("/assets/recovered/community-boodle-fight-2025.jpg"); background-position: center 44%; }
.hero-values::before { background-image: url("/assets/Ako-Ang-Saklay-pics-9-copy.webp"); }
.hero-board::before { background-image: url("/assets/Ako-Ang-Saklay-pics-1.jpg"); background-position: center 45%; }
.hero-programs::before { background-image: url("/assets/recovered/program-livelihood.jpg"); }
.hero-support::before { background-image: url("/assets/recovered/bdo-community-aid-2025.jpg"); }
.hero-kaagapay::before { background-image: url("/assets/recovered/disaster-aid-airlift-2025.jpg"); }
.hero-contact::before { background-image: url("/assets/recovered/community-hero-2025.jpg"); }
.page-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
  color: var(--white);
}
.page-hero h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
}
.page-hero .hero-lede { max-width: 43rem; color: rgba(255, 255, 255, .86); }
.page-hero .eyebrow { color: var(--saffron-500); }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--forest-800); }
.button.primary:hover { background: var(--forest-950); }
.button.gold { color: var(--forest-950); background: var(--saffron-500); }
.button.gold:hover { background: #f0b336; }
.button.outline { border-color: var(--forest-800); color: var(--forest-800); background: transparent; }
.button.light-outline { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }

.section { padding: clamp(4rem, 8vw, 7rem) 1.25rem; }
.section.compact { padding-block: 3rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-cream { background: var(--cream); }
.section-forest { color: var(--white); background: var(--forest-950); }
.section-moss { background: var(--moss-100); }
.section h2 {
  max-width: 17ch;
  margin-bottom: 1.25rem;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.section-forest h2 { color: var(--white); }
.section h3 {
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
}
.section-forest h3 { color: var(--white); }
.section-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.prose { max-width: 47rem; }
.prose p { color: var(--muted); }
.prose p:first-child { color: var(--ink); font-size: 1.15rem; }
.section-forest .prose p { color: rgba(255,255,255,.75); }
.section-forest .prose p:first-child { color: var(--white); }

.meaning-quote {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
  text-align: center;
}
.meaning-quote blockquote {
  max-width: 20ch;
  margin-inline: auto;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.08;
}
.meaning-quote cite { color: var(--clay-600); font-style: normal; font-weight: 900; }

.program-preview { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.program-preview article {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
}
.program-preview h3, .program-preview p { margin-bottom: 0; }
.program-preview p { color: var(--muted); }
.program-preview a { color: var(--forest-800); font-weight: 900; text-decoration: none; }
.program-number { color: var(--clay-600); }

.photo-story {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 36rem;
  background: var(--forest-950);
}
.photo-story figure { margin-bottom: 0; overflow: hidden; }
.photo-story img { width: 100%; height: 100%; object-fit: cover; }
.photo-story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem); color: var(--white); }
.photo-story-copy h2 { color: var(--white); }
.photo-story-copy p { color: rgba(255,255,255,.75); }

.trust-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, .6fr);
  gap: 1.5rem;
  align-items: center;
}
.trust-copy strong { display: block; color: var(--forest-950); font-family: var(--display); font-size: 1.55rem; }
.trust-copy span { display: block; color: var(--muted); font-size: .85rem; }
.trust-logo {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1rem;
  border-left: 1px solid var(--line);
}
.trust-logo img { max-width: 9rem; max-height: 4.5rem; object-fit: contain; filter: saturate(.82); }

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.cta-band h2 { max-width: 19ch; margin-bottom: 0; }
.cta-band .button-row { flex: 0 0 auto; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}
.value-tile { min-height: 12rem; padding: 1.15rem .9rem; background: var(--paper); }
.value-letter { display: block; margin-bottom: 1.2rem; color: var(--saffron-500); font-family: var(--display); font-size: 3.5rem; line-height: 1; }
.value-tile strong { color: var(--forest-950); font-size: .82rem; letter-spacing: .02em; }

.program-list { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.program-row:nth-child(even) .program-media { order: 2; }
.program-media { overflow: hidden; border-radius: 1.15rem; box-shadow: var(--shadow); }
.program-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.program-row:hover .program-media img { transform: scale(1.025); }
.program-copy h2 { max-width: 15ch; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.program-copy p { color: var(--muted); }
.program-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.15rem; }
.program-meta span { padding: .32rem .62rem; border-radius: 999px; color: var(--forest-800); background: var(--moss-100); font-size: .72rem; font-weight: 800; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.18);
}
.service-list article { padding: 1.5rem; background: var(--forest-950); }
.service-list p { margin-bottom: 0; color: rgba(255,255,255,.68); }

.board-feature {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.board-feature img { width: 100%; max-height: 36rem; border-radius: 1.2rem; object-fit: cover; box-shadow: var(--shadow); }
.board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}
.board-list li { padding: 1rem 1.1rem; background: var(--paper); font-weight: 800; }

.account-grid,
.contact-grid,
.involvement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.account-panel,
.contact-panel,
.involvement-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}
.account-panel h3, .contact-panel h3, .involvement-panel h3 { margin-bottom: .65rem; }
.account-panel p, .contact-panel p, .involvement-panel p { color: var(--muted); }
.account-number {
  display: block;
  margin-top: .75rem;
  color: var(--forest-950);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: .02em;
}
.notice {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--saffron-500);
  color: #4f4636;
  background: var(--saffron-100);
  font-size: .9rem;
}
.contact-panel a { color: var(--forest-800); font-weight: 800; }
.contact-panel address { font-style: normal; }

.source-links { display: grid; gap: .75rem; padding: 0; list-style: none; }
.source-links a { display: inline-flex; align-items: center; gap: .5rem; color: var(--forest-800); font-weight: 800; }

.legal-copy { max-width: 50rem; margin: 0 auto; }
.legal-copy h2 { margin-top: 2.5rem; font-size: 2rem; }

.site-footer { color: var(--white); background: var(--forest-950); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-logo { width: 4.2rem; height: 4.2rem; border-radius: 50%; object-fit: cover; }
.footer-inner h2 { margin-bottom: .35rem; color: var(--white); font-family: var(--display); font-size: 1.55rem; }
.footer-inner h3 { margin-bottom: .65rem; color: var(--saffron-500); font: 900 .75rem/1.3 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.footer-inner p, .footer-inner address { margin-bottom: 0; color: rgba(255,255,255,.7); font-size: .9rem; font-style: normal; }
.footer-inner a { color: var(--white); }
.footer-links { display: grid; gap: .4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--saffron-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.35rem;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6);
  font-size: .78rem;
}
.footer-bottom a { color: inherit; }

:focus-visible { outline: 3px solid var(--saffron-500); outline-offset: 3px; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-strip { grid-template-columns: 1fr repeat(3, .55fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .utility-bar { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-copy-panel { min-height: 31rem; padding-block: 4rem; }
  .hero-image-panel { min-height: 27rem; }
  .section-intro,
  .photo-story,
  .program-row,
  .board-feature,
  .footer-inner { grid-template-columns: 1fr; }
  .program-row:nth-child(even) .program-media { order: 0; }
  .photo-story-copy { min-height: 28rem; }
  .program-preview article { grid-template-columns: 4rem 1fr; }
  .program-preview article > a { grid-column: 2; }
  .trust-strip { grid-template-columns: 1fr repeat(3, 1fr); }
  .trust-copy { grid-column: 1 / -1; }
  .trust-logo { border-left: 0; border-top: 1px solid var(--line); }
  .cta-band { display: block; }
  .cta-band .button-row { margin-top: 1.5rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 2rem; }
}

@media (max-width: 560px) {
  .nav-shell { padding: .62rem 1rem; }
  .brand img { width: 3rem; height: 3rem; }
  .brand strong { font-size: 1.08rem; }
  .brand small { display: none; }
  .hero-copy-panel h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-image-panel { min-height: 23rem; }
  .page-hero { min-height: 27rem; }
  .page-hero-inner { padding-inline: 1rem; }
  .section { padding-inline: 1rem; }
  .program-preview article { grid-template-columns: 1fr; gap: .4rem; }
  .program-preview article > a { grid-column: 1; }
  .program-number { margin-bottom: .25rem; }
  .values-grid,
  .service-list,
  .board-list,
  .account-grid,
  .contact-grid,
  .involvement-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-logo { min-height: 5.5rem; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
