/* =========================================================
   RUWOYSI — Rural Women and Youths Orphanage Support Initiative
   Design tokens
   ========================================================= */
:root {
  --cream:        #F7F2E9;
  --cream-dark:   #ECE3D1;
  --green-deep:   #16300F;
  --green:        #2E6B30;
  --green-soft:   #E7EFE3;
  --gold:         #C97B00;
  --gold-bright:  #F2A91E;
  --gold-light:   #FBE6BE;
  --ink:          #221E15;
  --white:        #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "Work Sans", "Segoe UI", sans-serif;

  --max-w: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(22, 48, 15, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-deep);
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #3c3826;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(201, 123, 0, 0.7);
}
.btn-gold:hover { background: #b56f00; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green);
  color: var(--green-deep);
}
.btn-outline-dark:hover { background: var(--green-soft); }

.btn-green {
  background: var(--green-deep);
  color: var(--cream);
}
.btn-green:hover { background: #0f230b; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,48,15,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.94rem;
}
.main-nav a.nav-link {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
}
.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after { width: 100%; }
.main-nav a.nav-link.active { color: var(--green-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .main-nav ul {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(22,48,15,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
  }
  .main-nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul li { padding: 12px 0; border-bottom: 1px solid rgba(22,48,15,0.06); }
  .nav-toggle { display: block; }
  .nav-donate { padding: 14px 0 4px; border-bottom: none !important; }
  .nav-donate .btn { display: inline-flex; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,38,14,0.25) 0%, rgba(16,28,11,0.65) 65%, rgba(11,20,8,0.92) 100%);
}
.hero-inner {
  position: relative;
  padding: 90px 0 64px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  min-height: 46vh;
  align-items: center;
}
.page-hero .hero-inner { padding: 130px 0 48px; }

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--green-deep);
  color: var(--cream);
  padding: 56px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat-grid div { text-align: left; border-left: 2px solid var(--gold); padding-left: 16px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold-bright);
  display: block;
  font-weight: 600;
}
.stat-label {
  font-size: 0.86rem;
  color: rgba(247,242,233,0.78);
  margin-top: 4px;
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--cream-dark); }
.section-deep { background: var(--green-deep); color: var(--cream); }
.section-deep h2, .section-deep h3 { color: var(--cream); }
.section-deep .eyebrow { color: var(--gold-bright); }
.section-deep .eyebrow::before { background: var(--gold-bright); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
.split img, .media-frame img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.2;
}

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.prog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(22,48,15,0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prog-card .thumb { height: 170px; overflow: hidden; }
.prog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.prog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.prog-card p { font-size: 0.92rem; color: #4a4534; flex: 1; }
.prog-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ---------- Map / reach section ---------- */
.reach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; } }
.ng-map { width: 100%; max-width: 460px; margin: 0 auto; }
.ng-map svg { width: 100%; height: auto; }
.ng-marker circle { fill: var(--gold-bright); stroke: var(--cream); stroke-width: 3; }
.ng-marker text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--cream);
}
.office-list { display: grid; gap: 18px; margin-top: 22px; }
.office-list .office { display: flex; gap: 14px; }
.office-dot {
  flex: none;
  width: 10px; height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
}
.office h4 { margin: 0 0 2px; color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; }
.office p { margin: 0; color: rgba(247,242,233,0.78); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery a { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Trust / partner band ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
}
.trust-strip .reg {
  font-size: 0.85rem;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}
.wordmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #5b5640;
}

/* ---------- Donate CTA ---------- */
.donate-cta {
  background: var(--gold-light);
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .donate-cta { grid-template-columns: 1fr; padding: 36px 26px; } }
.donate-cta h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.donate-actions { display: grid; gap: 12px; }
.donate-note { font-size: 0.82rem; color: #6a5a2e; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(247,242,233,0.85);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer .brand-text strong { color: var(--cream); }
.site-footer .brand-text span { color: var(--gold-bright); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(247,242,233,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(247,242,233,0.55);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc page bits ---------- */
.values-grid, .obj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .values-grid, .obj-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .values-grid, .obj-grid { grid-template-columns: 1fr; } }
.value-card, .obj-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 14px 30px -24px rgba(22,48,15,0.4);
}
.value-card h3 { font-size: 1.05rem; }
.value-card .num { font-family: var(--font-display); color: var(--gold); font-size: 1.6rem; display: block; margin-bottom: 6px; }

.timeline { display: grid; gap: 28px; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(22,48,15,0.1);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year { font-family: var(--font-display); color: var(--green); font-size: 1.2rem; font-weight: 600; }
.timeline-item .funder {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
@media (max-width: 700px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.office-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px -24px rgba(22,48,15,0.4);
}
.office-card h4 { margin: 0 0 6px; color: var(--green-deep); }
.office-card p { margin: 0; font-size: 0.92rem; color: #4a4534; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--green-deep); }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1.5px solid rgba(22,48,15,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Leadership ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leader-grid { grid-template-columns: 1fr; } }
.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px -24px rgba(22,48,15,0.4);
  text-align: center;
}
.leader-card .photo { aspect-ratio: 4/4.6; overflow: hidden; }
.leader-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card .info { padding: 18px 16px 22px; }
.leader-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.leader-card .role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.leader-card .creds { font-size: 0.8rem; color: #5b5640; margin: 0; }

/* ---------- ED message ---------- */
.ed-message {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -24px rgba(22,48,15,0.4);
  padding: 44px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .ed-message { grid-template-columns: 1fr; padding: 30px 24px; } }
.ed-message .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.6; }
.ed-message .photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-message blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--green-deep);
  line-height: 1.5;
}
.ed-message .signee { font-weight: 700; color: var(--green-deep); }
.ed-message .signee span { display: block; font-weight: 500; font-size: 0.82rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- Social icons ---------- */
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,242,233,0.1);
  border: 1px solid rgba(247,242,233,0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}
.social-row a:hover { background: var(--gold); transform: translateY(-2px); border-color: var(--gold); }
.social-row svg { width: 17px; height: 17px; fill: var(--cream); }

/* ---------- Single donate CTA (WhatsApp only) ---------- */
.donate-single {
  background: var(--gold-light);
  border-radius: 22px;
  padding: 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.donate-single .btn { margin-top: 22px; }

/* ---------- Success stories ---------- */
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.story-meta span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 6px 14px;
  border-radius: 999px;
}
.section-deep .story-meta span {
  background: rgba(247,242,233,0.12);
  color: var(--cream);
}
.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 26px 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--green-deep);
  line-height: 1.5;
}
.section-deep .pull-quote {
  color: var(--cream);
  border-color: var(--gold-bright);
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.result-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
@media (max-width: 760px) { .result-row { grid-template-columns: 1fr; } }
.result-row .value-card { padding: 20px 18px; }
.result-row .value-card .num { font-size: 1.5rem; }

/* ---------- Result-row text fix (was inheriting white text on white card) ---------- */
.result-row .value-card p {
  color: #4a4534;
}

/* ---------- Full organogram image ---------- */
.org-chart-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 36px;
}
.org-chart-image img {
  width: 100%;
  height: auto;
  display: block;
}
