/* =============================================
   THE CRACK ERA — Washington Heights & South Bronx
   Awareness & Educational Site — style.css
   ============================================= */

:root {
  --dark-bg: #0d1117;
  --dark-bg2: #161b22;
  --dark-card: #1c2128;
  --light-bg: #f6f8fa;
  --light-card: #ffffff;
  --accent-red: #c0392b;
  --accent-gold: #d4ac0d;
  --accent-teal: #2e86ab;
  --text-light: #e6edf3;
  --text-muted: #8b949e;
  --text-dark: #1c2128;
  --text-dark2: #444c56;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

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

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

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

a { color: var(--accent-gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-icon { font-size: 1.4rem; }
.logo-text { font-weight: 700; font-size: 0.9rem; color: var(--text-light); white-space: nowrap; }

.main-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--text-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}
.btn-primary:hover { background: #a93226; opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--text-light); opacity: 1; }

/* ============ HERO ============ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(135deg, #0d1117 0%, #1a0a0a 50%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(192,57,43,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(212,172,13,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(192,57,43,0.2);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 750px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-pill strong {
  font-size: 1.4rem;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  line-height: 1;
}

.stat-pill span {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.4;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

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

/* ============ SECTIONS ============ */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--dark-bg2); }
.section-light { background: var(--light-bg); color: var(--text-dark); }
.section-light a { color: var(--accent-red); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
}

.section-light .section-label { color: var(--accent-red); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.section-light .section-heading { color: var(--text-dark); }

.section-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-light .section-intro { color: var(--text-dark2); }

/* ============ CONTENT GRID ============ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.content-card {
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition);
}

.content-card:hover { border-color: rgba(192,57,43,0.4); }

.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.content-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ VIDEOS ============ */
.video-section {
  margin: 3rem 0;
}

.video-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section-light .video-heading { color: var(--text-dark); }

.video-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-grid-1 { grid-template-columns: minmax(300px, 600px); }

.video-wrapper {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.video-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--dark-card);
}

.section-light .video-caption { background: #f0f0f0; }

.video-fallback {
  margin: 0;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.8rem;
  background: var(--dark-card);
}

.video-fallback a {
  color: var(--accent-gold);
  text-decoration: underline;
}

.section-light .video-fallback {
  background: #e8e8e8;
}

.section-light .video-fallback a {
  color: #c0392b;
}

/* ============ PULL QUOTE ============ */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent-red);
  background: rgba(192,57,43,0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.pull-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pull-quote-light {
  background: rgba(192,57,43,0.06);
}

.pull-quote-light blockquote { color: var(--text-dark); }

/* ============ VICTIMS LAYOUT ============ */
.victims-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.victims-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.victims-text h3:first-child { margin-top: 0; }

.victims-text p {
  color: var(--text-dark2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.impact-box {
  background: var(--dark-bg2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.impact-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.impact-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.impact-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-red);
  font-family: var(--font-serif);
  flex-shrink: 0;
  min-width: 45px;
}

.community-voice {
  background: rgba(46,134,171,0.1);
  border: 1px solid rgba(46,134,171,0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.community-voice h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.community-voice p {
  font-size: 0.875rem;
  color: var(--text-dark2);
  line-height: 1.7;
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-red), rgba(192,57,43,0.1));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--dark-bg2);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.source-note {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.source-note strong { color: var(--text-light); }

/* ============ JUSTICE GRID ============ */
.justice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.justice-card {
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.justice-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.justice-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.justice-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.justice-card p {
  font-size: 0.875rem;
  color: var(--text-dark2);
  line-height: 1.7;
}

/* ============ SPOTLIGHT CASE ============ */
.spotlight-case {
  background: var(--dark-bg2);
  border: 1px solid rgba(212,172,13,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 3rem 0;
}

.spotlight-header {
  background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(212,172,13,0.08));
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.spotlight-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-light);
}

.spotlight-body {
  padding: 1.75rem 2rem;
}

.spotlight-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.spotlight-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============ RESOURCES ============ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.resource-category h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.resource-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.resource-list strong { color: var(--text-light); }

/* ============ FOOTER ============ */
.site-footer {
  background: #090d12;
  border-top: 1px solid var(--border-dark);
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-brand strong { color: var(--text-light); font-size: 0.95rem; }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links h4 { margin-bottom: 0.75rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .victims-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-bg2);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .hero-stats { flex-direction: column; }
  .stat-pill { flex-direction: row; align-items: center; gap: 1rem; }
  .stat-pill strong { min-width: 60px; font-size: 1.2rem; }
  .stat-pill span { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-body { padding: 1.25rem; }
  .spotlight-header { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 1.5rem; }
  .pull-quote { padding: 1.25rem 1.5rem; }
}
