/* WeCare Initiative
   First-version look (warm background, rounded white cards, dark bands, pill buttons)
   with the client's review comments applied: one bold title per section, justified
   text, no tags, new font. */
:root {
  --ink: #241C2B;
  --ink-2: #4A4152;
  --muted: #7A7082;
  --bg: #FFFBF9;
  --surface: #FFFFFF;
  --line: #EBDDE2;

  --pink: #E31C6D;
  --pink-dark: #B8104F;
  --pink-soft: #FDEEF2;
  --blue: #0E7CC4;
  --blue-soft: #E7F4FC;
  --green: #1C8F50;
  --green-soft: #EAF7EE;
  --amber: #B86E00;
  --amber-soft: #FDF4E7;
  --purple: #6A35CC;
  --purple-soft: #F1EAFB;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(36, 28, 43, .04), 0 8px 24px rgba(36, 28, 43, .06);
  --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }
::selection { background: #F7C4D8; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Bilingual toggle */
html[data-lang="en"] [lang="sw"],
html[data-lang="sw"] [lang="en"] { display: none !important; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-pink { background: var(--pink-soft); }
.bg-white { background: var(--surface); }
.bg-dark { background: var(--ink); color: #fff; }

/* Titles: one per section, bold, always larger than the text */
.title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.title.page { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 18px; }
.title.center { text-align: center; }
.bg-dark .title { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .title { margin-bottom: 0; }

/* Paragraphs line up on both the left and right margins */
.text, .project p, .area p { text-align: justify; hyphens: auto; }
/* Narrow cards stay left-aligned: justified text leaves wide gaps in short lines */
.text { color: var(--ink-2); }
.text + .text { margin-top: 16px; }

.page-hero { padding-top: 52px; padding-bottom: 14px; }
.page-hero + .section { padding-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--font); padding: 13px 28px; border-radius: 99px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 22px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* Top bar */
.topbar { background: var(--pink); color: #fff; font-size: 14.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar-mail svg { width: 17px; height: 17px; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.icon-link { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.icon-link svg { width: 17px; height: 17px; }
.topbar .icon-link:hover { background: rgba(255, 255, 255, .22); }
.lang-toggle { margin-left: 8px; border: 1.5px solid #fff; background: transparent; border-radius: 99px; padding: 2px 13px; font: 600 13.5px var(--font); cursor: pointer; color: #fff; }
.lang-toggle:hover { background: #fff; color: var(--pink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 251, 249, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: var(--ink); font-weight: 500; font-size: 16px; padding: 8px 11px; border-radius: 99px; white-space: nowrap; }
.nav-link:hover { color: var(--pink); }
.nav-link[aria-current="page"] { color: var(--pink); background: var(--pink-soft); font-weight: 600; }
.site-nav > .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; box-shadow: 0 12px 24px rgba(36, 28, 43, .08); max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav-link[aria-current="page"] { background: none; }
  .site-nav > .btn { margin: 18px 0 0; }
  .brand img { height: 44px; }
}

/* Home: Who We Are */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 56px 0 80px; }
.hero .btn-row { margin-top: 28px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; right: -18px; bottom: -18px; width: 60%; height: 60%; background: var(--pink-soft); border-radius: var(--radius-lg); z-index: -1; }
.hero-slides { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg); overflow: hidden; background: var(--pink-soft); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero-slides img.active { opacity: 1; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 9px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(36, 28, 43, .25); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 99px; }

/* Numbers band */
.stats-band { background: var(--ink); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.stat-value { font-weight: 700; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.stat-label { font-weight: 500; font-size: 16px; line-height: 1.4; margin-top: 10px; color: #EDE6F0; }
.c-pink { color: #FF5C9A; } .c-blue { color: #4FC3F7; } .c-green { color: #5DD68F; } .c-purple { color: #B593FF; } .c-amber { color: #FFB84D; }

.impact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.impact-grid > * { grid-column: span 2; }
.impact-grid > :nth-child(n+4) { grid-column: span 3; }
.impact-card { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border-top: 5px solid var(--accent, var(--pink)); }
.impact-card .stat-value { color: var(--accent, var(--pink)); font-size: clamp(40px, 5vw, 56px); }
.impact-card h2 { font-size: 20px; font-weight: 700; margin: 12px 0 6px; }
.impact-card p { color: var(--ink-2); font-size: 16px; }

/* Two columns */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.top { align-items: start; }
.rounded { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 3.3; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 20px; }
.card { display: block; background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); color: inherit; }
a.card:hover { color: inherit; transform: translateY(-3px); transition: transform .15s; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.swatch { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; display: grid; place-items: center; color: #fff; background: var(--accent, var(--pink)); }
.swatch svg { width: 25px; height: 25px; }

.area { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding: 34px; border-radius: var(--radius-lg); background: var(--soft); scroll-margin-top: 110px; }
.area + .area { margin-top: 20px; }
.area .swatch { width: 72px; height: 72px; border-radius: 20px; margin: 0; }
.area .swatch svg { width: 36px; height: 36px; }
.area h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.area p { color: var(--ink-2); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { background: var(--surface); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.project h2 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 700; color: var(--c, var(--pink)); margin-bottom: 10px; }
.project p { color: var(--ink-2); }

.project-names { display: grid; gap: 10px; margin-bottom: 26px; }
.project-names a { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; color: var(--c, var(--pink)); }
.project-names a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.project-names a:hover { text-decoration: underline; }

/* Publications: the kind of document is the big title, its name sits smaller below */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.doc { display: grid; grid-template-columns: 42% 1fr; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-height: 250px; }
.doc-cover { display: block; background: var(--pink-soft); }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-body { padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.doc-body h3 { font-size: 23px; font-weight: 700; color: var(--ink); }
.doc-name { font-size: 15.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.doc-body p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.btn-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px; background: var(--pink); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px; }
.btn-more:hover { background: var(--pink-dark); color: #fff; }
.btn-more svg { width: 17px; height: 17px; }

.quote { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); margin: 0; }
.quote h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.quote blockquote { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); font-size: 15.5px; }

/* Get involved */
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.action { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.action > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.action-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.action h2 { font-size: 25px; font-weight: 700; margin-bottom: 8px; }
.action p { color: var(--ink-2); margin-bottom: 22px; }
.action .btn { margin-top: auto; align-self: flex-start; }

/* Photos */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--pink-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery + .btn-row { margin-top: 28px; }

/* Call to action */
.cta { text-align: center; }
.cta .title { margin-bottom: 24px; }

/* Contact */
.contact-lines p { margin-bottom: 14px; color: var(--ink-2); }
.contact-lines strong { font-weight: 600; font-size: 19px; color: var(--ink); }
.social-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 28px; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 7px 16px; border-radius: 99px; border: 1.5px solid currentColor; }
.social-list a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.social-list svg { width: 17px; height: 17px; }

/* Forms (shown in a pop-up) */
.form-dialog { border: 0; border-radius: var(--radius-lg); padding: 34px; width: min(640px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow-y: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); color: var(--ink); }
.form-dialog::backdrop { background: rgba(36, 28, 43, .62); }
.dialog-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; padding-right: 44px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--pink); color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 5px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 16px var(--font); color: var(--ink); background: #FFFDFC; border: 1.5px solid #E3C9D3; border-radius: 12px; padding: 11px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 124, 196, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--pink); }
.field .error { display: none; color: var(--pink-dark); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green); }
.form-status.err { display: block; background: var(--pink-soft); color: var(--pink-dark); }
form .btn { margin-top: 20px; }
form .btn[disabled] { opacity: .6; cursor: progress; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible; }
.lightbox::backdrop { background: rgba(20, 14, 26, .9); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; margin: 0 auto; border-radius: 12px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 10px; font-size: 16px; }
.lightbox .dialog-close { top: -6px; right: -6px; background: #fff; }

/* Footer: four organised columns */
.site-footer { background: #17111C; color: #D6CEDC; font-size: 16px; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 22px; }
.footer-heading { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 10px; position: relative; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--pink); }
.footer-about { font-size: 15.5px; line-height: 1.65; }
.footer-links { display: grid; gap: 10px; }
.site-footer a { color: #D6CEDC; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: #FF7FAE; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social .icon-link { width: 38px; height: 38px; background: rgba(255, 255, 255, .1); color: #fff; }
.footer-social .icon-link:hover { background: var(--pink); }
.footer-bottom { border-top: 1px solid #3A3042; padding: 20px 0 24px; font-size: 14.5px; color: #9A8FA3; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .hero, .split { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 36px 0 60px; }
  .hero-media::before { display: none; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid > *, .impact-grid > :nth-child(n+4) { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .page-hero { padding: 36px 0 24px; }
  .topbar .icon-link { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .project, .quote, .form-dialog { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img:nth-child(n+2) { display: none; }
  .gallery { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Home header from the first version: tag, big headline, short intro */
.pill { display: inline-block; background: var(--pink-soft); color: var(--pink); font-weight: 700; font-size: 15px; letter-spacing: .02em; padding: 7px 16px; border-radius: 99px; margin-bottom: 20px; }
.hero-title { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin-bottom: 22px; }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
