/* Aspire East Africa — static site */

/* 1. Variables */
:root {
  --blue: #4a57bf;
  --blue-dark: #293069;
  --navy: #1e1f3a;
  --gold: #fdc86a;
  --gold-dark: #e9ad3f;
  --lilac: #c9c3d1;
  --cream: #f9f1e6;
  --bg-soft: #f4f5fb;
  --text: #2c2d4a;
  --muted: #646683;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 31, 58, .10);
  --shadow-lg: 0 20px 50px rgba(30, 31, 58, .18);
  --header-h: 76px;
  --max: 1180px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 3. Layout helpers */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #d9dbef; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--navy .lead { color: #c3c6e4; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 16px; }
.grid { display: grid; gap: 28px; }
.split { display: grid; gap: 56px; align-items: center; }

/* 4. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(253, 200, 106, .35); }
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 8px 22px rgba(74, 87, 191, .3); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* 5. Top bar + header */
.topbar { background: var(--navy); color: #c3c6e4; font-size: .85rem; display: none; }
.topbar .container { display: flex; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #c3c6e4; }
.topbar a:hover { color: var(--gold); }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; gap: 24px; }
.topbar svg { width: 15px; height: 15px; color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30, 31, 58, .10); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
  padding: 12px 20px 28px; box-shadow: 0 20px 30px rgba(30, 31, 58, .12);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
}
.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 12px 4px; font-weight: 700; color: var(--navy); border-bottom: 1px solid #eceef7; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .btn { margin-top: 18px; width: 100%; border-bottom: 0; color: var(--navy); }

/* 6. Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center; padding: 80px 0 150px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(30, 31, 58, .95) 0%, rgba(41, 48, 105, .85) 45%, rgba(74, 87, 191, .35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.2rem; color: #dfe1f5; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 7. Highlight cards (overlap hero) */
.highlights { position: relative; z-index: 3; margin-top: -96px; }
.highlights .grid { grid-template-columns: 1fr; gap: 18px; }
.highlight {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--blue);
}
.highlight--stat { background: var(--blue); color: var(--white); border-top-color: var(--gold); }
.highlight--stat strong { font-size: 3.2rem; line-height: 1; font-weight: 900; color: var(--gold); }
.highlight h3 { font-size: 1.08rem; }
.highlight p { font-size: .95rem; color: var(--muted); }
.highlight--stat p { color: #e3e5f7; font-size: 1.05rem; font-weight: 700; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(74, 87, 191, .1); color: var(--blue); flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* 8. Media frame */
.media { position: relative; }
.media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media::before {
  content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: 20px;
  background: var(--gold); z-index: -1; opacity: .55;
}
.media-badge {
  position: absolute; left: -10px; bottom: 28px; background: var(--navy); color: var(--white);
  border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 220px;
}
.media-badge strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--gold); font-weight: 900; }
.media-badge span { font-size: .88rem; font-weight: 700; }

/* 9. Service cards */
.cards { grid-template-columns: 1fr; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }

/* 10. Check list */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section--navy .checklist li { color: var(--white); }

