/* =========================================================
   Empower Next Project — shared stylesheet
   Palette pulled from empowernextproject.org
   Brand blue   #0041C7   hover #003AB3   active #002780
   Accent orange#FB4F1E
   Warm tan     #F6DFC8   hover #EECFAE
   Warm brown   #7F746A
   Ink          #1B1B1B
   Light bg     #F6F6F6
   Fonts        Quicksand (display) / Roboto (body)
   ========================================================= */

:root {
  --blue: #0041c7;
  --blue-dark: #003ab3;
  --blue-darker: #002780;
  --orange: #fb4f1e;
  --green: #2e9e5b;
  --green-dark: #1f7d47;
  --green-soft: rgba(46, 158, 91, 0.12);
  --tan: #f6dfc8;
  --tan-dark: #eecfae;
  --brown: #7f746a;
  --ink: #1b1b1b;
  --muted: #5e5e5e;
  --bg: #f6f6f6;
  --white: #ffffff;
  --radius-pill: 48px;
  --radius-card: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 3px 6px 3px rgba(0, 0, 0, 0.16);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 12px;
}

.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  min-height: 52px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #e23d10; color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }

.btn-tan { background: var(--tan); color: #3e2d16; }
.btn-tan:hover { background: var(--tan-dark); color: #3e2d16; }

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.25rem;
  flex-shrink: 0;
}
.brand .brand-name {
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); line-height: 1.05;
}
.brand .brand-name span { display: block; font-size: .72rem; font-weight: 600; color: var(--brown); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 8px;
  font-size: .98rem;
}
.nav-links a:hover { color: var(--blue); background: rgba(0, 65, 199, 0.06); text-decoration: none; }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 8px 16px 16px; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid rgba(0,0,0,.04); }
  .nav .nav-cta .btn { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.bg-light { background: var(--bg); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-tan { background: var(--tan); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(0,65,199,.92) 0%, rgba(0,39,128,.92) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(251,79,30,.55), rgba(251,79,30,0) 70%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; left: -140px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(46,158,91,.45), rgba(46,158,91,0) 70%);
  pointer-events: none; z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; max-width: 820px; }
.hero h1, .hero h2 { color: var(--white); }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .eyebrow { color: var(--tan); }

/* ---------- Mission band ---------- */
.mission-band {
  background: var(--tan);
  text-align: center;
}
.mission-band p {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: #3e2d16;
  max-width: 900px; margin: 0 auto;
  line-height: 1.4;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: var(--white); border-radius: var(--radius-card);
  padding: 34px 28px; box-shadow: var(--shadow-sm); text-align: center;
  border-top: 4px solid var(--blue);
}
.pillar .circle {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(0,65,199,.1); display: grid; place-items: center;
}
.pillar:nth-child(2) { border-top-color: var(--orange); }
.pillar:nth-child(2) .circle { background: rgba(251,79,30,.12); }
.pillar:nth-child(3) { border-top-color: var(--green); }
.pillar:nth-child(3) .circle { background: var(--green-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  text-align: center; padding: 28px 18px; border-radius: var(--radius-card);
  background: rgba(255,255,255,.1);
}
.stat .num {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--white);
}
.stat .label { color: rgba(255,255,255,.9); margin-top: 8px; font-size: 1rem; }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media .illus { width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-md); }

/* ---------- Cards grid (programs / partners) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.05);
  border-top: 3px solid var(--green);
}
.card .card-top { padding: 22px 26px; display: flex; align-items: center; gap: 14px; }
.card .card-body { padding: 0 26px 26px; flex: 1; }
.card .card-foot { padding: 0 26px 26px; }
.card .logo-dot {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--white);
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.2rem;
}

/* ---------- Steps (Empower Next Steps) ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--white); border-radius: var(--radius-card);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.step .step-num {
  counter-increment: step; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: var(--white); display: grid; place-items: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.2rem;
}
.step .step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- App showcase ---------- */
.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.phone {
  width: 280px; max-width: 80%; margin: 0 auto;
  aspect-ratio: 9 / 19; background: #111; border-radius: 38px;
  padding: 12px; box-shadow: var(--shadow-md);
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-darker) 100%);
  color: #fff; display: flex; flex-direction: column;
}
.phone .screen .app-head { padding: 26px 20px 14px; }
.phone .screen .app-head small { color: var(--tan); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.phone .screen .app-head h4 { color:#fff; font-size: 1.25rem; margin: 4px 0 0; }
.phone .screen .app-body { background: #fff; color: var(--ink); flex: 1; margin: 8px; border-radius: 20px; padding: 16px; }
.phone .app-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #eee; font-size: .9rem; }
.phone .app-row:last-child { border-bottom: 0; }
.phone .app-row .dot { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; }

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.feature-list .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,65,199,.12); color: var(--blue); display: grid; place-items: center; font-weight: 700;
}

/* ---------- Tax / EIN band ---------- */
.tax-band { background: var(--bg); border-top: 1px solid rgba(0,0,0,.06); }
.tax-card {
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  padding: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.tax-card .badge {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(0,65,199,.1);
  display: grid; place-items: center; flex-shrink: 0;
}
.tax-card .ein { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; }

/* ---------- Donate band ---------- */
.donate-band { text-align: center; }
.donate-band .note { font-size: .95rem; color: rgba(255,255,255,.85); margin-top: 18px; }

/* ---------- Diversity band ---------- */
.diverse-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.diverse-row .chip {
  background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer { background: #111418; color: #c9ccd1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c9ccd1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: #8c9098;
}
.footer-bottom .tax-pill {
  background: rgba(251,79,30,.15); color: #ffb89e; border-radius: var(--radius-pill);
  padding: 4px 14px; font-weight: 600;
}

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 40px; font-size: 1.5rem; }
.legal h3 { margin-top: 26px; font-size: 1.15rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal .callout {
  background: var(--bg); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 16px 20px; margin: 24px 0;
  font-size: .96rem; color: var(--muted);
}
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.1); vertical-align: top; }
.legal th { background: var(--bg); font-family: 'Quicksand', sans-serif; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }

@media (max-width: 860px) {
  .pillars, .stats { grid-template-columns: 1fr; }
  .feature, .app-showcase, .tax-card { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .tax-card { text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
