/* Idi Ezeani Nzekwubuo Foundation — shared styles (on top of Bootstrap 5.3) */
:root {
  --green: #133029;
  --green-2: #1c453a;
  --green-3: #0f2822;
  --cream: #faf8f2;
  --sand: #f2eee2;
  --line: #e2ddcf;
  --gold: #b8893b;
  --gold-d: #9c722b;
  --ink: #15241f;
  --muted: #5d6a64;
  --on-dark: #b9c7bf;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--sans);
  --bs-body-bg: var(--cream);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--gold-d);
  --bs-link-hover-color: var(--gold);
  --bs-border-radius: 2px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.7; font-size: 1rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .navbar-brand .brand-name, .foot-motto { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.container { max-width: 1140px; }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* ---------- header / nav ---------- */
.site-header { background: var(--green); color: #fff; }
.navbar { padding: 1.4rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .85rem; color: #f3efe3; }
.navbar-brand:hover { color: #fff; }
.mark { width: 44px; height: 44px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.08rem; white-space: normal; }
.brand-sub { font-size: .72rem; color: var(--on-dark); font-family: var(--sans); letter-spacing: .02em; }
.navbar .nav-link { color: var(--on-dark); font-size: .88rem; padding: .35rem .9rem !important; border-bottom: 1px solid transparent; margin: 0 .1rem; }
.navbar .nav-link:hover { color: #fff; }
.navbar .nav-link.active { color: #fff; border-bottom-color: var(--gold); }
.navbar-toggler { border-color: rgba(255,255,255,.3); }
@media (max-width: 991.98px) { #mainNav { padding-top: 1rem; } .navbar .nav-link.active { display: inline-block; } }

/* ---------- page hero ---------- */
.page-hero { padding: 3.2rem 0 4.5rem; }
.eyebrow { font-family: var(--serif); color: var(--gold); font-size: .95rem; margin-bottom: .6rem; letter-spacing: .01em; }
.eyebrow.dark { color: var(--gold-d); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #f3efe3; line-height: 1.12; margin-bottom: 1.1rem; }
.lead-text { color: var(--on-dark); max-width: 36rem; font-size: 1.02rem; }

/* ---------- home hero ---------- */
.hero { padding: 3rem 0 3.5rem; }
.display-title { font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: 1.02; color: #f3efe3; margin: .2rem 0 1.4rem; }
.hero .lead-text { font-size: 1.08rem; }
.stats-hero { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.stat-n { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; color: #f3efe3; }
.stat-l { display: block; font-size: .82rem; color: var(--on-dark); margin-top: .5rem; line-height: 1.45; }
.stat-n.dk { color: var(--ink); }
.stat-l.dk { color: var(--muted); }

/* Powered by CIO (hero, right) */
.powered { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); padding: 1.1rem; }
.powered-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; font-size: .78rem; color: var(--on-dark); letter-spacing: .08em; text-transform: uppercase; }
.powered-head a { color: var(--gold); text-decoration: none; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.powered-head a:hover { color: #d4a85c; }
.powered-head i { font-style: normal; }

/* ---------- buttons & links ---------- */
.btn { font-size: .9rem; font-weight: 500; padding: .8rem 1.5rem; border-radius: 2px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1608; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-d); border-color: var(--gold-d); color: #fff; }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold-d); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: #1b1608; border-color: var(--gold); }
.btn-outline-light-soft { border: 1px solid rgba(255,255,255,.3); color: #f3efe3; }
.btn-outline-light-soft:hover { background: rgba(255,255,255,.1); color: #fff; }
.link-gold { color: var(--gold-d); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
.link-gold:hover { border-bottom-color: currentColor; color: var(--gold-d); }
.section-dark .link-gold { color: var(--gold); }
.tbc { border-bottom: 1px dashed var(--gold); text-decoration: none; color: inherit; cursor: help; }
a.tbc:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section-line { border-top: 1px solid var(--line); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--green); color: #fff; }
.section-photo { padding: 3.5rem 0; }
.h-section { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1rem; line-height: 1.2; }
.h-section.light { color: #f3efe3; }
.lead-body { font-size: 1.15rem; line-height: 1.65; }
.muted { color: var(--muted); }
.on-dark { color: var(--on-dark); }
main p { max-width: 42rem; }
.item { border-top: 1px solid var(--line); padding-top: 1.1rem; height: 100%; }
.item h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.item p { font-size: .92rem; color: var(--muted); margin-bottom: .5rem; }
.prog .who { font-size: .78rem; color: var(--gold-d); }

/* ---------- placeholders / images ---------- */
.ph-wrap { margin: 0; }
.ph { position: relative; background: var(--sand); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.ph.r-16x9 { aspect-ratio: 16/9; } .ph.r-4x3 { aspect-ratio: 4/3; } .ph.r-3x4 { aspect-ratio: 3/4; } .ph.r-1x1 { aspect-ratio: 1/1; }
.ph-label { font-size: .74rem; color: var(--muted); text-align: center; padding: 1rem; max-width: 24rem; line-height: 1.45; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-wrap figcaption { font-family: var(--serif); font-size: .85rem; font-weight: 500; margin-top: .6rem; }
.ph-wrap.dark .ph { background: var(--green-2); border-color: rgba(255,255,255,.08); }
.ph-wrap.dark .ph-label { color: var(--on-dark); }
.ph-wrap.dark figcaption { color: #f3efe3; }
.powered .ph-label { font-size: .7rem; padding: .5rem; }
.powered figcaption { font-size: .76rem; line-height: 1.3; }
.section-dark .ph-wrap figcaption { color: #f3efe3; }

/* ---------- chairman message / video ---------- */
.video-card { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.video-card .ph { transition: transform .3s; }
.video-card:hover .ph { transform: scale(1.01); }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: #1b1608; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(184,137,59,.25); transition: box-shadow .25s, background .25s; padding-left: 4px; }
.video-card:hover .play { background: var(--gold-d); color: #fff; box-shadow: 0 0 0 16px rgba(184,137,59,.2); }
.video-tag { display: block; font-size: .8rem; color: var(--muted); margin-top: .7rem; }
.chair-quote { border-left: 2px solid var(--gold); margin: 1.2rem 0 1.6rem; padding: .2rem 0 .2rem 1.3rem; }
.chair-quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; }
.chair-quote p.small { font-family: var(--sans); font-size: .78rem; }
.chair-quote footer strong { display: block; font-family: var(--serif); font-weight: 500; }
.chair-quote footer span { font-size: .82rem; color: var(--gold-d); }
#chairmanModal .modal-content { background: var(--green-3); color: #f3efe3; border: 1px solid rgba(255,255,255,.1); border-radius: 2px; }
#chairmanModal .modal-header { border-bottom: 1px solid rgba(255,255,255,.1); }
#chairmanModal .modal-title { font-size: 1.15rem; }
#chairmanModal video { background: #000; }

/* ---------- about ---------- */
.callout { background: var(--sand); border-left: 3px solid var(--gold); padding: 1.1rem 1.3rem; margin-top: 1.8rem; max-width: 42rem; }
.callout h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.callout p { font-size: .85rem; color: var(--muted); margin: 0; }
.objectives .obj { border: 1px solid var(--line); padding: 1.6rem; height: 100%; margin-left: -1px; }
.objectives .obj h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: .7rem; }
.objectives .obj p:not(.eyebrow) { font-size: .88rem; color: var(--muted); margin: 0; }
.person h3 { font-size: 1.1rem; margin: .9rem 0 .15rem; }
.person .role { font-size: .8rem; color: var(--gold-d); margin-bottom: .5rem; }
.person p:last-child { font-size: .88rem; color: var(--muted); }
.also { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); max-width: none; }

/* ---------- programs ---------- */
.rules li { font-size: .85rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.rules li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- impact ---------- */
.impact-table { --bs-table-bg: transparent; font-size: .9rem; margin-bottom: .8rem; }
.impact-table th { font-weight: 500; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--ink); padding: .8rem .75rem; }
.impact-table td { padding: .9rem .75rem; border-color: var(--line); }
.note { font-size: .78rem; color: var(--muted); max-width: none; }
.timeline .tl-row { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding: 1.6rem 0; }
.tl-date { font-family: var(--serif); color: var(--gold-d); }
.tl-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.tl-body p { font-size: .88rem; color: var(--muted); }
@media (max-width: 575.98px) { .timeline .tl-row { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- facts list (dl) ---------- */
.facts > div { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.facts dt { font-size: .76rem; color: var(--muted); font-weight: 400; }
.facts dd { margin: .1rem 0 0; }

/* ---------- forms ---------- */
.form-label { font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.form-control, .form-select { background-color: var(--cream); border: 1px solid var(--line); border-radius: 2px; padding: .85rem 1rem; font-size: .92rem; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184,137,59,.2); background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: var(--on-dark); padding: 4rem 0 2rem; }
.foot-motto { font-size: 1.7rem; color: #f3efe3; margin-bottom: .6rem; }
.foot-motto span { color: var(--gold); }
.foot-text { font-size: .92rem; }
.foot-h { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: #e7e3d6; margin-bottom: 1rem; }
.foot-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.foot-list li { margin-bottom: .6rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer a.tbc { border-bottom: 1px dashed var(--gold); }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; }
.foot-base a { opacity: .6; }

@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } .hero { padding-top: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- hero image slideshow ---------- */
.hero-carousel .carousel-item .ph { aspect-ratio: 4/3; background: var(--green-2); border-color: rgba(255,255,255,.08); }
.hero-carousel .ph-label { color: var(--on-dark); font-size: .8rem; }
.hero-carousel .carousel-item.active .ph img, .hero-carousel .carousel-item-next .ph img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-carousel .carousel-fade .carousel-item { transition-duration: .9s; }
.hero-carousel .carousel-item { transition: opacity .9s ease; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(transparent, rgba(8,24,20,.85)); color: #f3efe3; font-family: var(--serif); font-size: 1.05rem; }
.hero-carousel .carousel-indicators { margin: 0 0 3.2rem; z-index: 3; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #f3efe3; opacity: .45; margin: 0 4px; }
.hero-carousel .carousel-indicators .active { background: var(--gold); opacity: 1; width: 22px; border-radius: 4px; }
.hero-controls { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; }
.hero-controls .ctl { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #f3efe3; border-radius: 50%; transition: background .2s, border-color .2s; }
.hero-controls .ctl:hover { background: var(--gold); border-color: var(--gold); color: #1b1608; }
.slide-count { margin-left: auto; font-size: .78rem; color: var(--on-dark); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .hero-carousel .carousel-item .ph img { animation: none !important; } }
