/* Owuroola Community Care Foundation — hand-written CSS */

:root {
  --cream: #f8f7f4;
  --marine: #0e2b46;
  --gold: #cea84e;
  --ink: #3a4a57;
  --off: #ede9e2;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--marine); }

button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------- header ---------- */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
#site-header.scrolled, #site-header.menu-open {
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(14, 43, 70, 0.08);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header-inner { padding: 0 32px; } }

.brand { display: flex; align-items: baseline; gap: 10px; text-align: left; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--marine);
  transition: color 0.3s;
}
.brand-sub {
  display: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (min-width: 640px) { .brand-sub { display: inline; } }
@media (min-width: 768px) { .brand-name { font-size: 25px; } }

/* light (over dark hero) state */
#site-header.on-hero:not(.scrolled):not(.menu-open) .brand-name { color: var(--cream); }
#site-header.on-hero:not(.scrolled):not(.menu-open) .nav-link { color: rgba(248,247,244,0.85); }
#site-header.on-hero:not(.scrolled):not(.menu-open) .nav-link:hover { color: var(--cream); }
#site-header.on-hero:not(.scrolled):not(.menu-open) .lang-toggle {
  border-color: rgba(248,247,244,0.4);
  color: var(--cream);
}
#site-header.on-hero:not(.scrolled):not(.menu-open) .lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
#site-header.on-hero:not(.scrolled):not(.menu-open) .menu-btn span { background: var(--cream); }

.desktop-nav { display: none; align-items: center; gap: 32px; }
.mobile-controls { display: flex; align-items: center; gap: 12px; }
@media (min-width: 768px) { .desktop-nav { display: flex; } .mobile-controls { display: none; } }

.nav-link {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 74, 87, 0.75);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--marine); }
.nav-link.active { color: var(--gold); }

.lang-toggle {
  border: 1px solid rgba(14, 43, 70, 0.25);
  color: var(--marine);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

.mobile-controls .lang-toggle { padding: 4px 10px; font-size: 10.5px; }

.menu-btn {
  width: 26px; height: 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-btn span {
  display: block; height: 2px; background: var(--marine);
  transition: transform 0.3s var(--ease), background 0.3s;
}
#site-header.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
#site-header.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(6px);
  transition: max-height 0.35s var(--ease);
}
#site-header.menu-open .mobile-nav { max-height: 220px; }
.mobile-nav-link {
  display: block; width: 100%;
  padding: 13px 20px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 74, 87, 0.85);
}
.mobile-nav-link.active { color: var(--gold); }

/* ---------- shared bits ---------- */

.mini-title { display: flex; align-items: center; gap: 16px; }
.mini-title::before { content: ''; width: 60px; height: 1px; background: var(--gold); flex-shrink: 0; }
.mini-title span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--marine); }
.h-hero { font-size: clamp(36px, 6vw, 74px); line-height: 1.06; }
.h-page { font-size: clamp(36px, 5vw, 60px); line-height: 1.12; }
.h-section { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }

.lead { font-size: 17px; line-height: 1.9; font-weight: 300; color: rgba(58, 74, 87, 0.92); }
@media (min-width: 768px) { .lead { font-size: 17.5px; } }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-gold { background: var(--gold); color: var(--marine); }
.btn-gold:hover { background: var(--cream); }
.btn-outline { border: 1px solid rgba(248,247,244,0.45); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.bg-off { background: var(--off); }
.bg-marine { background: var(--marine); color: var(--cream); }
.bg-marine h1, .bg-marine h2, .bg-marine h3 { color: var(--cream); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* page transitions */
#page-root > .page { animation: pageIn 0.45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 560px;
  height: 100svh;
  background: var(--marine);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: grayscale(1);
  opacity: 0;
}
.hero-slides img.slide-a { animation: kenburns-a 24s ease-in-out infinite; }
.hero-slides img.slide-b { animation: kenburns-b 24s ease-in-out infinite; }
@keyframes kenburns-a {
  0% { transform: scale(1.08) translate(0.8%, 0.6%); opacity: 0; }
  6% { opacity: 1; }
  46% { opacity: 1; }
  56% { opacity: 0; }
  100% { transform: scale(1) translate(0, 0); opacity: 0; }
}
@keyframes kenburns-b {
  0% { transform: scale(1.06) translate(-0.8%, -0.5%); opacity: 0; }
  46% { opacity: 0; }
  56% { opacity: 1; }
  96% { opacity: 1; }
  100% { transform: scale(1) translate(0, 0); opacity: 0; }
}
.hero-shade { position: absolute; inset: 0; background: rgba(14, 43, 70, 0.45); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 66%; background: linear-gradient(to top, rgba(14,43,70,0.9), rgba(14,43,70,0.4), transparent); }

.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 80px; }
@media (min-width: 768px) { .hero-content { padding-bottom: 112px; } }
.hero-content .mini-title { animation: rise 0.8s var(--ease) 0.2s both; }
.hero-title { margin-top: 24px; max-width: 900px; animation: rise 0.8s var(--ease) 0.3s both; }
.hero-tagline {
  margin-top: 24px;
  max-width: 560px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(248, 247, 244, 0.85);
  animation: rise 0.8s var(--ease) 0.4s both;
}
@media (min-width: 768px) { .hero-tagline { font-size: 20px; } }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; animation: rise 0.8s var(--ease) 0.5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-captions {
  position: absolute; bottom: 20px; right: 32px; z-index: 2;
  display: none; gap: 24px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(248, 247, 244, 0.5);
}
@media (min-width: 768px) { .hero-captions { display: flex; } }

/* ---------- story figures ---------- */

.story-figure { display: grid; gap: 40px; align-items: start; }
@media (min-width: 768px) {
  .story-figure { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .story-figure .figure-photo { grid-column: span 5; position: sticky; top: 112px; }
  .story-figure .figure-text { grid-column: span 7; }
  .story-figure.flip .figure-photo { order: 2; }
  .story-figure.flip .figure-text { order: 1; padding-right: 40px; }
  .story-figure:not(.flip) .figure-text { padding-left: 40px; }
}
.figure-photo-wrap { position: relative; }
.figure-photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover; object-position: top;
  filter: grayscale(1);
}
.figure-quote {
  position: relative; z-index: 2;
  margin-top: -64px; margin-left: auto;
  width: 91.6%;
  background: var(--marine);
  border-left: 4px solid var(--gold);
  padding: 24px;
}
@media (min-width: 768px) {
  .figure-quote { position: absolute; bottom: -40px; margin: 0; padding: 28px; }
  .story-figure:not(.flip) .figure-quote { right: -32px; }
  .story-figure.flip .figure-quote { left: -32px; }
}
.figure-quote p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--cream); }
@media (min-width: 768px) { .figure-quote p { font-size: 20px; } }
.figure-quote cite {
  display: block; margin-top: 12px;
  font-style: normal; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.figure-role { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.figure-name { margin-top: 12px; font-size: clamp(26px, 3vw, 36px); }
.figure-body { margin-top: 24px; max-width: 560px; }

.story-closing {
  margin: 96px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(14, 43, 70, 0.85);
}
@media (min-width: 768px) { .story-closing { margin-top: 128px; font-size: 24px; } }

/* ---------- activities ---------- */

.activities-grid { margin-top: 56px; display: grid; }
@media (min-width: 768px) { .activities-grid { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.activity-item { border-top: 1px solid rgba(14, 43, 70, 0.12); padding: 32px 0; display: flex; gap: 16px; align-items: baseline; }
.activity-item::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; background: var(--gold); transform: translateY(-2px); }
.activity-item h3 { font-size: 24px; }
.activity-item p { margin-top: 12px; font-weight: 300; line-height: 1.85; color: rgba(58, 74, 87, 0.88); }

/* ---------- stats ---------- */

.stats-grid { margin-top: 48px; display: grid; gap: 48px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-value { font-family: var(--serif); font-size: 54px; color: var(--gold); line-height: 1; }
@media (min-width: 768px) { .stat-value { font-size: 60px; } }
.stat-label { margin-top: 12px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.7; color: rgba(248, 247, 244, 0.7); }

/* ---------- trustees ---------- */

.page-head { padding-top: 144px; padding-bottom: 80px; }
@media (min-width: 768px) { .page-head { padding-top: 176px; } }
.page-head .lead { margin-top: 32px; max-width: 640px; }

.trustee-grid { display: grid; gap: 0; }
@media (min-width: 768px) { .trustee-grid { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } }
.trustee-card { border-top: 1px solid rgba(14, 43, 70, 0.15); padding: 36px 0; }
.trustee-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--marine); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px;
}
.trustee-card h3 { margin-top: 24px; font-size: 24px; }
.trustee-role { margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.trustee-card .bio { margin-top: 16px; font-weight: 300; line-height: 1.85; color: rgba(58, 74, 87, 0.88); }

.safeguard {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 32px;
}
@media (min-width: 768px) { .safeguard { padding: 48px; } }
.safeguard h2 { font-size: clamp(24px, 3vw, 30px); }
.safeguard p { margin-top: 20px; max-width: 780px; }

/* ---------- involved ---------- */

.ways-grid { margin-top: 48px; display: grid; }
@media (min-width: 768px) { .ways-grid { grid-template-columns: repeat(3, 1fr); column-gap: 48px; } }
.way-card { border-top: 1px solid rgba(14, 43, 70, 0.15); padding: 32px 0; }
.way-card::before { content: ''; display: block; width: 7px; height: 7px; background: var(--gold); }
.way-card h3 { margin-top: 20px; font-size: 24px; line-height: 1.3; }
.way-card p { margin-top: 16px; font-weight: 300; line-height: 1.85; color: rgba(58, 74, 87, 0.88); }

.two-col { display: grid; gap: 56px; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.two-col .lead { margin-top: 24px; }

.gold-bullets { margin-top: 24px; list-style: none; }
.gold-bullets li { position: relative; padding-left: 22px; margin-bottom: 16px; font-weight: 300; line-height: 1.85; color: rgba(58, 74, 87, 0.92); }
.gold-bullets li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--gold); }

.map-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .map-grid { grid-template-columns: 1fr 1fr; } }
.map-caption { margin-top: 24px; font-family: var(--serif); font-size: 24px; line-height: 1.35; color: var(--cream); }
@media (min-width: 768px) { .map-caption { font-size: 30px; } }
.contact-block { margin-top: 40px; }
.contact-block .contact-title { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.contact-block a {
  display: inline-block; margin-top: 12px;
  font-family: var(--serif); font-size: 26px; color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px;
  transition: color 0.3s;
}
.contact-block a:hover { color: var(--gold); }
@media (min-width: 768px) { .contact-block a { font-size: 30px; } }
.map-frame { border: 1px solid rgba(248, 247, 244, 0.2); overflow: hidden; }
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.35); display: block; }

