/* ============================================================
   NGO Website — Global Design System v2
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.18;
  color: #0a1a4a;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --navy:    #0a1a4a;
  --blue-8:  #0f2d6b;
  --blue-7:  #1a3d8c;
  --blue-6:  #2454a7;
  --blue:    #4169E1;
  --blue-4:  #6b8ce8;
  --blue-1:  #e8eeff;
  --blue-0:  #f0f5ff;
  --teal:    #0ea5a0;
  --teal-l:  #ccfbf1;
  --gold:    #f59e0b;
  --gold-l:  #fef3c7;
  --green:   #10b981;
  --red:     #ef4444;

  --ink:     #0f172a;
  --text:    #374151;
  --muted:   #6b7280;
  --border:  #e2e8f0;
  --bg:      #f8faff;
  --bg2:     #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md: 0 8px 30px rgba(15,23,42,.10), 0 3px 8px rgba(15,23,42,.05);
  --shadow-lg: 0 16px 50px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.05);
  --shadow-xl: 0 24px 80px rgba(15,23,42,.16);

  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-f:  9999px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ===== LAYOUT ===== */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px;  margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }

/* ===== HEADER ===== */
.top-bar {
  background: var(--navy);
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.top-bar .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.top-bar-left { display: flex; align-items: center; gap: 22px; }
.top-bar-left span {
  display: inline-flex; align-items: center; gap: 7px;
}
.top-bar-left i { font-size: 11px; color: var(--blue-4); }
.top-bar-right { display: flex; align-items: center; gap: 8px; }
.tb-social {
  width: 27px; height: 27px; border-radius: var(--r-f);
  background: rgba(255,255,255,.09); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s, color .2s;
}
.tb-social:hover { background: var(--blue); color: #fff; }

header {
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  position: sticky; top: 0; z-index: 900;
}
.header-inner {
  display: flex; align-items: center;
  gap: 28px; padding: 13px 0;
}
.site-logo {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 52px; width: auto; }
.logo-text h2 {
  font-size: 19px; color: var(--blue-8);
  font-family: 'Playfair Display', serif; line-height: 1.1;
}
.logo-text span {
  font-size: 11px; color: var(--muted);
  font-family: 'Inter', sans-serif; font-weight: 400;
  display: block; margin-top: 2px;
}
.site-nav { flex: 1; }
.nav-list {
  display: flex; gap: 2px; justify-content: center;
}
.nav-list a {
  display: block; padding: 8px 14px;
  color: var(--text); font-weight: 500; font-size: 15px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav-list a:hover, .nav-list a.nav-active {
  color: var(--blue); background: var(--blue-0);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: var(--blue); color: #fff;
  border-radius: var(--r); font-weight: 600; font-size: 14px;
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue-7); transform: translateY(-1px); }
.ham-btn {
  display: none; background: none;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 10px; color: var(--blue-8); font-size: 18px;
  margin-left: auto; flex-shrink: 0;
}

/* Mobile drawer */
.mobile-overlay {
  display: none; position: fixed;
  inset: 0; background: rgba(0,0,0,.45);
  z-index: 998; opacity: 0;
  transition: opacity .3s;
}
.mobile-overlay.open { display: block; opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: -320px;
  bottom: 0; width: 300px;
  background: #fff; z-index: 999;
  padding: 0; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transition: right .3s var(--ease);
}
.mobile-drawer.open { right: 0; }
.drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: none; border: none;
  font-size: 22px; color: var(--muted);
  line-height: 1;
}
.drawer-nav { padding: 16px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px; color: var(--text);
  font-weight: 500; font-size: 16px;
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.drawer-nav a:hover { color: var(--blue); background: var(--blue-0); }
.drawer-cta {
  margin: 20px 24px 0;
  display: block; padding: 14px;
  background: var(--blue); color: #fff;
  text-align: center; border-radius: var(--r);
  font-weight: 700; font-size: 15px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r);
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent;
  transition: all .25s var(--ease);
  font-family: inherit; white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover {
  background: var(--blue-7); border-color: var(--blue-7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65,105,225,.35);
}
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover {
  background: var(--blue); color: #fff; transform: translateY(-2px);
}
.btn-white { background: #fff; color: var(--blue-7); border-color: #fff; }
.btn-white:hover { background: var(--blue-0); }
.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.8);
}
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: #0b8f8a; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--r-md); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-8) 0%, var(--blue) 60%, var(--teal) 100%);
  color: #fff; padding: 96px 0 84px;
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.13) 0%, transparent 38%),
    radial-gradient(circle at 85% 78%, rgba(14,165,160,.22) 0%, transparent 42%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-f);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(255,255,255,.1);
  font-family: 'Inter', sans-serif;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; color: #fff; }
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.18rem); opacity: .92;
  max-width: 620px; margin: 0 auto 32px;
  line-height: 1.75; font-family: 'Inter', sans-serif;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 15px; background: var(--blue-0);
  color: var(--blue); border-radius: var(--r-f);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px; font-family: 'Inter', sans-serif;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); color: var(--navy); margin-bottom: 14px; }
