:root {
  --gold: #c9a227;
  --gold-dark: #a88418;
  --black: #0d0d0d;
  --black-soft: #171717;
  --white: #ffffff;
  --offwhite: #f7f5ef;
  --text: #1d1d1d;
  --text-soft: #666666;
  --border: #e7e1d0;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section-light {
  background: var(--white);
}

.section-soft {
  background: var(--offwhite);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  transition: color 0.25s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.48)),
    url("../images/hero-east-africa.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.46) 38%, rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.34) 100%),
    radial-gradient(circle at center, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  color: var(--white);
  max-width: 640px;
  padding: 90px 0 80px;
}

.hero-copy-left {
  margin-left: 0;
}

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 600px;
  color: rgba(255,255,255,0.90);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* PAGE HERO */
.page-hero {
  background:
    linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.76)),
    url("../images/hero-east-africa.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.page-hero .container {
  padding: 90px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255,255,255,0.84);
  font-size: 1.05rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: #d7b13c;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.78);
  color: var(--white);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.btn-outline-dark {
  border: 1px solid var(--black);
  color: var(--black);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  background: var(--gold);
  color: var(--black);
}

.button:hover,
button:hover {
  background: #d7b13c;
  transform: translateY(-2px);
}

.hero-actions,
.cta-actions,
.contact-actions,
.country-showcase-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* SECTION HEADINGS */
.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section h2,
.cta-band h2,
.contact-info h2,
.contact-form h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p,
.split-text p,
.project-body p,
.info-card p,
.service-card p,
.site-footer p,
.cta-band p,
.contact-info p,
.contact-form p {
  color: var(--text-soft);
}

/* SPLIT LAYOUT */
.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: stretch;
}

.split-layout.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text .btn {
  margin-top: 12px;
  align-self: flex-start;
}

.split-text h2 {
  margin-top: 0;
}

.split-visual {
  display: flex;
  align-items: center;
}

.split-visual .card-grid {
  width: 100%;
}

.visual-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(201,162,39,0.14), rgba(201,162,39,0.04)),
    #e9e4d6;
  color: #7c6e41;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tall-image {
  min-height: 500px;
}

.wide-image {
  min-height: 460px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    #262626;
  color: rgba(255,255,255,0.8);
}

.light-text h2,
.light-text .eyebrow {
  color: var(--white);
}

.section-dark .split-text p,
.section-dark .sector-list li {
  color: rgba(255,255,255,0.82);
}

.sector-list {
  margin: 24px 0 0;
  padding-left: 18px;
}

.sector-list li {
  margin-bottom: 10px;
}

/* CARD GRIDS */
.card-grid,
.grid {
  display: grid;
  gap: 24px;
}

.four-up {
  grid-template-columns: repeat(4, 1fr);
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.two-up {
  grid-template-columns: repeat(2, 1fr);
}

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

/* CARDS */
.service-card,
.info-card,
.partner-logo-card,
.project-card,
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.info-card,
.card {
  padding: 28px 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,0.18));
}

.service-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.10);
  border-color: rgba(201, 162, 39, 0.35);
}

.info-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(201,162,39,0.12);
  color: var(--gold-dark);
  margin-bottom: 22px;
  font-size: 1.55rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.06);
  background: rgba(201,162,39,0.18);
}

.service-card h3,
.info-card h3,
.project-body h3,
.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.service-card p,
.info-card p,
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.card {
  text-align: center;
}

/* PARTNERS */
.partners-logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.partner-logo-card {
  min-height: 120px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-card img {
  max-width: 140px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: 0.25s ease;
}

.partner-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(201,162,39,0.18), rgba(201,162,39,0.04)),
    #ece7da;
  color: #7c6e41;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-body {
  padding: 24px;
}

.section-action {
  margin-top: 32px;
}

/* CONTACT PAGE */
.contact-section {
  max-width: var(--max-width);
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-info,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

.contact-info p {
  margin-bottom: 14px;
}

form {
  width: 100%;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d9d4c5;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a8a8a;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

/* CTA BAND */
.cta-band {
  background:
    linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.78)),
    url("../images/cta-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 84px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.cta-band p {
  color: rgba(255,255,255,0.82);
}

/* FOOTER */
.site-footer,
footer {
  background: #101010;
  color: var(--white);
}

.site-footer {
  padding-top: 70px;
}

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

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.76);
}

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

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p,
footer p {
  margin: 0;
  color: rgba(255,255,255,0.62);
}

footer {
  text-align: center;
  padding: 24px 20px;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 23px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  z-index: 1001;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

/* REGIONAL EXPANSION */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.country-card {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.10);
  border-color: rgba(201, 162, 39, 0.35);
}

.country-card-active {
  background: linear-gradient(135deg, #111111, #1b1b1b);
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--white);
}

.country-flag {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.25);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 6px;
}

/* COUNTRY SHOWCASE OVERLAY */
.country-showcase-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1300;
}

.country-showcase-overlay.show {
  display: block;
}

.country-showcase-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.country-showcase-panel {
  position: relative;
  width: min(94%, 1080px);
  margin: 5vh auto 0;
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
  background: var(--white);
  z-index: 2;
}

.country-showcase-image {
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.country-showcase-content {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.country-showcase-content h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.country-showcase-content p {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.country-showcase-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.country-showcase-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* SCROLL ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .four-up {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .partners-logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .country-showcase-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .country-showcase-image {
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  .navbar {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 14px;
  }

  .split-layout,
  .split-layout.reverse,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .three-up,
  .four-up,
  .partners-logo-strip,
  .two-up {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .hero-home {
    min-height: 78vh;
    background-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.42) 52%, rgba(0,0,0,0.52) 100%);
  }

  .hero-copy {
    max-width: 100%;
    padding: 100px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .image-placeholder,
  .tall-image,
  .wide-image {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }

  .country-showcase-panel {
    width: min(94%, 94%);
    margin-top: 3vh;
    border-radius: 22px;
  }

  .country-showcase-content {
    padding: 28px 22px 26px;
  }

  .country-showcase-content h3 {
    font-size: 2rem;
  }
}
