/* =========================================================
   South Africa SDR · Home page
   Brand system from the Website Build Guide (June 2026)
   ========================================================= */

:root {
  /* Brand palette — South Africa SDR */
  --green: #02403D;           /* Deep green, primary */
  --forest: #012B28;          /* Darkest sections, footer */
  --green-darker: #012B28;
  --gold: #DAA866;            /* Accent */
  --gold-dark: #B8945A;
  --clay: #B8945A;            /* Legacy alias */
  --green-support: #3A7A72;
  --cream: #FAF8F2;
  --sand: #F1ECE1;
  --ink: #1E2622;
  --muted: #6B7168;
  --hairline: #E7E1D5;
  --white: #FFFFFF;
  --btn-ink: #02403D;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: var(--font-display);

  --radius-btn: 9px;
  --radius-card: 14px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 30px 60px rgba(1, 43, 40, 0.35);

  --container: 1180px;
  --header-offset: 82px;

  --footer-caramel: #F1ECE1;
  --footer-brown: #B8945A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 4.6vw, 52px); }
h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 23px); line-height: 1.3; }

.section-green h1,
.section-green h2,
.section-green h3 { color: var(--cream); }

.gold-italic {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

/* ---------- Section backgrounds & rhythm ---------- */

.section { padding: 96px 0; position: relative; }

.section-green { background: var(--green); color: var(--cream); }
.section-green p { color: rgba(250, 248, 242, 0.86); }
.section-cream { background: var(--cream); color: var(--ink); }
.section-sand { background: var(--sand); color: var(--ink); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 { margin-top: 18px; }

.section-sub {
  margin-top: 14px;
  font-size: 18px;
  color: rgba(30, 38, 34, 0.75);
}

.section-green .section-sub,
.section-sub-on-green {
  color: rgba(250, 248, 242, 0.78);
}

/* ---------- Eyebrow pill ---------- */

.eyebrow-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #B8945A;
  background: rgba(218, 168, 102, 0.14);
  border: 1px solid rgba(218, 168, 102, 0.35);
  border-radius: 30px;
  padding: 6px 16px;
}

.pill-on-green {
  color: var(--gold);
  background: rgba(218, 168, 102, 0.12);
  border-color: rgba(218, 168, 102, 0.3);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(2, 64, 61, 0.22);
}

.btn-primary:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(1, 43, 40, 0.28);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(250, 248, 242, 0.55);
  color: var(--cream);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 40px; font-size: 17px; }

.text-link {
  display: inline-block;
  margin-top: 26px;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid rgba(218, 168, 102, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover { color: var(--clay); border-color: var(--clay); }

.arrow { display: inline-block; transition: transform 0.2s ease; }
a:hover .arrow { transform: translateX(4px); }

/* ---------- Cards (global component) ---------- */

.card {
  background: #FFFFFF;
  border: 0.5px solid rgba(2, 64, 61, 0.14);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 38px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
}

/* =========================================================
   Header — floating bar navbar
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: transparent;
  margin-bottom: calc(-1 * var(--header-offset));
  pointer-events: none;
}

.header-shell {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  pointer-events: auto;
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 6px 8px 6px 18px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(2, 64, 61, 0.06);
  box-shadow:
    0 1px 2px rgba(30, 38, 34, 0.04),
    0 8px 28px rgba(30, 38, 34, 0.08);
  transition: box-shadow 0.35s ease, padding 0.35s ease, min-height 0.35s ease;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 38px;
  object-fit: contain;
  transition: height 0.35s ease;
}

/* Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(30, 38, 34, 0.72);
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.has-dropdown:hover > .nav-toggle,
.has-dropdown.open > .nav-toggle,
.has-dropdown:focus-within > .nav-toggle {
  color: var(--green);
  background: #F3F4F6;
}

.chev {
  width: 9px;
  height: 6px;
  opacity: 0.5;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

/* Dropdowns */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.98);
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid rgba(2, 64, 61, 0.08);
  border-radius: 14px;
  box-shadow:
    0 4px 8px rgba(30, 38, 34, 0.04),
    0 16px 40px rgba(30, 38, 34, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.has-dropdown:hover .chev,
.has-dropdown.open .chev,
.has-dropdown:focus-within .chev {
  transform: rotate(180deg);
  opacity: 0.8;
}

.dropdown a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(30, 38, 34, 0.85);
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: #F3F4F6;
  color: var(--green);
}

.dropdown-group-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(30, 38, 34, 0.4);
  padding: 10px 12px 4px;
  border-top: 1px solid rgba(2, 64, 61, 0.06);
  margin-top: 4px;
}

.dropdown-wide { min-width: 460px; }

