/* Njia Empowerment Organisation - site-wide brand layer.
   Palette taken from the logo: gold, black, teal, sunshine yellow. Loaded after each page's own CSS. */
:root {
  --gold: #fb6d04;
  --gold-light: #ff9a4d;
  --gold-deep: #c85400;      /* gold that is readable as text on white */
  --black: #123a41;
  --teal: #c85400;
  --teal-dark: #123a41;
  --cream: #fff6ed;

  /* page-level variables used by the older inline styles */
  --primary-color: #123a41;
  --secondary-color: #c85400;
  --accent-color: #fb6d04;

  /* variables used by home.css */
  --blue: #123a41;
  --navy: #123a41;
  --green: #c85400;
  --green-dark: #123a41;
  --green-bright: #ff9a4d;
  --ink: #17303a;
  --muted: #4f666e;
  --line: #d7e6e7;
  --soft: #f3f9f9;
}

* { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

/* =====================================================
   Phone-fit foundations (stop sideways scroll + overflow)
   ===================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body { color: var(--ink); }
body.nav-open { overflow: hidden; }
img, video, iframe, embed, object, table { max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, label, blockquote, figcaption, button {
  overflow-wrap: break-word; word-wrap: break-word;
}
a[href^="mailto:"], a[href^="tel:"], .footer-col p, .footer-links a, .contact-details, .info-card p, .info-card a { overflow-wrap: anywhere; }
[class*="grid"] > *, .footer-content > *, .header-container > *, .hero-btns > *, .cta-buttons > * { min-width: 0; }
.btn, .h-btn, .donate-btn { white-space: normal; text-align: center; }
.section-title h2 { color: var(--black); font-size: clamp(1.6rem, 5.4vw, 2.4rem); line-height: 1.2; }
.section-title p { max-width: 100%; }
.stat-number, .impact-number { font-size: clamp(2.1rem, 8vw, 3rem); }

/* =====================================================
   Header + logo
   ===================================================== */
header { background: #fff; color: var(--ink); padding: 10px 0; border-bottom: 3px solid var(--gold); box-shadow: 0 2px 16px rgba(0, 0, 0, .08); }
header.neo-scrolled { background: rgba(255, 255, 255, .95); padding: 6px 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); }
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; font-size: 1rem; color: var(--black); }
.logo .logo-img { height: 48px; width: auto; flex: 0 0 auto; display: block; transition: height .3s ease; }
header.neo-scrolled .logo .logo-img { height: 42px; }
.logo .logo-text { display: flex; flex-direction: column; line-height: 1; font-size: 1.5rem; font-weight: 800; letter-spacing: -.4px; color: var(--black); margin: 0; min-width: 0; }
.logo .logo-text small { display: block; margin-top: 5px; font-size: .56rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }

