/* ==========================================================================
   Adoma-Boateng Charitable Organization — Shared Stylesheet
   Palette: Green (primary) / Black / Brown (supporting) on warm off-white
   ========================================================================== */

:root {
  /* Brand colors */
  --green-900: #18af08;
  --green-800: #5dab54;
  --green-700: #90ec86;
  --green-600: #346c2e;
  --green-100: #E7F2EA;
  --green-50:  #F3F9F4;

  --brown-800: #5C3D21;
  --brown-700: #8B5E34;
  --brown-500: #AD7A46;
  --brown-100: #F3E9DD;

  --black-900: #1A1A17;
  --ink: #2B2B26;
  --ink-light: #5B5B52;

  --off-white: #FBF8F3;
  --white: #FFFFFF;
  --border: #E4DECF;

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(26, 26, 23, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 51, 36, 0.12);
  --shadow-lg: 0 20px 50px rgba(18, 51, 36, 0.18);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--green-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.logo-text{
  display: none !important;
}
.logo{
  width: 250px !important;
}
.logo img{
  width: 220px !important;
}
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-700);
  background: var(--brown-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section-head p { color: var(--ink-light); font-size: 1.05rem; }

.bg-pale { background: var(--off-white); }
.bg-green  { background: var(--green-800); color: var(--white); }
.bg-green h2, .bg-green h3 { color: var(--white); }
.bg-brown-100 { background: var(--brown-100); }
.bg-white { background: var(--white); }

/* Soft photo texture behind a card grid: the image sits under a heavy
   white wash so it reads as atmosphere, not a backdrop you have to design
   text contrast against — cards keep their own solid white background
   regardless (see .card), and section-head text stays exactly as legible
   as it is on a plain .bg-pale/.bg-white section. Set the actual image
   per-section via an inline background-image (two different sections use
   this class with two different photos). */
.bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.bg-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 243, 0.88); /* --off-white at 88% */
  pointer-events: none;
}
.bg-photo > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.bg-green .btn-outline, .hero .btn-outline { color: var(--white); }
.bg-green .btn-outline:hover, .hero .btn-outline:hover { background: var(--white); color: var(--green-800); }
.btn-brown { background: var(--brown-700); color: var(--white); }
.btn-brown:hover { background: var(--brown-800); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 248, 243, 0.98);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { height: 42px; width: auto; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--green-900); line-height: 1.15; }
.logo-text span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-700); }

.nav-right { display: flex; align-items: center; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: var(--green-100); color: var(--green-800); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 73px 0 0 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-actions { display: none; }
}
.nav-actions-mobile { display: none; }
@media (max-width: 920px) {
  .nav-actions-mobile { display: flex; margin-top: 14px; padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 86vh;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,51,36,0.55) 0%, rgba(18,51,36,0.72) 55%, rgba(18,51,36,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 120px 24px 80px; margin: 0 auto; text-align: center; }
.hero-content .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.hero-content h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.45em; }
.hero-content p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2em; }

.hero-audio { display: flex; justify-content: center; margin: 0 0 2em; }
.hero-audio audio {
  max-width: 100%;
  width: 360px;
  height: 36px;
  border-radius: 999px;
  /* Chromium/WebKit accept this; Firefox ignores it and falls back to its
     own player chrome, which is an acceptable, non-broken degradation. */
  background: rgba(255,255,255,0.14);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  min-height: 46vh;
  padding-top: 40px;
}
.page-hero .hero-content { padding: 70px 24px 60px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--green-700);
}
.card-icon svg { width: 28px; height: 28px; }
.card.brown .card-icon { background: var(--brown-100); color: var(--brown-700); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.card p { color: var(--ink-light); margin-bottom: 1.2em; font-size: 0.96rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.placeholder-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(26,26,23,0.72);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Icon list (areas of support row inside hero/intro) ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}
.stat-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-family: var(--font-heading);
}

/* ---------- Commitment / quote style section ---------- */
.quote-block {
  border-left: 4px solid var(--green-700);
  padding-left: 24px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--green-900);
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cta-band p { max-width: 560px; margin: 0 auto 2em; color: rgba(255,255,255,0.9); }
.cta-band .hero-actions { margin-top: 0.5em; }

/* ---------- Latest activities empty state ---------- */
.empty-state {
  border: 2px dashed var(--brown-500);
  border-radius: var(--radius-lg);
  background: var(--green-50);
  padding: 56px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.empty-state .card-icon { margin: 0 auto 22px; }
.empty-state h3 { margin-bottom: 0.4em; }
.empty-state p { color: var(--ink-light); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-light);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--green-700); color: var(--green-800); }
.filter-btn.active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--green-900);
}
.gallery-item img { transition: transform 0.4s ease; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-heading);
}
.gallery-item[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(18,20,18,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-inner { max-width: 880px; width: 100%; text-align: center; }
.lightbox-inner img { border-radius: var(--radius-md); margin: 0 auto 16px; max-height: 70vh; width: auto; }
.lightbox-caption { color: var(--white); font-family: var(--font-heading); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  border-radius: 999px;
  width: 46px; height: 46px;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Programs ---------- */
.program-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.program-row:last-child { border-bottom: none; }
.program-row .media-frame img { aspect-ratio: 4/3; object-fit: cover; }
.program-row h3 { margin-bottom: 0.3em; }
.program-row p { color: var(--ink-light); margin-bottom: 0; }
@media (max-width: 780px) {
  .program-row { grid-template-columns: 1fr; text-align: left; }
  .program-row .media-frame { max-width: 320px; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; color: var(--green-900); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px var(--green-100);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.8rem; color: #B3261E; min-height: 1.1em; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #B3261E; }
.form-note { font-size: 0.85rem; color: var(--ink-light); margin-top: 6px; }
.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--green-900);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.form-status.visible { display: block; }
/* honeypot field — hidden from real users, catches basic bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.contact-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 0.3em; }
.contact-card a, .contact-card span { color: var(--ink-light); font-size: 0.95rem; }
.contact-card a:hover { color: var(--green-800); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: rgba(255,255,255,0.82); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr;     gap: 15px; text-align: center;} .footer-bottom{
      text-align: center;
    justify-content: center !important;
}}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.78); font-size: 0.93rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--white); }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: var(--brown-500); }
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.92rem; max-width: 320px; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 22px 0; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Placeholder banner (site-wide dev note) ---------- */
.dev-banner {
  background: var(--brown-800);
  color: var(--white);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
}
.dev-banner strong { color: #FFE2B8; }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
