/* AfriExcel Institute — brand stylesheet (navy + gold) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --navy: #12307e;
  --navy-deep: #0b1f57;
  --navy-ink: #0a1737;
  --gold: #f5a306;
  --gold-soft: #ffcf6a;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --grey: #5b6478;
  --line: #e5e8f0;
  --shadow: 0 18px 40px -24px rgba(10, 23, 55, 0.45);
  --radius: 18px;
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--navy-ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
.brand-name,
.btn,
.stat-num,
.step-num {
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(18, 48, 126, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.section-head p {
  color: var(--grey);
  margin: 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--grey);
}

.alt {
  background: var(--cream);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 12px 26px -14px rgba(245, 163, 6, 0.9);
}

.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- header ---------- */
.topbar {
  background: var(--navy-deep);
  color: #e8ecf8;
  font-size: 0.9rem;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  padding: 9px 20px;
}

.topbar a {
  text-decoration: none;
  color: #e8ecf8;
}

.topbar a:hover {
  color: var(--gold-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy-ink);
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.22s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  min-height: 44px;
  padding: 10px 22px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

@media (max-width: 940px) {
  .nav-links,
  .nav-right .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.open {
    display: block;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 20px 22px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 13px 4px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  width: 100%;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 163, 6, 0.18), transparent 45%),
    linear-gradient(160deg, #12307e 0%, #0b1f57 60%, #091a49 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p.lead {
  color: #d8e0f5;
  max-width: 560px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 26px 0 28px;
}

.track {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
}

.track strong {
  display: block;
  font-size: 1rem;
}

.track span {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
  width: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -8px;
  background: #fff;
  color: var(--navy-ink);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
}

.hero-badge strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.hero-badge span {
  font-size: 0.85rem;
  color: var(--grey);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    position: static;
    margin: 18px auto 0;
    max-width: none;
  }
}

/* ---------- strip ---------- */
.strip {
  background: var(--gold);
  padding: 18px 0;
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 20px;
  text-align: center;
}

.strip b {
  display: block;
  font-family: Poppins, sans-serif;
  color: var(--navy-ink);
}

.strip span {
  font-size: 0.9rem;
  color: #5c4405;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(18, 48, 126, 0.28);
}

.card p {
  color: var(--grey);
  margin: 0;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(18, 48, 126, 0.09);
  color: var(--navy);
  margin-bottom: 14px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.icon.gold {
  background: rgba(245, 163, 6, 0.16);
  color: #a86d00;
}

/* about */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.split img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--grey);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--gold);
}

.check-list b {
  color: var(--navy-ink);
}

/* programmes */
.prog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.prog:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.prog img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.prog-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.badge {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.gold {
  background: var(--gold);
  color: var(--navy-ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* steps */
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

/* experience */
.experience {
  background: linear-gradient(160deg, #0b1f57, #12307e);
  color: #fff;
}

.experience .lead,
.experience .check-list li {
  color: #d8e0f5;
}

.experience .check-list b {
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery img {
  border-radius: 18px;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  width: 100%;
}

.gallery img:first-child {
  grid-column: span 2;
  min-height: 220px;
}

/* cta */
.cta {
  background: var(--gold);
  text-align: center;
}

.cta h2 {
  color: var(--navy-ink);
  max-width: 780px;
  margin: 0 auto 14px;
}

.cta p {
  color: #5c4405;
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: 1.05rem;
}

.cta .hero-actions {
  justify-content: center;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contact-card a,
.contact-card p {
  color: var(--grey);
  text-decoration: none;
  word-break: break-word;
  display: block;
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--navy);
}

/* footer */
.site-footer {
  background: var(--navy-ink);
  color: #c9d2ea;
  padding: clamp(44px, 6vw, 66px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #c9d2ea;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* whatsapp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.wa-float:hover {
  transform: translateY(-3px);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

/* animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.pill svg,
.topbar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