.nav-link { color: var(--ink); font-weight: 600; font-size: .94rem; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-current, .nav-link.active { color: var(--gold-deep); background: transparent; }
.nav-link i { color: inherit; }
@media (min-width: 1100px) {
  .nav-link:not(.donate-btn)::after { background: var(--gold); height: 3px; border-radius: 2px; }
  .nav-link.is-current::after { width: 100%; left: 0; }
}
.dropdown { background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 16px 36px rgba(0, 0, 0, .16); }
.dropdown-item { color: var(--ink); }
.dropdown-item:hover { background: var(--cream); color: var(--gold-deep); }
.donate-btn, .nav-menu .donate-btn { background: var(--gold); color: var(--black); border-radius: 8px; font-weight: 800; padding: 10px 22px; box-shadow: 0 4px 12px rgba(251, 109, 4, .35); }
.donate-btn:hover, .nav-menu .donate-btn:hover { background: var(--black); color: var(--gold); transform: translateY(-2px); }
.hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger-line { background: var(--black); }
.hamburger.active .hamburger-line { background: var(--gold-deep); }

/* medium widths: keep the full menu on one line */
@media (min-width: 1100px) and (max-width: 1239px) {
  .logo .logo-text small { display: none; }
  .nav-menu li { margin-left: 14px; }
  .nav-link { font-size: .88rem; }
  .donate-btn, .nav-menu .donate-btn { padding: 9px 14px; }
}

/* phone menu */
@media (max-width: 1099px) {
  .logo .logo-img { height: 42px; }
  .logo .logo-text { font-size: 1.25rem; }
  .logo .logo-text small { font-size: .5rem; letter-spacing: .11em; }
  .nav-menu { background: #fff; top: 0; right: 0; width: min(86%, 340px); height: 100vh; height: 100dvh; padding: 92px 20px 32px; z-index: 999; gap: 6px; overflow-y: auto; overscroll-behavior: contain; box-shadow: -10px 0 30px rgba(0, 0, 0, .22); border-left: 4px solid var(--gold); }
  .nav-menu:not(.active) { visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
  .nav-menu li { margin-left: 0; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; margin-top: 10px; }
  .nav-link { color: var(--ink); padding: 14px 4px; font-size: 1rem; justify-content: space-between; }
  .nav-link:hover { background: var(--cream); }
  .dropdown { background: var(--cream); border-top: 0; border-radius: 10px; margin: 0 0 10px; }
  .dropdown-item { color: var(--ink); padding: 12px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .nav-menu .donate-btn { display: flex; justify-content: center; width: 100%; padding: 14px; }
}
@media (max-width: 360px) {
  .logo .logo-text { font-size: 1.1rem; }
  .logo .logo-text small { letter-spacing: .06em; }
  .logo .logo-img { height: 38px; }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn { background: var(--gold); color: var(--black); border-radius: 8px; font-weight: 700; }
.btn:hover { background: var(--black); color: var(--gold); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--black); }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-dark); color: #fff; }
.h-btn-green { background: var(--gold); color: var(--black); }
.h-btn-green:hover { background: #fff; color: var(--black); }
.h-btn-blue { background: var(--black); color: var(--gold); }
.h-btn-blue:hover { background: var(--gold); color: var(--black); }
.h-btn-white { background: #fff; color: var(--black); }
.h-btn-white:hover { background: var(--black); color: var(--gold); }
.h-btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
:focus-visible { outline-color: var(--gold-deep); }

/* =====================================================
   Page heroes (about, education, healthcare, empowerment, contact, donate)
   ===================================================== */
.about-hero, .education-hero, .healthcare-hero, .empowerment-hero, .contact-hero, .donate-hero { overflow: hidden; }
.about-hero h1, .education-hero h1, .healthcare-hero h1, .empowerment-hero h1, .contact-hero h1, .donate-hero h1 { font-size: clamp(1.85rem, 7vw, 3.5rem); line-height: 1.15; }
.about-hero p, .education-hero p, .healthcare-hero p, .empowerment-hero p, .contact-hero p, .donate-hero p { font-size: clamp(.98rem, 3.6vw, 1.2rem); }
@media (max-width: 768px) {
  .about-hero, .education-hero, .healthcare-hero, .empowerment-hero, .contact-hero, .donate-hero { padding: 120px 0 64px; min-height: 0; }
  .hero-btns, .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-btns .btn, .cta-buttons .btn { width: 100%; max-width: none; }
  .breadcrumb { flex-wrap: wrap; font-size: .95rem; }
  .section { padding: 56px 0; }
}

/* =====================================================
   Forms (phones: no zoom-on-focus, no overflow)
   ===================================================== */
input, select, textarea { max-width: 100%; }
textarea { resize: vertical; }
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; width: 100%; box-sizing: border-box; }
  input[type="checkbox"], input[type="radio"] { width: auto; }
  .newsletter-form, .form-row { flex-direction: column; grid-template-columns: 1fr; }
  .newsletter-form input, .newsletter-form button { width: 100%; border-radius: 8px; }
}

/* =====================================================
   Footer
   ===================================================== */
footer { background: #0b2a30; color: rgba(255, 255, 255, .82); }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 64px; height: auto; display: block; }
.footer-col h3 { color: #fff; }
.footer-col h3::after { background: var(--gold); }
.footer-links a:hover { color: var(--gold); }
.social-links a:hover { background: var(--gold); color: var(--black); }
footer .copyright { color: rgba(255, 255, 255, .7); }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-content { grid-template-columns: 1fr; } }

/* =====================================================
   Floating buttons + animated back-to-top
   ===================================================== */
.sticky-donate { background: var(--gold); color: var(--black); font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.sticky-donate:hover { background: var(--black); color: var(--gold); }
@media (max-width: 768px) {
  .whatsapp-float { left: 14px; bottom: 14px; width: 52px; height: 52px; }
  .sticky-donate { right: 14px; bottom: 14px; padding: 12px 18px; font-size: .9rem; }
}

.neo-top { position: fixed; right: 24px; bottom: 92px; z-index: 998; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--black); color: var(--gold); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(28px) scale(.5) rotate(-120deg);
  transition: opacity .35s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .55s, background-color .25s ease, color .25s ease; }
.neo-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.neo-top.show:hover { background: var(--gold); color: var(--black); transform: translateY(-5px) scale(1.06); }
.neo-top.show:active { transform: scale(.94); }
.neo-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.neo-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.neo-top-ring circle { fill: none; stroke-width: 3; }
.neo-top-ring .ring-bg { stroke: rgba(251, 109, 4, .28); }
.neo-top-ring .ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .15s linear, stroke .25s ease; }
.neo-top:hover .ring-fg { stroke: var(--black); }
.neo-top-arrow { position: relative; width: 22px; height: 22px; animation: neoBob 1.9s ease-in-out infinite; }
@keyframes neoBob { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.neo-top.launch .neo-top-arrow { animation: neoLaunch .85s ease-in forwards; }
@keyframes neoLaunch { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-34px); opacity: 0; } 46% { transform: translateY(34px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@media (max-width: 768px) { .neo-top { right: 14px; bottom: 74px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .neo-top, .neo-top-arrow { transition: none; animation: none !important; } }

/* progress bar + skip link */
#neo-progress { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.skip-link:not(:focus) { top: -90px; }

/* testimonial slider (brand colours) */
.neo-slider .neo-controls { color: var(--black); }
.neo-slider .neo-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.neo-dot[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.neo-slider .neo-dot[aria-current="true"] { background: var(--gold-deep); border-color: var(--gold-deep); }


/* =====================================================
   Round 2: palette lock (gold / black / white), floating buttons, sub-page newsletters
   ===================================================== */
:root { --teal: #c85400; --teal-dark: #123a41; --green: #c85400; --green-dark: #123a41; --coop-green: #123a41; }
.whatsapp-float { background: #25d366; color: #fff; animation: neoWa 2.4s infinite; }
.whatsapp-float:hover { background: #1ebe5a; color: #fff; }
@keyframes neoWa { 0% { box-shadow: 0 4px 12px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 4px 12px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 4px 12px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
.footer-top { display: inline-block; margin-bottom: 14px; color: var(--gold); font-weight: 700; text-decoration: none; border: 1px solid rgba(251, 109, 4, .5); border-radius: 999px; padding: 8px 18px; transition: background-color .25s ease, color .25s ease; }
.footer-top:hover { background: var(--gold); color: #123a41; }
.copyright { text-align: center; }
.footer-links a { display: inline-block; padding: 4px 0; }

/* newsletter bands on the inner pages */
.newsletter { background: #123a41; color: #fff; padding: 52px 0; border-top: 4px solid var(--gold); text-align: center; }
.newsletter h2, .newsletter h3 { color: #fff; font-size: clamp(1.4rem, 4.6vw, 1.9rem); }
.newsletter p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 8px auto 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.newsletter-input { flex: 1 1 auto; min-width: 0; padding: 14px 16px; border: 2px solid transparent; border-radius: 8px; font-size: 16px; background: #fff; color: #123a41; }
.newsletter-input:focus { outline: 0; border-color: var(--gold); }
.newsletter-btn { flex: 0 0 auto; padding: 14px 26px; border: 0; border-radius: 8px; background: var(--gold); color: #123a41; font-weight: 800; cursor: pointer; }
.newsletter-btn:hover { background: #fff; }
.newsletter .neo-form-status { max-width: 520px; margin: 0 auto 12px; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } .newsletter-btn { width: 100%; } }

/* contact page newsletter card */
.newsletter-box .benefits li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.newsletter-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-box input { flex: 1 1 220px; width: auto; min-width: 0; margin: 0 !important; border-radius: 8px !important; font-size: 16px; }
.newsletter-box button { flex: 0 0 auto; padding: 14px 26px; border: 0; border-radius: 8px; background: var(--gold); color: #123a41; font-weight: 800; cursor: pointer; }
.newsletter-box button:hover { background: #123a41; color: var(--gold); }
@media (max-width: 520px) { .newsletter-box { padding: 28px 20px; } .newsletter-box button { width: 100%; } }

/* contact map never wider than its column */
.map-container { width: 100%; max-width: 100%; height: auto; min-height: 280px; }
.map-container iframe { display: block; width: 100%; max-width: 100%; min-height: 280px; height: 100%; }

/* hamburger: three clear bars */
.hamburger { flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.hamburger-line { display: block; width: 26px; height: 3px; border-radius: 2px; margin: 0; transition: transform .3s ease, opacity .3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger { position: relative; z-index: 1001; }

/* keep floating buttons clear of the footer text */
footer .copyright { padding-bottom: 20px; }
@media (max-width: 768px) { footer { padding-bottom: 96px; } }

/* Our Goal */
.our-goal { margin: 36px auto 0; max-width: 860px; padding: 28px 30px; background: #123a41; color: rgba(255,255,255,.9); border-left: 5px solid var(--gold); border-radius: 12px; }
.our-goal h3 { color: var(--gold-light); margin-bottom: 10px; }
.our-goal p { color: inherit; line-height: 1.75; margin: 0; }
.h-goal { background: var(--cream); padding: 64px 0; text-align: center; }
.h-goal .container { max-width: 860px; }
.h-goal p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-top: 12px; }
@media (max-width: 600px) { .h-goal { padding: 48px 0; } .our-goal { padding: 22px 20px; } }

/* =====================================================
   Phone / tablet menu: compact card that fits its content, animated
   ===================================================== */
.neo-backdrop { position: fixed; inset: 0; z-index: 990; background: rgba(11, 32, 38, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
body.nav-open .neo-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

@media (max-width: 1099px) {
  :root { --hdr: 68px; }
  header { z-index: 1000; }
  .nav-menu {
    position: fixed; top: var(--hdr); right: 0; left: auto; bottom: auto;
    width: min(88%, 360px); height: auto;
    max-height: calc(100vh - var(--hdr) - 8px); max-height: calc(100dvh - var(--hdr) - 8px);
    display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
    margin: 0; padding: 6px 20px 20px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 0; border-top: 3px solid var(--gold); border-radius: 0 0 0 20px;
    box-shadow: -10px 16px 36px rgba(0, 0, 0, .22);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-16px) scale(.97); transform-origin: top right;
    transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .4s;
    z-index: 999;
  }
  .nav-menu.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .nav-menu li { width: 100%; margin: 0; padding: 0; border-bottom: 1px solid var(--line); opacity: 0; }
  .nav-menu.active li { animation: neoNavIn .5s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--i, 0) * 60ms + 90ms); }
  .nav-menu li:nth-child(1) { --i: 0; } .nav-menu li:nth-child(2) { --i: 1; } .nav-menu li:nth-child(3) { --i: 2; }
  .nav-menu li:nth-child(4) { --i: 3; } .nav-menu li:nth-child(5) { --i: 4; } .nav-menu li:nth-child(6) { --i: 5; }
  .nav-menu li:last-child { border-bottom: 0; margin-top: 0; padding-top: 16px; }
  @keyframes neoNavIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

  .nav-menu .nav-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 4px; font-size: 1.02rem; line-height: 1.3; }
  .nav-menu .nav-link i { transition: transform .3s ease; }
  .nav-menu .nav-dropdown:has(.dropdown.active) > .nav-link i { transform: rotate(180deg); }
  .nav-menu .nav-link.is-current { color: var(--gold-deep); }

  /* submenu opens with a smooth height animation */
  .nav-menu .dropdown { position: static; display: block; width: 100%; min-width: 0; margin: 0; padding: 0; background: var(--cream); border: 0; border-radius: 12px; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22, 1, .36, 1), margin .3s ease; }
  .nav-menu .dropdown.active { max-height: 260px; margin: 0 0 12px; }
  .nav-menu .dropdown-item { display: block; padding: 13px 16px; font-size: .98rem; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .nav-menu .dropdown-item:last-child { border-bottom: 0; }
  .nav-menu .donate-btn { display: flex; justify-content: center; width: 100%; padding: 14px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-menu li, .nav-menu .dropdown { transition: none !important; animation: none !important; opacity: 1; } .nav-menu:not(.active) { opacity: 0; } }

/* narrower phone menu card */
@media (max-width: 1099px) {
  .nav-menu { width: min(72%, 268px); padding: 4px 16px 16px; border-radius: 0 0 0 16px; }
  .nav-menu .nav-link { min-height: 48px; padding: 10px 2px; font-size: 1rem; }
  .nav-menu .dropdown-item { padding: 12px 14px; font-size: .95rem; }
  .nav-menu .donate-btn { padding: 13px; }
}
