/* The Your Chance Fund — brand stylesheet
   Colors pulled from Homepage.pdf:
   navy #14315B · green #4A9A3F · gold #D8A22E · purple #6B3FA0 */

:root {
  --navy: #14315B;
  --navy-800: #0F2544;
  --green: #4A9A3F;
  --green-700: #3E8236;
  --gold: #D8A22E;
  --purple: #6B3FA0;
  --ink: #1c2431;
  --muted: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 49, 91, 0.10);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--navy); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 auto 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, box-shadow .2s;
  font-size: 1rem;
}
.btn:active { transform: translateY(1px); }
.btn--gold  { background: var(--gold);  color: var(--navy); }
.btn--gold:hover  { box-shadow: 0 8px 22px rgba(216,162,46,.35); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--navy  { background: var(--navy);  color: #fff; }
.btn--navy:hover  { background: var(--navy-800); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto; }
.nav__logo img { height: 52px; display: block; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { text-decoration: none; color: var(--navy); font-weight: 600; }
.nav__links a.plain:hover { color: var(--green); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(74,154,63,.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  padding: 80px 0 64px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__eyebrow { color: var(--green); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .9rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero__card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.hero__card h3 { color: #fff; }
.hero__card ul { margin: 0; padding-left: 18px; }
.hero__card li { margin-bottom: 10px; }

/* ---------- Principles / feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card__badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; margin-bottom: 14px;
}
.b-navy { background: var(--navy); } .b-green { background: var(--green); }
.b-gold { background: var(--gold); color: var(--navy) !important; } .b-purple { background: var(--purple); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.step:nth-child(even) { border-top-color: var(--green); }
.step__num { font-size: 2rem; font-weight: 800; color: var(--gold); }
.step h3 { font-size: 1.05rem; margin-top: 4px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6def0; max-width: 640px; margin: 0 auto 22px; }
.cta-band .btn--ghost { color: #fff; border-color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cdd5e0; border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,154,63,.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-section-title {
  margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line);
  color: var(--navy); font-size: 1.15rem; font-weight: 800;
}
.form-actions { margin-top: 24px; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; display: none; }
.alert--ok  { background: #e8f5e6; color: #2f6e28; border: 1px solid #bfe3b8; }
.alert--err { background: #fdecea; color: #b23029; border: 1px solid #f5c6c2; }

.success-panel {
  display: none; text-align: center; padding: 40px 20px;
}
.success-panel .check {
  width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #cdd6e6; padding: 40px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-tag { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.footer-small { font-size: .85rem; color: #8ea0bd; margin-top: 8px; }

/* ---------- Page intro ---------- */
.page-intro { background: var(--navy); color: #fff; padding: 54px 0; text-align: center; }
.page-intro h1 { color: #fff; }
.page-intro p { color: #d6def0; max-width: 640px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--5 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px 22px;
    border-bottom: 1px solid var(--line); gap: 14px;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .grid--3, .grid--5, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
