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

:root {
  --primary: #1B2A4A;
  --primary-light: #2A3F6A;
  --secondary: #4A5D3A;
  --secondary-light: #5C7350;
  --accent: #D4A24C;
  --accent-hover: #C49540;
  --bg: #F7F6F3;
  --bg-white: #FFFFFF;
  --text: #2B2B2B;
  --text-light: #6B6B6B;
  --border: #E0DFDC;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAVBAR ===== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.navbar .logo img { height: 40px; width: auto; }
.navbar .logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); color: var(--accent); }
.nav-links .donate-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
.nav-links .donate-btn:hover { background: var(--accent-hover); color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 4px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding: 60px 20px; }
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2rem; max-width: 650px; margin: 0 auto 36px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,162,76,0.35); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--secondary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 50px;
}

/* ===== VALUES CARDS ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.value-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.value-card .icon { font-size: 2.8rem; margin-bottom: 16px; }
.value-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.25rem; }
.value-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-item { text-align: center; padding: 28px 16px; }
.stat-number { font-size: 2.8rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 1rem; opacity: 0.85; margin-top: 6px; display: block; }

/* ===== GRID CONTENT ===== */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-image { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; min-height: 300px; object-fit: cover; }
.content-text h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 16px; }
.content-text p { margin-bottom: 14px; color: var(--text-light); }
.content-text ul { list-style: none; padding: 0; }
.content-text ul li { padding: 8px 0; padding-left: 28px; position: relative; }
.content-text ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ===== PROGRAMS ===== */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.program-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.program-card img { width: 100%; height: 200px; object-fit: cover; }
.program-card-body { padding: 24px; }
.program-card-body h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.program-card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.program-card-body .tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item .icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.contact-item h4 { color: var(--primary); margin-bottom: 4px; }
.contact-item p { color: var(--text-light); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
#map { height: 350px; border-radius: var(--radius); margin-top: 20px; z-index: 1; }

/* ===== DONATE ===== */
.donate-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 800px; margin: 0 auto; }
.donate-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.donate-card:hover, .donate-card.selected { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.donate-card .amount { font-size: 2.4rem; font-weight: 900; color: var(--primary); }
.donate-card p { color: var(--text-light); margin-top: 8px; }
.donate-custom { max-width: 400px; margin: 24px auto; }
.donate-custom input { text-align: center; font-size: 1.3rem; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h1 { color: var(--primary); font-size: 2rem; margin-bottom: 10px; }
.legal-content .last-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px; }
.legal-content h2 { color: var(--primary); font-size: 1.3rem; margin: 28px 0 12px; }
.legal-content h3 { color: var(--secondary); font-size: 1.1rem; margin: 20px 0 8px; }
.legal-content p { margin-bottom: 12px; color: var(--text-light); line-height: 1.8; }
.legal-content ul { margin: 10px 0 16px 24px; }
.legal-content ul li { margin-bottom: 6px; color: var(--text-light); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 0;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
.footer-col h4 { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; font-weight: 700; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.9; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0 4px;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.7rem; }
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .content-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .navbar { padding: 10px 16px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== SVG ILLUSTRATIONS ===== */
.illu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.illu-container svg {
  width: 100%;
  height: auto;
  max-height: 360px;
}
.illu-sm { max-width: 80px; margin: 0 auto 12px; }
.illu-card { height: 200px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 20px; }
.illu-card svg { max-height: 160px; width: auto; }
.illu-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
}
.illu-hero-bg svg { width: 100%; height: 100%; }
.illu-icon { width: 48px; height: 48px; flex-shrink: 0; }
