:root {
  --ink: #0c0f10;
  --panel: #151a1c;
  --panel-soft: #1e2426;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --muted: #697174;
  --line: rgba(18, 24, 26, 0.14);
  --gold: #c6942d;
  --gold-soft: #f3d691;
  --red: #b31924;
  --green: #123d35;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 148, 45, 0.18), transparent 34rem),
    linear-gradient(180deg, #f8f6f0 0%, #eee9de 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.48;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 16, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.top-strip {
  width: min(1180px, calc(100% - 32px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.top-strip span:first-child {
  color: var(--gold-soft);
}

.top-strip a {
  color: inherit;
  text-decoration: none;
}

.top-strip a:hover {
  color: var(--gold-soft);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  padding: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand-logo {
  display: block;
  width: 460px;
  max-width: 48vw;
  height: 112px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 4px;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  text-decoration: none;
}

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

.nav-links .button {
  color: #111;
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border-top: 14px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(12, 15, 16, 0.94), rgba(12, 15, 16, 0.75) 45%, rgba(12, 15, 16, 0.2)),
    url("assets/mzansi-hero.png") center / cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 138px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(26px, 3.7vw, 42px);
}

.hero p {
  max-width: 720px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-slider {
  max-width: 980px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(12, 15, 16, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.case-track {
  width: max-content;
  display: flex;
  gap: 14px;
  padding: 16px;
  animation: caseSlide 22s linear infinite;
}

.case-slider:hover .case-track {
  animation-play-state: paused;
}

.case-slide {
  width: 300px;
  min-height: 144px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.case-slide strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.case-slide p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.case-visual {
  width: 104px;
  height: 104px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(198, 148, 45, 0.08), rgba(179, 25, 36, 0.12)),
    url("assets/pi-tracing.svg") center / contain no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.case-visual.field {
  background:
    linear-gradient(145deg, rgba(12, 15, 16, 0.08), rgba(18, 61, 53, 0.16)),
    url("assets/pi-field.svg") center / contain no-repeat;
}

.case-visual.forensic {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(198, 148, 45, 0.12)),
    url("assets/pi-forensic.svg") center / contain no-repeat;
}

.case-visual.verify {
  background:
    linear-gradient(145deg, rgba(179, 25, 36, 0.08), rgba(12, 15, 16, 0.12)),
    url("assets/pi-verification.svg") center / contain no-repeat;
}

@keyframes caseSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.tight {
  padding-top: 46px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

h2 {
  font-size: clamp(22px, 2.7vw, 34px);
}

h3 {
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(12, 15, 16, 0.08);
}

.card strong {
  color: var(--red);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.band {
  background:
    linear-gradient(135deg, rgba(18, 61, 53, 0.95), rgba(12, 15, 16, 0.98)),
    url("assets/mzansi-logo.png") right 6% center / 420px auto no-repeat;
  color: #fff;
}

.band .section-heading p,
.band .card p {
  color: rgba(255, 255, 255, 0.78);
}

.band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.photo {
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(12, 15, 16, 0.12), rgba(12, 15, 16, 0.42)),
    #fff url("assets/mzansi-logo.png") center / contain no-repeat;
  box-shadow: var(--shadow);
}

.photo.alt {
  background-image:
    linear-gradient(180deg, rgba(12, 15, 16, 0.08), rgba(12, 15, 16, 0.26)),
    url("assets/mzansi-horizontal.png");
}

.lead {
  color: var(--muted);
  font-size: 15px;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  position: relative;
  font-weight: 900;
}

.check-list li::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 19px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(12, 15, 16, 0.96), rgba(18, 61, 53, 0.9)),
    url("assets/mzansi-hero.png") center / cover;
  color: #fff;
  padding: 92px 0 58px;
}

.page-hero .section {
  padding: 0;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.service-row p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-card {
  background: linear-gradient(160deg, var(--green), var(--ink));
  color: #fff;
  border-radius: 8px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 20px;
}

.contact-card p {
  margin: 0 0 16px;
  line-height: 1.35;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card strong {
  display: inline-block;
  margin-bottom: 3px;
}

.contact-card p,
.contact-card a {
  color: rgba(255, 255, 255, 0.86);
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--gold-soft);
}

.policy-layout {
  display: grid;
  gap: 18px;
}

.policy-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(12, 15, 16, 0.08);
}

.policy-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.policy-card h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.policy-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.policy-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.policy-card li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}

form {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(12, 15, 16, 0.08);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: #263032;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 12px;
  font: inherit;
}

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

.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-inner strong {
  color: #fff;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

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

.footer-links {
  display: grid;
  gap: 4px;
  align-content: start;
}

@media (max-width: 900px) {
  .top-strip {
    width: min(100% - 24px, 680px);
    display: grid;
    justify-content: start;
    gap: 6px;
    padding: 8px 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .nav {
    width: min(100% - 24px, 680px);
    min-height: 96px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .brand {
    max-width: calc(100% - 58px);
    padding: 4px 8px;
  }

  .brand-logo {
    width: min(300px, 100%);
    max-width: 100%;
    height: 76px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 140px;
    background: #101415;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a,
  .nav-links .button {
    width: 100%;
    justify-content: flex-start;
  }

  .section-heading,
  .split,
  .contact-panel,
  .service-row {
    grid-template-columns: 1fr;
  }

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

  .case-slider {
    max-width: 100%;
    margin-top: 18px;
    overflow: visible;
  }

  .case-track {
    width: 100%;
    display: grid;
    gap: 12px;
    padding: 12px;
    animation: none;
    transform: none;
  }

  .case-slide {
    width: 100%;
    min-height: auto;
    grid-template-columns: 104px 1fr;
    gap: 16px;
    padding: 12px;
  }

  .case-slide:nth-child(n+5) {
    display: none;
  }

  .case-visual {
    width: 104px;
    height: 104px;
  }

  .case-slide strong {
    font-size: 14px;
  }

  .case-slide p {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    background-position: center top;
  }

  .hero-inner {
    width: min(100% - 32px, 680px);
    padding: 34px 0 58px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 9.5px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    overflow-wrap: break-word;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero p,
  .page-hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.45;
  }

  .page-hero {
    padding: 54px 0 44px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .section {
    padding: 50px 0;
  }

  .photo {
    min-height: 300px;
  }

  .footer-inner {
    display: grid;
  }

  .policy-card {
    padding: 20px;
  }

  .footer-links {
    display: grid;
    gap: 4px;
  }
}

@media (max-width: 430px) {
  .top-strip {
    width: calc(100% - 24px);
  }

  .nav {
    width: calc(100% - 24px);
  }

  .brand-logo {
    width: 260px;
    height: 68px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-inner {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(24px, 8.4vw, 31px);
  }

  .case-slide {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .case-visual {
    width: 96px;
    height: 96px;
  }
}
