/* ==========================================================================
   What If We Do Good — Landing page styles
   Design: Indian Ocean teal with a sunrise-orange call to action and a warm
   gold highlight on off-white paper. Inter for headings and body, Fraunces
   italic for the "What if" accents. Doorway arches and sun discs as motifs.
   ========================================================================== */

/* Self-hosted fonts (Google Fonts builds, latin + latin-ext subsets) */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour tokens */
  --ink: #0b2530;
  --ink-2: #29434e;
  --muted: #4f6872;
  --ocean: #0e7490;
  --ocean-2: #155e75;
  --deep: #083344;
  --deeper: #061f29;
  --foam: #e3f4f6;
  --foam-2: #c9e9ee;
  --sun: #c2410c;
  --sun-2: #9a3412;
  --sun-bright: #f97316;
  --sun-tint: #ffedd5;
  --gold: #fbbf24;
  --gold-soft: #fcd34d;
  --gold-tint: #fef3c7;
  --paper: #fbfaf6;
  --paper-2: #f2f5f1;
  --white: #ffffff;
  --border: #dde6e4;
  --on-dark: #ecfeff;
  --on-dark-2: rgba(236, 254, 255, 0.8);
  --focus: var(--sun);

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 48, 0.06), 0 2px 8px rgba(11, 37, 48, 0.04);
  --shadow: 0 12px 32px rgba(11, 37, 48, 0.1), 0 2px 6px rgba(11, 37, 48, 0.05);
  --shadow-lg: 0 28px 64px rgba(11, 37, 48, 0.2);

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", "Iowan Old Style", Georgia, serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.9vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* The "What if" accent: Fraunces italic inside sans headings */
h1 em,
h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.06em;
  letter-spacing: -0.02em;
  color: var(--sun);
}

p { margin: 0; }
p + p { margin-top: 1em; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold-tint); color: var(--ink); }

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--pill);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: none; outline-color: var(--gold); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean-2);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sun-bright);
  box-shadow: 0 0 0 4px var(--sun-tint);
  flex: none;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head > p:not(.kicker) { margin-top: 1.1rem; }

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}
.section-head--split > p.lead { margin-top: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              transform 200ms var(--ease), box-shadow 200ms var(--ease),
              border-color 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sun);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.26);
}
.btn-primary:hover { background: var(--sun-2); box-shadow: 0 12px 26px rgba(194, 65, 12, 0.3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(11, 37, 48, 0.22);
}
.btn-ghost:hover { background: var(--white); border-color: rgba(11, 37, 48, 0.45); }

.btn-light {
  background: var(--white);
  color: var(--deep);
}
.btn-light:hover { background: var(--gold-tint); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.85); }

.btn-sm { min-height: 44px; padding: 0 1.25rem; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.site-nav a:hover { background: var(--foam); color: var(--ink); }
.site-nav a[aria-current="true"] { color: var(--ocean-2); background: var(--foam); }
.site-nav .nav-cta { display: none; }
.site-nav a.btn,
.site-nav a.btn:hover { color: var(--white); }
.site-nav a.btn:hover { background: var(--sun-2); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--foam); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 92% 12%, var(--foam) 0%, transparent 70%),
    radial-gradient(42% 46% at 0% 100%, var(--sun-tint) 0%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero-copy .lead { margin-top: 1.6rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-trust svg { width: 22px; height: 22px; color: var(--ocean); flex: none; }
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-visual {
  position: relative;
  padding: 0 0 3.25rem 2.75rem;
}
.hero-sun {
  position: absolute;
  top: -1.75rem;
  right: -2.25rem;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  z-index: -1;
}
.hero-arch {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 47%;
  padding: 0.5rem 0.5rem 0.7rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
.hero-card figcaption {
  padding: 0.55rem 0.4rem 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}

.spin-badge {
  position: absolute;
  right: -1.5rem;
  bottom: 5.5rem;
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  box-shadow: var(--shadow);
}
.spin-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 36s linear infinite;
}
.spin-ring text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  fill: currentColor;
}
.spin-core { width: 34px; height: 34px; color: var(--gold); }

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

/* --------------------------------------------------------------------------
   At a glance
   -------------------------------------------------------------------------- */
.facts { padding-block: 0 var(--section); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact {
  padding: 1.75rem 1.5rem 1.75rem 0;
}
.fact + .fact {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}
.fact-value {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.fact-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--ocean-2);
  flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--sun { background: var(--sun-tint); color: var(--sun); }
.icon-tile--gold { background: var(--gold-tint); color: #92400e; }

/* Why home comes first */
#why { padding-top: 0; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.why-visual {
  position: relative;
  padding: 0 1.5rem 3.5rem 0;
}
.why-visual::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 0;
  bottom: 1.5rem;
  left: 2.5rem;
  border-radius: var(--radius-lg) 140px var(--radius-lg) var(--radius-lg);
  background: var(--foam-2);
}
.why-img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg) 140px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}
.why-quote {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  max-width: 310px;
  padding: 1.4rem 1.5rem;
  background: var(--deep);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
}
.why-quote::before {
  content: "";
  display: block;
  width: 28px; height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--gold);
}

