/* =====================================================================
   AFRICA PENSIONS & INVESTMENTS — GLOBAL STYLESHEET
   Brand Colours: Cyan #00AEEF · Deep Indigo #2E3191
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand primary: Cyan (AFRICA wordmark colour) ── */
  --gold:        #00AEEF;
  --gold-light:  #5DD4F9;
  --gold-dark:   #0091CC;
  --gold-pale:   rgba(0,174,239,0.10);

  /* ── Brand secondary: Deep Indigo (PENSIONS wordmark colour) ── */
  --navy:        #2E3191;
  --navy-mid:    #252880;
  --navy-light:  #3A3DA0;

  /* ── Backgrounds ── */
  --cream:       #F0F4FF;
  --cream-dark:  #E4E8FF;
  --white:       #FFFFFF;

  /* ── Text ── */
  --text:        #1A1A2E;
  --text-mid:    #2E3058;
  --text-muted:  #667085;

  /* ── Utility ── */
  --border:      rgba(0,174,239,0.25);
  --border-grey: rgba(0,0,0,0.08);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow:      0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --trans:       0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─── CONTAINERS ─────────────────────────────────────────────────── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* ─── TYPOGRAPHY UTILS ───────────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-title.light { color: var(--white); }
.section-sub {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 760px;
}
.section-sub.light { color: rgba(255,255,255,0.72); }
.gold-bar {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 28px;
}
.gold-bar.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 5px;
  border: none; cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,151,58,0.38); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── TOPBAR ─────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  font-size: 12.5px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(201,151,58,0.18);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-left  { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar a { color: rgba(255,255,255,0.70); display: flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); font-size: 11px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { font-size: 13px; }

/* ─── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  border-bottom: 1px solid rgba(201,151,58,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: var(--trans);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.logo img { height: 52px; width: auto; object-fit: contain; }

/* ── DESKTOP NAV ── */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item  { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px; font-weight: 700;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 5px;
  transition: var(--trans);
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.active > .nav-link { color: var(--gold); }
.nav-item.active > .nav-link { background: var(--gold-pale); }
.nav-link .chevron { font-size: 9px; transition: transform .25s; }
.nav-item:hover > .nav-link .chevron { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: var(--trans);
}
.nav-item:hover .dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--trans);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--cream); color: var(--gold); padding-left: 22px; }
.dropdown a i { color: var(--gold); font-size: 12px; width: 16px; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; margin-left: auto;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1998;
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--white);
  z-index: 1999;
  padding: 0;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-grey);
  background: var(--navy);
}
.mobile-nav-head img { height: 40px; }
.mobile-nav-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; font-size: 16px;
  transition: var(--trans);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.2); }

.mobile-nav-body { padding: 16px 0; flex: 1; }
.mobile-nav-body a {
  display: block;
  padding: 13px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color .2s, background .2s;
}
.mobile-nav-body a:hover,
.mobile-nav-body a.active-page { color: var(--gold); background: var(--gold-pale); }
.mobile-nav-body a.sub {
  padding-left: 38px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
}
.mobile-nav-body a.sub:hover { color: var(--gold); }
.mobile-nav-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border-grey);
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer { background: #0A0B2E; color: rgba(255,255,255,0.55); }

.footer-main {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 60px;
}
.footer-brand img { height: 64px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.85; margin-bottom: 22px; color: rgba(255,255,255,0.48); }

.footer-socials { display: flex; gap: 10px; }
.footer-soc {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.50);
  transition: var(--trans);
}
.footer-soc:hover { background: var(--gold); border-color: var(--gold); color: white; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13.5px; color: rgba(255,255,255,0.48);
  display: flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.footer-col ul li a::before { content: '›'; color: var(--gold); font-weight: 700; }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-row i { color: var(--gold); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-contact-row span { font-size: 13.5px; color: rgba(255,255,255,0.50); line-height: 1.6; }
.footer-contact-row a { color: rgba(255,255,255,0.50); transition: color .2s; }
.footer-contact-row a:hover { color: var(--gold); }

.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.30); }
.footer-credit { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-credit a { color: var(--gold); font-weight: 700; }

/* ─── PARTNER CAROUSEL ───────────────────────────────────────────── */
.partners-strip {
  padding: 64px 0;
  background: var(--white);
  border-top: 1px solid rgba(201,151,58,0.12);
  border-bottom: 1px solid rgba(201,151,58,0.12);
}
.partners-label {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.carousel-wrap {
  overflow: hidden; position: relative;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 100px; z-index: 2; pointer-events: none;
}
.carousel-wrap::before { left: 0; background: linear-gradient(90deg, white, transparent); }
.carousel-wrap::after  { right: 0; background: linear-gradient(270deg, white, transparent); }
.carousel-track {
  display: flex; align-items: center;
  animation: ticker 32s linear infinite;
  width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 46px; height: 72px;
  filter: grayscale(1) opacity(.45);
  transition: filter .3s;
  flex-shrink: 0;
}
.carousel-item:hover { filter: grayscale(0) opacity(1); }
.carousel-item img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; }
.carousel-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 800;
  color: var(--text-muted); white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── PAGE HERO BANNER (inner pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d1e38 100%);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(201,151,58,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(201,151,58,0.06) 0%, transparent 45%);
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(rgba(201,151,58,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,151,58,1) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--gold); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb i { font-size: 10px; }
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--gold); }
.page-hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .topbar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── SECTION SPACING ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-navy { background: var(--navy); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

/* ─── CARD STYLES ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(201,151,58,0.15);
  border-radius: var(--radius-lg);
  transition: var(--trans);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-gold-top { border-top: 3px solid var(--gold); }

/* ─── DIVIDER ────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-grey);
  margin: 0;
}
.divider-gold {
  border: none;
  border-top: 2px solid var(--border);
  margin: 0;
}
