/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body, h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

:root {
  /* Sampled directly from the club crest (images/logo-shosholoza.png) — not invented. */
  --navy: #23408f;
  --navy-dark: #15264f;
  --red: #ed4a57;
  --red-dark: #c23d47;
  --red-darker: #9f323a;
  --ink: #1b1c1d;
  --paper: #f7f8fa;
  --paper-dim: #eef1f4;
  --white: #ffffff;
  --muted: #5b6673;
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(21, 38, 79, 0.35);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--navy);
}

.wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* Vertical padding split is intentionally uneven: this font's line-box metrics
     leave ~1.2px more space below the glyphs than above at this size, measured
     via getBoundingClientRect on the text vs. the button box. */
  padding: calc(0.85rem + 0.6px) 1.7rem calc(0.85rem - 0.6px);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red-dark); color: var(--white); box-shadow: 0 10px 24px -10px rgba(194,61,71,0.6); }
.btn-primary:hover { background: var(--red-darker); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.6); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(21, 38, 79, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.brand-mark { flex-shrink: 0; height: 56px; width: auto; }
.footer-mark { height: 40px; }

.primary-nav ul {
  display: flex; align-items: center; gap: 1.9rem;
}
.primary-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
}
.primary-nav a:not(.nav-cta) {
  padding-block: 0.3rem;
}
.primary-nav a:hover { color: var(--white); }
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: var(--red-dark);
  color: var(--white) !important;
  padding: calc(0.65rem + 0.6px) 1.1rem calc(0.65rem - 0.6px);
  border-radius: 999px;
}
.nav-cta:hover { background: var(--red-darker); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
}
.burger, .burger::before, .burger::after {
  position: absolute; left: 9px; right: 9px;
  height: 2px; background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger { top: 20px; }
.burger::before { content: ""; top: -8px; }
.burger::after { content: ""; top: 8px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,38,79,0.75) 0%, rgba(21,38,79,0.55) 45%, rgba(21,38,79,0.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: 6rem 4rem;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin-bottom: 1.3rem;
}
.hero-lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.2rem;
  margin-inline: auto;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--navy-dark); color: var(--white); padding-block: 2.2rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Sections ---------- */
.section { padding-block: 5.5rem; }
.section-muted { background: var(--paper); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.section-navy .kicker, .section-navy h2 { color: var(--white); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 0.6rem;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.1rem; }
h2.light { color: var(--white); }
.center { text-align: center; }
.section-intro {
  max-width: 62ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-navy .section-intro { color: rgba(255,255,255,0.8); }
.section-footnote {
  max-width: 62ch;
  margin: 3rem auto 0;
  font-size: 1.02rem;
  color: var(--muted);
  border-top: 1px solid #dfe4e9;
  padding-top: 2rem;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.section-navy .split-copy p { color: rgba(255,255,255,0.82); }
.split-copy p:last-of-type { margin-bottom: 1.6rem; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 1.6rem; margin-top: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.feature-card, .diff-card, .pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid #eceff2;
}
.feature-card h3, .diff-card h3, .pricing-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.feature-card p, .diff-card p, .pricing-card p { color: var(--muted); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(237,74,87,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.diff-card.wide { grid-column: span 2; }

/* ---------- Goals list ---------- */
.goal-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}
.goal-list li {
  position: relative;
  padding-left: 2.4rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}
.goal-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(237,74,87,0.18);
}
.goal-list li::after {
  content: "";
  position: absolute; left: 7.5px; top: 0.75rem;
  width: 7px; height: 12px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.9rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Sponsorship ---------- */
.benefits { max-width: 900px; margin: 0 auto 3rem; }
.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2rem;
}
.benefits-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}
.benefits-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--red-dark);
  font-weight: 700;
}
.pricing-card.featured { border: 2px solid var(--red); }
.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.mini-list { margin: 1rem 0 1.6rem; display: grid; gap: 0.5rem; }
.mini-list li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: 0.95rem; }
.mini-list li::before { content: "-"; position: absolute; left: 0; color: var(--red-dark); }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 1.4rem; margin: 1.6rem 0 1.4rem; }
.contact-list dt { font-weight: 700; color: var(--white); }
.contact-list dd { color: rgba(255,255,255,0.78); margin: 0; }
.contact-list a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--white); }
.npo-tag { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.form-row input, .form-row textarea {
  border: 1.5px solid #dde2e7;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--red-dark);
  outline-offset: 1px;
  background: var(--white);
}
.form-status { font-size: 0.9rem; min-height: 1.2em; color: var(--navy); }
.form-status.success { color: #1a7f37; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.65); padding-block: 2.4rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.9rem;
}
.footer-inner p { margin-top: 0.5rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .diff-card.wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--navy-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 6% 1.4rem;
  }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav a { display: block; padding: 0.9rem 0; }
  .nav-cta { margin-top: 0.8rem; display: inline-block; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; }
  .split.reverse .split-copy { order: 2; }

  .card-grid.two, .card-grid.three { grid-template-columns: 1fr; }
  .diff-card.wide { grid-column: span 1; }
  .benefits-list { grid-template-columns: 1fr; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-2 { grid-column: span 2; }
}

@media (max-width: 520px) {
  .section { padding-block: 3.6rem; }
  .hero-content { padding-block: 4.5rem 3rem; }
  .gallery { grid-auto-rows: 160px; }
}