.why-points { display: grid; gap: 1.5rem; }
.why-point {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.why-point h3 { margin-bottom: 0.3rem; }
.why-point p { color: var(--muted); font-size: 0.985rem; }

/* Our approach (dark band with four questions) */
.manifesto {
  --focus: var(--gold);
  position: relative;
  background: var(--deep);
  color: var(--on-dark);
  margin-top: clamp(28px, 5vw, 72px);
}
.manifesto .wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(28px, 5vw, 72px);
  fill: var(--deep);
  max-width: none;
}
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 46% at 100% 52%, rgba(251, 191, 36, 0.1) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(14, 116, 144, 0.5) 0%, transparent 72%);
  pointer-events: none;
}
.manifesto .container { position: relative; z-index: 1; }
.manifesto h2,
.manifesto h3 { color: var(--white); }
.manifesto h2 em { color: var(--gold); }
.manifesto .kicker { color: var(--gold-soft); }
.manifesto .kicker::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.manifesto .lead { color: var(--on-dark-2); }

.q-list { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.q-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.q-num {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.q-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition: transform 300ms var(--ease), color 300ms var(--ease);
}
.q-answer {
  color: var(--on-dark-2);
  font-size: 1rem;
  max-width: 46ch;
}
.q-row:hover .q-text { transform: translateX(6px); color: var(--gold-soft); }

.mission {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.mission .kicker { margin-bottom: 0.75rem; }
.mission-text {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 44ch;
  text-wrap: pretty;
}
.mission .btn { flex: none; }

/* What good can look like */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.home-card:nth-child(2) { margin-top: 2.5rem; }
.home-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.home-card figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.home-card:nth-child(1) figure { border-top-left-radius: 120px; }
.home-card:nth-child(3) figure { border-top-right-radius: 120px; }
.home-card figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.home-card figure:hover img { transform: scale(1.04); }
.home-card figcaption { padding: 1.4rem 1.5rem 1.6rem; }
.home-card h3 { margin-bottom: 0.4rem; }
.home-card p { color: var(--muted); font-size: 0.95rem; }
.homes-note {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Durban */
.durban-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.durban-grid .section-head { margin-bottom: 2rem; }
.address-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.6rem 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.55;
  color: var(--ink-2);
}
.address-card strong { display: block; color: var(--ink); font-weight: 600; }

.durban-visual {
  position: relative;
  padding: 0 0 4rem 3rem;
}
.durban-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg) 160px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}
.durban-round {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
}
.durban-round img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--paper-2);
  box-shadow: var(--shadow);
}
.durban-visual figcaption {
  position: absolute;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.durban-main { position: relative; }
.durban-main figcaption { right: 1.25rem; bottom: 1.25rem; }
.durban-round figcaption { left: 50%; bottom: -0.35rem; transform: translateX(-50%); }

/* Get involved */
.involve-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.involve-head .section-head { margin-bottom: 0; }
.involve-img {
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 11px var(--gold);
  margin-right: 11px;
}

.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.involve-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.involve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.involve-card h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.involve-card p { color: var(--muted); font-size: 0.985rem; flex: 1; }
.involve-card .btn { align-self: flex-start; margin-top: 0.5rem; }

.involve-card--primary {
  --focus: var(--gold);
  background: var(--deep);
  border-color: var(--deep);
}
.involve-card--primary h3 { color: var(--white); }
.involve-card--primary p { color: var(--on-dark-2); }
.involve-card--primary .icon-tile { background: rgba(255, 255, 255, 0.12); color: var(--gold); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .section-head { margin-bottom: 1.75rem; }
.contact-card {
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card .btn { margin-top: 1.1rem; }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 180ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ocean-2); }
.faq-item summary:focus-visible { outline-offset: 6px; }
.faq-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 37, 48, 0.2);
  color: var(--ocean-2);
  transition: transform 250ms var(--ease), background-color 250ms var(--ease), border-color 250ms var(--ease), color 250ms var(--ease);
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--deep); border-color: var(--deep); color: var(--white); }
.faq-body {
  padding: 0 3.5rem 1.5rem 0;
  color: var(--ink-2);
  max-width: 62ch;
}

