/* Restoring Smiles Uganda - Stylesheet */

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

:root {
  --blue: #1A3A6B;
  --blue-mid: #2455A4;
  --blue-light: #3A6FCC;
  --red: #CC2229;
  --red-light: #E84A50;
  --white: #FFFFFF;
  --off-white: #F4F7FC;
  --cream: #EEF3FA;
  --text-dark: #0D1F3C;
  --text-mid: #2D4070;
  --text-soft: #6B7FA8;
}

html { scroll-behavior: smooth; }

body { 
  font-family: 'Nunito', sans-serif; 
  background: var(--white); 
  color: var(--text-dark); 
  overflow-x: hidden; 
  /* display: none; */
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6%; background: var(--blue);
  box-shadow: 0 2px 20px rgba(26,58,107,0.35);
}

.nav-logo { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.2rem; 
  font-weight: 700; 
  color: #fff; 
  line-height: 1.2; 
}

.nav-logo span { color: #FF6B6F; }

.nav-links { 
  display: flex; 
  gap: 28px; 
  list-style: none; 
  align-items: center; 
}

.nav-links a { 
  text-decoration: none; 
  font-size: 0.92rem; 
  font-weight: 600; 
  color: rgba(255,255,255,0.85); 
  transition: color 0.2s; 
}

.nav-links a:hover { color: #FF6B6F; }

.nav-cta { 
  background: var(--red) !important; 
  color: #fff !important; 
  padding: 9px 22px; 
  border-radius: 50px; 
}

.nav-cta:hover { background: var(--red-light) !important; }

/* HERO */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 6% 80px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #1A4A8A 100%);
  position: relative; overflow: hidden;
}

.hero-pattern { 
  position: absolute; 
  inset: 0; 
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); 
  background-size: 32px 32px; 
}

.hero-circle { 
  position: absolute; 
  border-radius: 50%; 
  opacity: 0.08; 
}

.hero-circle.c1 { 
  width: 500px; 
  height: 500px; 
  background: #fff; 
  top: -150px; 
  right: -100px; 
}

.hero-circle.c2 { 
  width: 300px; 
  height: 300px; 
  background: var(--red); 
  bottom: -80px; 
  left: -60px; 
}

.hero-content { 
  max-width: 640px; 
  position: relative; 
  z-index: 2; 
  animation: fadeUp 0.9s ease both; 
}

.hero-tag { 
  display: inline-block; 
  background: rgba(204,34,41,0.25); 
  border: 1px solid rgba(204,34,41,0.5); 
  color: #FF9A9D; 
  font-size: 0.78rem; 
  font-weight: 700; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  padding: 6px 16px; 
  border-radius: 50px; 
  margin-bottom: 24px; 
}

h1 { 
  font-family: 'Playfair Display', serif; 
  font-size: clamp(2.4rem, 5vw, 3.8rem); 
  line-height: 1.15; 
  color: #fff; 
  margin-bottom: 24px; 
}