.dropdown-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2px;
}

.dropdown-all {
  margin-top: 4px;
  border-top: 1px solid rgba(2, 64, 61, 0.06);
  color: var(--green) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--green);
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-cta:hover {
  background: var(--green-darker);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 64, 61, 0.28);
}

.btn-header-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Scrolled state */
.site-header.scrolled .header-pill {
  min-height: 52px;
  padding: 4px 4px 4px 16px;
  box-shadow:
    0 1px 2px rgba(30, 38, 34, 0.06),
    0 12px 36px rgba(30, 38, 34, 0.12);
}

.site-header.scrolled .logo-img { height: 34px; }

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #F3F4F6;
  border: none;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.hamburger:hover { background: #E8EAED; }

.hamburger span {
  position: absolute;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.hamburger span:nth-child(1) { transform: translateY(-5px); }
.hamburger span:nth-child(3) { transform: translateY(5px); }

.site-header.menu-open .hamburger { background: #E8EAED; }

.site-header.menu-open .hamburger span:nth-child(1) { transform: rotate(45deg); }
.site-header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .hamburger span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile menu — floating panel below pill */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(2, 64, 61, 0.08);
  border-radius: 10px;
  box-shadow:
    0 4px 8px rgba(30, 38, 34, 0.04),
    0 20px 48px rgba(30, 38, 34, 0.12);
  padding: 8px 12px 16px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}

.site-header.menu-open .mobile-menu { display: block; }

.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: rgba(30, 38, 34, 0.85);
  background: none;
  border: none;
  border-radius: 10px;
  padding: 12px 12px;
  margin-top: 2px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mm-link:hover { background: #F3F4F6; color: var(--green); }

.mm-panel { display: none; padding: 2px 4px 8px; }
.mm-panel.open { display: block; }

.mm-panel a {
  display: block;
  font-size: 14px;
  color: rgba(30, 38, 34, 0.7);
  padding: 9px 12px 9px 20px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mm-panel a:hover {
  background: #F3F4F6;
  color: var(--green);
}

.mm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  width: 100%;
  border-radius: 8px;
  background: var(--green) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.mm-cta:hover {
  background: var(--green-darker) !important;
  color: #FFFFFF !important;
}

/* =========================================================
   Section 1: Hero
   ========================================================= */

.hero {
  background: var(--green);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-offset) + 28px) 0 120px;
}

/* soft gold glow, top right */
.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(218, 168, 102, 0.22) 0%, rgba(218, 168, 102, 0.07) 42%, transparent 68%);
  pointer-events: none;
}

/* faint dot texture */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(250, 248, 242, 0.055) 1px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { margin: 26px 0 22px; color: var(--cream); }

.hero-subhead {
  font-size: 18.5px;
  color: rgba(250, 248, 242, 0.85);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 52px;
  gap: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  border-left: 1px solid rgba(250, 248, 242, 0.18);
}

.hero-stats li:first-child { padding-left: 0; border-left: none; }

.hero-stats strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--gold);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 13.5px;
  color: rgba(250, 248, 242, 0.65);
  margin-top: 4px;
}

/* --- Floating pipeline dashboard card --- */

.hero-visual { position: relative; }

.dash-card {
  background: var(--cream);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  padding: 30px 30px 26px;
  max-width: 430px;
  margin-left: auto;
  transform: rotate(1.2deg);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: rotate(1.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-10px); }
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(30, 38, 34, 0.55);
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-support);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-support);
  position: relative;
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--green-support);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

.dash-metric {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.dash-metric-figure {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 54px;
  color: var(--green);
  line-height: 1;
}

.dash-metric-copy {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(30, 38, 34, 0.65);
}

.dash-metric-copy b { color: var(--green-support); font-weight: 600; }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(2, 64, 61, 0.1);
  margin-bottom: 16px;
}

.dash-chart span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: rgba(58, 122, 114, 0.4);
}

.dash-chart .bar-gold { background: var(--gold); }

.dash-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.dash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 0.5px solid rgba(2, 64, 61, 0.1);
  border-radius: 11px;
  padding: 10px 14px;
}

.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dash-avatar.av-2 { background: var(--clay); }

.dash-row-copy { flex: 1; line-height: 1.3; }
.dash-row-copy b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dash-row-copy small { font-size: 12px; color: rgba(30, 38, 34, 0.55); }

.dash-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(58, 122, 114, 0.15);
  color: var(--green-support);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dash-foot {
  display: flex;
  gap: 34px;
}

.dash-foot span { display: flex; flex-direction: column; }
.dash-foot small { font-size: 11.5px; color: rgba(30, 38, 34, 0.55); }

