/* All My Heart Haiti — Shared Stylesheet */

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

:root {
  --navy:   #1a3a5c;
  --teal:   #0d7e8a;
  --teal-lt:#e6f4f5;
  --orange: #e07b39;
  --gold:   #f5a623;
  --gray:   #555;
  --light:  #f7f7f7;
  --white:  #ffffff;
  --radius: 8px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ─── NAV ─── */
header {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.logo span { color: var(--gold); }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover, nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  text-decoration: none;
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .45rem 1.1rem !important;
  border-radius: 20px;
  border-bottom: none !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #c7662a !important; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem 4rem;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto .75rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  opacity: .9;
}
.btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.2); text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: .75rem; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-teal { background: var(--teal); color: var(--white); }

/* ─── SECTIONS ─── */
section { padding: 4rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 1.9rem;
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: .5rem auto 1.5rem;
  border-radius: 2px;
}

/* ─── MISSION STRIP ─── */
.mission { background: var(--teal-lt); }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 4px solid var(--teal);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.mission-card h3 { color: var(--navy); margin-bottom: .5rem; font-size: 1.05rem; }
.mission-card p { font-size: .95rem; color: var(--gray); }

/* ─── CHILDREN GRID ─── */
.children-section { background: var(--white); }
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.child-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  background: var(--white);
}
.child-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.13); }
.child-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-lt), #c8e6e9);
}
.child-photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #c8e6e9 0%, var(--teal-lt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--teal);
}
.child-info { padding: 1rem 1.1rem 1.25rem; }
.child-info h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: .35rem; }
.child-info p { font-size: .88rem; color: var(--gray); margin-bottom: .85rem; line-height: 1.5; }
.child-info a { font-size: .9rem; }

/* ─── SPONSORSHIP DETAIL (children.html) ─── */
.child-detail {
  border-bottom: 1px solid #e0e0e0;
  padding: 3rem 0;
}
.child-detail:last-child { border-bottom: none; }
.child-detail-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.child-detail-photo {
  width: 260px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #c8e6e9, var(--teal-lt));
}
.child-detail-placeholder {
  width: 260px;
  height: 300px;
  background: linear-gradient(135deg, #c8e6e9, var(--teal-lt));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--teal);
}
.child-detail h2 { color: var(--navy); font-size: 1.6rem; margin-bottom: .5rem; }
.child-detail .tagline { color: var(--teal); font-style: italic; margin-bottom: 1rem; }
.child-detail p { margin-bottom: 1rem; color: var(--gray); }
.sponsor-box {
  background: var(--teal-lt);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.sponsor-box h4 { color: var(--navy); margin-bottom: .6rem; }
.sponsor-select {
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .95rem;
  margin-bottom: .75rem;
  width: 100%;
  max-width: 360px;
  display: block;
}

/* ─── NEWS ─── */
.news-section { background: var(--light); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.news-card h3 { color: var(--navy); margin-bottom: .6rem; font-size: 1.1rem; }
.news-card p { font-size: .93rem; color: var(--gray); }

/* ─── HOW IT WORKS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
  margin-top: 2rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.step h3 { color: var(--navy); margin-bottom: .5rem; }
.step p { font-size: .93rem; color: var(--gray); }

/* ─── DONATE PAGE ─── */
.donate-box {
  background: var(--teal-lt);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.donate-box h2 { color: var(--navy); margin-bottom: .75rem; }
.donate-box p { margin-bottom: 1.25rem; color: var(--gray); }
.mailing-address {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: inline-block;
  text-align: left;
  margin: 1rem 0;
  font-size: .95rem;
  line-height: 1.9;
  color: #333;
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}
.page-header h1 { font-size: 2.1rem; margin-bottom: .4rem; }
.page-header p { opacity: .85; font-size: 1.05rem; }

/* ─── ABOUT ─── */
.about-story {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: #444;
  line-height: 1.85;
}
.about-story p { margin-bottom: 1.25rem; }
.highlight-quote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  background: var(--teal-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

/* ─── GET INVOLVED ─── */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border-top: 4px solid var(--orange);
}
.involve-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.involve-card h3 { color: var(--navy); margin-bottom: .5rem; }
.involve-card p { font-size: .93rem; color: var(--gray); margin-bottom: 1rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
}
footer a { color: rgba(255,255,255,.75); }
footer a:hover { color: var(--white); }
footer p { margin: .3rem 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  nav ul { gap: .8rem; }
  nav a { font-size: .85rem; }
  .child-detail-inner {
    grid-template-columns: 1fr;
  }
  .child-detail-placeholder, .child-detail-photo {
    width: 100%;
    height: 220px;
  }
}
@media (max-width: 560px) {
  .nav-inner { flex-direction: column; height: auto; padding: .75rem 0; gap: .5rem; }
  header { position: static; }
  nav ul { flex-wrap: wrap; justify-content: center; }
}
