:root {
  --primary: #0f4c5c;
  --primary-dark: #08323d;
  --primary-light: #5f8a8b;
  --accent: #e76f51;
  --accent-dark: #c75a3e;
  --accent-light: #f4a261;
  --cream: #fdfaf6;
  --warm-white: #fffdf9;
  --text: #2c3e50;
  --muted: #6b7280;
  --border: #e5e0d6;
  --success: #2a9d8f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
}
.logo:hover { color: var(--primary-dark); }
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 400; font-family: -apple-system, sans-serif; letter-spacing: 0.5px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
nav a:hover { background: rgba(15, 76, 92, 0.08); color: var(--primary); }
nav a.active { color: var(--primary); background: rgba(15, 76, 92, 0.1); }
nav a.donate-btn {
  background: var(--accent);
  color: white;
  padding: 8px 18px;
}
nav a.donate-btn:hover { background: var(--accent-dark); color: white; }
nav a.donate-btn.active { background: var(--accent-dark); color: white; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 880px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--warm-white);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: none;
  }
  nav ul.open { display: flex; }
  nav li { width: 100%; }
  nav a { display: block; padding: 12px; }
  .menu-toggle { display: block; }
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(231, 111, 81, 0.3); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
.hero h1 { color: white; margin-bottom: 1.2rem; }
.hero .lead { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; max-width: 540px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-buttons .btn-secondary { color: white; border-color: white; }
.hero-buttons .btn-secondary:hover { background: white; color: var(--primary); }
.hero-illustration { background: rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; backdrop-filter: blur(10px); }
.mini-hero { padding: 70px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 8px; }
.section-header.on-hero .eyebrow { color: var(--accent-light); }
.section-header.on-hero h1 { color: white; }
.section-header p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--warm-white); border-radius: 14px; padding: 28px; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 76, 92, 0.1); }
.card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 16px; font-size: 24px; }
.card h3 { color: var(--primary-dark); }
.card p { color: var(--muted); font-size: 0.95rem; }

.stats { background: var(--primary-dark); color: white; padding: 60px 0; }
.stats .grid-3 { gap: 30px; }
.stat-block { text-align: center; }
.stat-block .number { font-family: Georgia, serif; font-size: 3rem; font-weight: 700; color: var(--accent-light); display: block; }
.stat-block .label { font-size: 1rem; opacity: 0.9; margin-top: 4px; }

.testimonial { background: var(--warm-white); border-left: 4px solid var(--accent); padding: 32px; border-radius: 0 14px 14px 0; max-width: 800px; margin: 0 auto; }
.testimonial blockquote { font-family: Georgia, serif; font-size: 1.3rem; line-height: 1.6; color: var(--text); margin-bottom: 16px; font-style: italic; }
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 600; }

.cta-banner { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; padding: 60px 24px; border-radius: 20px; text-align: center; margin: 0 24px; }
.cta-banner h2 { color: white; }
.cta-banner p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; }
.cta-banner .btn-primary { background: white; color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: var(--cream); color: var(--accent-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.story-image { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 20px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: white; padding: 30px; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.value-card { text-align: center; padding: 30px 20px; }
.value-icon { width: 64px; height: 64px; background: var(--cream); border: 2px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.team-card { text-align: center; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; font-family: Georgia, serif; font-weight: 700; }
.team-card h4 { color: var(--primary-dark); margin-bottom: 4px; font-size: 1.1rem; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.program-detail { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.program-detail:last-child { border-bottom: none; }
.program-detail .icon-large { width: 80px; height: 80px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; }
@media (max-width: 640px) { .program-detail { grid-template-columns: 1fr; } }

.event-card { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 16px; }
.event-date { text-align: center; background: var(--primary); color: white; border-radius: 10px; padding: 12px 8px; }
.event-date .month { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.event-date .day { font-size: 1.8rem; font-weight: 700; font-family: Georgia, serif; line-height: 1; }
.event-info h4 { margin-bottom: 4px; }
.event-info p { color: var(--muted); font-size: 0.9rem; margin: 0; }
@media (max-width: 640px) {
  .event-card { grid-template-columns: 80px 1fr; }
  .event-card .btn { grid-column: 1 / -1; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-block { margin-bottom: 24px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info-block .icon { width: 40px; height: 40px; background: var(--cream); border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); font-size: 18px; }
.contact-info-block h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-info-block p { margin: 0; color: var(--muted); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--warm-white); transition: border-color 0.15s, box-shadow 0.15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.15); }
textarea.form-control { resize: vertical; min-height: 120px; }

.donate-hero { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; padding: 70px 0; text-align: center; }
.donate-hero h1 { color: white; }
.donate-hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.donate-form-card { background: var(--warm-white); border-radius: 20px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); max-width: 580px; margin: -50px auto 0; position: relative; z-index: 2; border: 1px solid var(--border); }
.toggle-group { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.toggle-group button { background: transparent; border: none; padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); font-family: inherit; transition: all 0.15s; }
.toggle-group button.active { background: var(--primary); color: white; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn { background: var(--cream); border: 2px solid var(--border); border-radius: 10px; padding: 16px 10px; font-size: 1.15rem; font-weight: 700; cursor: pointer; color: var(--primary-dark); font-family: inherit; transition: all 0.15s; }
.amount-btn:hover { border-color: var(--accent); }
.amount-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.impact-text { background: rgba(231, 111, 81, 0.08); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: var(--text); margin-bottom: 20px; }
.other-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.way-card { padding: 24px; background: var(--warm-white); border: 1px solid var(--border); border-radius: 12px; }

footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: white; font-family: -apple-system, sans-serif; font-size: 1rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--accent-light); }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: white; transition: background 0.15s; }
.social-links a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--success); color: white; padding: 14px 24px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s; z-index: 200; }
.toast.show { transform: translateX(-50%) translateY(0); }
