:root {
  /* CMN-inspired rainbow palette */
  --navy: #174e91;
  --navy-dark: #123c70;
  --blue: #1c9ed6;
  --teal: #0e7ca2;
  --yellow: #ffcb05;
  --yellow-dark: #eab700;
  --orange: #d67625;
  --pink: #cf489a;
  --green: #00a356;
  --gray: #808285;

  --bg: #f5f8fc;
  --card: #ffffff;
  --ink: #1f2b3a;
  --muted: #667487;
  --border: #e5ebf2;
  --error: #d63031;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(23, 78, 145, 0.12);
  --shadow-sm: 0 6px 18px rgba(23, 78, 145, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.015em; color: var(--navy); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wide { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(23, 78, 145, 0.05);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.08rem; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover { color: var(--blue); }
.btn-nav {
  background: var(--yellow); color: var(--navy) !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 203, 5, 0.4);
}
.btn-nav:hover { background: var(--yellow-dark); }

.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }

/* ===== HERO (photo banner, CMN-style) ===== */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.hero-panel {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; padding: 60px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center;
}
.hero-panel .eyebrow { color: #bfe6f6; }
.hero-panel h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; margin: 10px 0 16px; font-weight: 800; }
.hero-panel .lede { font-size: 1.1rem; color: #eaf4fb; max-width: 520px; }
.hero-panel .lede strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.secure-row { margin-top: 18px; font-size: 0.86rem; color: #cfe4f4; }

.hero-photo { position: relative; min-height: 340px; background: #dbe8f4; }
.hero-photo::after {
  content: "🖼  Your banner photo here"; position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; color: #6f93ba; font-size: 0.98rem; font-weight: 600; text-align: center; padding: 20px;
}
.hero-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* rainbow accent stripe */
.rainbow-bar {
  height: 8px; width: 100%;
  background: linear-gradient(90deg,
    var(--navy) 0 14%, var(--blue) 14% 29%, var(--teal) 29% 43%,
    var(--green) 43% 57%, var(--yellow) 57% 71%, var(--orange) 71% 86%, var(--pink) 86% 100%);
}

/* ===== ABOUT ===== */
.about { margin: 52px auto 8px; }
.about-head { text-align: center; margin-bottom: 22px; }
.about-head h2 { font-size: 2rem; margin: 6px 0 0; }
.about-body { max-width: 760px; margin: 0 auto; }
.about-body p { color: #43536a; font-size: 1.06rem; margin: 0 0 16px; }
.about-body p strong { color: var(--navy); }
.about-values { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about-values li { display: flex; align-items: baseline; gap: 10px; color: #43536a; }
.about-values .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.about-values strong { color: var(--navy); }

/* ===== IMPACT ===== */
.impact {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 44px auto;
}
.impact-card {
  background: var(--card); border: 1px solid var(--border);
  border-top: 4px solid var(--c);
  border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.impact-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c); margin-bottom: 12px;
}
.impact-ico svg { width: 27px; height: 27px; }
.impact-card h3 { margin: 0 0 4px; font-size: 1.04rem; color: var(--navy); }
.impact-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ===== STORY ===== */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  margin: 8px auto 48px;
}
.story-media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #e6eef7; min-height: 300px; }
.story-media img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.story-media.no-img { min-height: 260px; }
.story-media.no-img::after {
  content: "Your photo here"; position: absolute; inset: 0;
  display: grid; place-items: center; color: #9fb2c8; font-size: 0.95rem;
}
.story-text h2 { font-size: 1.85rem; line-height: 1.15; margin: 8px 0 14px; }
.story-text p { color: #43536a; font-size: 1.04rem; margin: 0 0 22px; }

/* ===== DONATION FLOW ===== */
main.wrap { padding-bottom: 20px; }
.flow-title { text-align: center; font-size: 1.7rem; margin: 8px 0 26px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 50%;
  font-weight: 800; font-size: 0.98rem;
}
.card h2 { margin: 0; font-size: 1.24rem; }
.card > .muted { margin: 6px 0 0; }

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

form { margin-top: 18px; display: flex; flex-direction: column; gap: 15px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"] {
  padding: 12px 14px; border: 1px solid #d7e0ea; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fbfdff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #aeb9c6; }
input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 158, 214, 0.18);
}

/* donation amount selector */
.amount-group { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.amount-label { font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.amount-options { display: flex; flex-wrap: wrap; gap: 10px; }
.amount-btn {
  flex: 1 1 auto; min-width: 84px; padding: 12px 10px; border: 2px solid #d7e0ea; background: #fbfdff;
  border-radius: 12px; font-size: 1.02rem; font-weight: 700; color: var(--navy); cursor: pointer;
  font-family: inherit; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.amount-btn:hover { border-color: var(--blue); }
.amount-btn.selected { border-color: var(--blue); background: #e9f6fc; box-shadow: 0 0 0 2px rgba(28,158,214,0.15); }
.amount-custom { gap: 6px; }
.amount-input-wrap { position: relative; display: flex; align-items: center; }
.amount-input-wrap .currency { position: absolute; left: 14px; color: var(--muted); font-weight: 700; }
.amount-input-wrap input { width: 100%; padding: 12px 14px 12px 30px; border: 1px solid #d7e0ea; border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fbfdff; }
.amount-input-wrap input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,158,214,0.18); }

.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); }

.file input {
  width: 100%; padding: 22px; border: 2px dashed #cfdae6; border-radius: 12px;
  background: #fbfdff; cursor: pointer; font-family: inherit;
}
.file input:hover { border-color: var(--blue); }

.privacy {
  background: #eaf6fb; border: 1px solid #c7e6f2; color: var(--teal);
  padding: 12px 14px; border-radius: 12px; font-size: 0.86rem; margin: 2px 0;
}
.privacy strong { color: var(--navy); }

/* buttons */
.btn {
  align-self: flex-start; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  font-family: inherit; text-decoration: none; display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, filter 0.15s;
}
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 18px rgba(255, 203, 5, 0.42); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 203, 5, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.75); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

.error { color: var(--error); font-size: 0.9rem; margin: 2px 0 0; font-weight: 500; }

/* account box */
.account-box {
  background: #fffdf3; border: 1px solid #f6e6a8; border-radius: 14px; padding: 20px; margin-top: 14px;
}
.account-box .row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #efdd97; }
.account-box .row:last-of-type { border-bottom: none; }
.account-box .k { color: #a08324; font-size: 0.84rem; font-weight: 600; }
.account-box .v { font-weight: 800; text-align: right; word-break: break-word; font-size: 1.04rem; color: var(--navy); }
.account-box .note { margin: 12px 0 0; font-size: 0.88rem; color: #8a6d1a; background: #fff6d6; padding: 10px 12px; border-radius: 9px; }

hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

.success { text-align: center; border-color: #bfe6d4; background: linear-gradient(135deg, #f1fbf6, #eafaf3); }
.done-emoji { font-size: 3rem; line-height: 1; }
.success h2 { margin: 8px 0; }

/* footer */
.foot { background: var(--navy); color: #dbe6f4; margin-top: 20px; }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 34px 20px 40px; text-align: center; }
.foot-brand { justify-content: center; color: #fff; margin-bottom: 8px; }
.foot-brand span { color: #fff; }
.foot p { margin: 4px 0; }
.muted-light { color: #9fb6d4; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 260px; }
  .story { grid-template-columns: 1fr; gap: 22px; }
  .story-media { order: -1; }
  .impact { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn-nav) { display: none; }
}
@media (max-width: 480px) {
  .impact { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
