/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a3c5e;
  --teal:   #0a7c6e;
  --teal-light: #0fa08e;
  --white:  #ffffff;
  --off-white: #f4f9f8;
  --gray:   #6b7280;
  --light-gray: #e8f0ef;
  --accent: #f59e0b;
  --text:   #1f2937;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover { background: #d97706; border-color: #d97706; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-light); border-color: var(--teal-light); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row;
}

.nav-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background-color: #ffffff !important;
  border-radius: 8px;
  padding: 6px 12px;
  display: block;
}

.footer-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  background-color: #ffffff !important;
  border-radius: 8px;
  padding: 6px 12px;
  display: block;
}

@media (max-width: 768px) {
  .nav-logo {
    height: 55px;
    padding: 4px 8px;
  }
  .footer-logo {
    height: 55px;
    padding: 4px 8px;
  }
}

.nav-brand .org-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-brand .org-slogan {
  font-size: 0.7rem;
  color: var(--teal-light);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links .btn-donate {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 5px;
  margin-left: 0.5rem;
}
.nav-links .btn-donate:hover { background: #d97706; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, rgba(26,60,94,0.85) 0%, rgba(15,76,117,0.8) 40%, rgba(10,124,110,0.85) 100%), url('teamjoinhands.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 750px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== SERVICES ===== */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--light-gray);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10,124,110,0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p { font-size: 0.95rem; color: var(--gray); }

/* ===== IMPACT ===== */
.impact {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.impact-item strong {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.impact-item p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

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

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.program-card:hover { box-shadow: 0 8px 24px rgba(10,124,110,0.12); }

.program-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.program-card p { font-size: 0.92rem; color: var(--gray); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--light-gray);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.97rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--teal);
}

/* ===== DONATE CTA ===== */
.donate-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.donate-cta .section-title { color: var(--white); }
.donate-cta .section-subtitle { color: rgba(255,255,255,0.8); margin: 0 auto 2rem; }

.donate-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== ABOUT PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(26,60,94,0.82) 0%, rgba(10,124,110,0.82) 100%), url('teamjoinhands.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.page-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 1rem auto 0; }

.vision-mission { background: var(--white); }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.vm-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2rem;
  border-top: 4px solid var(--teal);
}

.vm-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.vm-card p { color: var(--gray); font-size: 0.97rem; }

.director-section { background: var(--off-white); }

.director-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.director-photo {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 12px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.director-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.director-info .title {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.director-info p { color: var(--gray); margin-bottom: 1rem; }

.problem-statement { background: var(--white); }

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.problem-item {
  background: #fff5f5;
  border-left: 4px solid #ef4444;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.problem-item p { font-size: 0.95rem; color: var(--text); }

/* ===== KAMPALA PAGE ===== */
.kampala-intro { background: var(--white); }

.kampala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.kampala-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--light-gray);
}

.kampala-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.kampala-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.kampala-card p { font-size: 0.93rem; color: var(--gray); }

/* ===== CONTACT PAGE ===== */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item div strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-item div span { font-size: 0.9rem; color: var(--gray); }

.contact-form { background: var(--off-white); padding: 2rem; border-radius: 12px; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea { resize: vertical; min-height: 130px; }

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

/* ===== DONATIONS PAGE ===== */
.donations-section { background: var(--white); }

.donation-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tier-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--light-gray);
  transition: all 0.2s;
}

.tier-card.featured {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(10,124,110,0.15);
  transform: translateY(-4px);
}

.tier-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.tier-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 1rem;
}

.tier-impact {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.why-donate { background: var(--off-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
  padding: 1.75rem;
}

.why-item .why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-item h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.why-item p { font-size: 0.9rem; color: var(--gray); }

/* ===== FAQ ===== */
.faq { background: var(--white); }

.faq-list { margin-top: 2.5rem; max-width: 780px; margin-left: auto; margin-right: auto; }

.faq-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 1.25rem 0;
}

.faq-question {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.faq-answer { font-size: 0.95rem; color: var(--gray); }

/* ===== TESTIMONIAL SLIDESHOW ===== */
.testimonial-slideshow {
  position: relative;
  max-width: 600px;
  margin: 2.5rem auto 0;
}

.testimonial-slides { position: relative; }

.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }

.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--teal);
}

.t-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--teal);
  color: white;
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 10;
}
.t-btn:hover { background: var(--navy); }
.t-btn.t-prev { left: -2rem; }
.t-btn.t-next { right: -2rem; }

.t-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  background: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.t-dot.active { background: var(--teal); }

@media (max-width: 768px) {
  .t-btn.t-prev { left: 0; }
  .t-btn.t-next { right: 0; }
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.slides { position: relative; }

.slide { display: none; }
.slide.active { display: block; }

.slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 12px;
}

.slide-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  font-style: italic;
}

.slide-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 10;
}
.slide-btn:hover { background: rgba(0,0,0,0.7); }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--accent); }

@media (max-width: 768px) {
  .slide img { height: 260px; }
  .impact-photos { grid-template-columns: 1fr !important; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .org-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-brand .slogan {
  color: var(--teal-light);
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.88rem; max-width: 280px; line-height: 1.65; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--teal-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar .container { position: relative; }

  .vm-grid { grid-template-columns: 1fr; }
  .director-content { grid-template-columns: 1fr; }
  .director-photo { aspect-ratio: 2/1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .donate-options { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}