/* ---------- form ---------- */

.interest-form { margin-top: 40px; display: grid; gap: 24px; }
.form-row { display: grid; gap: 24px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(14, 43, 70, 0.7); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(14, 43, 70, 0.2);
  background: #fff;
  padding: 14px 16px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--marine);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
  appearance: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-actions .btn:hover { background: var(--marine); color: var(--cream); }
.form-sent { max-width: 420px; font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(58, 74, 87, 0.85); }

/* ---------- footer ---------- */

footer { background: var(--marine); color: var(--cream); }
.footer-grid {
  max-width: 1152px; margin: 0 auto;
  padding: 56px 20px;
  display: grid; gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); padding: 56px 32px; } }
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-full { margin-top: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.footer-tagline { margin-top: 16px; max-width: 300px; font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(248, 247, 244, 0.7); }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links button {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(248, 247, 244, 0.75); transition: color 0.3s;
}
.footer-links button:hover { color: var(--gold); }
.footer-contact { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(248, 247, 244, 0.7); }
.footer-contact a {
  color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-contact p { margin-top: 8px; }
.footer-note { margin-top: 16px; color: rgba(248, 247, 244, 0.5); }
.footer-bottom {
  max-width: 1152px; margin: 0 auto;
  padding: 24px 20px;
  border-top: 1px solid rgba(248, 247, 244, 0.15);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(248, 247, 244, 0.45);
}
@media (min-width: 768px) { .footer-bottom { padding: 24px 32px; } }

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img.slide-a { animation: none; opacity: 1; }
  .hero-slides img.slide-b { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content .mini-title, .hero-title, .hero-tagline, .hero-ctas { animation: none; }
  #page-root > .page { animation: none; }
}
