/* CAM Orphanage Connect: public website design.
   Colours come from the Cameroonian flag (green, red, gold) on warm cream. */

:root {
  --forest: #0A4D32;
  --green: #12804A;
  --leaf: #2E9E62;
  --gold: #E9B93A;
  --gold-deep: #A87A12;
  --red: #C0392B;
  --cream: #FBF7EE;
  --sand: #F2EAD8;
  --paper: #FFFFFF;
  --ink: #1B2A22;
  --muted: #55645B;
  --line: rgba(27, 42, 34, 0.13);
  --radius: 14px;
  --shadow: 0 12px 32px rgba(20, 40, 30, 0.12);
  --font-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: var(--green) }
a:hover { color: var(--forest) }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--forest); margin: 0 0 0.6em; font-weight: 700 }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem) }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem) }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem) }
p { margin: 0 0 1em }
ul { margin: 0; padding: 0 }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 0.7rem 1rem; z-index: 100 }
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem }
.wrap-narrow { max-width: 860px }

/* ----- Cameroon flag bar --------------------------------------------------- */
.flag-bar { height: 6px; background: linear-gradient(90deg, var(--green) 0 33.34%, var(--red) 33.34% 66.67%, var(--gold) 66.67% 100%) }

/* ----- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line) }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--forest) }
.brand svg { width: 38px; height: 38px; flex-shrink: 0 }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.05; color: var(--forest) }
.brand-text span { display: block; color: var(--green); font-size: 0.95rem }

.nav-menu { display: flex; align-items: center; gap: 1.6rem }
.nav-links { display: flex; align-items: center; gap: 1.35rem; list-style: none }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem; padding: 0.4rem 0; border-bottom: 2px solid transparent }
.nav-links a:hover { color: var(--green) }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold) }
.nav-actions { display: flex; align-items: center; gap: 0.6rem }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 1.4rem; color: var(--forest); cursor: pointer }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 16px 24px rgba(20, 40, 30, 0.12);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-header.menu-open .nav-menu { display: flex }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0 }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line) }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1rem }
}

/* ----- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px) }
.btn-primary { background: var(--green); color: #fff }
.btn-primary:hover { background: var(--forest); color: #fff }
.btn-gold { background: var(--gold); color: #2B2105 }
.btn-gold:hover { background: #F4CA55; color: #2B2105 }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest) }
.btn-outline:hover { background: var(--forest); color: #fff }
.btn-light { background: #fff; color: var(--forest) }
.btn-light:hover { background: var(--sand); color: var(--forest) }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75) }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem }
.btn-block { width: 100% }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem }
@media (max-width: 560px) {
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { width: 100% }
}

/* ----- Hero ----------------------------------------------------------------------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, 84vh, 780px); color: #fff; overflow: hidden; background: var(--forest) }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40% }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(5, 38, 24, 0.9) 0%, rgba(5, 38, 24, 0.72) 38%, rgba(5, 38, 24, 0.12) 72%, rgba(5, 38, 24, 0) 100%) }
.hero-inner { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 7rem }
.hero h1 { color: #fff; max-width: 16ch; text-wrap: balance }
.hero .lead { max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.93); margin-bottom: 1.75rem }
.hero-note { margin: 1.25rem 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 0.5rem }
.hero-note i { color: var(--gold) }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(5, 38, 24, 0.55) 0%, rgba(5, 38, 24, 0.86) 100%) }
  .hero > img { object-position: 45% 40% }
  .hero-inner { padding-top: 3rem; padding-bottom: 6rem }
  .hero h1 { max-width: none }
}

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.9rem }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--gold); border-radius: 3px }
.hero .eyebrow, .on-dark .eyebrow { color: var(--gold) }

/* ----- Stats band (overlaps the hero) --------------------------------------------------- */
.stats { position: relative; z-index: 2; margin-top: -4.2rem }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; text-align: center }
.stat { padding: 0.4rem 0.6rem; border-right: 1px solid var(--line) }
.stat:last-child { border-right: 0 }
.stat-number { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--green); line-height: 1.1 }
.stat-label { font-size: 0.92rem; color: var(--muted) }
.stats-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0 }
@media (max-width: 860px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 1rem 0 }
  .stat { border-right: 0 }
  .stat:nth-child(odd) { border-right: 1px solid var(--line) }
  .stat:last-child { grid-column: 1 / -1; border-right: 0 }
}

/* ----- Sections --------------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0 }
.section-alt { background: var(--sand) }
.section-white { background: #fff }
.section-dark { background: var(--forest); color: rgba(255, 255, 255, 0.92) }
.section-dark h2, .section-dark h3 { color: #fff }
.pattern {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%);
  background-size: 34px 34px;
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center }
.section-head.center .eyebrow { justify-content: center }
.section-head p { font-size: 1.15rem; color: var(--muted) }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.85) }

.grid { display: grid; gap: 1.5rem }
.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: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr } }

/* ----- Audience cards ---------------------------------------------------------------------------------- */
.audience-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 5px solid var(--green) }
.audience-card:nth-child(2) { border-top-color: var(--red) }
.audience-card:nth-child(3) { border-top-color: var(--gold) }
.audience-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.audience-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1 }
.audience-body h3 { margin-bottom: 0.4rem }
.audience-body .tagline { color: var(--muted); margin-bottom: 1rem }
.ticks { list-style: none; margin-bottom: 1.5rem; display: grid; gap: 0.55rem }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem; align-items: start }
.ticks i { color: var(--green); margin-top: 0.2rem }
.audience-body .btn-row { margin-top: auto }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem }
.text-link:hover { text-decoration: underline }

