/* =============================================
   Empowering Democracy Initiative — Stylesheet
   Color palette derived from EDI logo
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy:      #1d2d50;
  --navy-dark: #111e36;
  --cream:     #f5f0e1;
  --orange:    #c25a2a;
  --orange-lt: #d96b39;
  --gold:      #c9920a;
  --gold-lt:   #e8b92f;
  --red:       #8b2020;
  --dark:      #1a1a1a;
  --mid:       #4a4a4a;
  --light-bg:  #faf8f3;
  --border:    #e0d8c8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--light-bg);
  line-height: 1.7;
}

/* ── Typography ─────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 500; }

p { color: var(--mid); margin-bottom: 1rem; }

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-lt); }

/* ── Layout helpers ─────────────────────────── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

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

.section-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-title + p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

.btn-cream {
  background: var(--cream);
  color: var(--navy);
}
.btn-cream:hover { background: #fff; color: var(--navy); }

/* ── Navigation ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-brand img {
  height: 94px;
  width: 94px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 200px;
}

.nav-brand-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gold-lt);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8cfe0;
  padding: 0.5rem 0.9rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-links .nav-cta a {
  background: var(--orange);
  color: #fff;
  padding: 0.45rem 1.1rem;
}
.nav-links .nav-cta a:hover { background: var(--orange-lt); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Page Hero Banner ───────────────────────── */

.page-hero {
  background: var(--navy);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a3f6e 100%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
}

.page-hero .container { position: relative; }

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: #8fa3c8;
  letter-spacing: 0.05em;
}

.page-hero .breadcrumb a { color: var(--gold-lt); }

/* ── Home: Hero Section ─────────────────────── */

.hero {
  background: var(--navy-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,30,54,0.94) 0%, rgba(17,30,54,0.90) 100%),
    url('../images/background.png') center bottom / cover no-repeat;
}

.hero-stripe {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(160deg, rgba(194,90,42,0.08) 0%, transparent 60%);
  border-left: 1px solid rgba(194,90,42,0.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
}

.hero-eyebrow span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.hero h1 {
  color: #fff;
  max-width: 680px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-lt);
}

.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #aab8d0;
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #5a7099;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, #5a7099, transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Pillars Section ────────────────────────── */

.pillars { background: var(--cream); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background: #fff;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  border-top: 4px solid transparent;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.pillar-card:nth-child(1) { border-color: var(--orange); }
.pillar-card:nth-child(2) { border-color: var(--navy); }
.pillar-card:nth-child(3) { border-color: var(--gold); }

.pillar-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  display: block;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* ── Mission Band ───────────────────────────── */

.mission-band {
  background: var(--navy);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.mission-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #243660 100%);
}

.mission-band::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--orange), var(--gold));
}

.mission-inner {
  position: relative;
  display: flex;
  gap: 4rem;
  align-items: center;
}

.mission-quote {
  flex: 1;
}

.mission-quote blockquote {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.45;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--orange);
}

.mission-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
}

.stat-item {
  text-align: center;
  padding: 1.25rem;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #8fa3c8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Latest Publications (Home) ─────────────── */

.publications { background: var(--light-bg); }

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.pub-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pub-card-tag {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
}

.pub-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pub-card-date {
  font-size: 0.8rem;
  color: #9a9a9a;
  margin-bottom: 0.5rem;
}

.pub-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.pub-card p {
  font-size: 0.9rem;
  flex: 1;
}

.pub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 1rem;
}

.pub-card-link::after { content: '→'; }

.view-all-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* ── CTA Band ───────────────────────────────── */

.cta-band {
  background: var(--orange);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a84825 0%, var(--orange) 50%, #d4703a 100%);
}

.cta-band .container { position: relative; }

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── Footer ─────────────────────────────────── */

.site-footer {
  background: var(--navy-dark);
  color: #8fa3c8;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 101px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #6a84ad;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul a {
  color: #6a84ad;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--gold-lt); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #4a6080;
}

.footer-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── About Page ─────────────────────────────── */

.about-lead {
  background: var(--cream);
}

.about-lead-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-lead-text h2 {
  margin-bottom: 1.25rem;
}

.about-lead-aside {
  background: var(--navy);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
}

.about-lead-aside::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 4px 4px 0 0;
}

.about-lead-aside h3 {
  color: var(--cream);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.value-list {
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #a0b4cc;
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.value-list li:last-child { border-bottom: none; }

.value-list .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.about-story { background: var(--light-bg); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.story-block {
  padding: 2rem;
  background: #fff;
  border-radius: 4px;
  border-left: 4px solid var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.story-block:nth-child(2) { border-color: var(--orange); }
.story-block:nth-child(3) { border-color: var(--gold); }
.story-block:nth-child(4) { border-color: var(--navy); }

.team-section { background: var(--cream); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.22s;
}

.team-card:hover { transform: translateY(-3px); }

.team-avatar {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
}

.team-card-body {
  padding: 1.5rem;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.88rem;
}

/* ── Reports Page ───────────────────────────── */

.reports-section { background: var(--light-bg); }

.reports-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--mid);
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-item {
  background: #fff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid var(--navy);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.doc-item:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  border-color: var(--orange);
}

.doc-icon {
  width: 52px;
  height: 64px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.doc-icon::before {
  content: attr(data-ext);
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: var(--navy);
  color: var(--cream);
  padding: 2px 5px;
  border-radius: 2px;
  position: absolute;
  bottom: 6px;
}

.doc-icon-symbol {
  font-size: 1.5rem;
  color: var(--navy);
  opacity: 0.5;
}

.doc-info {}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.doc-category {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 2px 8px;
  border-radius: 2px;
}

.doc-date {
  font-size: 0.8rem;
  color: #9a9a9a;
}

.doc-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.doc-info p {
  font-size: 0.88rem;
  margin: 0;
}

.doc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.doc-size {
  font-size: 0.78rem;
  color: #bbb;
}

/* ── Upload placeholder notice ──────────────── */
.upload-notice {
  background: linear-gradient(135deg, #fff8ec, #fff3e0);
  border: 1.5px dashed var(--gold);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  color: var(--mid);
  margin-top: 1rem;
}

.upload-notice h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .mission-inner { flex-direction: column; gap: 2rem; }
  .mission-stats { flex-direction: row; justify-content: space-around; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-lead-inner { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-actions { grid-column: 2; flex-direction: row; align-items: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
  .nav-toggle { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: 1fr; }
  .doc-item { grid-template-columns: 1fr; }
  .doc-icon { display: none; }
}