/* Final CTA */
.cta { padding-block: var(--section); }
.cta-box {
  --focus: var(--gold);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: var(--white);
  isolation: isolate;
}
.cta-box img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 20, 28, 0.3) 0%, rgba(8, 20, 28, 0.55) 55%, rgba(8, 20, 28, 0.78) 100%);
}
.cta-box h2,
.cta-box p { text-shadow: 0 1px 18px rgba(8, 20, 28, 0.5); }
.cta-box h2 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.9rem); }
.cta-box h2 em { color: var(--gold); }
.cta-box p { margin: 1.2rem auto 0; max-width: 44ch; color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  --focus: var(--gold);
  background: var(--deeper);
  color: rgba(236, 254, 255, 0.74);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand-name small { color: rgba(236, 254, 255, 0.6); }
.footer-about p { margin-top: 1.1rem; max-width: 34ch; }
.footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--gold-soft);
  margin-bottom: 0.9rem;
}
.site-footer ul { display: grid; gap: 0.15rem; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(236, 254, 255, 0.82);
  text-decoration: none;
}
.site-footer li a:hover { color: var(--white); text-decoration: underline; }
.footer-address {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  line-height: 1.55;
  color: rgba(236, 254, 255, 0.82);
}
.footer-address svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

.footer-reg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-reg svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.footer-reg strong { color: var(--white); display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(236, 254, 255, 0.62);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(236, 254, 255, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(236, 254, 255, 0.35);
}
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Photo credits page (credits.html)
   -------------------------------------------------------------------------- */
.credits-page { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.credits-page .container { max-width: 52rem; }
.credits-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.credits-page .lead { margin-top: 1.25rem; }
.credits-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.credits-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.credits-list img {
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.credits-list strong { display: block; font-weight: 600; }
.credits-list span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.95rem; }
.credits-back { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive enhancement; no-JS shows everything)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease), transform 650ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { min-height: 48px; font-size: 1.05rem; padding-inline: 1rem; }
  .site-nav .nav-cta { display: block; margin-top: 0.75rem; }
  .site-nav .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .q-row { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 0.75rem; }
  .q-answer { grid-column: 2; }
}

@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .durban-grid,
  .faq-grid,
  .section-head--split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .why-visual { max-width: 560px; }
  .durban-visual { max-width: 560px; }
  .faq-aside { position: static; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .homes-grid,
  .involve-grid { grid-template-columns: 1fr; }
  .home-card:nth-child(2) { margin-top: 0; }
  .home-card img { aspect-ratio: 16 / 9; }
  .mission { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 0.5rem; }
  .header-inner > .btn-sm { padding: 0 1rem; }
  .brand svg { width: 38px; height: 38px; }
  .hero-visual { padding: 0 0 2.75rem 1.25rem; }
  .hero-sun { right: -1.5rem; top: -1rem; }
  .spin-badge { width: 104px; right: 0.5rem; bottom: 4.5rem; }
  .spin-core { width: 28px; height: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { align-items: flex-start; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact,
  .fact + .fact { padding: 1.25rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--border); }
  .why-visual { padding: 0; }
  .why-visual::before { display: none; }
  .why-img { border-top-right-radius: 96px; }
  .why-quote { position: static; max-width: none; margin-top: 1rem; }
  .home-card img { aspect-ratio: 4 / 3; }
  .home-card:nth-child(1) figure { border-top-left-radius: 96px; }
  .home-card:nth-child(3) figure { border-top-right-radius: 96px; }
  .durban-visual { padding: 0 0 3.25rem 1.25rem; }
  .durban-main img { border-top-right-radius: 96px; }
  .durban-round { width: 44%; }
  .durban-round img { border-width: 6px; }
  .durban-round figcaption { left: 0; transform: none; }
  .involve-head { grid-template-columns: 1fr; }
  .involve-img { order: -1; width: 132px; margin-left: 11px; }
  .involve-card .btn { width: 100%; }
  .faq-item summary { font-size: 1.05rem; }
  .faq-body { padding-right: 0; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .credits-list li { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; }
  .credits-list img { width: 84px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .spin-ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .home-card figure:hover img,
  .q-row:hover .q-text { transform: none; }
}