.section-header p {
  color: var(--muted); font-size: 17px;
  max-width: 580px; margin: 0 auto; line-height: 1.78;
}
.section-header.left { text-align: left; }
.section-header.left p { margin: 0; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.card-img { width: 100%; height: 222px; object-fit: cover; display: block; }
.card-img-lg { height: 280px; }
.card-body { padding: 26px; }
.card-body h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--muted); line-height: 1.72; font-size: 15px; }
.card-footer { padding: 0 26px 26px; display: flex; align-items: center; justify-content: space-between; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; margin-bottom: 7px;
  font-weight: 600; color: var(--ink); font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--r);
  font-size: 15px; color: var(--ink);
  background: #fff; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65,105,225,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== ALERTS ===== */
.alert { padding: 16px 20px; border-radius: var(--r); margin-bottom: 24px; font-weight: 500; display: flex; align-items: flex-start; gap: 12px; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-info    { background: var(--blue-1); color: var(--blue-7); border-left: 4px solid var(--blue); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-f);
  font-size: 12px; font-weight: 700; font-family: 'Inter', sans-serif;
}
.badge-blue  { background: var(--blue-1);  color: var(--blue-7); }
.badge-teal  { background: var(--teal-l);  color: #0f766e; }
.badge-gold  { background: var(--gold-l);  color: #92400e; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* ===== IMPACT STRIP ===== */
.impact-strip { background: linear-gradient(135deg, var(--blue-8) 0%, var(--blue) 100%); }
.impact-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem; font-weight: 900;
  color: #fff; line-height: 1; margin-bottom: 6px;
}
.impact-label { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--blue-8) 0%, var(--blue) 60%, var(--teal) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14,165,160,.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 14px;
  margin-bottom: 32px; transition: gap .2s;
}
.back-link:hover { gap: 4px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: #fff; }
.footer-body { padding: 72px 0 52px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.footer-brand .footer-logo img { height: 46px; }
.footer-brand .footer-logo-text h2 {
  font-size: 17px; color: #fff;
  font-family: 'Playfair Display', serif; line-height: 1.1;
}
.footer-brand .footer-logo-text span {
  font-size: 10px; color: rgba(255,255,255,.45);
  font-family: 'Inter', sans-serif;
}
.footer-brand p {
  color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.85;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.85); text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  color: rgba(255,255,255,.58); font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact-row {
  display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px;
}
.footer-contact-row i {
  color: var(--blue-4); margin-top: 3px; width: 15px; flex-shrink: 0; font-size: 13px;
}
.footer-contact-row span {
  color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6;
}
.footer-nl-form { display: flex; gap: 8px; margin-top: 14px; }
.footer-nl-form input {
  flex: 1; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); font-size: 14px;
  background: rgba(255,255,255,.08); color: #fff;
  font-family: inherit;
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,.38); }
.footer-nl-form input:focus { outline: none; background: rgba(255,255,255,.12); }
.footer-nl-form button {
  padding: 10px 18px; background: var(--blue);
  color: #fff; border: none; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13px;
  transition: background .2s;
}
.footer-nl-form button:hover { background: var(--blue-6); }
.footer-nl-msg { margin-top: 8px; font-size: 13px; display: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-copy { color: rgba(255,255,255,.4); font-size: 13px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-icon {
  width: 36px; height: 36px; border-radius: var(--r-f);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .2s, color .2s;
}
.footer-social-icon:hover { background: var(--blue); color: #fff; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.bg-soft  { background: var(--bg); }
.bg-muted { background: var(--bg2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .top-bar-left { display: none; }
  .site-nav { display: none; }
  .nav-cta  { display: none; }
  .ham-btn  { display: flex; align-items: center; justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .page-hero { padding: 72px 0 60px; }
  .section-header { margin-bottom: 40px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nl-form { flex-direction: column; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .top-bar { display: none; }
  section { padding: 52px 0; }
}
