/* ============ Thrive Afrika — thriveafrika.net ============ */
:root {
  --navy: #070b1e;
  --navy-2: #0d1330;
  --ink: #10142b;
  --gold: #e9b948;
  --paper: #f7f6f2;
  --white: #ffffff;
  --grey: #8a90a8;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(16, 20, 43, 0.12);
  --maxw: 1200px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
h1,
h2,
h3,
h4,
.display {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.lead {
  font-size: 21px;
  line-height: 1.55;
  color: #3a405c;
}
.on-dark .lead {
  color: #b9bed4;
}

/* ---------- nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav .logo img {
  height: 44px;
  width: auto;
}
.nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav a {
  color: #c9cde0;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--white);
}
.nav .cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.nav .cta:hover {
  background: #f2c75f;
  color: var(--navy);
}
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 34px;
  height: 34px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #fff;
  transition: 0.25s;
}
.burger span:nth-child(1) {
  top: 9px;
}
.burger span:nth-child(2) {
  top: 16px;
}
.burger span:nth-child(3) {
  top: 23px;
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  padding-top: 110px;
  padding-bottom: 110px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero .lead {
  max-width: 60ch;
  margin-top: 28px;
}
.hero-rings {
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 760px;
  height: 760px;
  opacity: 0.5;
  z-index: 1;
}
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  transition: 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #f2c75f;
}
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-2);
}
.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 42px;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */
section {
  padding: 96px 0;
}
.on-dark {
  background: var(--navy);
  color: var(--white);
}
.on-paper {
  background: var(--paper);
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 22px;
  max-width: 24ch;
}
h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.statement {
  font-size: clamp(26px, 3.4vw, 42px);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.statement em {
  font-style: normal;
  color: var(--gold);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.rounded {
  border-radius: 8px;
  overflow: hidden;
}

/* pillar cards */
.pillar {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 28px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.pillar .num {
  font-family: "Sora";
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}
.pillar h3 {
  color: var(--white);
  font-size: 21px;
}
.pillar p {
  color: #a6acc6;
  font-size: 15px;
  margin-top: 10px;
}
.pillar .tag {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* light cards */
.card {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 34px 28px;
}
.card h3 {
  font-size: 20px;
}
.card p {
  font-size: 15px;
  color: #4a5070;
  margin-top: 8px;
}

/* work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.work-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-dark);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(7, 11, 30, 0.14);
}
.work-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.work-card:hover .thumb img {
  transform: scale(1.04);
}
.work-card .body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work-card .pill {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(233, 185, 72, 0.25);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.work-card h3 {
  font-size: 19px;
}
.work-card p {
  font-size: 14.5px;
  color: #4a5070;
  margin-top: 8px;
}
.work-card .client {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--grey);
  font-weight: 600;
}

/* values */
.value {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
}
.value h3 {
  font-size: 19px;
}
.value p {
  font-size: 15px;
  color: #4a5070;
}

/* suite */
.suite-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line-dark);
}
.suite-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.suite-item .name {
  font-family: "Sora";
  font-weight: 700;
  font-size: 21px;
}
.suite-item .name span {
  display: block;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
  font-family: "Inter";
}
.suite-item p {
  color: #3a405c;
  font-size: 16px;
}
.suite-item .dl {
  margin-top: 16px;
}

/* downloads */
.dl-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 26px;
  transition: border-color 0.2s;
}
.dl-card:hover {
  border-color: var(--gold);
}
.dl-card .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(233, 185, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.dl-card h4 {
  color: var(--white);
  font-size: 16.5px;
}
.dl-card p {
  color: #a6acc6;
  font-size: 13.5px;
  margin-top: 3px;
}

/* quote band */
.quote-band {
  background: var(--navy);
  color: var(--white);
  text-align: left;
}
.quote-band .statement {
  max-width: 30ch;
}
.quote-band .attr {
  margin-top: 26px;
  color: var(--grey);
  font-size: 15px;
}

/* partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
}
.partners span {
  font-family: "Sora";
  font-weight: 600;
  font-size: 15px;
  color: #9aa0b8;
  white-space: nowrap;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat .n {
  font-family: "Sora";
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat .l {
  margin-top: 10px;
  color: #a6acc6;
  font-size: 15px;
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.team-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 36px 32px;
}
.team-card .role {
  color: var(--gold);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.team-card p {
  font-size: 15px;
  color: #3a405c;
  margin-top: 12px;
}

/* footer */
footer {
  background: var(--navy);
  color: #a6acc6;
  padding: 70px 0 36px;
  border-top: 1px solid var(--line);
}
footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}
footer img {
  height: 40px;
  margin-bottom: 18px;
}
footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer a {
  display: block;
  font-size: 14.5px;
  margin-bottom: 9px;
  color: #a6acc6;
}
footer a:hover {
  color: var(--gold);
}
footer p {
  font-size: 14.5px;
}
footer .base {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 70px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  max-width: 20ch;
}
.page-hero .lead {
  max-width: 62ch;
  margin-top: 22px;
}

/* equation */
.equation {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  font-family: "Sora";
  color: var(--white);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
}
.equation .frac {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
}
.equation .frac .top {
  padding: 0 14px 8px;
  border-bottom: 2px solid var(--gold);
}
.equation .frac .bot {
  padding: 8px 14px 0;
  color: #a6acc6;
}

/* blog title-card thumbs */
.thumb-title {
  aspect-ratio: 16/10;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.thumb-title::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(233, 185, 72, 0.25);
}
.thumb-title::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(233, 185, 72, 0.35);
}
.thumb-title span {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

/* image collage */
.img-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.img-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

/* team headshot */
.team-card .headshot {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 3px solid var(--gold);
}
.team-card .site-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.team-card .site-link:hover {
  color: var(--gold);
}

/* contact form */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 38px 34px;
  margin-top: 56px;
}
.contact-form h2 {
  margin-bottom: 8px;
}
.contact-form .hint {
  color: #4a5070;
  font-size: 15px;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #c9ccda;
  border-radius: 6px;
  font: inherit;
  font-size: 15.5px;
  background: var(--white);
  margin-bottom: 18px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* misc */
.divider {
  height: 1px;
  background: var(--line-dark);
  margin: 64px 0;
}
.note {
  font-size: 13.5px;
  color: var(--grey);
}
.checklist {
  list-style: none;
  margin-top: 18px;
}
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-size: 15.5px;
  color: #3a405c;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(233, 185, 72, 0.3);
  border: 2px solid var(--gold);
}
.on-dark .checklist li {
  color: #b9bed4;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .work-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  footer .cols {
    grid-template-columns: 1fr 1fr;
  }
  .suite-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .work-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .nav ul {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 26px;
    display: none;
    border-bottom: 1px solid var(--line);
  }
  .nav ul.open {
    display: flex;
  }
  .nav ul li {
    width: 100%;
    text-align: center;
    padding: 13px 0;
  }
  .burger {
    display: block;
  }
}

/* ---------- hero photo overlay ---------- */
/* ---------- hero photo overlay ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-photo {
  background-image: url("img/hero-convening.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 30, 0.65) 0%,
      rgba(7, 11, 30, 0.45) 55%,
      rgba(7, 11, 30, 0.25) 100%
    );
}

/* Remove dark box behind text */
.hero .wrap.on-dark {
  background: transparent;
}

/* Mobile improvements */
@media (max-width: 680px) {

  .hero {
    min-height: 90vh;
  }

  .hero .wrap {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-photo {
    background-position: center center;
    background-size: cover;
  }

  .hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 30, 0.70) 0%,
      rgba(7, 11, 30, 0.50) 55%,
      rgba(7, 11, 30, 0.30) 100%
    );
}
}

/* ---------- footer contact (phones + social) ---------- */
.foot-contact .phone-row {
  display: flex;
  flex-direction: column; /* changed from 'row' to 'column' to stack vertically */
  align-items: flex-start; /* aligns items to the left; use 'center' if you want them centered */
  gap: 5px; /* reduced gap for vertical spacing between numbers */
  margin: 2px 0 16px;
}
.foot-contact .phone-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
}
.foot-contact .phone-row .sep {
  display: none; /* hides the separator since it's no longer needed */
}
.foot-contact .ico {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
  opacity: 0.85;
}
.social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  color: #a6acc6;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- full-width image band ---------- */
.img-band {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 50px;
}
.img-band img {
  width: 100%;
  height: clamp(240px, 38vw, 440px);
  object-fit: cover;
}