.dash-foot b {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--green);
}

.dash-foot b.gold { color: #B8945A; }

/* floating chip */
.dash-chip {
  position: absolute;
  bottom: -22px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #FFFFFF;
  border-radius: 40px;
  box-shadow: 0 16px 36px rgba(1, 43, 40, 0.3);
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  animation: floaty-chip 7s ease-in-out infinite 0.8s;
}

@keyframes floaty-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   Section 2: Trust strip (darker green)
   ========================================================= */

.trust-strip {
  background: var(--forest);
  padding: 44px 0;
}

.trust-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(250, 248, 242, 0.45);
  margin-bottom: 26px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 64px;
}

/* Placeholder wordmarks, replace with greyscale client logo images */
.trust-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: rgba(250, 248, 242, 0.38);
  filter: grayscale(1);
  transition: color 0.25s ease;
}

.trust-logo:hover { color: rgba(250, 248, 242, 0.6); }

/* =========================================================
   Section 3: Value pillars
   ========================================================= */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(218, 168, 102, 0.16);
  color: #B8945A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon svg { width: 28px; height: 28px; }

.pillar-card h3 { margin-bottom: 12px; }

.pillar-card p { font-size: 16px; color: rgba(30, 38, 34, 0.78); }

/* =========================================================
   Section 4: How it works
   ========================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  list-style: none;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }

/* connecting line */
.step::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 62px;
  right: -34px;
  height: 1px;
  background: rgba(250, 248, 242, 0.16);
}

.step:last-child::before { display: none; }

.step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(218, 168, 102, 0.5);
  background: rgba(218, 168, 102, 0.1);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--gold);
  margin-bottom: 22px;
}

.step h3 { margin-bottom: 10px; font-size: 20px; }

.step p { font-size: 15.5px; color: rgba(250, 248, 242, 0.75); }

/* =========================================================
   Section 5: Services
   ========================================================= */

.services .section-head {
  max-width: 680px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(2, 64, 61, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(30, 38, 34, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(30, 38, 34, 0.1);
  border-color: rgba(218, 168, 102, 0.4);
}

.service-feature-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--footer-caramel);
  overflow: hidden;
}

.service-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-feature:hover .service-feature-media img {
  transform: scale(1.05);
}

.service-feature-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 26px;
}

.service-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #B8945A;
  background: rgba(218, 168, 102, 0.14);
  border-radius: 30px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.service-tag-support {
  color: var(--green);
  background: rgba(2, 64, 61, 0.08);
}

.service-feature-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service-outcome {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(30, 38, 34, 0.75);
  margin-bottom: 18px;
}

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

.service-deliverables li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(30, 38, 34, 0.72);
  margin-bottom: 8px;
}

.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.service-feature .card-link {
  margin-top: auto;
  padding-top: 0;
  font-size: 15px;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--footer-caramel);
  border: 1px solid rgba(178, 123, 51, 0.14);
  border-radius: 16px;
}

.services-cta p {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  max-width: 420px;
}

.services-cta .btn {
  padding: 13px 28px;
  font-size: 15px;
}

/* =========================================================
   Section 6: Why South Africa (split)
   ========================================================= */

.why-sa-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.why-sa-copy h2 { margin: 20px 0 20px; }

.why-sa-copy p { font-size: 17.5px; }

.why-sa-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.stat-block {
  background: rgba(250, 248, 242, 0.05);
  border: 1px solid rgba(250, 248, 242, 0.12);
  border-radius: var(--radius-card);
  padding: 28px 26px;
}

.stat-figure {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--gold);
  line-height: 1.15;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(250, 248, 242, 0.65);
  margin-top: 6px;
}

/* =========================================================
   Section 7: Industries grid
   ========================================================= */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(2, 64, 61, 0.1);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(30, 38, 34, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(30, 38, 34, 0.1);
  border-color: rgba(218, 168, 102, 0.45);
}

.industry-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--footer-caramel);
}

.industry-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.industry-card:hover .industry-card-media img {
  transform: scale(1.06);
}

.industry-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  background: #FFFFFF;
}

.industry-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}

.industry-card .arrow {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.industry-card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   Section 8: Results / social proof
   ========================================================= */

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  border-top: 1px solid rgba(250, 248, 242, 0.14);
  border-bottom: 1px solid rgba(250, 248, 242, 0.14);
  padding: 42px 0;
  margin-bottom: 56px;
  text-align: center;
}

