/* ══════════════════════════════════════════════════════════
   VALOR MEDICAL REVIEWS — How It Works Page Styles
   Process steps, requirements, timeline, and FAQ sections
   ══════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
.how-it-works-hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.how-it-works-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 51, 79, 0.5);
  z-index: 1;
}

.how-it-works-hero .container {
  position: relative;
  z-index: 2;
}

.how-it-works-hero h1 {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.how-it-works-hero .hero-underline {
  width: 80px;
  height: 4px;
  background: var(--color-burgundy);
  margin-bottom: var(--space-8);
}

.how-it-works-hero .hero-subtext {
  font-size: var(--text-xl);
  color: var(--color-white);
  max-width: 600px;
  margin-bottom: var(--space-8);
  line-height: var(--leading-loose);
}

/* ── Process Steps Section ── */
.process-section h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-12);
  text-align: center;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.process-line {
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--color-navy);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-8);
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
}

.process-step h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.process-step > p {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.process-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-loose);
}

.process-checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.process-checklist li::before {
  content: '✓';
  color: var(--color-burgundy);
  font-weight: var(--weight-bold);
  margin-right: var(--space-3);
  flex-shrink: 0;
}

/* ── Requirements & Scope Section ── */
.requirements-scope {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-top: var(--space-16);
}

.requirements-scope > div:nth-child(1),
.requirements-scope > div:nth-child(3) {
  flex: 1;
}

.requirements-scope-divider {
  width: 2px;
  background: var(--color-burgundy);
  min-height: 400px;
}

.requirements-column h3,
.scope-column h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.requirements-list,
.scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li,
.scope-list li {
  display: flex;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.requirements-list li::before,
.scope-list li::before {
  content: '✓';
  color: var(--color-burgundy);
  font-weight: var(--weight-bold);
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.requirements-scope-footnote {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  grid-column: 1 / -1;
}

/* ── Review Timeline Section ── */
.timeline-section h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  text-align: center;
}

.timeline-subtitle {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-body);
  margin-bottom: var(--space-12);
  line-height: var(--leading-loose);
}

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.timeline-card {
  background: var(--color-white);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-burgundy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.timeline-card h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.timeline-card p {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-loose);
}

/* ── FAQ Section ── */
.faq-section h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-bottom: var(--space-12);
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.faq-item {
  margin-bottom: var(--space-4);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  cursor: pointer;
  background: var(--color-surface);
  transition: background-color var(--transition-fast);
  user-select: none;
}

.faq-question:hover {
  background: rgba(23, 51, 79, 0.05);
}

.faq-question-text {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin: 0;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-burgundy);
  font-size: 1.2rem;
  margin-left: var(--space-4);
  transition: transform var(--transition-base);
}

.faq-item details[open] .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: var(--space-8);
  background: var(--color-white);
  border-top: var(--border-default);
  color: var(--color-body);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}

.faq-answer p {
  margin: 0;
}

/* ── Footer CTA Section ── */
.footer-cta-section h2 {
  font-size: var(--text-cta);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-align: center;
  line-height: var(--leading-tight);
}

.footer-cta-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.footer-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 51, 79, 0.6);
  z-index: 1;
}

.footer-cta-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-cta-subtext {
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-8);
  line-height: var(--leading-loose);
}

/* ── Responsive Design ── */
@media (max-width: 1024px) {
  .process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }

  .process-line {
    display: none;
  }

  .requirements-scope {
    grid-template-columns: 1fr;
  }

  .requirements-scope-divider {
    width: 100%;
    height: 2px;
    min-height: auto;
  }

  .timeline-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process-track {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .how-it-works-hero h1 {
    font-size: var(--text-3xl);
  }

  .how-it-works-hero .hero-subtext {
    font-size: var(--text-base);
  }

  .process-section h2,
  .timeline-section h2,
  .faq-section h2 {
    font-size: var(--text-3xl);
  }

  .timeline-cards {
    grid-template-columns: 1fr;
  }

  .faq-list {
    padding: 0;
  }

  .footer-cta-section h2 {
    font-size: var(--text-2xl);
  }

  .footer-cta-subtext {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .how-it-works-hero h1 {
    font-size: var(--text-2xl);
  }

  .how-it-works-hero .hero-underline {
    width: 60px;
  }

  .process-circle {
    width: 80px;
    height: 80px;
    font-size: var(--text-2xl);
  }

  .process-section h2,
  .timeline-section h2,
  .faq-section h2 {
    font-size: var(--text-2xl);
  }

  .faq-question {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-toggle {
    margin-left: 0;
    margin-top: var(--space-4);
  }
}
