/* ===== KOSHY FOUNDATION — Global Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --blue: #1a5fa8;
  --blue-dark: #0f3d73;
  --blue-light: #e8f2fb;
  --green: #5a9e28;
  --green-dark: #3a6e10;
  --green-light: #edf6e0;
  --charcoal: #2D3E4E;
  --off-white: #f9f8f5;
  --white: #ffffff;
  --border: #dde6ed;
  --text: #2D3E4E;
  --text-muted: #5a6e7e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px; border-radius: 7px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue); }
.nav-cta {
  margin-left: 12px;
  background-color: #1a5fa8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background .2s;
  display: inline-block;
  border: none;
}
.nav-cta:hover {
  background-color: #0f3d73 !important;
  color: #ffffff !important;
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; transition: all .2s; }
.nav-mobile { display: none; background: var(--white); border-top: 1px solid var(--border); padding: 12px 20px 16px; }
.nav-mobile a {
  display: block; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  padding: 10px 12px; border-radius: 7px; transition: all .2s;
}
.nav-mobile a:hover { background: var(--blue-light); color: var(--blue); }
.nav-mobile .nav-cta-mobile {
  display: block; margin-top: 8px;
  background: var(--blue); color: white; text-align: center;
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 12px; border-radius: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-size: cover; background-position: center;
  min-height: 680px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,61,115,.92) 0%, rgba(26,95,168,.78) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 60px 24px; }
.hero-tag {
  display: inline-block;
  background: rgba(90,158,40,.28); color: #a8d96a;
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700; color: white; margin-bottom: 20px;
}
.hero h1 em { color: #8fcf4d; font-style: normal; }
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.8); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7; font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: white;
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 14px 32px; border-radius: 8px;
  transition: all .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: white;
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 13px 32px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.45);
  transition: all .2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.1); }

/* ===== SECTIONS ===== */
.section { padding: 80px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--charcoal); margin-bottom: 14px;
}
.section-sub {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.75; max-width: 560px;
}

/* ===== PILLARS GRID ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 50px; }
.pillar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all .25s; position: relative;
}
.pillar-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(26,95,168,.13); }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pillar-body { padding: 24px; }
.pillar-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.pillar-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pillar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.pillar-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--blue);
  text-decoration: none; margin-top: 14px;
  transition: gap .2s;
}
.pillar-link:hover { gap: 8px; }

/* ===== MISSION BLOCK ===== */
.mission-block {
  background: var(--charcoal); border-radius: 18px;
  padding: 56px 52px;
  display: flex; gap: 52px; align-items: center; flex-wrap: wrap;
  margin-top: 16px;
}
.mission-quote { flex: 1; min-width: 260px; }
.mission-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 400;
  color: white; line-height: 1.4;
  border-left: 3px solid var(--green); padding-left: 24px;
}
.mission-quote cite {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-top: 18px; padding-left: 24px; font-style: normal;
}
.mission-meta { min-width: 220px; }
.mission-meta p { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.75; }
.mission-meta strong { color: white; }

/* ===== IMPACT STRIP ===== */
.impact-strip {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 28px 32px;
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
}
.impact-item { text-align: center; }
.impact-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--blue);
}
.impact-lbl { font-size: 11px; color: #8a9caa; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; margin-top: 2px; }

/* ===== PROGRAM CARDS (What We Support) ===== */
.program-section { padding: 80px 32px; }
.program-section:nth-child(even) { background: var(--white); }
.program-section:nth-child(odd) { background: var(--off-white); }
.program-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 64px; align-items: center; flex-wrap: wrap;
}
.program-inner.reverse { flex-direction: row-reverse; }
.program-img-wrap { flex: 0 0 48%; max-width: 48%; }
.program-img-wrap img {
  width: 100%; height: 400px; object-fit: cover;
  border-radius: 16px; display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.program-content { flex: 1; min-width: 260px; }
.program-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-green { background: var(--green-light); color: var(--green-dark); }
.program-content h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; margin-bottom: 14px; }
.program-content p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.program-list { list-style: none; }
.program-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #4a5f6e; padding: 7px 0;
  border-bottom: 1px solid #f0f4f7; line-height: 1.55;
}
.program-list li:last-child { border-bottom: none; }
.program-list li::before { content: '→'; color: var(--blue); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 768px) {
  .program-img-wrap { flex: 0 0 100%; max-width: 100%; }
  .program-img-wrap img { height: 260px; }
  .program-inner.reverse { flex-direction: column; }
}

/* ===== ABOUT PAGE ===== */
.about-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; gap: 64px; align-items: center; flex-wrap: wrap;
}
.about-stats { display: flex; flex-direction: column; gap: 14px; flex: 0 0 300px; }
.stat-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
}
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 700; color: var(--blue); }
.stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.founder-block { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 56px; }
.founder-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: white;
}
.founder-name { font-size: 26px; font-weight: 700; margin-bottom: 2px; }
.founder-role {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.founder-bio { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.founder-bio p + p { margin-top: 12px; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 22px;
  transition: all .25s;
}
.value-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,95,168,.08); }
.value-icon { font-size: 22px; margin-bottom: 12px; }
.value-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.daf-notice {
  background: var(--green-light); border: 1px solid #b5d98a;
  border-radius: 12px; padding: 24px 28px;
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px;
}
.daf-notice p { font-size: 14px; color: #2d5c0e; line-height: 1.7; }
.daf-notice strong { font-weight: 500; }

/* ===== CONTACT PAGE ===== */
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px 44px;
  max-width: 720px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--charcoal); margin-bottom: 7px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--off-white); outline: none; transition: border .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  width: 100%; padding: 14px;
  background: var(--blue); color: white; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  border-radius: 8px; margin-top: 6px; transition: background .2s;
}
.submit-btn:hover { background: var(--blue-dark); }
.contact-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact-meta-item { display: flex; gap: 10px; align-items: flex-start; }
.contact-meta-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.contact-meta-item strong { display: block; font-size: 14px; color: var(--charcoal); }
.contact-meta-item span { font-size: 12px; color: var(--text-muted); }
.success-box { text-align: center; padding: 40px 20px; display: none; }
.success-check {
  width: 60px; height: 60px; background: var(--green-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
}
.success-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.success-box p { font-size: 15px; color: var(--text-muted); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 72px 32px; text-align: center; color: white;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 700; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ===== FOOTER ===== */
footer { background: var(--charcoal); padding: 56px 32px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; display: block; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: white; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col a { display: block; text-decoration: none; font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #8fcf4d; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px; transition: background .2s; color: white;
}
.footer-social a:hover { background: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.3);
}

/* ===== GLOBAL STRIP ===== */
.global-strip { background: var(--charcoal); padding: 72px 32px; text-align: center; }
.global-strip h2 { font-size: clamp(26px, 4vw, 36px); color: white; font-weight: 700; margin-bottom: 12px; }
.global-strip p { font-size: 17px; color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto 30px; line-height: 1.7; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-block { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 22px; }
  .about-hero-inner { flex-direction: column; }
  .founder-block { flex-direction: column; }
}