.metric .stat-figure { font-size: clamp(32px, 3.4vw, 42px); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial blockquote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.testimonial blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 14px;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.t-avatar.av-2 { background: var(--clay); }
.t-avatar.av-3 { background: var(--green-support); }

.t-meta b { display: block; font-size: 14.5px; color: var(--green); }
.t-meta small { font-size: 13px; color: rgba(30, 38, 34, 0.6); }

/* ---------- Testimonials auto-marquee ---------- */

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

.testimonials-attribution {
  max-width: 680px;
  margin: 0 0 28px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 248, 242, 0.55);
}

.testimonials-attribution a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(218, 168, 102, 0.45);
}

.testimonials-attribution a:hover {
  color: var(--cream);
  text-decoration-color: var(--gold);
}

.testimonials-marquee {
  position: relative;
  margin: 0 -28px;
  padding: 8px 0 4px;
}

.tc-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  );
}

.tc-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.tc-track.is-animating {
  animation: tc-marquee 70s linear infinite;
}

.testimonials-marquee:hover .tc-track.is-animating {
  animation-play-state: paused;
}

@keyframes tc-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.tc-card {
  flex: 0 0 320px;
  width: 320px;
  height: 280px;
  padding: 22px 22px 20px;
  gap: 14px;
  margin: 0;
  overflow: hidden;
}

.tc-card blockquote {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 64, 61, 0.25) transparent;
}

.tc-card blockquote::-webkit-scrollbar {
  width: 4px;
}

.tc-card blockquote::-webkit-scrollbar-thumb {
  background: rgba(2, 64, 61, 0.25);
  border-radius: 4px;
}

.tc-card blockquote::before {
  font-size: 34px;
  margin-bottom: 8px;
}

.tc-card figcaption {
  flex-shrink: 0;
  margin-top: auto;
  gap: 11px;
}

.t-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(218, 168, 102, 0.35);
  background: var(--sand);
}

@media (max-width: 760px) {
  .testimonials-marquee {
    margin: 0 -20px;
  }

  .tc-viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 40px,
      #000 calc(100% - 40px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 40px,
      #000 calc(100% - 40px),
      transparent 100%
    );
  }

  .tc-card {
    flex: 0 0 272px;
    width: 272px;
    height: 260px;
    padding: 20px 18px 18px;
  }

  .tc-track {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-track.is-animating {
    animation: none;
  }
}

/* =========================================================
   Section 9: Comparison teaser
   ========================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.compare-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px;
}

.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.compare-vs {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--green);
}

.compare-vs em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  padding: 0 4px;
}

.compare-card .card-link { margin: 0; flex: none; color: #B8945A; }

/* =========================================================
   Section 10: Closing CTA band
   ========================================================= */

.cta-band {
  overflow: visible;
  text-align: left;
  background: #FFFFFF;
}

.cta-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(218, 168, 102, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 56px;
  align-items: start;
  position: relative;
}

.cta-form-col .contact-form-embed {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 36px 40px 40px;
}

.contact-form-embed {
  margin: 40px auto 0;
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  text-align: left;
  padding: 32px 36px 36px;
  border: 1px solid rgba(2, 64, 61, 0.08);
  box-sizing: border-box;
}

.contact-form-embed .form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--green);
  font-size: 14px;
}

.contact-form-embed .form-optional {
  font-weight: 400;
  color: rgba(30, 38, 34, 0.5);
}

.contact-form-embed input[type="text"],
.contact-form-embed input[type="email"],
.contact-form-embed input[type="tel"],
.contact-form-embed textarea {
  border-radius: 9px;
  border-color: rgba(2, 64, 61, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-embed input:focus,
.contact-form-embed textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(218, 168, 102, 0.18);
  outline: none;
}

.contact-form-embed button[type="submit"] {
  margin-top: 8px;
  border-radius: 9px;
  font-weight: 600;
  padding: 14px 28px;
  width: 100%;
}

.contact-form-embed--on-green {
  background: var(--cream);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  border-color: rgba(2, 64, 61, 0.06);
}

.contact-form-embed--wide {
  max-width: 100%;
}

.form-status {
  padding: 14px 16px;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.form-status--error {
  background: rgba(184, 148, 90, 0.12);
  color: var(--clay);
  border: 1px solid rgba(184, 148, 90, 0.25);
}

.book-layout--form,
.contact-layout--form {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
}

.book-layout .contact-form-embed {
  margin-top: 0;
  max-width: 100%;
  padding: 36px 40px 40px;
}

.contact-form-card .contact-form-embed {
  margin-top: 0;
  max-width: 100%;
  padding: 8px 4px 4px;
  box-shadow: none;
  background: transparent;
  border: none;
  border-radius: 0;
}

.cta-aside-inner {
  position: sticky;
  top: calc(var(--header-offset) + 32px);
  background: linear-gradient(155deg, #3A7A72 0%, #02403D 52%, #012B28 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-float);
}

.cta-aside-inner .eyebrow-pill {
  margin-bottom: 18px;
}

.cta-aside-inner h2 {
  margin-bottom: 16px;
  color: var(--cream);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

.cta-aside-lead {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(250, 248, 242, 0.82);
}

.cta-ticks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.cta-ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 248, 242, 0.88);
}

.cta-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(63, 142, 118, 0.25);
  border: 2px solid rgba(218, 168, 102, 0.65);
}

.cta-aside-note {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 248, 242, 0.14);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250, 248, 242, 0.62);
}