/* ----- Steps / features ---------------------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.4rem; border: 1px solid var(--line); position: relative }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem }
.steps li:nth-child(2)::before { background: var(--red) }
.steps li:nth-child(3)::before { background: var(--gold); color: #2B2105 }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.4rem }
.steps p { margin: 0; color: var(--muted); font-size: 1rem }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr } }

.feature { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start }
.feature-icon { width: 3rem; height: 3rem; border-radius: 12px; background: rgba(18, 128, 74, 0.12); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.4rem }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25rem }
.feature p { margin: 0; color: var(--muted); font-size: 1rem }
.section-dark .feature-icon { background: rgba(255, 255, 255, 0.12); color: var(--gold) }
.section-dark .feature p { color: rgba(255, 255, 255, 0.82) }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center }
.split.reverse > :first-child { order: 2 }
.split-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover }
@media (max-width: 860px) { .split { grid-template-columns: 1fr } .split.reverse > :first-child { order: 0 } }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem }
.photo-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand) }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s }
.photo-grid figure:hover img { transform: scale(1.04) }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.9rem; color: #fff; font-weight: 600; font-size: 0.97rem; background: linear-gradient(180deg, transparent, rgba(5, 38, 24, 0.85)) }
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr) } }

/* ----- Country band -------------------------------------------------------------------------------------- */
.country { position: relative; color: #fff; overflow: hidden; background: var(--forest) }
.country > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60% }
.country::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 38, 24, 0.9), rgba(5, 38, 24, 0.55)) }
.country .wrap { position: relative; z-index: 1 }
.country h2 { color: #fff }
.country .grid { margin-top: 2rem }
.country .feature p { color: rgba(255, 255, 255, 0.88) }
.country .feature-icon { background: rgba(255, 255, 255, 0.16); color: var(--gold) }

/* ----- Call to action band --------------------------------------------------------------------------------- */
.cta-band { position: relative; text-align: center; color: #fff; overflow: hidden; background: var(--green); padding: clamp(3.5rem, 8vw, 5.5rem) 0 }
.cta-band h2 { color: #fff }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 40rem; margin-left: auto; margin-right: auto; font-size: 1.15rem }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem }

/* ----- Page hero (inner pages) ------------------------------------------------------------------------------ */
.page-hero { position: relative; color: #fff; background: var(--forest); overflow: hidden; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 4.5rem) }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(5, 38, 24, 0.92), rgba(5, 38, 24, 0.7) 60%, rgba(5, 38, 24, 0.35)) }
.page-hero .wrap { position: relative; z-index: 1 }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 22ch }
.page-hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.92); max-width: 42rem; margin-bottom: 1.5rem }
.breadcrumb { font-size: 0.92rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.8) }
.breadcrumb a { color: #fff }

/* ----- Cards, callouts, FAQ, prose ---------------------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem }
.card h3 { margin-bottom: 0.5rem }
.card p:last-child { margin-bottom: 0 }
.callout { background: #fff; border-left: 6px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem; box-shadow: var(--shadow) }
.callout h3 { margin-bottom: 0.4rem }
.callout p:last-child { margin-bottom: 0 }
.note { background: rgba(233, 185, 58, 0.18); border: 1px solid rgba(168, 122, 18, 0.35); border-radius: 12px; padding: 1rem 1.2rem; font-size: 1rem }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.8rem; overflow: hidden }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--forest); padding: 1.1rem 1.4rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: '+'; font-size: 1.6rem; color: var(--green); line-height: 1; flex-shrink: 0 }
.faq[open] summary::after { content: '\2212' }
.faq[open] summary { border-bottom: 1px solid var(--line) }
.faq .faq-body { padding: 1rem 1.4rem 1.2rem; color: var(--muted) }
.faq .faq-body p:last-child { margin-bottom: 0 }

.prose { max-width: 760px }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem }
.prose h3 { font-size: 1.25rem; margin-top: 1.6rem }
.prose ul { padding-left: 1.3rem; margin-bottom: 1em }
.prose li { margin-bottom: 0.4rem }
.prose .updated { color: var(--muted); font-size: 0.95rem }

.contact-list { list-style: none; display: grid; gap: 1.1rem }
.contact-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start }
.contact-list li[hidden] { display: none }
.contact-list i { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(18, 128, 74, 0.12); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.15rem }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--forest) }
.contact-list a { word-break: break-word }

.credit-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow) }
.credit-table th, .credit-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.97rem }
.credit-table th { background: var(--sand); font-family: var(--font-head); color: var(--forest) }
.credit-table img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px }
@media (max-width: 700px) {
  .credit-table thead { display: none }
  .credit-table, .credit-table tbody, .credit-table tr, .credit-table td { display: block; width: 100% }
  .credit-table tr { border-bottom: 6px solid var(--sand); padding: 0.5rem 0 }
  .credit-table td { border: 0; padding: 0.3rem 1rem }
}

/* ----- Footer ----------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, 0.86); font-size: 1rem }
.footer-top { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none }
.site-footer a:hover { color: var(--gold); text-decoration: underline }
.site-footer [data-site="phone"] { display: inline-block; vertical-align: top }
.footer-brand .brand-text, .footer-brand .brand-text span { color: #fff }
.footer-brand p { margin-top: 1rem; max-width: 24rem }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 1.2rem 0; font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr } }

/* ----- Motion ------------------------------------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease }
.reveal.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; transition: none }
  .btn:hover, .photo-grid figure:hover img { transform: none }
}
@media print { .site-header, .flag-bar, .cta-band, .site-footer { display: none } }
