/* ============================================================
   Queen's Care & Empowerment Foundation
   Design language: Adire (Yoruba indigo resist-dye textile) —
   the same craft tradition the Foundation's cooperative trains
   women in. Deep indigo, marigold gold, ivory paper, emerald
   growth accent. Hand-drawn textile-border motif as signature.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Color tokens */
  --indigo-950: #101d35;
  --indigo-900: #16294a;
  --indigo-800: #1f3a63;
  --indigo-700: #2c4f81;
  --ivory: #faf6ec;
  --ivory-dim: #f1ead9;
  --paper: #fffdf8;
  --gold: #d9a441;
  --gold-bright: #eab654;
  --emerald: #2f6e52;
  --emerald-bright: #3d8968;
  --clay: #b5502f;
  --ink: #1c1a15;
  --ink-soft: #4a4638;
  --ink-faint: #7a7461;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold-bright); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--ivory); }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 0.7rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}
.on-dark .section-head p { color: #cdd6e4; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.15rem 0;
  transition: background var(--ease) .35s, padding var(--ease) .35s, box-shadow var(--ease) .35s;
}
.site-nav.scrolled {
  background: rgba(16, 29, 53, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 8px 24px rgba(16,29,53,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ivory);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cdd6e4;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ivory); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--indigo-950);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .site-nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--indigo-950);
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.2rem;
    border-top: 1px solid var(--indigo-700);
  }
  .site-nav.mobile-open .nav-cta {
    display: inline-flex;
    margin: 0 var(--edge) 1.5rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--indigo-950);
  color: var(--ivory);
  padding: clamp(7rem, 14vw, 9rem) 0 0;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
}
.hero-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 15ch;
  margin-top: 1rem;
  color: #ffffff;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-lede {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: #d8e0ec;
  max-width: 56ch;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--indigo-950);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,164,65,0.28); }
.btn-ghost {
  border-color: rgba(250,246,236,0.35);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(250,246,236,0.06); }
.btn-dark {
  background: var(--indigo-950);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--indigo-800); transform: translateY(-2px); }

/* Stat strip */
.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: 4.5rem;
  border-top: 1px solid rgba(250,246,236,0.14);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2rem var(--edge) 2rem 0;
  border-right: 1px solid rgba(250,246,236,0.14);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--gold-bright);
  font-weight: 600;
}
.stat-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #b9c3d4;
  max-width: 18ch;
}
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(250,246,236,0.14); padding: 1.5rem 0.5rem 1.5rem 0; }
}

/* ---------- Textile divider (signature element) ---------- */
.textile-divider {
  width: 100%;
  height: 34px;
  display: block;
}

/* ---------- Sections generic ---------- */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section.on-dark { background: var(--indigo-950); color: var(--ivory); }
.section.tint { background: var(--ivory-dim); }

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

/* ---------- Who we are ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.about-grid p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.sdg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.sdg-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--indigo-950);
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.about-card {
  background: var(--paper);
  border: 1px solid rgba(28,26,21,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: 0 0 3px 3px;
}
.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.about-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.about-card + .about-card { margin-top: 1.4rem; }

/* ---------- Cards grid (What We Do / Programmes / Values) ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid rgba(28,26,21,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(16,29,53,0.1);
  border-color: rgba(217,164,65,0.4);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-950);
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--gold-bright); }
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}
.on-dark .card {
  background: var(--indigo-900);
  border-color: rgba(250,246,236,0.1);
}
.on-dark .card p { color: #c3cbdb; }
.on-dark .card:hover { border-color: rgba(217,164,65,0.5); }

/* ---------- Values ---------- */
.value-card {
  padding: 1.8rem;
}
.value-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald);
  background: rgba(47,110,82,0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ---------- Mission / Vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.mv-card {
  padding: 2.4rem;
  border-radius: var(--radius);
  background: var(--indigo-900);
  color: var(--ivory);
}
.mv-card:nth-child(2) { background: var(--emerald); }
.mv-card h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.mv-card p { color: rgba(250,246,236,0.85); font-size: 1rem; margin: 0; }
@media (max-width: 780px) { .mv-grid, .about-grid { grid-template-columns: 1fr; } }

/* ---------- Health feature ---------- */
.health-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(28,26,21,0.08);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(181,80,47,0.1);
  color: var(--clay);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.health-feature h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 0.4rem; }
.health-feature p { color: var(--ink-soft); margin-top: 1rem; }
.health-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.health-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.health-list li svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--emerald); margin-top: 2px; }
@media (max-width: 860px) { .health-feature { grid-template-columns: 1fr; } }

/* ---------- Environmental ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.eco-card {
  text-align: left;
  padding: 1.7rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(250,246,236,0.06);
  border: 1px solid rgba(250,246,236,0.12);
}
.eco-card .eco-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.5rem;
}
.eco-card p { font-size: 0.88rem; color: #c3cbdb; margin: 0; }
@media (max-width: 880px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sponsorship ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.tier {
  background: var(--paper);
  border: 1.5px solid rgba(28,26,21,0.09);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.featured {
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(217,164,65,0.18);
  transform: translateY(-8px);
}
.tier-badge {
  position: absolute;
  top: -13px; left: 1.6rem;
  background: var(--gold);
  color: var(--indigo-950);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.tier-scale {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}
.tier-scale span {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: var(--ivory-dim);
}
.tier-scale span.on { background: var(--gold); }
.tier h3 { font-size: 1.15rem; }
.tier .price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--indigo-900);
  margin-top: 0.5rem;
  font-weight: 600;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.tier li {
  font-size: 0.87rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.tier li svg { width: 15px; height: 15px; stroke: var(--emerald); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 980px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } .tier.featured { transform: none; } }
@media (max-width: 560px) { .tier-grid { grid-template-columns: 1fr; } }

/* ---------- Get involved ---------- */
.involve {
  background: var(--indigo-950);
  color: var(--ivory);
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.involve-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.involve h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 16ch; color: #ffffff; }
.involve-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.involve-grid {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.involve-item {
  background: rgba(250,246,236,0.05);
  border: 1px solid rgba(250,246,236,0.12);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.involve-item h4 { color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 0.5rem; }
.involve-item p { font-size: 0.9rem; color: #c3cbdb; margin: 0; }
@media (max-width: 780px) { .involve-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-950);
  color: #b9c3d4;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,246,236,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ivory); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-grid p { font-size: 0.9rem; margin-top: 1rem; max-width: 34ch; color: #a7b1c4; }
.footer-col h5 { color: var(--ivory); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; transition: color .2s; }
.footer-col a:hover { color: var(--ivory); }
.footer-col li.contact { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.88rem; }
.footer-col li.contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--gold-bright); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
