/* =============================================
   NIGERIA MILLET INITIATIVE — Global Styles v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --forest:    #1b3a20;
  --emerald:   #2c6b35;
  --moss:      #4a8c52;
  --sage:      #a8c5a0;
  --gold:      #c9973b;
  --gold-lt:   #e8b96a;
  --ivory:     #faf8f2;
  --cream:     #f2ede0;
  --charcoal:  #1e2820;
  --muted:     #5a6b5c;
  --border:    #dde8dc;
  --white:     #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; line-height: 1.15; }

.py-section { padding: 5.5rem 0; }
.text-gold    { color: var(--gold) !important; }
.text-emerald { color: var(--emerald) !important; }

/* ======= NAVBAR ======= */
#mainNav {
  background: transparent;
  padding: 1rem 0;
  transition: background .35s, padding .35s, box-shadow .35s;
  z-index: 1050;
}
#mainNav.scrolled {
  background: var(--forest) !important;
  padding: .5rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
#mainNav .navbar-brand img { transition: height .3s; }
#mainNav.scrolled .navbar-brand img { height: 50px !important; }

#mainNav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .85rem !important;
  position: relative;
  transition: color .2s;
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: .85rem; right: .85rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: left;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold-lt) !important; }

#mainNav .dropdown-menu {
  background: var(--forest);
  border: 1px solid rgba(201,151,59,.25);
  border-radius: 10px;
  padding: .5rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  margin-top: .75rem;
}
#mainNav .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  padding: .6rem 1.4rem;
  transition: background .2s, color .2s;
}
#mainNav .dropdown-item:hover { background: rgba(201,151,59,.18); color: var(--gold-lt); }

.navbar-toggler { border: 1px solid rgba(255,255,255,.35); padding: .4rem .6rem; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ======= SECTION LABELS ======= */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: .85rem;
}
.sec-tag::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.sec-title span { color: var(--emerald); }

/* ======= BUTTONS ======= */
.btn-nmi {
  background: var(--gold); color: var(--forest);
  font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  border: none; border-radius: 6px; padding: .85rem 2rem;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-nmi:hover { background: var(--gold-lt); color: var(--forest); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,151,59,.35); }

.btn-nmi-ghost {
  background: transparent; color: rgba(255,255,255,.88);
  font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 6px; padding: .85rem 2rem;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-nmi-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); transform: translateY(-2px); }

.btn-nmi-outline {
  background: transparent; color: var(--emerald);
  font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--emerald); border-radius: 6px; padding: .75rem 1.8rem;
  transition: background .2s, color .2s, transform .15s;
}
.btn-nmi-outline:hover { background: var(--emerald); color: #fff; transform: translateY(-2px); }

/* ======= HERO ======= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,28,14,.95) 0%, rgba(27,58,32,.82) 50%, rgba(44,107,53,.6) 100%);
}
.hero-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,151,59,.4); padding: .4rem 1rem; border-radius: 40px;
  margin-bottom: 1.5rem;
  animation: fadeUp .7s ease both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700;
  color: var(--white); line-height: 1.05; margin-bottom: 1.5rem;
  animation: fadeUp .7s .15s ease both;
}
.hero-title span { color: var(--gold-lt); }
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.72); line-height: 1.8;
  max-width: 520px; margin-bottom: 2.5rem;
  animation: fadeUp .7s .3s ease both;
}
.hero-btns { animation: fadeUp .7s .45s ease both; }
.hero-logo-wrap {
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp .8s .2s ease both;
}
.hero-logo-wrap img {
  width: 360px; max-width: 100%;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.55));
  animation: levitate 5s ease-in-out infinite;
}
@keyframes levitate {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-18px) rotate(1deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.45); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  animation: fadeIn 1.5s 1s ease both;
}
.hero-scroll .line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ======= STAT BAR ======= */
.stat-bar { background: var(--forest); padding: 2.5rem 0; }
.stat-item { text-align: center; padding: .5rem 1.5rem; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold-lt); display: block; line-height: 1; }
.stat-label { font-size: .74rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; margin-top: .4rem; }

