:root {
  --bg: #101416;
  --deep: #0b2520;
  --emerald: #087f5b;
  --green: #19b77a;
  --gold: #c49a4a;
  --off: #f6f5f1;
  --text: #151b1a;
  --muted: #65706d;
  --line: #dfe4e1;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(11, 37, 32, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  background: var(--off);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
main {
  overflow: hidden;
}
.site-header {
  height: 76px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(16, 20, 22, 0.98);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  width: 185px;
  margin-right: auto;
}
.brand img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #d7ddda;
  position: relative;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}
.site-nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--green);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--green);
  color: #071814;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-small {
  padding: 10px 16px;
  font-size: 12px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px;
}
.hero-home {
  min-height: 620px;
  color: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0d1816;
}
.hero-city {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 620px;
}
.hero-city:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 13, 12, 0.78),
    rgba(5, 13, 12, 0.2)
  );
}
.hero-city.ct:before {
  background: linear-gradient(
    270deg,
    rgba(5, 13, 12, 0.55),
    rgba(5, 13, 12, 0.12)
  );
}
.hero-bgjhb {
  background-image: url("../images/afritech-hero.jpg");
}
.hero-city.ct {
  background-image: url("../images/capetown-hero.jpg");
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 5vw;
  max-width: 760px;
}
.hero-content h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  margin: 12px 0 24px;
  letter-spacing: -0.05em;
}
.hero-content h1 span {
  color: var(--green);
}
.hero-content p {
  max-width: 640px;
  color: #e0e8e4;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--gold);
}
.city-label {
  position: absolute;
  z-index: 3;
  top: 80px;
  right: 6vw;
  color: #fff;
  border-left: 2px solid var(--gold);
  padding-left: 15px;
}
.city-label strong {
  display: block;
  font-size: 14px;
}
.city-label small {
  letter-spacing: 0.18em;
  color: #dfe9e5;
}
.section {
  padding: 88px 5vw;
}
.section.white {
  background: #fff;
}
.section.dark {
  background: var(--bg);
  color: #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 8px 0;
}
.section-head p {
  max-width: 600px;
  color: var(--muted);
}
.dark .section-head p {
  color: #b7c4bf;
}
.accent {
  color: var(--green);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}
.defines-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.defines-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.defines-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.defines-list strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}
.defines-footer {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 26px rgba(11, 37, 32, 0.04);
}
.card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
}
.icon {
  width: 48px;
  height: 48px;
  border: 1px solid #bcd9ce;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--emerald);
  font-size: 21px;
}
.card-link {
  font-weight: 800;
  color: var(--emerald);
  font-size: 13px;
}
.dark-card {
  background: #11211d;
  color: #fff;
  border-color: #1c3932;
}
.dark-card p {
  color: #b6c6c0;
}
.dark-card .card-link {
  color: var(--green);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  color: #fff;
}
.stat {
  padding: 38px 5vw;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat strong {
  display: block;
  font-size: 38px;
  color: var(--green);
}
.stat span {
  font-size: 12px;
  color: #c4cfcb;
}
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.story-copy {
  padding: 70px 6vw;
  background: #fff;
}
.story-copy h2 {
  font-size: 44px;
  line-height: 1.05;
}
.story-visual {
  background: linear-gradient(135deg, var(--deep), #0e4a38);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 40px;
}
.map-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 40px;
  width: min(520px, 90%);
  text-align: center;
}
.map-card .locations {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}
.map-card strong {
  color: var(--gold);
}
.page-hero {
  padding: 110px 5vw 80px;
  color: #fff;
  background: linear-gradient(135deg, #0a1715 0%, #0c342a 60%, #087f5b 140%);
  position: relative;
}
.page-hero:after {
  content: "";
  position: absolute;
  right: -120px;
  top: -100px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(25deg);
}
.page-hero h1 {
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  margin: 10px 0 20px;
  max-width: 900px;
}
.page-hero p {
  max-width: 720px;
  color: #d3dfda;
  font-size: 17px;
}
.page-hero .accent {
  color: #38d79c;
}
.project-card {
  overflow: hidden;
  padding: 0;
}
.project-image {
  height: 210px;
  background: linear-gradient(135deg, #20352f, #0b7150);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  padding: 0 24px;
}
.project-body {
  padding: 24px;
}
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--emerald);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.quote {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  color: #48534f;
  font-size: 18px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}
.contact-panel {
  background: var(--bg);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
}
.contact-panel p,
.contact-panel a {
  color: #c8d3cf;
}
.contact-panel .panel-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 28px 0;
}
.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 800;
  color: #39413f;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d7dfdc;
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
  background: #fbfcfb;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(25, 183, 122, 0.25);
  border-color: var(--green);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}
.notice.success {
  background: #eaf8f2;
  color: #075c42;
}
.notice.error {
  background: #fff0f0;
  color: #9d2222;
}
.cta-band {
  padding: 48px 5vw;
  background: linear-gradient(135deg, var(--deep), #0f6047);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 {
  margin: 6px 0 0;
  font-size: 36px;
}
.site-footer {
  background: #0d1514;
  color: #fff;
  padding: 60px 5vw 28px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}
.site-footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}
.site-footer a,
.site-footer p {
  display: block;
  color: #c2ceca;
  font-size: 13px;
  margin: 9px 0;
}
.site-footer span {
  color: #7f918a;
}
.footer-brand img {
  width: 220px;
}
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #101416;
    padding: 20px 5vw;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.open {
    display: flex;
  }
  .site-header > .btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 680px) {
  .hero-home {
    grid-template-columns: 1fr;
    min-height: 720px;
  }
  .hero-city {
    min-height: 360px;
  }
  .hero-city.ct {
    display: none;
  }
  .hero-content {
    padding: 60px 6vw;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .city-label {
    top: 34px;
    right: 6vw;
  }
  .section {
    padding: 64px 6vw;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }
  .section-head,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .story-copy h2 {
    font-size: 36px;
  }
}

.hero-home {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101416;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 18, 18, 0.92) 0%,
      rgba(10, 18, 18, 0.78) 25%,
      rgba(10, 18, 18, 0.35) 48%,
      rgba(10, 18, 18, 0.08) 70%,
      rgba(10, 18, 18, 0.02) 100%
    ),
    url("../images/afritech_hero.jpg") center center / cover no-repeat;

  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 90%);
  margin-left: clamp(24px, 6vw, 110px);
  padding: 90px 0;
}

.hero-content h1 {
  margin: 14px 0 22px;
  max-width: 650px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-content h1 span {
  display: block;
  color: #19b77a;
}

.hero-content p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-city-label {
  position: absolute;
  z-index: 2;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 14px;
  border-left: 2px solid #c49a4a;
  color: #fff;
}

.hero-city-label strong {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero-city-label small {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-city-label--jhb {
  left: 31%;
}

.hero-city-label--ct {
  right: 7%;
}

@media (max-width: 900px) {
  .hero-home {
    min-height: 680px;
  }

  .hero-bg {
    background:
      linear-gradient(
        90deg,
        rgba(10, 18, 18, 0.94) 0%,
        rgba(10, 18, 18, 0.76) 55%,
        rgba(10, 18, 18, 0.35) 100%
      ),
      url("../images/afritech_hero.jpg") center center / cover no-repeat;
  }

  .hero-city-label {
    display: none;
  }

  .hero-content {
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
    padding: 80px 0;
  }
}