h1 em { color: #FF6B6F; font-style: normal; }

.hero-sub { 
  font-size: 1.05rem; 
  color: rgba(255,255,255,0.78); 
  line-height: 1.85; 
  margin-bottom: 40px; 
  max-width: 520px; 
}

.hero-btns { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
}

.btn-primary { 
  background: var(--red); 
  color: #fff; 
  padding: 14px 32px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 0.95rem; 
  transition: transform 0.2s, background 0.2s; 
  box-shadow: 0 6px 20px rgba(204,34,41,0.4); 
}

.btn-primary:hover { 
  background: var(--red-light); 
  transform: translateY(-2px); 
}

.btn-secondary { 
  background: transparent; 
  color: #fff; 
  padding: 14px 32px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 0.95rem; 
  border: 2px solid rgba(255,255,255,0.5); 
  transition: all 0.2s; 
}

.btn-secondary:hover { 
  background: rgba(255,255,255,0.15); 
  border-color: #fff; 
}

.hero-stats { 
  display: flex; 
  gap: 40px; 
  margin-top: 56px; 
}

.stat-num { 
  font-family: 'Playfair Display', serif; 
  font-size: 2rem; 
  font-weight: 700; 
  color: #fff; 
}

.stat-label { 
  font-size: 0.8rem; 
  color: rgba(255,255,255,0.55); 
  font-weight: 600; 
  margin-top: 2px; 
}

.stat-divider { 
  width: 1px; 
  background: rgba(255,255,255,0.15); 
  align-self: stretch; 
}

/* SECTIONS */
section { 
  padding: 96px 6%; 
}

.section-tag { 
  display: inline-block; 
  font-size: 0.78rem; 
  font-weight: 700; 
  letter-spacing: 2.5px; 
  text-transform: uppercase; 
  color: var(--red); 
  margin-bottom: 14px; 
}

h2 { 
  font-family: 'Playfair Display', serif; 
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); 
  line-height: 1.25; 
  color: var(--text-dark); 
  margin-bottom: 20px; 
}

.lead { 
  font-size: 1.05rem; 
  color: var(--text-mid); 
  line-height: 1.85; 
  max-width: 600px; 
}

/* ABOUT */
#about { background: var(--white); }

.about-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 64px; 
  align-items: center; 
  margin-top: 56px; 
}

.about-visual { 
  border-radius: 24px; 
  overflow: hidden; 
  height: 420px; 
  position: relative; 
}

.about-visual-bg { 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-mid) 50%, var(--blue-light) 100%); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  gap: 16px; 
}

.about-visual-icon { font-size: 5rem; }

.about-visual-caption { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.3rem; 
  color: #fff; 
  text-align: center; 
  padding: 0 24px; 
}

.about-badge { 
  position: absolute; 
  bottom: 24px; 
  right: 24px; 
  background: var(--red); 
  color: #fff; 
  border-radius: 14px; 
  padding: 12px 20px; 
  font-weight: 700; 
  font-size: 0.88rem; 
  box-shadow: 0 4px 16px rgba(204,34,41,0.35); 
}

.about-text h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.3rem; 
  color: var(--blue); 
  margin: 28px 0 10px; 
}

.about-text p { 
  color: var(--text-mid); 
  line-height: 1.85; 
  margin-bottom: 14px; 
}

.value-pills { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 24px; 
}

.pill { 
  background: var(--cream); 
  color: var(--blue); 
  border: 1px solid rgba(26,58,107,0.2); 
  padding: 7px 18px; 
  border-radius: 50px; 
  font-size: 0.85rem; 
  font-weight: 700; 
}

/* PROGRAMS */
#programs { background: var(--off-white); }

.programs-grid { 
  display: grid; 
  grid-template-columns: repeat(3,1fr); 
  gap: 28px; 
  margin-top: 56px; 
}

.program-card { 
  background: var(--white); 
  border-radius: 20px; 
  padding: 36px 28px; 
  border: 1px solid rgba(26,58,107,0.1); 
  transition: transform 0.25s, box-shadow 0.25s; 
  position: relative; 
  overflow: hidden; 
}

.program-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 5px; 
}

.program-card.card-orphans::before { 
  background: linear-gradient(90deg, var(--blue), var(--blue-light)); 
}

.program-card.card-refugees::before { 
  background: linear-gradient(90deg, var(--red), var(--red-light)); 
}

.program-card.card-hiv::before { 
  background: linear-gradient(90deg, var(--blue-mid), var(--red)); 
}

.program-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 40px rgba(26,58,107,0.12); 
}

.card-icon { 
  font-size: 2.8rem; 
  margin-bottom: 20px; 
}

.program-card h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.25rem; 
  color: var(--blue); 
  margin-bottom: 14px; 
}

.program-card p { 
  color: var(--text-mid); 
  line-height: 1.8; 
  font-size: 0.95rem; 
}