/* 11. Stats */
.stats { grid-template-columns: 1fr; text-align: center; }
.stat { padding: 34px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 3.2rem; font-weight: 900; line-height: 1; color: var(--blue); }
.stat span { display: block; margin-top: 10px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

/* 12. CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(253, 200, 106, .18);
}
.cta-band .container { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dfe1f5; margin-top: 8px; }

/* 13. Page hero (inner pages) */
.page-hero { position: relative; color: var(--white); padding: 90px 0 80px; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(30, 31, 58, .94), rgba(41, 48, 105, .78)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p { color: #dfe1f5; max-width: 680px; margin-top: 18px; font-size: 1.15rem; }
.breadcrumb { font-size: .85rem; color: #b9bce0; margin-bottom: 18px; }
.breadcrumb a { color: #b9bce0; }
.breadcrumb a:hover { color: var(--gold); }

/* 14. Vision / mission / values */
.vm { grid-template-columns: 1fr; }
.vm-card { padding: 36px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border-left: 5px solid var(--blue); }
.vm-card:nth-child(2) { border-left-color: var(--gold); }
.vm-card h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 1.5rem; }
.vm-card p { color: var(--muted); font-size: 1.05rem; }
.values { grid-template-columns: repeat(2, 1fr); }
.value { text-align: center; padding: 32px 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.value .icon-badge { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 50%; background: var(--cream); color: var(--blue); }
.value h3 { font-size: 1.1rem; }

/* 15. Timeline */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--blue), var(--gold)); border-radius: 2px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.step::before {
  content: ""; position: absolute; left: -31px; top: 30px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--blue);
}
.step-num { font-size: .8rem; font-weight: 900; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.step h3 { margin: 4px 0 12px; }
.step ul { display: grid; gap: 8px; }
.step li { position: relative; padding-left: 20px; color: var(--muted); font-size: .97rem; }
.step li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* 16. Countries */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid #dcdff2; font-weight: 700; font-size: .9rem; color: var(--navy); }
.chip--hq { background: var(--blue); border-color: var(--blue); color: var(--white); }
.map-frame { background: var(--white); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }

/* 17. Service rows */
.service-row + .service-row { margin-top: 96px; }
.service-num { font-size: 4rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--lilac); margin-bottom: 6px; }
.service-row h2 { margin-bottom: 18px; }
.service-row p { color: var(--muted); margin-bottom: 26px; }

/* 18. Training */
.formats { grid-template-columns: 1fr; }
.format { border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.format img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.format-body { padding: 32px; }
.format-tag { display: inline-block; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.format h3 { font-size: 1.5rem; }
.format h4 { color: var(--blue); font-size: 1.05rem; margin: 6px 0 12px; }
.format p { color: var(--muted); margin-bottom: 18px; }
.format .checklist li { font-size: .97rem; }
.topics { grid-template-columns: 1fr; }
.topic { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--blue); }
.topic:nth-child(even) { border-top-color: var(--gold); }
.topic-head { display: flex; gap: 16px; align-items: center; }
.topic-head h3 { font-size: 1.12rem; }
.topic > p { color: var(--muted); font-size: .95rem; }
.topic h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-top: 4px; }
.topic ul { display: grid; gap: 7px; }
.topic li { position: relative; padding-left: 22px; font-size: .95rem; font-weight: 600; }
.topic li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.download {
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
  background: var(--navy); color: #d9dbef; border-radius: 20px; padding: 36px; position: relative; overflow: hidden;
}
.download h3 { color: var(--white); font-size: 1.5rem; }
.download::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(253, 200, 106, .12); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* 19. Contact */
.contact-grid { display: grid; gap: 36px; }
.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--muted); font-weight: 600; word-break: break-word; }
.info-item a:hover { color: var(--blue); }
.form-card { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: .88rem; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 10px; border: 1.5px solid #d9dcef;
  background: #fbfbfe; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74, 87, 191, .15); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 700; display: none; }
.form-status.is-ok { display: block; background: #e8f6ee; color: #1d6b3f; }
.form-status.is-error { display: block; background: #fdecec; color: #9b2424; }

/* 20. Footer */
.site-footer { background: var(--navy); color: #b9bce0; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 64px; width: auto; background: var(--white); border-radius: 12px; padding: 6px 10px; }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 18px; letter-spacing: .04em; }
.site-footer a { color: #b9bce0; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* 21. 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound strong { font-size: 6rem; font-weight: 900; color: var(--blue); line-height: 1; }
.notfound p { color: var(--muted); margin: 14px 0 28px; }

/* 22. Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* 23. Breakpoints */
@media (min-width: 640px) {
  .highlights .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .site-nav { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; box-shadow: none; background: transparent; display: flex; align-items: center; }
  .site-nav ul { flex-direction: row; gap: 6px; align-items: center; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 999px; position: relative; }
  .site-nav a:hover { color: var(--blue); }
  .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--gold); }
  .site-nav .btn { margin: 0 0 0 14px; width: auto; padding: 11px 22px; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .vm { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .download { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 52px; }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
}
@media (min-width: 1100px) {
  .highlights .grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
}

/* 24. Small utilities */
.checklist--spaced { margin: 28px 0 32px; }
.site-nav .btn { display: inline-flex; padding: 14px 28px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.section-head--spaced { margin-top: 96px; }
