/* ============================================
   AFRICA INVESTS — Global Stylesheet
   Palette: Deep Navy / Gold / Emerald / Ivory
   ============================================ */

:root {
  /* Brand palette from the Africa Invests logo:
     forest black, emerald green, cream — on a white base */
  --navy: #0a130c;          /* deep forest black (logo background) */
  --navy-2: #122115;
  --navy-3: #1a2f1f;
  --gold: #3fa866;          /* logo emerald green (primary accent) */
  --gold-light: #57bd7c;
  --emerald: #2e8b57;       /* deeper green (secondary accent) */
  --emerald-light: #3fa866;
  --ivory: #ffffff;         /* white background */
  --white: #ffffff;
  --text: #17211a;
  --text-muted: #5c6b5f;
  --text-on-dark: #dde8da;  /* logo cream */
  --border: #e0e8e0;
  --red: #d64545;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 28, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(8, 28, 51, 0.18);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: #f3f8f3; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--text-on-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--text-muted); }
.section-dark .section-head p { color: var(--text-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 19, 12, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(63, 168, 102, 0.35);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.logo span { color: var(--gold); }
.logo:hover { color: var(--white); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-on-dark);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--gold); color: var(--white); }

.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(10,19,12,0.96) 40%, rgba(10,19,12,0.75)),
    radial-gradient(ellipse at 80% 20%, rgba(63,168,102,0.30), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(63,168,102,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { font-size: 1.15rem; color: var(--text-on-dark); margin-bottom: 2rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(63,168,102,0.15);
  border: 1px solid rgba(63,168,102,0.45);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.hero-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(63,168,102,0.4);
  aspect-ratio: 16/9;
}
.hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy); padding: 2.2rem 0; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: rgba(31,138,91,0.12);
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.card .card-link { font-weight: 600; font-size: 0.92rem; }
.card .card-link::after { content: " →"; }

.pillar-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
}
.tag-media { background: rgba(63,168,102,0.14); color: #2c7a4b; }
.tag-learn { background: rgba(46,139,87,0.12); color: var(--emerald); }
.tag-invest { background: rgba(10,19,12,0.08); color: var(--navy-3); }

/* ---------- Market table ---------- */
.market-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.market-table th, .market-table td { padding: 0.95rem 1.2rem; text-align: left; font-size: 0.94rem; }
.market-table th {
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.market-table tr:nth-child(even) td { background: #f6faf6; }
.market-table td { border-bottom: 1px solid var(--border); }
.up { color: var(--emerald); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }
.table-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }

/* ---------- Video grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: var(--navy-2);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.3rem 1.9rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card .plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}
.price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.8rem 0 0.2rem;
}
.price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.plan-features { list-style: none; margin: 0 0 1.8rem; flex-grow: 1; }
.plan-features li { padding: 0.45rem 0 0.45rem 1.7rem; position: relative; font-size: 0.93rem; border-bottom: 1px dashed var(--border); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

/* ---------- Opportunity cards ---------- */
.opp-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.opp-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.opp-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  background: var(--ivory);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.opp-chip.deadline { background: rgba(214,69,69,0.08); color: var(--red); border-color: rgba(214,69,69,0.25); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--ivory);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold);
}

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: linear-gradient(120deg, var(--navy) 55%, var(--navy-3));
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.newsletter-band h2 { color: var(--white); }
.newsletter-band p { color: var(--text-on-dark); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 0.7rem; }
.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
}
.newsletter-form input:focus { outline: 2px solid var(--gold); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: rgba(63,168,102,0.07);
  border: 1px solid rgba(63,168,102,0.35);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.disclaimer strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--text-on-dark); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(63,168,102,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #93a89a;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy) 55%, var(--navy-3));
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-on-dark); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .newsletter-band { grid-template-columns: 1fr; }
  .cards-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.2rem 0;
    gap: 0.9rem;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}

@media (max-width: 560px) {
  .cards-grid, .cards-grid-2, .cards-grid-4, .pricing-grid, .video-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .nav-cta { display: none; }
}