.card-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin-top: 20px; 
  font-weight: 700; 
  font-size: 0.88rem; 
  text-decoration: none; 
  color: var(--red); 
  transition: gap 0.2s; 
}

.card-link:hover { gap: 10px; }

/* DONATE */
#donate { 
  background: var(--red); 
  color: #fff; 
  text-align: center; 
  position: relative; 
  overflow: hidden; 
}

#donate::before { 
  content: ''; 
  position: absolute; 
  width: 500px; 
  height: 500px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.05); 
  top: -200px; 
  right: -100px; 
}

#donate .section-tag { color: rgba(255,255,255,0.7); }

#donate h2 { 
  color: #fff; 
  max-width: 600px; 
  margin: 0 auto 20px; 
}

#donate .lead { 
  color: rgba(255,255,255,0.82); 
  margin: 0 auto 48px; 
  text-align: center; 
}

.donate-boxes { 
  display: flex; 
  justify-content: center; 
  gap: 20px; 
  flex-wrap: wrap; 
  margin-bottom: 40px; 
  position: relative; 
  z-index: 2; 
}

.donate-box { 
  background: rgba(255,255,255,0.12); 
  border: 2px solid rgba(255,255,255,0.25); 
  border-radius: 16px; 
  padding: 24px 28px; 
  cursor: pointer; 
  transition: all 0.2s; 
  min-width: 130px; 
}

.donate-box:hover, .donate-box.active { 
  background: var(--white); 
  border-color: var(--white); 
}

.donate-box-amt { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.6rem; 
  font-weight: 700; 
  color: #fff; 
}

.donate-box:hover .donate-box-amt, .donate-box.active .donate-box-amt { 
  color: var(--red); 
}

.donate-box-label { 
  font-size: 0.78rem; 
  color: rgba(255,255,255,0.7); 
  margin-top: 4px; 
  font-weight: 600; 
}

.donate-box:hover .donate-box-label, .donate-box.active .donate-box-label { 
  color: var(--blue); 
}

.btn-donate { 
  background: var(--blue); 
  color: #fff; 
  padding: 16px 48px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: 1rem; 
  display: inline-block; 
  transition: transform 0.2s, background 0.2s; 
  box-shadow: 0 6px 24px rgba(0,0,0,0.2); 
  position: relative; 
  z-index: 2; 
}

.btn-donate:hover { 
  background: var(--blue-light); 
  transform: translateY(-3px); 
}

.donate-note { 
  color: rgba(255,255,255,0.5); 
  font-size: 0.82rem; 
  margin-top: 20px; 
  position: relative; 
  z-index: 2; 
}

/* CONTACT */
#contact { background: var(--white); }

.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1.3fr; 
  gap: 64px; 
  margin-top: 56px; 
  align-items: start; 
}

.contact-info h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.15rem; 
  color: var(--text-dark); 
  margin-bottom: 28px; 
  line-height: 1.6; 
}

.contact-item { 
  display: flex; 
  align-items: flex-start; 
  gap: 16px; 
  margin-bottom: 24px; 
}

.contact-item-icon { 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  background: var(--cream); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.1rem; 
  flex-shrink: 0; 
  border: 1px solid rgba(26,58,107,0.1); 
}

.contact-item-text strong { 
  display: block; 
  font-size: 0.78rem; 
  color: var(--text-soft); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 4px; 
}

.contact-item-text a, .contact-item-text span { 
  color: var(--text-dark); 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 0.95rem; 
}

.contact-item-text a:hover { color: var(--red); }

.contact-form { 
  background: var(--cream); 
  border-radius: 24px; 
  padding: 40px; 
  border: 1px solid rgba(26,58,107,0.1); 
}

.contact-form h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.3rem; 
  margin-bottom: 28px; 
  color: var(--blue); 
}

.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
}

.form-group { 
  margin-bottom: 18px; 
}

