/* ==========================================================================
   whorunsknox.com — Main Stylesheet
   Sections:
     1. Reset & Custom Properties
     2. Skip-to-content & SR Utilities
     3. Navigation
     4. Layout & Sections
     5. Buttons & CTAs
     6. Stats Block
     7. Callout Block
     8. Case Cards
     9. Voting Info
    10. Accordion
    11. Contact Form
    12. In The News
    13. Footer
   ========================================================================== */


/* ==========================================================================
   1. RESET & CUSTOM PROPERTIES
   ========================================================================== */

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

:root {
  /* Colors */
  --red:        #cc0000;
  --red-dark:   #b30000;
  --black:      #1a1a1a;
  --gray-900:   #333333;
  --gray-600:   #666666;
  --gray-400:   #999999;
  --gray-200:   #e0e0e0;
  --gray-100:   #f5f5f5;
  --white:      #ffffff;
  --amber:      #f9a825;
  --amber-bg:   #fff8e1;

  /* Typography */
  --font-heading: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
  --font-body:    Arial, Helvetica, sans-serif;

  /* Layout */
  --max-width:  960px;
  --nav-height: 64px;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

/* Links */
a {
  color: var(--red-dark);
  text-decoration: underline;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--red);
}

a:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--black);
}


/* ==========================================================================
   2. SKIP-TO-CONTENT & SR UTILITIES
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* Logo */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--black);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--red);
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background-color: var(--gray-100);
  color: var(--red-dark);
}

.nav-links a:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--gray-400);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate hamburger to X when expanded */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav {
    height: var(--nav-height);
    /* allow panel to extend below */
    overflow: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.875rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}


/* ==========================================================================
   4. LAYOUT & SECTIONS
   ========================================================================== */

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

.section {
  padding: 3rem 0;
}

/* Red top bar accent */
.top-bar {
  height: 6px;
  background-color: var(--red);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1rem;
}

.hero-subhead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Inner page header */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 580px;
}

/* Responsive typography */
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .page-header {
    padding: 1.75rem 0 1.5rem;
  }
}


/* ==========================================================================
   5. BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 3px;
}

/* Red filled */
.btn-red {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

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

/* Black outline */
.btn-outline {
  background-color: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-outline:hover {
  background-color: var(--black);
  color: var(--white);
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* CTA Banner */
.cta-banner {
  width: 100%;
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.0625rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Gibson endorsement CTA */
.gibson-cta {
  display: block;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--red);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gibson-cta:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.gibson-cta:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 3px;
}


/* ==========================================================================
   6. STATS BLOCK
   ========================================================================== */

.stats-block {
  background-color: var(--gray-100);
  border-left: 5px solid var(--red);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.stats-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stats-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.stats-text {
  font-size: 1.125rem;
  color: var(--gray-900);
  display: inline;
  margin-left: 0.5rem;
}

/* Segmented bar */
.stats-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: var(--gray-200);
}

.stats-bar .active {
  background-color: var(--red);
  transition: width 0.4s ease;
}

.stats-bar .inactive {
  background-color: var(--gray-200);
}

.stats-detail {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}


/* ==========================================================================
   7. CALLOUT BLOCK
   ========================================================================== */

.callout {
  border-left: 4px solid var(--red);
  background-color: var(--gray-100);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-900);
}

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

.callout strong {
  color: var(--red-dark);
}

/* Amber variant */
.callout-amber {
  border-left-color: var(--amber);
  background-color: var(--amber-bg);
}

.callout-amber strong {
  color: var(--gray-900);
}


/* ==========================================================================
   8. CASE CARDS
   ========================================================================== */

.case-cards {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.case-card {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background-color: var(--white);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.case-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.case-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--black);
  flex: 1;
}

/* Tags */
.case-card-tag {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
}

.case-card-tag.public-record {
  background-color: #fff3cd;
  color: #7d5a00;
  border: 1px solid #e6c200;
}

.case-card-tag.filed {
  background-color: #ffe5e5;
  color: var(--red-dark);
  border: 1px solid var(--red);
}

/* Card body */
.case-card-body {
  padding: 1rem 1.25rem;
}

.case-card-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

/* Source link */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.source-link:hover {
  border-bottom-color: var(--red-dark);
  color: var(--red-dark);
}

.source-link:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.source-link::after {
  content: '↗';
  font-style: normal;
}


/* ==========================================================================
   9. VOTING INFO
   ========================================================================== */

.voting-section {
  margin: 2rem 0;
}

.voting-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.voting-section h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

/* Key dates */
.key-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.key-date {
  flex: 1 1 180px;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.key-date-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.key-date-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--red-dark);
}

/* Accepted ID list */
.id-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem 1.5rem;
  margin: 1rem 0;
  padding: 0;
}

.id-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-900);
  line-height: 1.5;
}

.id-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 768px) {
  .key-dates {
    flex-direction: column;
  }

  .id-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   10. ACCORDION
   ========================================================================== */

.accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.accordion-btn:hover {
  background-color: var(--gray-100);
}

.accordion-btn:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: -3px;
}

.accordion-location {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--black);
  display: block;
}

.accordion-address {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-600);
  display: block;
  margin-top: 0.2rem;
}

/* Arrow icon */
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--gray-600);
  transition: transform 0.25s ease;
}

.accordion-icon::after {
  content: '▾';
  font-size: 1.1rem;
  display: block;
  line-height: 1;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .accordion-icon {
    transition: none;
  }
}

/* Panel */
.accordion-panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.accordion-panel.is-open {
  display: block;
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

.hours-table th {
  text-align: left;
  font-weight: 700;
  color: var(--gray-900);
  padding: 0.4rem 1rem 0.4rem 0;
  border-bottom: 2px solid var(--gray-200);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hours-table td {
  padding: 0.4rem 1rem 0.4rem 0;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

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


/* ==========================================================================
   11. CONTACT FORM
   ========================================================================== */

.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

/* Invalid state */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--red);
  background-color: #fff5f5;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

/* Inline error message */
.form-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--red-dark);
  font-weight: 600;
}

.form-error.visible {
  display: block;
}

/* Success message — hidden by default, shown via JS */
.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background-color: #e8f5e9;
  border: 1px solid #66bb6a;
  border-radius: 4px;
  font-size: 0.9375rem;
  color: #1b5e20;
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* Honeypot — hidden from all users, including AT */
.form-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* tabindex is set as an HTML attribute, not CSS */
}


/* ==========================================================================
   12. IN THE NEWS
   ========================================================================== */

.news-links {
  margin: 1rem 0;
  padding: 0;
}

.news-links li {
  border-bottom: 1px solid var(--gray-200);
}

.news-links li:last-child {
  border-bottom: none;
}

.news-links a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.875rem 0;
  color: var(--red-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.news-links a:hover {
  color: var(--red);
}

.news-links a:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.news-links a::before {
  content: '→';
  flex-shrink: 0;
  color: var(--red);
  font-weight: 700;
  margin-top: 0.05em;
}

.news-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gray-600);
  margin-top: 0.15rem;
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 2px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer p {
  margin: 0.25rem 0;
}

.footer a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--red-dark);
}

.footer a:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  font-size: 0.875rem;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
