/* style.css — Africa Health Connect Header Styles */
/* header */
:root {
  --brand: #0b6b5b;
  --accent: #ff7a59;
  --muted: #6b7280;
  --bg: #ffffff;
  --glass: rgba(255,255,255,0.85);
  --shadow: 0 6px 20px rgba(11,107,91,0.08);
  --max-width: 1200px;
  --nav-gap: 1.2rem;
}

* { box-sizing: border-box; }
body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(6px);
  background: var(--glass);
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(15,23,42,0.03);
}

.site-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo img {
  height: 90px;
  width: 100px;
}
.site-title {
  font-weight: 700;
  color: var(--brand);
  font-size: 1rem;
}
.site-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

nav.primary {
  margin-left: 1rem;
  flex: 1;
}

.nav-list {
  display: flex;
  gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.35rem;
  color: #121212;
  text-decoration: none;
  font-weight: 600;
}
.nav-list a:hover,
.nav-list a:focus {
  color: var(--brand);
  outline: none;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.08);
  padding: 0.5rem;
  display: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #111;
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: #f7fafc;
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-donate {
  background: linear-gradient(90deg, var(--brand), #106a63);
  color: #fff;
}

.search {
  position: relative;
}
.search input {
  width: 0;
  opacity: 0;
  transition: width .18s ease, opacity .18s ease;
  border: 1px solid #e6e9ee;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
}
.search.open input {
  width: 180px;
  opacity: 1;
}

.mobile-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .nav-list { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-actions .btn-donate { display: none; }
  .mobile-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    box-shadow: 0 12px 40px rgba(2,6,23,0.08);
    padding: 1rem;
    display: none;
  }
  .mobile-menu.open { display: block; }
  .site-inner { padding: 0.6rem 0.9rem; }
}

/* ======================================
   GLOBAL STYLES
   ====================================== */
:root {
  --brand: #0b6b5b;
  --accent: #f7b733;
  --muted: #555;
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #fefefe;
}
h1, h2, h3 {
  color: var(--brand);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* background slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

/* overlay tint for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(134, 176, 169, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 1rem;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color:#f7b733
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-cta:hover {
  background: #e0a12b;
}

/* ======================================
   ABOUT US SECTION – Africa Health Connect
   ====================================== */

.about {
  padding: 4.5rem 1rem;
  background: #ffffff;
}

.about .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.5rem;
  position: relative;
}

/* subtle underline accent */
.about h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.about p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Sub-headings like Mission, Vision */
.about h3 {
  font-size: 1.4rem;
  color: var(--brand);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

/* List styling for "What We Do" */
.about ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.about ul li {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-left: 1.8rem;
  position: relative;
  text-align: left;
}

/* custom check icon */
.about ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}
/* ======================================
   About Cards Animation
   ====================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: stagger animation for cards */
.cards-grid .card {
  transition-delay: 0s; /* default, will be overwritten by JS */
}
/* ======================================
   ABOUT US SECTION — Africa Health Connect
   ====================================== */
.about {
  padding: 5rem 1rem;
  background: #fefefe;
}

.about .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
  position: relative;
}

/* Underline accent */
.about h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.about p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Cards grid (Vision, Mission, Values, Achievements) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cards-grid .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.cards-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--brand);
}

.card p, .card ul {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Values list styling */
.card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

/* ======================================
   Storytelling diagonal layout
   ====================================== */
.about-story-diagonal {
  padding: 5rem 1rem;
  background: #f9fafb;
  position: relative;
}

.about-story-diagonal .container {
  max-width: 1100px;
  margin: 0 auto;
}

.story-diagonal {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.story-diagonal.reverse {
  flex-direction: row-reverse;
}

.story-image {
  flex: 1 1 45%;
  overflow: hidden;
  border-radius: 12px;
}
.story-image img {
  width: 100%;
  max-height: 300px; /* limits image height for a balanced look */
  object-fit: cover; /* maintains aspect ratio and fills container */
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.story-image img:hover {
  transform: scale(1.05);
}



.story-text {
  flex: 1 1 50%;
  text-align: left;
}

.story-text h3 {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Optional diagonal background overlay */
.about-story-diagonal .background-overlay {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11,107,91,0.05) 0%, rgba(247,183,51,0.05) 100%);
  z-index: 0;
  pointer-events: none;
  transform: skewY(-3deg);
}

/* Fade-in elements */
.about .fade-in,
.about-story-diagonal .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about .fade-in.visible,
.about-story-diagonal .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   Responsive Design
   ====================================== */
@media (max-width: 1024px) {
  .story-diagonal {
    flex-direction: column;
  }
  .story-diagonal.reverse {
    flex-direction: column;
  }
  .story-text {
    text-align: center;
  }
  .story-text h3 {
    font-size: 1.6rem;
  }
  .story-text p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ======================================
   RESPONSIVE DESIGN
   ====================================== */
@media (max-width: 768px) {
  .about h2 {
    font-size: 1.9rem;
  }

  .about p {
    font-size: 1rem;
  }

  .about h3 {
    font-size: 1.25rem;
  }
}


/* ======================================
   MISSION SECTION
   ====================================== */
.mission {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}
.mission h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mission p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
}

/* ======================================
   PROGRAMS SECTION
   ====================================== */
.programs {
  padding: 4rem 1rem;
  background: #f9fafb;
  text-align: center;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.program-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.program-card:hover {
  transform: translateY(-5px);
}
.btn-outline {
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

/* ======================================
   CALL TO ACTION SECTION
   ====================================== */
.cta {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.1rem;
}
.btn-donate {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-donate:hover {
  background: #e09c20;
}
/* ======================================
   STATISTICS SECTION
   ====================================== */
 h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
   .stats {
  background: #fff;
  padding: 4rem 1rem;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-5px);
}
.counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.stat p {
  font-size: 1rem;
  color: var(--muted);
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  background: #f1f1f1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ======================================
   ANIMATIONS (Fade-in on scroll)
   ====================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}




