/* =============================================
   ANGAZA MAISHA FOUNDATION — MAIN STYLESHEET
   ============================================= */

:root {
  --orange:  #F97316;
  --orange-dark: #EA580C;
  --green:   #16A34A;
  --green-dark: #15803D;
  --purple:  #9B59D0;
  --white:   #FFFFFF;
  --light:   #F9FAFB;
  --text:    #1F2937;
  --muted:   #6B7280;
  --border:  #E5E7EB;
}

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

html { scroll-behavior: smooth; }

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

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

/* TYPOGRAPHY */
h1,h2,h3,h4,h5 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1rem; }

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,.1);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,163,74,.35);
}

/* =============================================
   HEADER / NAV
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }

.nav-donate {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: all .25s !important;
}
.nav-donate:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
}
.hero-bg-shapes span:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--orange);
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-bg-shapes span:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--purple);
  bottom: -150px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-bg-shapes span:nth-child(3) {
  width: 200px; height: 200px;
  background: var(--green);
  top: 30%; left: 10%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text .section-label {
  background: rgba(249,115,22,.2);
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-text p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}
.stat-item .lbl {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  letter-spacing: .05em;
}

.hero-image-wrap {
  position: relative;
}
.hero-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f97316, #9B59D0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .9;
  mix-blend-mode: luminosity;
}
.hero-image-placeholder {
  color: rgba(255,255,255,.7);
  font-size: 5rem;
  text-align: center;
}
.hero-image-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-top: 1rem;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.hero-badge .info .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-badge .info .lbl {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-img-main {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e0f2fe, #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.about-img-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 3.5rem;
}
.about-img-placeholder p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--muted);
}
.about-badge-box {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--orange);
  color: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(249,115,22,.35);
  text-align: center;
}
.about-badge-box .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge-box .lbl { font-size: 0.8rem; font-weight: 600; opacity: .9; margin-top: 4px; }

.about-text .section-subtitle { max-width: 100%; }
.value-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.pill {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.pill.orange { background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.3); color: var(--orange-dark); }
.pill.green  { background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.3);  color: var(--green-dark); }
.pill.purple { background: rgba(155,89,208,.1); border-color: rgba(155,89,208,.3); color: var(--purple); }

/* =============================================
   WHAT WE DO
   ============================================= */
#what-we-do {
  padding: 100px 0;
  background: var(--light);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.1); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.card-icon.orange { background: rgba(249,115,22,.1); }
.card-icon.green  { background: rgba(22,163,74,.1); }
.card-icon.purple { background: rgba(155,89,208,.1); }
.card-icon.blue   { background: rgba(59,130,246,.1); }

.card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* =============================================
   IMPACT
   ============================================= */
#impact {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}
#impact::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.02'%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");
}

#impact .section-label { color: var(--orange); background: rgba(249,115,22,.15); }
#impact .section-title { color: var(--white); }
#impact .section-subtitle { color: rgba(255,255,255,.7); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.impact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all .3s;
  backdrop-filter: blur(10px);
}
.impact-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-6px);
}
.impact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.impact-card .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.impact-card .lbl {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.impact-card .desc {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* =============================================
   CTA
   ============================================= */
#cta {
  padding: 100px 0;
  background: var(--white);
}
.cta-box {
  background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%);
  border-radius: 28px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(249,115,22,.3);
}
.cta-box::before, .cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-box::before { width: 400px; height: 400px; top: -150px; right: -100px; }
.cta-box::after  { width: 250px; height: 250px; bottom: -100px; left: -60px; }

.cta-box h2 { color: var(--white); margin-bottom: 1rem; }
.cta-box p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; margin-bottom: 2.5rem; }
.cta-btns   { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: #fff8f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* =============================================
   GALLERY
   ============================================= */
#gallery {
  padding: 100px 0;
  background: var(--light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #e0f2fe, #ddd6fe);
}
.gallery-item:nth-child(4n+1) { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.gallery-item:nth-child(4n+2) { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.gallery-item:nth-child(4n+3) { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.gallery-item:nth-child(4n+4) { background: linear-gradient(135deg, #fee2e2, #fecaca); }

.gallery-item-inner {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2.5rem;
  transition: all .3s;
}
.gallery-item:hover .gallery-item-inner { transform: scale(1.05); }
.gallery-item-inner span {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--muted);
}

.gallery-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; margin-inline: auto; }

#contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.contact-detail .icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(249,115,22,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-detail .text strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-detail .text span   { color: var(--muted); font-size: 0.95rem; }

.contact-form-wrap {
  background: var(--light);
  border-radius: 20px;
  padding: 40px;
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}
.form-group textarea { min-height: 140px; resize: vertical; }

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

.map-section {
  padding: 0 0 100px;
}
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #0d1117;
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 54px; margin-bottom: 1.25rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all .25s;
}
.social-links a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,.3);
}

/* =============================================
   FLOATING DONATE BTN
   ============================================= */
#floating-donate {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(249,115,22,.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse-btn 2.5s ease-in-out infinite;
  text-decoration: none;
}
#floating-donate:hover {
  background: var(--orange-dark);
  transform: scale(1.05);
  animation: none;
}
@keyframes pulse-btn {
  0%,100% { box-shadow: 0 8px 30px rgba(249,115,22,.5); }
  50%      { box-shadow: 0 8px 50px rgba(249,115,22,.8); }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.1); gap: 16px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-stats { flex-wrap: wrap; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-box { padding: 50px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .btn { padding: 12px 22px; }
}