label { 
  display: block; 
  font-size: 0.82rem; 
  font-weight: 700; 
  color: var(--text-mid); 
  margin-bottom: 7px; 
}

input, textarea, select { 
  width: 100%; 
  padding: 12px 16px; 
  border: 1.5px solid rgba(26,58,107,0.15); 
  border-radius: 10px; 
  background: #fff; 
  font-family: 'Nunito', sans-serif; 
  font-size: 0.95rem; 
  color: var(--text-dark); 
  transition: border-color 0.2s; 
  outline: none; 
}

input:focus, textarea:focus, select:focus { 
  border-color: var(--blue); 
}

textarea { 
  resize: vertical; 
  min-height: 120px; 
}

.form-submit { 
  background: var(--blue); 
  color: #fff; 
  border: none; 
  padding: 14px 36px; 
  border-radius: 50px; 
  font-family: 'Nunito', sans-serif; 
  font-size: 1rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: background 0.2s, transform 0.2s; 
  width: 100%; 
  margin-top: 6px; 
}

.form-submit:hover { 
  background: var(--red); 
  transform: translateY(-2px); 
}

/* IMPACT STORIES */
#stories { background: var(--white); }

.stories-grid { 
  display: grid; 
  grid-template-columns: repeat(3,1fr); 
  gap: 32px; 
  margin-top: 56px; 
}

.story-card { 
  background: var(--white); 
  border-radius: 20px; 
  padding: 32px 24px; 
  border: 1px solid rgba(26,58,107,0.08); 
  transition: transform 0.25s, box-shadow 0.25s; 
  text-align: center; 
}

.story-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(26,58,107,0.1); 
}

.story-avatar { 
  width: 80px; 
  height: 80px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 2rem; 
  margin: 0 auto 20px; 
}

.story-card h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.15rem; 
  color: var(--blue); 
  margin-bottom: 12px; 
}

.story-card p { 
  color: var(--text-mid); 
  line-height: 1.7; 
  font-size: 0.9rem; 
  margin-bottom: 16px; 
}

.story-tag { 
  display: inline-block; 
  background: var(--cream); 
  color: var(--blue); 
  padding: 4px 12px; 
  border-radius: 20px; 
  font-size: 0.78rem; 
  font-weight: 600; 
}

/* TEAM */
#team { background: var(--off-white); }
#team.full-width { max-width: 100%; padding-left: 0; padding-right: 0; }
.team-content { max-width: 800px; margin: 0 auto; padding: 0 6%; }
.team-grid { 
  display: grid; 
  grid-template-columns: repeat(4,1fr); 
  gap: 24px; 
  margin-top: 56px; 
}

.team-member { 
  text-align: center; 
}

.team-avatar { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--blue-mid), var(--red)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 2.5rem; 
  margin: 0 auto 16px; 
}

.team-member h4 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.1rem; 
  color: var(--blue); 
  margin-bottom: 4px; 
}

.team-member .role { 
  color: var(--red); 
  font-size: 0.85rem; 
  font-weight: 600; 
  margin-bottom: 12px; 
}

.team-member p { 
  color: var(--text-mid); 
  font-size: 0.85rem; 
  line-height: 1.6; 
}

/* GET INVOLVED */
#involved { 
  background: var(--blue); 
  color: #fff; 
  position: relative; 
  overflow: hidden; 
}

#involved::before { 
  content: ''; 
  position: absolute; 
  width: 400px; 
  height: 400px; 
  border-radius: 50%; 
  background: rgba(255,255,255,0.03); 
  top: -150px; 
  right: -100px; 
}

#involved .section-tag { 
  color: rgba(255,255,255,0.7); 
}

#involved h2 { 
  color: #fff; 
  max-width: 600px; 
  margin: 0 auto 20px; 
}

#involved .lead { 
  color: rgba(255,255,255,0.82); 
  margin: 0 auto 48px; 
  text-align: center; 
}

