/* Proud & Empowered — site styles
   Colors and type mirror the original Wix site. */

:root {
  --navy: #072136;
  --ink: #1d2a36;
  --muted: #4a5866;
  --yellow: #ffd45a;
  --yellow-dark: #f5c234;
  --panel: #e6eef6;
  --panel-2: #f6f6f6;
  --footer: #dcdcdc;
  --periwinkle: #7b8cde;
  --warn: #e0322d;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
  --font: "Avenir Next", "Avenir", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: #1f5a8a; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .85rem;
  color: var(--muted);
}

.container { width: min(var(--maxw), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--yellow); color: #000; padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: .5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ececec;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #e40303 0 17%, #ff8c00 17% 34%, #ffed00 34% 50%, #008026 50% 67%, #004dff 67% 84%, #750787 84%);
}
.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--navy); border-radius: 8px;
  padding: .35rem .6rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .4rem .85rem; border-radius: 6px;
  font-weight: 700; color: #000; text-decoration: none;
}
.site-nav a:hover { background: #fff3cc; color: #000; }
.site-nav a[aria-current="page"] { background: var(--yellow); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #ececec; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .7rem .85rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: #000;
  border: 0; border-radius: 50px;
  padding: .75rem 1.6rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--yellow-dark); color: #000; transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,.92); border: 2px solid #6b4a3a; color: #3a2a20; box-shadow: none;
}
.btn-outline:hover { background: #fff; color: #000; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid; place-items: center; text-align: center;
  background: url("../img/hero-rainbow.jpg") center / cover no-repeat, linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
  padding: 4rem 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  color: #000;
  margin-bottom: .15em;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 2px 12px rgba(255,255,255,.35);
}
.hero p.tagline {
  font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 800; color: #000; margin: 0 0 1.5rem;
  -webkit-text-stroke: 1px #fff; paint-order: stroke fill;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--panel), #fff);
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.page-header p { max-width: 760px; margin: 0 auto; color: var(--muted); }
.rainbow-rule {
  height: 6px; border: 0; margin: 0;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
}

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-panel { background: var(--panel); }
.section-grey { background: var(--panel-2); }
.center { text-align: center; }

.welcome { text-align: center; }
.welcome p { max-width: 720px; margin: 0 auto 1rem; }
.welcome .btn { margin-top: 1rem; }

.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff; border: 1px solid #e3e7ec; border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.card h2 { font-size: 1.7rem; text-transform: uppercase; }
.card p { flex: 1; color: var(--muted); }

/* ---------- Program page ---------- */
.prose p, .prose li { max-width: 72ch; }
.prose ul { padding-left: 1.2rem; }
.video-frame {
  margin: 2rem auto; max-width: 860px;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 8px 28px rgba(7,33,54,.18);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.stat-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.stat-list li {
  background: #fff; border-left: 6px solid var(--yellow); border-radius: 8px;
  padding: .85rem 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-list strong { color: var(--navy); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.member {
  background: var(--panel-2); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; background: #e9e9e9; }
.member-body { padding: 1.25rem 1.5rem 1.75rem; }
.member h3 { margin-bottom: .2rem; }
.member .meta { font-size: .9rem; color: var(--muted); margin: 0 0 .9rem; }
.member .meta a { color: inherit; }
.member p { font-size: .97rem; margin: 0; }

/* ---------- Research ---------- */
.pub, .grant {
  background: #fff; border: 1px solid #e3e7ec; border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin-bottom: 1.25rem;
}
.pub h3, .grant h3 { margin-bottom: .35rem; }
.pub .year, .grant .agency { color: var(--muted); font-weight: 700; font-size: .92rem; margin: 0 0 .75rem; }
.pub .cite { font-size: .95rem; overflow-wrap: anywhere; }
.pub .btn, .grant .btn { margin-top: .5rem; padding: .55rem 1.25rem; font-size: .95rem; }

/* ---------- Session materials ---------- */
.sessions { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.session { background: #fff; border: 1px solid #e3e7ec; border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.session:nth-child(2) { background: #f1f1f1; }
.session-icon { width: 84px; height: 84px; margin: 0 auto .5rem; color: var(--periwinkle); }
.session h2 { text-align: center; letter-spacing: .18em; font-size: 1.35rem; margin-bottom: 1rem; }
.session video { width: 100%; border-radius: 10px; background: #000; margin: 1rem 0; aspect-ratio: 16 / 9; }
.session ul { padding-left: 1.1rem; }
.session li { margin-bottom: .45rem; font-size: .96rem; }
.session .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.trigger { color: var(--warn); font-weight: 700; font-size: .95rem; }

/* ---------- Contact form ---------- */
.contact-intro { text-align: center; max-width: 720px; margin: 0 auto 2rem; font-size: 1.15rem; }
.form-panel { background: var(--panel); border-radius: var(--radius); padding: 2rem; max-width: 900px; margin: 0 auto; }
.form-grid { display: grid; gap: 1rem 1.5rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-panel { padding: 1.25rem; } }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
label, legend { font-size: .92rem; font-weight: 700; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #000; border-radius: 4px; background: #fff;
  padding: .6rem .7rem; width: 100%;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid #1f5a8a; outline-offset: 2px;
}
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks label { display: flex; gap: .6rem; align-items: center; font-weight: 400; margin: .4rem 0; }
.checks input { width: 1.1rem; height: 1.1rem; margin: 0; }
.form-actions { text-align: center; margin-top: 1.5rem; }
.form-status { margin-top: 1rem; font-weight: 700; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #12703a; }
.form-status.err { color: var(--warn); }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); padding: 2.5rem 0; text-align: center; font-size: .95rem; }
.site-footer a { font-weight: 700; color: #000; }
.site-footer p { margin: .35rem 0; }
.site-footer .small { font-size: .82rem; color: #444; }
