:root {
  --ink: #17211c;
  --muted: #5c6862;
  --line: #dfe7e1;
  --paper: #ffffff;
  --soft: #f3f7f4;
  --green: #176b49;
  --green-dark: #0e4631;
  --yellow: #f2c94c;
  --blue: #276a8f;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 231, 225, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  overflow-wrap: anywhere;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a,
.nav-action {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--green-dark);
  background: var(--soft);
}

.nav-action {
  color: #fff;
  background: var(--green);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 22, 16, 0.82), rgba(8, 22, 16, 0.38) 55%, rgba(8, 22, 16, 0.2));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-background.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(56px, 9vh, 96px) clamp(18px, 6vw, 72px);
}

.location-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.location-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 22, 16, 0.82), rgba(8, 22, 16, 0.34));
}

.location-hero-witbank {
  background-image: url("assets/witbank-office.jpg");
}

.location-hero-polokwane {
  background-image: url("assets/polokwane-outside.jpg");
  background-position: center 42%;
}

.location-hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(48px, 8vh, 84px) clamp(18px, 6vw, 72px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.location-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.hero-actions,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
}

.button.primary {
  color: var(--ink);
  background: var(--yellow);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.button.whatsapp {
  width: 100%;
  color: #fff;
  background: var(--green);
}

.button.pending {
  background: var(--blue);
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 6vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--soft);
}

.section h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

#learners {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

#learners::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 22, 16, 0.66), rgba(8, 22, 16, 0.34));
}

.learners-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learners-bg span {
  min-width: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(1.08) contrast(1.08) saturate(1.08);
}

.learners-bg-witbank {
  background-image: url("assets/witbank-leerlinge-filled.png");
}

.learners-bg-polokwane {
  background-image: url("assets/polokwane-leerlinge-filled.png");
}

#learners > :not(.learners-bg) {
  position: relative;
  z-index: 2;
}

#learners p {
  color: rgba(255, 255, 255, 0.86);
}

#learners .panel {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(8, 22, 16, 0.52);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}

#learners .check-list li {
  border-top-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.84);
}

.reverse {
  grid-template-columns: minmax(280px, 0.78fr) minmax(280px, 1fr);
}

.panel,
.service-grid article,
.branch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.panel {
  padding: clamp(22px, 4vw, 34px);
}

.image-panel {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.image-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-inline-photo {
  height: clamp(150px, 18vw, 210px);
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-inline-photo-bottom {
  margin: 28px 0 0;
}

.section-inline-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.check-list,
.service-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.check-list li:first-child {
  border-top: 0;
}

.inline-list {
  padding: 0;
  list-style: none;
}

.inline-list li {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 800;
}

.services {
  background: #fbfcfb;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

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

.service-grid article {
  min-height: 210px;
  padding: 24px;
}

.service-grid p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.branches {
  background: var(--soft);
}

.section-head {
  max-width: 780px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
}

.branch-card-photo {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.branch-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 22, 16, 0.58), rgba(8, 22, 16, 0.84));
}

.branch-card-photo > * {
  position: relative;
  z-index: 1;
}

.branch-card-witbank {
  background-image: url("assets/witbank-office.jpg");
  background-position: center;
}

.branch-card-polokwane {
  background-image: url("assets/polokwane-outside.jpg");
  background-position: center 42%;
}

.branch-card p {
  margin-top: 0;
}

.branch-card-photo p,
.branch-card-photo dt {
  color: rgba(255, 255, 255, 0.82);
}

.branch-card-photo dl div {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.branch-card-photo .button.whatsapp {
  background: rgba(23, 107, 73, 0.95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

dl {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}

dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.branch-card .button {
  margin-top: auto;
}

.branch-card h3 a {
  text-decoration: none;
}

.branch-card h3 a:hover {
  text-decoration: underline;
}

.location-contact {
  max-width: 760px;
  margin-top: 30px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .intro,
  .split,
  .reverse,
  .service-grid,
  .service-grid-three,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .branch-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}
