/* ============================================================
   DC AI Collaborative — Design System
   Colors:  Navy #182241 · Coral #B0281F · Cream #FFF5D9 · Slate #55707E
   Fonts:   Space Grotesk (display) · Raleway (body)
   ============================================================ */

:root {
  --navy: #182241;
  --navy-light: #253258;
  --coral: #b0281f;
  --coral-dark: #8f1f18;
  --cream: #fff5d9;
  --cream-dim: #f4ead0;
  --slate: #55707e;
  --slate-light: #7b949c;
  --ink: #182241;
  --paper: #fffdf7;
  --line: rgba(24, 34, 65, 0.12);
  --shadow: 0 20px 50px -20px rgba(24, 34, 65, 0.35);
  --radius: 18px;
  --max: 1180px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--coral);
  color: var(--cream);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(176,40,31,0.55); }
.btn-cream {
  background: var(--cream);
  color: var(--navy);
}
.btn-cream:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,0.35); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(37, 50, 88, 0.97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 42px;
  width: auto;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px 6px;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.1;
}
.brand-word span { display: block; color: var(--coral); font-size: 0.72em; letter-spacing: 0.04em; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-item > button, .nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-item > button:hover, .nav-item > a:hover, .nav-item.open > button { background: rgba(255,255,255,0.1); }
.nav-item .chev { font-size: 0.65em; transition: transform 0.2s ease; }
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}
.dropdown a:hover { background: var(--cream-dim); color: var(--coral-dark); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 11px 22px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 50% 20%, rgba(85,112,126,0.55), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 88px 0 100px;
  text-align: center;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero::before { width: 420px; height: 420px; background: var(--slate-light); top: -160px; left: 50%; transform: translateX(-50%); }
.hero::after { width: 300px; height: 300px; background: var(--coral); bottom: -140px; right: 8%; opacity: 0.18; }
.hero .wrap { position: relative; z-index: 1; }
.hero-logo { width: 150px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cream);
}
.hero .lede {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  color: rgba(255,245,217,0.82);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy .eyebrow { color: var(--coral); }
.section-navy h2 { color: var(--cream); }
.section-paper { background: var(--paper); }

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.recognition-banner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.recognition-banner .page-intro { max-width: 100%; }
.recognition-plaque {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}
.recognition-plaque .award-photo { max-width: 200px; width: 100%; display: block; margin: 0; }

.page-intro {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 36px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card-grid-2col { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--cream-dim);
  color: var(--coral-dark);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-navy .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: var(--cream); }
.section-navy .card p { color: rgba(255,245,217,0.75); }
.section-navy .card .num { background: rgba(176,40,31,0.35); color: var(--cream); }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pill-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.pill-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
}
.section-navy .accordion-item button.acc-trigger { color: var(--cream); }
.section-navy .accordion { border-color: rgba(255,255,255,0.14); }
.section-navy .accordion-item { border-color: rgba(255,255,255,0.14); }
.acc-trigger .plus { font-size: 1.4rem; font-weight: 400; color: var(--coral); transition: transform 0.25s ease; flex-shrink: 0; }
.accordion-item.open .acc-trigger .plus { transform: rotate(45deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-panel-inner { padding: 0 4px 26px; color: var(--slate); }
.section-navy .acc-panel-inner { color: rgba(255,245,217,0.78); }
.acc-panel-inner ul { padding-left: 20px; margin: 10px 0; }
.acc-panel-inner li { margin-bottom: 6px; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--navy);
}
.quote span { display: block; margin-top: 16px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--coral-dark); }
.section-navy .quote { color: var(--cream); }
.section-navy .quote span { color: var(--coral); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--coral);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(255,245,217,0.85); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,245,217,0.75);
  padding: 70px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-word { color: var(--cream); }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,245,217,0.5);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 64px 0 76px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lede { max-width: 680px; margin: 14px auto 0; color: rgba(255,245,217,0.8); }

/* ---------- Team ---------- */
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}
.team-card .headshot {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
}
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--coral-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.team-card .org { color: var(--slate); font-size: 0.88rem; margin-bottom: 14px; }
@media (max-width: 600px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card .headshot { width: 96px; height: 96px; }
}