.cta-inner { position: relative; max-width: 760px; margin: 0 auto; }

.cta-inner h2 {
  margin-bottom: 34px;
  color: var(--green);
}

.form-aside-inner {
  position: sticky;
  top: calc(var(--header-offset) + 32px);
}

.form-aside-inner h1,
.form-aside-inner h2 {
  margin-bottom: 14px;
}

.form-aside-lead {
  margin-bottom: 24px;
  color: rgba(30, 38, 34, 0.75);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .cta-split,
  .book-layout--form,
  .contact-layout--form {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-aside,
  .book-aside,
  .contact-aside {
    order: -1;
  }

  .cta-aside-inner,
  .form-aside-inner {
    position: static;
  }

  .contact-form-embed,
  .cta-form-col .contact-form-embed,
  .book-layout .contact-form-embed {
    padding: 28px 24px 32px;
  }
}

/* Footer — forest brand band */
.site-footer {
  background: var(--forest);
  border-top: none;
  padding: 48px 0 36px;
  color: rgba(250, 248, 242, 0.75);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 248, 242, 0.55);
  text-align: right;
  max-width: 340px;
}

.footer-divider {
  height: 1px;
  background: rgba(250, 248, 242, 0.12);
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links a {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(250, 248, 242, 0.58);
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  color: rgba(250, 248, 242, 0.58);
}

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

.footer-contact-icon {
  background: rgba(218, 168, 102, 0.15);
  color: var(--gold);
}

.footer-social-link {
  border: 1px solid rgba(250, 248, 242, 0.18);
  color: rgba(250, 248, 242, 0.75);
  background: transparent;
}

.footer-social-link:hover {
  color: var(--gold);
  border-color: rgba(218, 168, 102, 0.45);
  background: rgba(250, 248, 242, 0.06);
}

.footer-copy {
  font-size: 13px;
  color: rgba(250, 248, 242, 0.45);
}

.footer-legal a {
  font-size: 13px;
  color: rgba(250, 248, 242, 0.45);
  transition: color 0.2s ease;
}

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

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* =========================================================
   Reveal animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash-card, .dash-chip { animation: none; }
  .pulse-dot::after { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .header-actions { margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero { padding: calc(var(--header-offset) + 20px) 0 110px; }
  .dash-card { margin: 0 auto; }
  .dash-chip { left: 50%; transform: translateX(-50%); }

  .why-sa-inner { grid-template-columns: 1fr; gap: 48px; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 30px; }
  .step::before { display: none; }

  .footer-main {
    flex-direction: column;
    gap: 36px;
  }

  .footer-aside {
    justify-content: flex-end;
    width: 100%;
  }

  .footer-nav-grid { gap: 36px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-feature-body { padding: 24px 24px 22px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }

  .pillar-grid,
  .testimonial-grid,
  .metric-band { grid-template-columns: 1fr; }

  .metric-band { gap: 30px; padding: 34px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .services-cta { flex-direction: column; align-items: flex-start; }

  .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .industry-card-body { padding: 14px 14px 16px; }
  .industry-card-title { font-size: 14px; }

  .compare-grid { grid-template-columns: 1fr; }
  .compare-card { flex-direction: column; align-items: flex-start; gap: 10px; }

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

  .hero-stats { gap: 18px 0; }
  .hero-stats li { padding: 0 20px; }
  .hero-stats strong { font-size: 23px; }

  .why-sa-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-block { padding: 20px 18px; }

  .btn-header-cta { display: none; }
  .logo-img { height: 28px; }
  .site-header.scrolled .logo-img { height: 26px; }
  .header-pill { padding: 4px 6px 4px 14px; min-height: 50px; gap: 12px; }
  .site-header { padding: 10px 14px; }
  :root { --header-offset: 70px; }
  .header-actions { gap: 8px; }

  .footer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
  }

  .footer-tagline {
    text-align: left;
    max-width: none;
  }

  .footer-main {
    padding-bottom: 36px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .footer-aside {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer { padding: 36px 0 28px; }
}