/* ======= IMAGE CARDS / BLOCKS ======= */
.img-card {
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  transition: transform .3s, box-shadow .3s;
}
.img-card:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(0,0,0,.18); }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.img-card:hover img { transform: scale(1.05); }
.img-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(12,28,14,.85));
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
}
.img-card-overlay h5 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.img-card-overlay p { font-size: .82rem; opacity: .8; margin: 0; }

/* ======= PHOTO GRID ======= */
.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; border-radius: 16px; overflow: hidden; }
.photo-mosaic .main-photo { grid-row: 1 / 3; }
.photo-mosaic .photo-item { overflow: hidden; }
.photo-mosaic .photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-mosaic .photo-item:hover img { transform: scale(1.07); }

/* ======= FEAT CARDS ======= */
.feat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem; height: 100%;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,58,32,.1); border-color: var(--moss); }
.feat-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; margin-bottom: 1.25rem;
}
.feat-card h6 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--charcoal); margin-bottom: .5rem; }

/* ======= SDG CARDS ======= */
.sdg-wrap { background: var(--cream); }
.sdg-card {
  border-radius: 16px; padding: 2.2rem 2rem; height: 100%;
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.sdg-card::before {
  content: attr(data-num);
  position: absolute; right: -.5rem; bottom: -1rem;
  font-family: 'Cormorant Garamond', serif; font-size: 7rem; font-weight: 700;
  opacity: .07; line-height: 1; color: var(--charcoal);
}
.sdg-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.sdg-1 { background: #fff8e8; border-left: 5px solid #e6a01a; }
.sdg-2 { background: #edf7ed; border-left: 5px solid var(--emerald); }
.sdg-3 { background: #e6f2fc; border-left: 5px solid #2278c5; }
.sdg-badge {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 40px; margin-bottom: 1rem;
}
.sdg-1 .sdg-badge { background: #fdecc5; color: #8b6000; }
.sdg-2 .sdg-badge { background: #c5eac8; color: #1b5e20; }
.sdg-3 .sdg-badge { background: #c5dff5; color: #0a3d7a; }

/* ======= IMPACT IMAGE STRIP ======= */
.impact-strip { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.impact-strip::-webkit-scrollbar { display: none; }
.impact-photo {
  flex: 0 0 260px; height: 340px;
  border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.impact-photo:hover img { transform: scale(1.07); }
.impact-photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(12,28,14,.9));
  padding: 2.5rem 1.2rem 1.2rem;
  color: #fff; font-size: .82rem; font-weight: 500;
}

/* ======= QUOTE / PULL QUOTE ======= */
.pull-quote {
  background: var(--forest);
  border-radius: 16px; padding: 3rem;
  position: relative; overflow: hidden;
}
.pull-quote::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 10rem; font-weight: 700;
  color: rgba(201,151,59,.15);
  position: absolute; top: -1rem; left: 1.5rem;
  line-height: 1;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic; color: var(--white);
  line-height: 1.6; position: relative; z-index: 1;
}
.pull-quote cite { display: block; font-size: .85rem; color: var(--gold-lt); margin-top: 1rem; font-style: normal; font-family: 'DM Sans', sans-serif; }

/* ======= PARTNER PILLS ======= */
.partner-pill {
  background: var(--white); border: 1px solid var(--border); border-radius: 60px;
  padding: 1rem 2rem; font-weight: 700; font-size: .88rem; color: var(--forest);
  text-align: center;
  transition: box-shadow .25s, transform .2s, border-color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.partner-pill:hover { box-shadow: 0 10px 28px rgba(27,58,32,.13); transform: translateY(-3px); border-color: var(--moss); }

/* ======= CTA BANNER ======= */
.cta-banner { background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%); position: relative; overflow: hidden; }
.cta-banner::after {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,151,59,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* ======= PAGE HEADER ======= */
.page-hdr {
  padding: 9rem 0 4.5rem;
  position: relative; overflow: hidden;
}
.page-hdr-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.25) saturate(.6);
}
.page-hdr-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(12,28,14,.9) 0%, rgba(44,107,53,.75) 100%);
}
.page-hdr h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); }

.breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; }
.breadcrumb-item a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .85rem; }
.breadcrumb-item a:hover { color: var(--gold-lt); }
.breadcrumb-item.active { color: var(--gold-lt); font-size: .85rem; }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ======= SERVICE CARDS ======= */
.svc-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 0;
  background: var(--white); height: 100%;
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(27,58,32,.13); }
.svc-card-img { height: 200px; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card-img img { transform: scale(1.07); }
.svc-card-body { padding: 2rem; }
.svc-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; margin-bottom: 1rem;
}
.svc-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--charcoal); margin-bottom: .75rem; }
.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li {
  padding: .4rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
  display: flex; align-items: center; gap: .6rem;
}
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before { content: '✦'; color: var(--gold); font-size: .6rem; flex-shrink: 0; }

