/* Kompas — www.onskompas.co.za */
:root {
  --ink: #12182a;
  --navy: #1a2744;
  --navy-deep: #0c1220;
  --paper: #f7f5f0;
  --paper-warm: #efebe3;
  --gold: #c4a35a;
  --gold-soft: #d4bc7a;
  --mist: rgba(247, 245, 240, 0.72);
  --line: rgba(26, 39, 68, 0.12);
  --muted: rgba(18, 24, 42, 0.68);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: var(--gold-soft);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-cta {
  border: 1px solid rgba(247, 245, 240, 0.35);
  padding: 0.45rem 0.9rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(247, 245, 240, 0.08), transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 48%, #243556 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
  }
}

.brand-mark {
  width: min(200px, 46vw);
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem 0.85rem;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  animation: rise 1s var(--ease) both;
}

.brand-word {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  animation: rise 1s var(--ease) 0.08s both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  max-width: 18ch;
  color: var(--paper);
  animation: rise 1s var(--ease) 0.16s both;
}

.hero-lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: rgba(247, 245, 240, 0.78);
  font-size: 1.1rem;
  animation: rise 1s var(--ease) 0.24s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1s var(--ease) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 245, 240, 0.35);
}

.btn-ghost:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

.hero-visual {
  justify-self: center;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  position: relative;
  animation: float 7s ease-in-out infinite, rise 1.1s var(--ease) 0.2s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.hero-ring {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(196, 163, 90, 0.28);
  border-radius: 50%;
  animation: spin 48s linear infinite;
  pointer-events: none;
}

.hero-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(196, 163, 90, 0.8);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--navy);
  max-width: 18ch;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 58ch;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  border-block: 1px solid var(--line);
}

.company-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--muted);
}

.company-block strong {
  color: var(--navy);
  font-weight: 700;
}

.company-block a {
  color: var(--navy);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 245, 240, 0.72);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  width: min(880px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: rgba(247, 245, 240, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

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

/* ——— Legal pages ——— */
.page-top {
  background: var(--navy);
  color: var(--paper);
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.page-top a {
  color: rgba(247, 245, 240, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.legal {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.legal-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul,
.legal ol {
  padding-left: 1.2rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--paper-warm);
  color: var(--navy);
  font-weight: 600;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
