/* Seeds of Hope Nigeria: site styles. Mobile-first, no framework. */
:root {
  /* Seeds of Hope brand: their green donate buttons, darker green and navy from the old site's palette */
  --green: #3e7745;
  --green-dark: #24492a;
  --green-soft: #e7f2e8;
  --gold: #5db267;       /* primary call to action (their "Give Now" green) */
  --gold-dark: #3e7745;
  --navy: #154063;
  --cream: #f8f7f3;
  --ink: #303030;
  --muted: #5f645f;
  --line: #e1e3dc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 63, 40, .10);
  --max: 1120px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Preview ribbon */
.ribbon { background: var(--green-dark); color: #f3efe2; font-size: .85rem; text-align: center; padding: 7px 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-dark); }
.brand img { height: 48px; width: auto; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--green-dark); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.site-nav li a { display: block; padding: 11px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav li a[aria-current="page"] { color: var(--green); font-weight: 700; }
.site-nav .btn { margin-top: 14px; width: 100%; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav li a { border: 0; padding: 8px 11px; border-radius: 8px; font-size: .95rem; }
  .site-nav li a:hover { background: var(--green-soft); }
  .site-nav .btn { margin: 0 0 0 8px; width: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-dark); overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lead { font-size: 1.18rem; max-width: 46ch; color: #f4f1e8; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #a6d9ac; margin-bottom: 14px; }
.page-hero .eyebrow { color: var(--green); }
.page-hero { background: var(--green-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 44px; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.prose { max-width: 70ch; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--green); }
.card time { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

/* Children grid */
.kids { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kids { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .kids { grid-template-columns: repeat(4, 1fr); } }
.kid { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); text-align: center; }
.kid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.kid span { display: block; padding: 12px 10px 14px; font-weight: 600; font-family: var(--serif); color: var(--green-dark); }
.kid:hover { box-shadow: var(--shadow); }
.child-note { border-left-color: var(--gold); }
.child-note[hidden], .note[hidden], #child-note [hidden] { display: none; }
/* children who already have a sponsor: soft-blurred photo with a band across it */
.kid-pic { position: relative; overflow: hidden; display: block; }
.kid-pic img { display: block; }
.kid-pic.is-sponsored img { filter: blur(7px) saturate(.65); transform: scale(1.1); opacity: .9; }
.kid-pic .ribbon { position: absolute; left: -15%; right: -15%; top: 50%; transform: translateY(-50%) rotate(-12deg);
  background: rgba(36, 73, 42, .9); color: var(--white); font-family: var(--serif); font-weight: 700;
  font-size: clamp(.85rem, 2.4vw, 1.1rem); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  padding: 9px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.profile .kid-pic { border-radius: var(--radius); }
.kid.sponsored span { color: var(--muted); }
.profile { display: grid; gap: 32px; }
@media (min-width: 820px) { .profile { grid-template-columns: 340px 1fr; align-items: start; } }
.profile img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }

/* Callout band */
.band { background: var(--green); color: #fff; }
.band .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .band .wrap { grid-template-columns: 1.6fr 1fr; } .band .btn-row { justify-content: flex-end; } }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { color: #e7efe4; margin: 0; }

/* Giving options */
.give { display: grid; gap: 20px; }
@media (min-width: 860px) { .give { grid-template-columns: repeat(3, 1fr); } }
.give .card .card-body { padding: 24px; }
.give address { font-style: normal; }

/* Gallery inside posts/pages */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 1.4em 0; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* News list */
.post-meta { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--green-dark); color: #d9e3d5; font-size: .95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: grid; gap: 32px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .85rem; color: #b9c7b4; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Additions */
.hero { min-height: 520px; display: flex; align-items: center; }
.hero h1 { color: #fff; }
.page-hero.photo { position: relative; color: #fff; background: var(--navy); border: 0; }
.page-hero.photo img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.page-hero.photo .wrap { position: relative; padding-top: 96px; padding-bottom: 72px; }
.page-hero.photo h1 { color: #fff; }
.page-hero.photo p { color: #eef1ec; }
.quote { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.5; color: var(--navy); max-width: 40ch; margin: 0 auto; text-align: center; }
.quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); font-weight: 600; }
.vm { display: grid; gap: 20px; }
@media (min-width: 760px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm .card .card-body { padding: 26px; }
.people { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .people { grid-template-columns: repeat(4, 1fr); } }
.people .card img { aspect-ratio: 1 / 1; }
.note { background: var(--green-soft); border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 8px; color: var(--ink); }
.warn { background: #fff4e5; border-left: 4px solid #d98a1b; padding: 12px 16px; border-radius: 8px; }
.list-check { padding-left: 1.2em; }
.list-check li { margin-bottom: .35em; }
.pagenums { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagenums a, .pagenums span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; background: var(--white); }
.pagenums span { background: var(--green); color: #fff; border-color: var(--green); }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.dbox { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.brand img { height: 52px; }
.dbox { overflow: hidden; max-width: 100%; }
.dbox dbox-widget, .dbox iframe { max-width: 100% !important; width: 100% !important; }
.brand img { height: 58px; width: auto; }
@media (max-width: 560px) { .brand img { height: 46px; } }
/* new horizontal logo */
.brand img { height: 56px; width: auto; }
@media (max-width: 560px) { .brand img { height: 44px; } }
.site-footer img { height: 48px; width: auto; }

.site-nav li a { white-space: nowrap; }
@media (min-width: 1100px) {
  .site-header .wrap { max-width: 1240px; }
  .site-nav ul { gap: 0; }
  .site-nav li a { padding: 8px 9px; font-size: .93rem; }
}

.site-nav li a.btn-gold, .site-nav li a.btn-gold:hover { color: #fff; }
