/* =====================================================================================================
   NEW HOPE MISSION — design system & components
   Palette: deep navy + warm gold + cream. Display: Fraunces (serif). Text: Inter.
   ===================================================================================================== */
:root {
  --navy:   #0e2e63;
  --navy-700:#143a7a;
  --navy-900:#081f46;
  --gold:   #fdc82f;
  --gold-600:#e9b21e;
  --cream:  #fbf6ec;
  --sand:   #f3ece0;
  --ink:    #16233f;
  --muted:  #5c6b86;
  --line:   #e7ddcb;
  --white:  #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -32px rgba(14,46,99,.45);
  --shadow-soft: 0 18px 40px -26px rgba(14,46,99,.4);
  --ease: cubic-bezier(.4,0,.2,1);
  --expo: cubic-bezier(.16,1,.3,1);
  --head: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--head); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-optical-sizing: auto; }
h3 { font-size: 1.5rem; }
p { color: var(--ink); }
.muted { color: var(--muted); }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--navy { background: var(--navy); color: #eaf0fb; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--sand { background: var(--sand); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: #c3d2ee; }
.head-center { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.head-center .eyebrow::before { display: none; }
.head-center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 100px; font-weight: 600; font-size: .98rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .5s var(--expo), background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--expo); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 12px 26px -12px rgba(253,200,47,.8); }
.btn--gold:hover { background: var(--gold-600); box-shadow: 0 18px 34px -12px rgba(253,200,47,.9); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 90; transition: background-color .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease); padding: 1.1rem 0; }
.header.is-stuck { background: rgba(251,246,236,.88); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line); padding: .6rem 0; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--head); font-weight: 600; color: var(--navy); font-size: 1.05rem; line-height: 1.05; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; transition: width .5s var(--ease), height .5s var(--ease); }
.is-stuck .brand img { width: 44px; height: 44px; }
.brand span small { display: block; font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.header:not(.is-stuck) .brand, .header:not(.is-stuck) .nav-links a { color: #fff; }
.header:not(.is-stuck) .brand span small { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; padding: 0; }
.nav-links a { position: relative; font-size: .95rem; font-weight: 500; padding: .3rem 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--expo); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; border: 1.5px solid currentColor; border-radius: 100px; padding: .35rem .7rem; opacity: .9; transition: background-color .3s, color .3s; }
.header:not(.is-stuck) .lang { color: #fff; }
.is-stuck .lang { color: var(--navy); }
.lang:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--expo), opacity .3s; }
.header:not(.is-stuck) .nav-toggle { color: #fff; }
.is-stuck .nav-toggle { color: var(--navy); }

/* ---------- Hero (split — full image, no crop) ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(253,200,47,.16), transparent 70%); top: -180px; right: -140px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(8.5rem, 13vw, 11rem) 0 clamp(4.5rem, 8vw, 7rem); }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: .45rem 1rem; border-radius: 100px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 1.4rem; }
.hero__badge b { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 46ch; color: #d7e2f6; }
.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__frame { position: relative; }
.hero__frame img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0; }
.hero__float { position: absolute; left: -16px; bottom: 20px; z-index: 2; background: #fff; color: var(--navy); border-radius: 14px; padding: .75rem 1.1rem; box-shadow: var(--shadow); font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: .6rem; }
.hero__float b { font-family: var(--head); color: var(--gold-600); font-size: 1.5rem; line-height: 1; }
@media (max-width: 860px){ .hero__grid { grid-template-columns: 1fr; } .hero__frame { order: -1; } .hero__frame::before { inset: 10px -10px -10px 10px; } }

/* floating stat strip */
.hero__stats { position: relative; z-index: 2; margin-top: -3.2rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat-strip > div { background: var(--white); padding: 1.8rem 1.4rem; text-align: center; }
.stat-strip .num { font-family: var(--head); font-size: clamp(2rem,3.4vw,2.8rem); color: var(--navy); line-height: 1; }
.stat-strip .num i { font-style: normal; color: var(--gold-600); }
.stat-strip .lbl { margin-top: .5rem; font-size: .82rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.about__media .quote-card { position: absolute; right: -8%; bottom: 8%; background: var(--navy); color: #fff; padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); max-width: 260px; box-shadow: var(--shadow); }
.about__media .quote-card b { color: var(--gold); font-family: var(--head); font-size: 1.1rem; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; }
.values .ic svg { width: 20px; height: 20px; }
.values b { display: block; color: var(--navy); font-size: 1.02rem; }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- Impact (navy, counters) ---------- */
.impact__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.impact-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 2rem 1.6rem; transition: transform .6s var(--expo), background-color .4s; }
.impact-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.impact-card .num { font-family: var(--head); font-size: clamp(2.4rem,4vw,3.4rem); color: var(--gold); line-height: 1; }
.impact-card .lbl { margin-top: .6rem; color: #cfdcf3; font-size: .98rem; }

/* ---------- Projects / areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .6s var(--expo), box-shadow .5s, border-color .4s; }
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.area .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--sand); color: var(--navy); display: grid; place-items: center; margin-bottom: 1.1rem; transition: background-color .4s, color .4s; }
.area:hover .ic { background: var(--navy); color: var(--gold); }
.area .ic svg { width: 26px; height: 26px; }
.area h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.area p { font-size: .92rem; color: var(--muted); }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.story { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .6s var(--expo); }
.story:hover { transform: translateY(-6px); }
.story__img { aspect-ratio: 3/2; overflow: hidden; }
.story__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); transition: transform 1s var(--expo); }
.story:hover .story__img img { transform: scale(1.06); }
.story__body { padding: 1.5rem 1.6rem 1.8rem; }
.story__tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.story__body h3 { font-size: 1.22rem; margin: .5rem 0 .6rem; }
.story__body p { font-size: .96rem; color: var(--muted); }

/* ---------- Get involved ---------- */
.involve { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.involve-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .6s var(--expo); }
.involve-card:hover { transform: translateY(-6px); }
.involve-card__img { aspect-ratio: 3/2; overflow: hidden; }
.involve-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--expo); }
.involve-card:hover .involve-card__img img { transform: scale(1.06); }
.involve-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.7rem 1.9rem; }
.involve-card__body p { color: var(--muted); font-size: .95rem; margin: .5rem 0 1.2rem; flex: 1; }
.involve-card--solid { background: var(--gold); border-color: var(--gold); }
.involve-card--solid .involve-card__body { justify-content: center; }
.involve-card--solid h3, .involve-card--solid p { color: var(--navy-900); }

/* ---------- Donate band ---------- */
.donate-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2.5rem,5vw,4rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.donate-band::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(253,200,47,.3), transparent 70%); right: -80px; top: -120px; }
.donate-band h2 { color: #fff; }
.donate-band p { color: #c9d6ef; margin-top: .8rem; }
.donate-band .side { text-align: right; }
@media (max-width: 820px){ .donate-band { grid-template-columns: 1fr; } .donate-band .side{ text-align: left; } }

/* ---------- Newsletter ---------- */
.news-form { display: flex; gap: .8rem; max-width: 460px; margin-top: 1.6rem; }
.news-form input { flex: 1; padding: .95rem 1.2rem; border-radius: 100px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.news-form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #b9c6e2; padding: 4.5rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer a:hover { color: var(--gold); }
.footer__brand img { width: 64px; border-radius: 50%; margin-bottom: 1rem; }
.footer__brand p { color: #93a4c6; font-size: .95rem; max-width: 30ch; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: background-color .3s, border-color .3s, transform .4s var(--expo); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8092b4; }

/* ---------- Donate modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.2rem; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8,31,70,.6); backdrop-filter: blur(4px); }
.modal__box { position: relative; background: var(--cream); width: min(560px, 100%); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 92vh; overflow: auto; transform: translateY(24px) scale(.98); transition: transform .5s var(--expo); }
.modal.is-open .modal__box { transform: none; }
.modal__head { background: var(--navy); color: #fff; padding: 1.8rem 2rem; border-radius: var(--radius) var(--radius) 0 0; }
.modal__head h3 { color: #fff; font-size: 1.5rem; }
.modal__head p { color: #c3d2ee; font-size: .92rem; margin-top: .3rem; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; transition: background-color .3s, transform .4s var(--expo); }
.modal__close:hover { background: var(--gold); color: var(--navy-900); transform: rotate(90deg); }
.form { padding: 1.8rem 2rem 2rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px){ .form-row { grid-template-columns: 1fr; } }
.amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; }
.amounts--two { grid-template-columns: 1fr 1fr; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: block; text-align: center; padding: .8rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; transition: all .3s; background: #fff; }
.amounts input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.amounts button { text-align: center; padding: .8rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; font: inherit; color: var(--ink); transition: all .3s; }
.amounts button:hover { border-color: var(--gold); }
.amounts button.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.amount-exact { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; margin-top: .6rem; }
.amount-exact:focus { outline: none; border-color: var(--gold); }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form__note { font-size: .82rem; color: var(--muted); text-align: center; }
.form__status { font-size: .95rem; font-weight: 600; text-align: center; padding: .4rem; }
.form__status.ok { color: #1a7a4b; }
.form__status.err { color: #c0392b; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--expo), transform .9s var(--expo); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s } .reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }

/* ---------- Mobile nav ---------- */
@media (max-width: 960px){
  .impact__grid, .areas { grid-template-columns: repeat(2,1fr); }
  .stories, .involve { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw); background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .5s var(--expo); box-shadow: var(--shadow); }
  .nav-links a { color: #fff !important; font-size: 1.2rem; }
  body.nav-open .nav-links { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 680px){
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .impact__grid, .areas, .stories, .involve, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { margin-top: 2rem; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .news-form { flex-direction: column; }
  .news-form input { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}
