/* ==========================================================
   Project Counter Narrative — styles
   Palette taken from the PCN seal (navy on cream)
   ========================================================== */
:root {
  --navy: #0d2340;
  --navy-700: #16335a;
  --navy-100: #e6ebf2;
  --cream: #f8f6f0;
  --paper: #ffffff;
  --gold: #b08d57;
  --ink: #1c2430;
  --muted: #5b6575;
  --line: #dcd8cc;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 35, 64, 0.08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.eyebrow.light { color: #d8bf92; }
.section-title.light, .section-sub.light { color: #fff; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--navy); cursor: pointer; font: 600 1rem var(--sans);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .5rem 1.15rem; font-size: .95rem; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--cream); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 240, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--gold); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-seal img {
  width: 100%; max-width: 420px; margin-left: auto; border-radius: 50%;
  box-shadow: 0 25px 60px rgba(13, 35, 64, .15);
}

/* ---------- pillars ---------- */
.pillars { background: var(--paper); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar {
  padding: 2.25rem 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar p { color: var(--muted); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.about-body { font-size: 1.1rem; }
.values { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.values li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.values strong { color: var(--navy); }

/* ---------- research ---------- */
.research { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; background: var(--paper);
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--navy-100); }
.card p { color: var(--muted); flex: 1; }
.tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-100); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.card-meta { font-size: .9rem; color: var(--gold); font-weight: 600; border-top: 1px solid var(--line); padding-top: .9rem; }

/* ---------- workshops ---------- */
.workshop-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.workshop-intro p { font-size: 1.1rem; color: var(--muted); }
.audience { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.audience span { border: 1px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; }
.workshop-list { list-style: none; margin: 0; padding: 0; }
.workshop-list li {
  display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem;
}
.workshop-list h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.workshop-list p { margin: 0; color: var(--muted); }
.w-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }

/* ---------- donate ---------- */
.donate { background: var(--navy); color: #fff; }
.donate-head { text-align: center; margin-bottom: 3rem; }
.donate-head .section-sub { margin-inline: auto; color: #c9d3e1; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.tier {
  text-align: left; padding: 1.5rem; border-radius: var(--radius); cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-family: var(--sans); transition: background .2s, border-color .2s;
}
.tier:hover { background: rgba(255,255,255,.1); }
.tier.active { background: #fff; color: var(--navy); border-color: #fff; }
.tier .amount { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: .35rem; }
.tier .impact { font-size: .95rem; opacity: .85; }
.donate-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 2.5rem;
}
.donate-panel h3 { color: #fff; }
.bank { margin: 0 0 1rem; }
.bank div { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.bank dt { color: #c9d3e1; }
.bank dd { margin: 0; font-weight: 600; }
.small { font-size: .9rem; color: #c9d3e1; }

/* ---------- forms ---------- */
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: .4rem; padding: .75rem .9rem;
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.pledge-form label { color: #fff; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: .9rem; font-weight: 600; min-height: 1.5em; }
.donate .form-note { color: #d8bf92; }
.contact .form-note { color: var(--navy); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.contact-grid > div > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: inline-block; min-width: 90px; color: var(--navy); }
.contact-form { background: var(--paper); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: #0a1b31; color: #c9d3e1; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { border-radius: 50%; }
.footer-brand p { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.footer-brand span { font-family: var(--sans); font-size: .9rem; color: #c9d3e1; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: #d8bf92; }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .workshop-grid, .contact-grid, .donate-panel { grid-template-columns: 1fr; }
  .hero-seal { order: -1; }
  .hero-seal img { max-width: 240px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .pillar-grid, .card-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { padding: 1rem; width: 100%; text-align: center; }
  .site-nav .btn { width: auto; margin: .5rem 0 1.25rem; }
  .brand-text { font-size: 1.1rem; }
  .row, .tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; }
  .donate-panel { padding: 1.5rem; }
}