/* ---------- Photo strip / content photos ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 220px; }
}

.content-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.org-badge {
  display: flex;
  align-items: center;
  gap: 18px;
}
.org-badge img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--navy); padding: 8px; flex-shrink: 0; }

.org-sublinks {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.org-sublinks a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s ease, gap 0.15s ease;
}
.org-sublinks a:last-child { border-bottom: none; }
.org-sublinks a:hover { color: var(--coral-dark); }
.org-sublinks a span { transition: transform 0.15s ease; }
.org-sublinks a:hover span { transform: translateX(4px); }

.report-cover {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

/* ---------- Events ---------- */
.event-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--coral-dark);
}
.event-card h3 { margin-bottom: 6px; }
.event-meta { font-size: 0.88rem; color: var(--slate); margin-bottom: 12px; }
.event-links { display: flex; gap: 10px; margin-top: 16px; }
.event-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  border: 1.5px solid var(--coral-dark);
  padding: 8px 14px;
  border-radius: 999px;
}
.event-links a:hover { background: var(--coral-dark); color: var(--cream); }

/* ---------- Resource links ---------- */
.resource-list { display: flex; flex-direction: column; gap: 16px; }
.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.resource-link:hover { border-color: var(--coral); transform: translateY(-2px); box-shadow: var(--shadow); }

.callout {
  background: var(--cream-dim);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--line);
}

.form-embed-note {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--slate);
}

/* ---------- Utility ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 0.88rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card-grid-2col { grid-template-columns: 1fr !important; }
  section { padding: 64px 0; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  padding: 24px 28px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav-close { background: none; border: none; color: var(--cream); font-size: 1.8rem; cursor: pointer; }
.mobile-nav details { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 6px 0; }
.mobile-nav summary { color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 12px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub-links { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 16px 8px; }
.mobile-nav .sub-links a { color: rgba(255,245,217,0.8); padding: 8px 0; font-size: 0.95rem; }
.mobile-nav .top-link { display: block; color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav .mobile-cta { margin-top: 24px; }

/* ---------- Grant announcement banner (date-gated, see grant-promo.js) ---------- */
.grant-banner {
  display: none;
  background: var(--coral);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.grant-banner.grant-visible { display: block; }
.grant-banner-track {
  display: flex;
  width: max-content;
  animation: grant-marquee 26s linear infinite;
  padding: 11px 0;
}
.grant-banner:hover .grant-banner-track { animation-play-state: paused; }
.grant-banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0 32px;
  border-right: 1px solid rgba(255,245,217,0.3);
}
.grant-banner-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
@keyframes grant-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .grant-banner-track { animation: none; overflow-x: auto; }
}

/* ---------- Grant popup modal (date-gated, see grant-promo.js) ---------- */
.grant-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24,34,65,0.72);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.grant-modal-overlay.grant-open { display: flex; }
.grant-modal {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
}
.grant-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--slate);
  cursor: pointer;
  padding: 6px;
}
.grant-modal-close:hover { color: var(--coral-dark); }
.grant-modal-logo {
  max-width: 170px;
  width: 100%;
  margin: 0 auto 20px;
  border-radius: 10px;
  display: block;
}
.grant-modal h3 { font-size: 1.25rem; margin-bottom: 12px; }
.grant-modal p { color: var(--slate); font-size: 0.95rem; margin-bottom: 22px; }
.grant-modal .btn { width: 100%; justify-content: center; }

/* ---------- Nav entries gated to the grant launch (see grant-promo.js) ---------- */
.grant-gated-nav { display: none !important; }

/* ---------- Stat tiles (impact numbers) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.stat-tile { text-align: center; }
.stat-tile .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-tile .stat-label { font-size: 0.92rem; color: var(--slate); }
.section-navy .stat-tile .stat-num { color: var(--cream); }
.section-navy .stat-tile .stat-label { color: rgba(255,245,217,0.75); }

/* ---------- Numbered section marker (impact report) ---------- */
.impact-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
