:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-grad-a: rgba(255, 185, 80, 0.18);
  --bg-grad-b: rgba(72, 132, 255, 0.16);
  --nav-bg: rgba(6, 10, 18, 0.74);
  --surface: rgba(17, 25, 38, 0.6);
  --surface-strong: rgba(14, 20, 31, 0.9);
  --surface-border: rgba(255, 255, 255, 0.13);
  --text: #f7f9fc;
  --text-soft: #d7deeb;
  --muted: #9cabc3;
  --accent: #ffbe3b;
  --accent-strong: #f39c12;
  --danger: #ff4f57;
  --quote: #ffd37c;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --themed-overlay: linear-gradient(135deg, rgba(5, 8, 13, 0.76), rgba(11, 17, 28, 0.62));
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f9;
  --bg-grad-a: rgba(255, 183, 72, 0.24);
  --bg-grad-b: rgba(56, 123, 221, 0.16);
  --nav-bg: rgba(246, 250, 255, 0.84);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(19, 35, 58, 0.16);
  --text: #12233f;
  --text-soft: #203452;
  --muted: #516482;
  --accent: #c67d00;
  --accent-strong: #a56400;
  --danger: #cd3b3f;
  --quote: #946000;
  --shadow: 0 16px 36px rgba(22, 38, 63, 0.18);
  --themed-overlay: linear-gradient(135deg, rgba(9, 13, 20, 0.74), rgba(15, 22, 34, 0.62));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at -10% -10%, var(--bg-grad-a), transparent 45%),
    radial-gradient(900px 480px at 110% 0%, var(--bg-grad-b), transparent 38%),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

main {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.65rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

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

.section-pad {
  padding-block: clamp(2.75rem, 7vw, 5rem);
}

.section-head {
  max-width: 760px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.45rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-text {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.54rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  filter: brightness(1.08);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
}

html[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, #be7600, #945b00);
  color: #fff;
}

.btn.secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn.secondary:hover {
  background: rgba(255, 190, 59, 0.12);
}

.btn.emergency {
  background: var(--danger);
  color: #fff;
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--surface-border);
  color: var(--text);
}

.nav-sos {
  padding: 0.7rem 1rem;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: start center;
  padding: 5.2rem 1rem 1rem;
  background: rgba(4, 9, 16, 0.66);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  width: min(460px, 100%);
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-strong);
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.menu-close {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.mobile-link {
  display: block;
  padding: 0.68rem 0.2rem;
  color: var(--text-soft);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 600;
  border-bottom: 1px solid var(--surface-border);
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-sos {
  width: 100%;
  margin-top: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.2rem, 3vw, 2.3rem);
  align-items: start;
}

.hero-logo img {
  width: min(420px, 74vw);
  filter: drop-shadow(0 14px 30px rgba(255, 190, 59, 0.2));
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-row.centered {
  justify-content: center;
}

.btn-note {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
}

.hero-panel h2 {
  font-size: 1.2rem;
}

.hero-panel p {
  color: var(--text-soft);
}

.quick-list {
  padding-left: 1.1rem;
  margin: 0 0 1.05rem;
}

.quick-list li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.quick-list strong {
  color: var(--accent);
}

.story-layout {
  margin-top: 1.2rem;
}

.story-copy {
  max-width: 72ch;
}

.story-copy p {
  color: var(--text-soft);
}

.timeline {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.glass-card {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tl-card {
  padding: 1rem;
  border-radius: 14px;
}

.tl-card h3 {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 1rem;
}

.tl-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.story-action {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-ribbon {
  margin-top: 0.7rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: linear-gradient(90deg, rgba(255, 190, 59, 0.08), transparent 45%, rgba(78, 143, 255, 0.08));
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.inline-cta:hover {
  color: var(--accent);
}

.inline-cta img {
  width: 34px;
  height: 34px;
}

.themed {
  position: relative;
  margin-top: 1.6rem;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.themed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--themed-overlay);
  z-index: 0;
}

.themed,
.themed h2,
.themed h3,
.themed p,
.themed a {
  color: #f8fbff;
}

.themed-inner {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.2rem);
  position: relative;
  z-index: 1;
}

.tribute {
  background-image: url("/10Years/assets/candle_background.png");
}

.what-built {
  background-image: url("/10Years/assets/road_texture.png");
}

.what-next {
  background-image: url("/10Years/assets/map_background_southafrica.png");
}

.memorial-card {
  margin: 1.2rem auto 0;
  max-width: 860px;
  padding: 1.25rem 1.2rem;
  border-radius: 18px;
  background: rgba(9, 14, 20, 0.56);
}

.source-line {
  color: rgba(232, 240, 255, 0.86);
  font-size: 0.9rem;
}

.source-line a {
  color: #ffd68c;
  text-decoration: underline;
}

.build-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

.flow-lines {
  margin: 1.05rem 0 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 1.05rem;
}

.flow-lines span {
  display: flex;
  align-items: flex-start;
}

.build-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(8, 15, 24, 0.58);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

#about p {
  max-width: 74ch;
  color: var(--text-soft);
}

.support-panel {
  padding: 1.2rem;
  border-radius: 18px;
}

.quote {
  color: var(--quote);
  font-style: italic;
  font-weight: 700;
}

.npo-note {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding: 1.6rem clamp(1rem, 3vw, 2rem) 2.2rem;
  border-top: 1px solid var(--surface-border);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer span {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-soft);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 560px;
  }

  .build-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .brand-text,
  .nav-links {
    display: none;
  }

  #themeText {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

  .nav-sos {
    padding: 0.62rem 0.76rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 640px) {
  .btn-row .btn {
    width: 100%;
  }

  .story-action {
    align-items: stretch;
  }

  .story-action .btn {
    width: 100%;
  }

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

  .themed {
    border-radius: 20px;
  }

  .inline-cta {
    font-size: 0.94rem;
  }
}

@media (max-width: 460px) {
  .nav-sos {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .theme-toggle,
  .nav-links a {
    transition: none;
  }
}
