/* ============================================================
   PRAIRIE PASS ACCOUNTABILITY PROJECT
   Style: Editorial Investigative / Legal Authority
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0f0f17;
  --bg-secondary: #161625;
  --bg-card: #1c1c30;
  --bg-card-hover: #22223a;
  --bg-accent: #1a1a2e;
  --text-primary: #ede8df;
  --text-secondary: #b0a999;
  --text-muted: #7a7468;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dim: #8a7535;
  --crimson: #9b2226;
  --crimson-light: #c4383c;
  --blue-steel: #4a6fa5;
  --blue-light: #6b8fc5;
  --border-color: #2a2a42;
  --border-light: #3a3a55;
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow-gold: 0 0 20px rgba(201,168,76,0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,111,165,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15,15,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .brand-accent {
  color: var(--gold);
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* --- Page Layout --- */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border-color);
}

/* --- Hero Sections --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  max-width: 700px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* --- Defendant Cards --- */
.defendant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.defendant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
}

.defendant-card:hover {
  border-color: var(--crimson);
  box-shadow: 0 4px 20px rgba(155,34,38,0.15);
}

.defendant-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bg-accent);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.defendant-card h3 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.defendant-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.defendant-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.defendant-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.defendant-link:hover { color: var(--gold-light); }

/* --- Filing / Document Cards --- */
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.doc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.doc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.doc-icon.filing { background: rgba(74,111,165,0.15); color: var(--blue-light); }
.doc-icon.discovery { background: rgba(201,168,76,0.12); color: var(--gold); }
.doc-icon.correspondence { background: rgba(155,34,38,0.12); color: var(--crimson-light); }

.doc-meta {
  flex: 1;
}

.doc-meta h4 {
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.doc-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.doc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.doc-download {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  transition: all 0.3s;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doc-download:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-dim), var(--border-color));
}

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

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--gold);
}

.timeline-dot.critical {
  border-color: var(--crimson-light);
  box-shadow: 0 0 8px rgba(196,56,60,0.3);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  margin-bottom: 0.3rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

.blog-thumb {
  width: 100%;
  height: 200px;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
}

.blog-thumb.video::after {
  content: '▶';
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.9);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.blog-body {
  padding: 1.5rem;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.blog-tag.post { background: rgba(74,111,165,0.15); color: var(--blue-light); }
.blog-tag.vlog { background: rgba(201,168,76,0.12); color: var(--gold); }
.blog-tag.update { background: rgba(155,34,38,0.12); color: var(--crimson-light); }

.blog-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.blog-card .blog-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* --- Disclaimer / Entry Page --- */
.entry-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.entry-shield {
  font-size: 4rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.entry-page h1 {
  margin-bottom: 0.5rem;
}

.entry-content {
  max-width: 700px;
  margin: 2rem auto;
  text-align: left;
}

.entry-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.entry-content strong {
  color: var(--text-primary);
}

.entry-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Quote / Callout --- */
.callout {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: rgba(201,168,76,0.04);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.callout p {
  font-style: italic;
  color: var(--text-secondary);
}

.callout cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p + p {
  margin-top: 0.5rem;
}

.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* --- Principle boxes --- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.principle-card .principle-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,0.15);
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  line-height: 1;
}

.principle-card h3 {
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.principle-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* --- Defendant Logo Images --- */
.defendant-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.defendant-claims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.claim-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(155,34,38,0.12);
  color: var(--crimson-light);
  border: 1px solid rgba(155,34,38,0.2);
}

.defendant-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.icon-pin::before { content: '\1F4CD '; }
.icon-link::before { content: '\1F517 '; }

/* --- Doc Icon Image --- */
.doc-icon-img {
  width: 28px;
  height: 28px;
}

/* --- Blog Overlay --- */
.blog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.blog-overlay-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  padding: 3rem;
  margin: 2rem auto;
  position: relative;
}

.blog-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.blog-overlay-close:hover {
  border-color: var(--crimson-light);
  color: var(--crimson-light);
}

.blog-overlay-content h1 {
  font-size: 2rem;
  margin: 0.75rem 0 0.5rem;
  padding-right: 2rem;
}

.blog-hero-img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.blog-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-full-content {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.blog-full-content p {
  margin-bottom: 1rem;
}

.blog-full-content h3 {
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.blog-full-content a {
  color: var(--gold);
  text-decoration: underline;
}

.thumb-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15,15,23,0.97);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
  }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .doc-card { flex-direction: column; }
  .doc-download { align-self: flex-start; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

/* --- Utility --- */
.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
