/* ============================================
   DeFlockOKC.com - Stylesheet
   Oklahoma City Identity: Bold, Clean, Modern
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* OKC-inspired palette */
  --navy: #0f1b2d;
  --navy-light: #1a2942;
  --slate: #2c3e57;
  --copper: #c45e2c;
  --copper-light: #e8794a;
  --copper-glow: rgba(196, 94, 44, 0.15);
  --sand: #f5f0e8;
  --sand-light: #faf7f2;
  --white: #ffffff;
  --gray-100: #f7f8fa;
  --gray-200: #e9ecf0;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --red: #dc2626;
  --red-light: #fef2f2;
  --green: #059669;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 6rem);
  --container-width: 1140px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--copper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--copper-light);
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 94, 44, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}

.btn-ghost:hover {
  background: var(--copper);
  color: var(--white);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-brand span {
  color: var(--copper);
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}

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

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 94, 44, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(44, 62, 87, 0.4) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(196, 94, 44, 0.15);
  border: 1px solid rgba(196, 94, 44, 0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--copper-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

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

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 540px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

/* --- Problem Section --- */
.problems {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.problems-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.problems-header .section-subtitle {
  margin: 0 auto;
}

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

.problem-card {
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.problem-card:hover {
  border-color: var(--copper);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--copper-glow);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Quote / Callout --- */
.callout {
  padding: var(--section-pad) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 94, 44, 0.06) 0%, transparent 60%);
}

.callout .container {
  position: relative;
  z-index: 1;
}

.callout-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.callout blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.callout cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--copper-light);
  font-weight: 500;
}

/* --- Evidence / Key Findings --- */
.evidence {
  padding: var(--section-pad) 0;
  background: var(--sand-light);
}

.evidence-header {
  margin-bottom: 3rem;
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.evidence-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s var(--ease);
}

.evidence-item:hover {
  border-color: var(--copper);
}

.evidence-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--copper-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
}

.evidence-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.evidence-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.evidence-source {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  font-weight: 500;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.cta-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(196, 94, 44, 0.1), transparent 50%);
}

.cta-inner > * {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

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

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand span {
  color: var(--copper);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a:hover {
  color: var(--copper);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--navy);
  padding: 8rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(196, 94, 44, 0.06), transparent 60%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
}

/* --- Content Sections (inner pages) --- */
.page-content {
  padding: var(--section-pad) 0;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--gray-600);
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* --- Action Cards (Take Action page) --- */
.action-cards {
  display: grid;
  gap: 1.5rem;
}

.action-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.action-card:hover {
  border-color: var(--copper);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-step {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--copper-light);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.action-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.action-card .btn {
  margin-top: 1rem;
}

/* --- Records Table --- */
.records-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin: 2rem 0;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.records-table thead {
  background: var(--navy);
  color: var(--white);
}

.records-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.records-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  vertical-align: top;
}

.records-table tbody tr:hover {
  background: var(--gray-100);
}

.records-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.received {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.filed {
  background: #dbeafe;
  color: #1e40af;
}

/* --- Document Cards --- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.doc-card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.doc-card:hover {
  border-color: var(--copper);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.doc-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.doc-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.doc-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.doc-card .doc-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta.open {
    display: block;
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0 1rem 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .action-step {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .evidence-item {
    grid-template-columns: 1fr;
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