/* ======= MISSION BLOCKS ======= */
.mission-block {
  background: var(--ivory); border-left: 4px solid var(--emerald); border-radius: 12px;
  padding: 2rem 2.5rem; height: 100%;
  transition: box-shadow .3s, transform .3s;
}
.mission-block:hover { box-shadow: 0 14px 40px rgba(27,58,32,.1); transform: translateY(-4px); }
.mission-block.gold-border { border-left-color: var(--gold); }
.mission-block.blue-border { border-left-color: #2278c5; }
.m-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; margin-bottom: 1.25rem;
}
.m-icon.gold-bg { background: linear-gradient(135deg, var(--gold), #96700f); }
.m-icon.blue-bg { background: linear-gradient(135deg, #2278c5, #0d4a8a); }

/* ======= EXCO CARDS ======= */
.exco-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--white); height: 100%;
  transition: transform .3s, box-shadow .3s;
}
.exco-card:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(27,58,32,.13); }
.exco-top {
  background: linear-gradient(160deg, var(--forest) 0%, var(--emerald) 100%);
  padding: 2.5rem 1.5rem 1.5rem; text-align: center; position: relative;
}
.exco-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 3px solid rgba(201,151,59,.6);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; font-size: 2.2rem; color: rgba(255,255,255,.8);
}
.exco-role { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: .25rem; }
.exco-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.exco-body { padding: 1.5rem; text-align: center; }
.exco-body p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ======= CONTACT ======= */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.c-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.form-label { font-size: .83rem; font-weight: 700; color: var(--charcoal); letter-spacing: .05em; text-transform: uppercase; }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: .75rem 1rem; font-size: .95rem;
  background: var(--ivory); color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--emerald); background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,107,53,.12); outline: none;
}

/* ======= FOOTER ======= */
.site-footer { background: var(--forest); }
.footer-heading { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold-lt); }
.footer-divider { border-color: rgba(255,255,255,.08); }

/* ======= FULL-WIDTH IMAGE DIVIDERS ======= */
.img-divider {
  height: 420px; position: relative; overflow: hidden;
}
.img-divider img { width: 100%; height: 100%; object-fit: cover; }
.img-divider-overlay {
  position: absolute; inset: 0;
  background: rgba(12,28,14,.55);
  display: flex; align-items: center; justify-content: center;
}
.img-divider-text {
  text-align: center; color: #fff; max-width: 700px; padding: 0 2rem;
}
.img-divider-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: #fff; }

/* ======= NUMBERED STEPS ======= */
.step-num {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--emerald), var(--forest));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700;
  color: #fff; margin: 0 auto 1rem;
}
.step-num.gold { background: linear-gradient(135deg, var(--gold), #86620e); }

/* ======= RESPONSIVE ======= */
@media (max-width: 991.98px) {
  #mainNav { background: var(--forest) !important; padding: .6rem 0 !important; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-logo-wrap img { width: 240px; }
  .page-hdr { padding: 7rem 0 3.5rem; }
  .photo-mosaic { grid-template-rows: 180px 180px; }
  .impact-photo { flex: 0 0 220px; height: 280px; }
}
@media (max-width: 767.98px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 1rem; }
  .stat-item:last-child { border-bottom: none; }
  .hero-logo-wrap { margin-top: 2.5rem; }
  .hero-logo-wrap img { width: 200px; }
  .photo-mosaic { grid-template-columns: 1fr; grid-template-rows: 240px 180px 180px; }
  .photo-mosaic .main-photo { grid-row: 1; }
  .img-divider { height: 300px; }
  .pull-quote { padding: 2rem 1.5rem; }
  .pull-quote::before { font-size: 6rem; }
}
