@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,700;6..12,800;6..12,900;6..12,1000&display=swap");

:root {
  --ink: #10212b;
  --muted: #5d6b73;
  --paper: #fbfcf7;
  --white: #ffffff;
  --line: #dde5df;
  --orange: #f26a21;
  --orange-dark: #c94d12;
  --cyan: #16a8b8;
  --green: #26865b;
  --sun: #f4b942;
  --shadow: 0 20px 60px rgba(16, 33, 43, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 229, 223, 0.86);
  background: rgba(251, 252, 247, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--white);
}

.brand-mark::before {
  content: "";
  width: 20px;
  height: 13px;
  border: 3px solid var(--orange);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #edf4ef;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(242, 106, 33, 0.24);
  cursor: pointer;
}

.button:hover {
  background: var(--orange-dark);
}

.button.secondary {
  background: var(--ink);
  box-shadow: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.button.light {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 33, 43, 0.92), rgba(16, 33, 43, 0.58) 46%, rgba(16, 33, 43, 0.18)),
    linear-gradient(0deg, rgba(16, 33, 43, 0.76), rgba(16, 33, 43, 0.02) 44%),
    url("../assets/cambodia-family-ride.jpg") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 32px, var(--max));
  margin: -38px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--line);
}

.proof-card {
  background: var(--white);
  padding: 26px;
}

.proof-card strong {
  display: block;
  color: var(--orange);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.proof-card span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 750;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: #eef6f1;
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head.single {
  display: block;
  max-width: 800px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.15;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
}

.dark .lede,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.metric,
.tier,
.step,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.dark .panel,
.dark .metric,
.dark .tier,
.dark .step {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.panel p,
.metric p,
.step p,
.tier p,
.faq-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.dark .panel p,
.dark .metric p,
.dark .step p,
.dark .tier p {
  color: rgba(255, 255, 255, 0.68);
}

.icon-dot {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f5ef;
  color: var(--green);
  font-weight: 1000;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.photo-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.helmet-visual {
  min-height: 440px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 28%, rgba(22, 168, 184, 0.24), transparent 28%),
    linear-gradient(135deg, #e9f8fb, #fff6ea);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.helmet-shell {
  width: min(72%, 520px);
  aspect-ratio: 1.45;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  border-radius: 52% 52% 32% 34%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42)),
    linear-gradient(145deg, var(--orange), #ff9f50);
  box-shadow: inset 0 -26px 0 rgba(16, 33, 43, 0.08), 0 30px 70px rgba(16, 33, 43, 0.18);
}

.helmet-shell::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 24%;
  height: 18%;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(16, 33, 43, 0.78) 0 38px, transparent 38px 62px);
  opacity: 0.8;
}

.helmet-shell::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 15%;
  height: 20%;
  border-radius: 0 0 999px 999px;
  background: rgba(255, 255, 255, 0.82);
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(16, 33, 43, 0.1);
  font-size: 0.88rem;
  font-weight: 850;
}

.hotspot::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
}

.hotspot.one { left: 8%; top: 18%; }
.hotspot.two { right: 7%; top: 28%; }
.hotspot.three { left: 10%; bottom: 17%; }
.hotspot.four { right: 10%; bottom: 12%; }

.steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 1000;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.range-card {
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.range-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 24px;
}

.range-top strong {
  color: var(--sun);
  font-size: 2.4rem;
  line-height: 1;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sun);
  font-size: 2.2rem;
  line-height: 1;
}

.budget-bars {
  display: grid;
  gap: 12px;
}

.budget-row {
  display: grid;
  grid-template-columns: 170px 1fr 52px;
  gap: 12px;
  align-items: center;
  font-weight: 850;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe7e0;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tier strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 2rem;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  margin-top: 12px;
}

.page-hero {
  padding: 86px 0 54px;
  background: var(--ink);
  color: var(--white);
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.76);
}

.callout {
  border-left: 5px solid var(--orange);
  padding: 20px 24px;
  background: #fff4eb;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 850;
}

.site-footer {
  padding: 50px 0;
  background: #09161c;
  color: var(--white);
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(160px, 0.3fr));
  gap: 32px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.fine-print {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero-proof,
  .section-head,
  .media-split,
  .calculator,
  .page-hero .section-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .donation-tiers {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 96px 0 82px;
  }

  .hero-proof {
    margin-top: 0;
  }

  .section {
    padding: 64px 0;
  }

  .photo-frame img {
    height: 360px;
  }

  .budget-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .section-inner,
  .hero-content,
  .hero-proof,
  .footer-grid {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-card,
  .panel,
  .metric,
  .tier,
  .step,
  .range-card {
    padding: 20px;
  }
}
