/* ============================================================
   Ohio Voter Registration Micro-site — style.css
   Mobile-first, high-contrast, no build step required
   ============================================================ */

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

:root {
  --blue-900: #1e3a5f;
  --blue-700: #1e40af;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;
  --red-700:   #b91c1c;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white:    #ffffff;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 0.75rem;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.14);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--blue-900); }
a:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Utility helpers --------------------------------------- */
.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;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Deadline Banner (sticky top) -------------------------- */
#deadline-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--amber-600);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#deadline-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
#deadline-banner a:hover { opacity: 0.85; }

#deadline-banner .deadline-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
}

#deadline-banner .deadline-dates strong {
  font-weight: 700;
}

/* --- Hero / Header ----------------------------------------- */
#hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.org-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

#hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

#hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  border: none;
  width: 100%;
  max-width: 320px;
  text-align: center;
  line-height: 1.3;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--white);
  color: var(--blue-700);
}
.btn-primary:hover { filter: brightness(0.95); color: var(--blue-900); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-blue {
  background: var(--blue-700);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-900); }

.btn-amber {
  background: var(--amber-600);
  color: var(--white);
}
.btn-amber:hover { background: var(--amber-700); }

/* --- Main content sections --------------------------------- */
main { padding-bottom: 3rem; }

.section {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.section:last-child { border-bottom: none; }

/* Step number indicator */
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
}

.step-subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

/* --- Info cards -------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card-blue {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

.card-amber {
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.card-green {
  background: var(--green-100);
  border-color: #bbf7d0;
}

/* Portal link card */
.portal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: filter 0.15s, transform 0.1s;
  min-height: 64px;
}
.portal-card:hover { filter: brightness(0.92); color: var(--white); }
.portal-card:active { transform: scale(0.99); }

.portal-card .portal-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.portal-card .portal-label {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.portal-card .portal-url {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.1rem;
  font-weight: 400;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0.75rem 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.975rem;
  border-bottom: 1px solid var(--gray-100);
}
.checklist li:last-child { border-bottom: none; }
.checklist .check-icon {
  color: var(--blue-700);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Deadline pills */
.deadline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.deadline-pill {
  background: var(--amber-50);
  border: 2px solid var(--amber-600);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.deadline-pill .deadline-election {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber-700);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.deadline-pill .deadline-date {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.deadline-pill .deadline-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

/* Skip link */
.skip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-100);
  border: 1.5px solid var(--green-700);
  color: var(--green-700);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}
.skip-link:hover { background: #bbf7d0; color: var(--green-700); }

/* --- Accordion (Step 2: Challenges) ------------------------ */
.accordion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 56px;
  transition: background 0.15s;
  font-family: var(--font-sans);
}
.accordion-trigger:hover { background: var(--blue-50); }
.accordion-trigger:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: -3px;
}

.accordion-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.accordion-trigger-text {
  flex: 1;
}
.accordion-trigger-text strong {
  display: block;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}
.accordion-trigger-text .accordion-summary {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}

.accordion-chevron {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--gray-500);
  transition: transform 0.25s ease;
  margin-left: auto;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-item.is-open .accordion-trigger {
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
}

.accordion-body {
  display: none;
  padding: 1rem 1rem 1.1rem;
  background: var(--white);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.accordion-item.is-open .accordion-body {
  display: block;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.accordion-body .fix-box {
  margin-top: 0.75rem;
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
}
.accordion-body .fix-box strong {
  color: var(--green-700);
}

.accordion-body .law-ref {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Step 3: If Challenged --------------------------------- */
#step-challenged {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-top: 0.5rem;
}

.action-steps {
  list-style: none;
  margin-top: 0.75rem;
}

.action-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--blue-100);
}
.action-step:last-child { border-bottom: none; }

.action-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-text strong {
  display: block;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}
.action-text span {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.hotline-callout {
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}
.hotline-callout .hotline-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}
.hotline-callout .hotline-number {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hotline-callout .hotline-name {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.1rem;
}
.hotline-callout a {
  color: var(--white);
  text-decoration: underline;
}

/* --- Resources / Footer ------------------------------------ */
#resources {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 2rem 0 1.5rem;
}

#resources h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.resource-item .resource-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.resource-item a { color: var(--blue-100); }
.resource-item a:hover { color: var(--white); }
.resource-item .resource-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.25rem 0;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.7;
}
.footer-meta a { color: var(--gray-500); }
.footer-meta a:hover { color: var(--gray-200); }

/* --- Responsive tweaks ------------------------------------- */
@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
  .btn { width: auto; }
}

@media (min-width: 640px) {
  #deadline-banner {
    font-size: 0.95rem;
  }
  #deadline-banner .deadline-dates {
    font-size: 0.9rem;
  }
  #hero {
    padding: 3rem 1rem 2.5rem;
  }
  .section { padding: 2.5rem 0 2rem; }
}

@media (min-width: 768px) {
  .deadline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accordion-trigger-text strong {
    font-size: 1.025rem;
  }
}

/* --- Print styles ------------------------------------------ */
@media print {
  #deadline-banner, .hero-ctas, .accordion-chevron { display: none; }
  .accordion-body { display: block !important; }
  #hero { background: none; color: var(--gray-900); padding: 1rem 0; }
  .step-number { border: 2px solid var(--gray-900); background: none; color: var(--gray-900); }
}
