/* ── Nsimbi Impact CMS – Frontend Styles ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:     #123299;
  --primary-dk:  #0c2478;
  --primary-lt:  #1e46c4;
  --accent:      #20D959;
  --accent-dk:   #17a844;
  --dark:        #0a0f2e;
  --text:        #1a1f3c;
  --text-muted:  #5a6080;
  --bg:          #f5f7ff;
  --bg-alt:      #eaeffe;
  --white:       #ffffff;
  --border:      rgba(26,107,60,0.15);
  --shadow:      0 4px 24px rgba(13,26,15,0.1);
  --radius:      12px;
  --nav-h:       72px;
  --topbar-h:    38px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── TOPBAR ──────────────────────────────────────────────────────────── */
.topbar {
  background: var(--primary-dk);
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-addr { font-weight: 400; letter-spacing: 0.02em; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  color: rgba(255,255,255,0.65);
  transition: color .2s;
  display: flex; align-items: center;
}
.topbar-social a:hover { color: var(--accent); }

/* ── NAVBAR ──────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.brand img { height: 44px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-alt); }
.nav-links .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: 50px;
}
.nav-links .nav-cta:hover { background: var(--primary-lt); color: #fff; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .3s;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-lt); border-color: var(--primary-lt); transform: translateY(-1px); }
.btn-accent   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-green { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-green:hover { background: var(--primary); color: #fff; }

/* ── HERO SLIDER ─────────────────────────────────────────────────────── */
.hero { position: relative; height: calc(100vh - var(--nav-h) - var(--topbar-h)); min-height: 520px; overflow: hidden; }
.hero-fallback { height: 100%; background: linear-gradient(135deg, var(--primary-dk), var(--primary)); display: flex; align-items: center; justify-content: center; }

.slider { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(0,0,0,0.5));
  z-index: 1;
}
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}
.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: slideUp .8s ease both;
}
.slide.active .slide-title { animation: slideUp .9s .1s ease both; }
.slide.active .slide-subtitle { animation: slideUp .9s .25s ease both; }
.slide.active .slide-btns { animation: slideUp .9s .4s ease both; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 580px;
  margin-bottom: 32px;
  opacity: .9;
  font-weight: 300;
}
.slide-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all .25s;
}
.dot.active { background: #fff; border-color: #fff; width: 28px; border-radius: 5px; }

/* ── SECTIONS COMMON ─────────────────────────────────────────────────── */
.section { padding: 90px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26,107,60,0.1);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,.8); background: rgba(255,255,255,.15); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 32px;
}
.section-title.light { color: #fff; }

/* ── OVERVIEW ────────────────────────────────────────────────────────── */
.overview { background: var(--bg); }
.overview .container { display: grid; grid-template-columns: 1fr; gap: 32px; }
.overview-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 780px;
}
.overview-img {
  width: 100%;
  max-width: 780px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── MISSION & VISION ────────────────────────────────────────────────── */
.mission-vision {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, var(--primary-lt) 100%);
  position: relative;
  overflow: hidden;
}
.mission-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.mv-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 36px 32px;
  color: #fff;
  transition: transform .3s;
}
.mv-card:hover { transform: translateY(-6px); }
.mv-icon { font-size: 2.5rem; margin-bottom: 16px; }
.mv-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
}
.mv-card p { font-size: 1rem; line-height: 1.7; opacity: .88; }

/* ── APPROACH ────────────────────────────────────────────────────────── */
.approach { background: var(--bg-alt); }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}
.approach-divider { width: 1px; background: var(--border); margin: 0 16px; }
.approach-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 600;
}
.approach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.approach-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.approach-dot.accent { background: var(--accent); }

/* ── IMPACT ──────────────────────────────────────────────────────────── */
.impact-section {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}
.impact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(26,107,60,0.35) 0%, transparent 70%);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
.impact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  transition: all .3s;
}
.impact-card:hover {
  background: rgba(26,107,60,.3);
  border-color: var(--primary-lt);
  transform: translateY(-6px);
}
.impact-icon { font-size: 2.8rem; margin-bottom: 16px; }
.impact-card p { font-size: 1rem; line-height: 1.6; opacity: .85; font-weight: 500; }

/* ── NEWSLETTER ──────────────────────────────────────────────────────── */
.newsletter-section { background: var(--primary); padding: 72px 0; }
.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nl-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: #fff;
  font-weight: 700;
}
.nl-content p { color: rgba(255,255,255,.75); margin-top: 6px; }
.nl-form { display: flex; gap: 0; flex: 1; min-width: 280px; max-width: 480px; }
.nl-form input {
  flex: 1;
  padding: 13px 20px;
  border: none;
  border-radius: 50px 0 0 50px;
  font-size: 14.5px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.55); }
.nl-form .btn { border-radius: 0 50px 50px 0; background: var(--accent); border-color: var(--accent); }
.nl-form .btn:hover { background: var(--accent-dk); }
.nl-msg { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 14px; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}
.footer-link {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-link:hover { color: var(--primary); }
.footer-info { font-size: 13.5px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-divider { display: none; }
  .newsletter-inner { flex-direction: column; }
  .nl-form { max-width: 100%; width: 100%; }
  .hero { height: calc(100svh - var(--nav-h) - var(--topbar-h)); }
}
