/* =====================
   CSS Variables
   ===================== */
:root {
  --primary: #910688;
  --primary-dark: #3e5a6b;
  --primary-light: #b020a0;
  --accent: #910688;
  --accent-light: #f5e0f4;
  --green: #2ecc71;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-light: #888;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --border: #e0dde6;
  --shadow: 0 2px 16px rgba(145, 6, 136, 0.08);
  --shadow-hover: 0 8px 32px rgba(145, 6, 136, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 1180px;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }

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

ul { list-style: none; }

/* =====================
   Container
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================
   Sections
   ===================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}
.section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-header h2 { margin-bottom: 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-header.text-center .section-eyebrow { margin-bottom: 0.5rem; }

.section-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 1rem auto 0;
}

.text-center { text-align: center; }

/* =====================
   Typography
   ===================== */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; color: var(--primary-dark); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; color: var(--primary); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* =====================
   Header / Nav
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(145,6,136,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.main-nav a.active { color: var(--primary); font-weight: 700; }
.main-nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  margin-left: 0.5rem;
}
.main-nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }
.main-nav a.nav-cta.active { background: var(--primary-dark); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero .section-eyebrow, .hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

.hero-bg-pattern {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* =====================
   Stats
   ===================== */
.stats-section {
  background: var(--primary);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats-grid--large { gap: 1.5rem; }
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.stat-card--light {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-card--light .stat-number { color: var(--primary); }
.stat-card--light .stat-label { color: var(--text-secondary); }
.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: #fff;
}
.stat-label { font-size: 0.9rem; opacity: 0.85; color: rgba(255,255,255,0.85); margin: 0; }

/* =====================
   Focus Areas
   ===================== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.focus-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.focus-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.focus-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.focus-icon svg { width: 24px; height: 24px; }
.focus-icon--policy { background: var(--accent-light); color: var(--primary); }
.focus-icon--research { background: #edfaf1; color: #1a8f50; }
.focus-icon--community { background: #fef5e7; color: #c0830a; }
.focus-card p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.card-link:hover { color: var(--primary); }

/* =====================
   News
   ===================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: var(--shadow-hover); }
.news-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.news-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.news-category--event { background: var(--accent-light); color: var(--primary); }
.news-category--publication { background: #edfaf1; color: #1a8f50; }
.news-category--policy { background: #fef5e7; color: #c0830a; }
.news-date { font-size: 0.8rem; color: var(--text-light); }
.news-location { font-size: 0.8rem; color: var(--text-light); }
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card h3 a { color: var(--primary); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* News list (news page) */
.news-list { display: flex; flex-direction: column; gap: 2rem; }
.news-list-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.news-list-item h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.news-list-item h2 a { color: var(--primary); }
.news-list-item h2 a:hover { color: var(--accent); }
.news-list-item p { margin-bottom: 1.25rem; }

/* =====================
   Partners
   ===================== */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-width: 160px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.partner-logo-card:hover { box-shadow: var(--shadow-hover); }
.partner-logo-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.partners-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.partner-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.partner-detail-card:hover { box-shadow: var(--shadow-hover); }
.partner-detail-logo {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-name-lg {
  font-weight: 900;
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.partner-detail-content { padding: 1.5rem; }
.partner-detail-content h3 { margin-bottom: 0.5rem; }

.benefit-list { padding-left: 0; }
.benefit-list li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* =====================
   Two Column Layout
   ===================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.two-col-content h2 { margin-bottom: 1.25rem; }
.two-col-content p { font-size: 1.05rem; }
.two-col-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.two-col-content ul li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* =====================
   Highlight Box
   ===================== */
.highlight-box {
  background: var(--accent-light);
  border: 1px solid rgba(145, 6, 136, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.highlight-box h3, .highlight-box h4 { color: var(--primary); margin-bottom: 0.75rem; }
.highlight-box p { color: var(--text-secondary); margin-bottom: 1rem; }

/* =====================
   Work Areas
   ===================== */
.work-areas { display: flex; flex-direction: column; gap: 3rem; }
.work-area-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}
.work-area-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}
.work-area-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}
.work-area-content ul li { color: var(--text-secondary); margin-bottom: 0.4rem; }

/* =====================
   Priority Grid (Research)
   ===================== */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.priority-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.priority-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.priority-icon svg { width: 24px; height: 24px; }

/* =====================
   Risk Factors
   ===================== */
.risk-factors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.risk-factor {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.risk-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; color: var(--primary); }
.risk-factor h4 { color: var(--primary); margin-bottom: 0.5rem; }
.risk-factor p { font-size: 0.9rem; }

/* =====================
   Get Involved
   ===================== */
.involvement-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.involvement-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.involvement-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.involvement-icon svg { width: 24px; height: 24px; }

/* Contact Form */
.form-section {
  max-width: 800px;
  margin: 0 auto;
}
.form-intro { margin-bottom: 2rem; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(145,6,136,0.15);
}
.form-group textarea { resize: vertical; }
.required { color: #e74c3c; }

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.form-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #edfaf1;
  color: #1a8f50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}
.form-success h3 { color: var(--primary); margin-bottom: 0.5rem; }
.form-success p { margin-bottom: 1.5rem; }

/* =====================
   Article
   ===================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-lead { font-size: 1.15rem; color: var(--text); font-weight: 400; margin-bottom: 1.5rem; }
.article-back { margin-top: 3rem; }

/* =====================
   Page Hero
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 4rem 0;
}
.page-hero--sm { padding: 3rem 0; }
.page-hero h1 { color: #fff; margin-top: 0.5rem; }
.page-hero .section-eyebrow { color: rgba(255,255,255,0.65); }
.page-hero-lead { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin-top: 0.75rem; }
.page-hero .news-meta { margin-bottom: 1rem; }
.page-hero .news-date { color: rgba(255,255,255,0.7); }
.page-hero .news-location { color: rgba(255,255,255,0.7); }

/* =====================
   CTA Section
   ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  padding: 5rem 0;
}
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* =====================
   Footer
   ===================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-logo .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 320px; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-nav ul a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-contact a:not(.btn) { color: rgba(255,255,255,0.85); }
.footer-contact a:not(.btn):hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; }

/* =====================
   404 Page
   ===================== */
.error-page { padding: 8rem 0; }
.error-number { font-size: 8rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { margin-bottom: 0.75rem; }
.error-page p { margin-bottom: 2rem; font-size: 1.1rem; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .focus-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .priority-grid { grid-template-columns: 1fr; }
  .risk-factors { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .involvement-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .work-area-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .work-area-number { font-size: 2rem; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a.nav-cta { margin-left: 0; display: block; text-align: center; margin-top: 0.5rem; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .risk-factors { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