.involved-grid { 
  display: grid; 
  grid-template-columns: repeat(3,1fr); 
  gap: 24px; 
  margin-top: 48px; 
  position: relative; 
  z-index: 2; 
}

.involved-card { 
  background: rgba(255,255,255,0.08); 
  border: 1px solid rgba(255,255,255,0.15); 
  border-radius: 16px; 
  padding: 32px 24px; 
  text-align: center; 
  transition: transform 0.2s, background 0.2s; 
}

.involved-card:hover { 
  transform: translateY(-4px); 
  background: rgba(255,255,255,0.12); 
}

.involved-icon { 
  font-size: 2.5rem; 
  margin-bottom: 16px; 
}

.involved-card h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.2rem; 
  color: #fff; 
  margin-bottom: 12px; 
}

.involved-card p { 
  color: rgba(255,255,255,0.7); 
  line-height: 1.7; 
  font-size: 0.9rem; 
  margin-bottom: 20px; 
}

.btn-involved { 
  background: var(--red); 
  color: #fff; 
  padding: 10px 24px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 0.88rem; 
  display: inline-block; 
  transition: background 0.2s; 
}

.btn-involved:hover { 
  background: var(--red-light); 
}

/* NEWS */
#news { background: var(--white); }

.news-grid { 
  display: grid; 
  grid-template-columns: repeat(3,1fr); 
  gap: 24px; 
  margin-top: 48px; 
}

.news-item { 
  background: var(--white); 
  border: 1px solid rgba(26,58,107,0.08); 
  border-radius: 16px; 
  overflow: hidden; 
  transition: transform 0.25s, box-shadow 0.25s; 
}

.news-item:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 24px rgba(26,58,107,0.1); 
}

.news-image { 
  height: 160px; 
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 3rem; 
}

.news-content { 
  padding: 20px; 
}

.news-date { 
  color: var(--red); 
  font-size: 0.78rem; 
  font-weight: 600; 
  margin-bottom: 8px; 
}

.news-item h3 { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.1rem; 
  color: var(--blue); 
  margin-bottom: 10px; 
  line-height: 1.4; 
}

.news-item p { 
  color: var(--text-mid); 
  line-height: 1.6; 
  font-size: 0.9rem; 
  margin-bottom: 12px; 
}

.news-link { 
  color: var(--red); 
  font-weight: 600; 
  font-size: 0.88rem; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
}

.news-link:hover { 
  gap: 8px; 
}

/* FOOTER */
footer { 
  background: var(--blue); 
  color: rgba(255,255,255,0.6); 
  padding: 48px 6% 32px; 
  text-align: center; 
}

.footer-logo { 
  font-family: 'Playfair Display', serif; 
  font-size: 1.4rem; 
  font-weight: 700; 
  color: #fff; 
  margin-bottom: 12px; 
}

.footer-logo span { color: #FF6B6F; }

footer p { 
  font-size: 0.88rem; 
  line-height: 1.8; 
  max-width: 440px; 
  margin: 0 auto 24px; 
}

.footer-links { 
  display: flex; 
  justify-content: center; 
  gap: 24px; 
  margin-bottom: 32px; 
  flex-wrap: wrap; 
}

.footer-links a { 
  color: rgba(255,255,255,0.5); 
  text-decoration: none; 
  font-size: 0.88rem; 
  transition: color 0.2s; 
}

.footer-links a:hover { 
  color: #FF6B6F; 
}

.footer-copy { 
  font-size: 0.78rem; 
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding-top: 24px; 
}

/* ANIMATIONS */
@keyframes fadeUp { 
  from { opacity: 0; transform: translateY(28px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { height: 280px; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .involved-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .programs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .nav-links { display: none; }
  section { padding: 72px 5%; }
  .stories-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .involved-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* Page-specific hero adjustments */
.hero-small {
  min-height: 60vh !important;
}

.hero-small .hero-stats {
  display: none;
}
