/* HOW IT WORKS SECTION */
/* Follows style guide: NO inline styles, uses CSS variables from main.css, BEM-like naming */
/* Property order: Layout → Spacing → Visual → Animation */

.how-it-works {
  /* Spacing */
  padding: 80px 0;
  
  /* Visual */
  background: var(--bg-primary);
}

/* Header Section */
.how-it-works__header {
  /* Spacing */
  margin-bottom: 4rem;
  
  /* Visual */
  text-align: center;
}

.how-it-works__eyebrow {
  /* Spacing */
  margin-bottom: 0.5rem;
  
  /* Visual */
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.how-it-works__title {
  /* Spacing */
  margin-bottom: 1rem;
  
  /* Visual */
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 800;
}

.how-it-works__subtitle {
  /* Spacing */
  margin-bottom: 0;
  
  /* Visual */
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Steps Container */
.how-it-works__steps {
  /* Layout */
  position: relative;
}

/* Connecting Line (desktop only) */
.how-it-works__connector {
  /* Layout */
  position: absolute;
  top: 80px;
  left: 12.5%;
  right: 12.5%;
  
  /* Spacing */
  height: 2px;
  
  /* Visual */
  background: linear-gradient(90deg, 
    var(--bs-secondary) 0%, 
    var(--bs-secondary) 25%, 
    var(--border-color) 25%, 
    var(--border-color) 50%, 
    var(--border-color) 50%, 
    var(--border-color) 75%, 
    var(--border-color) 75%, 
    var(--border-color) 100%
  );
  
  /* Animation */
  z-index: 0;
}

/* Step Card */
.step-card {
  /* Layout */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  
  /* Spacing */
  padding: 2rem 1.5rem;
  
  /* Visual */
  text-align: center;
  
  /* Animation */
  z-index: 1;
}

/* Step Number Circle */
.step-card__number {
  /* Layout */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* Spacing */
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  
  /* Visual */
  background: var(--primary-gradient);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  color: var(--bs-light);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  
  /* Animation */
  transition: all 0.3s ease;
}

.step-card:hover .step-card__number {
  /* Visual */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  /* Animation */
  transform: scale(1.1);
}

/* Inactive step numbers */
.step-card__number--inactive {
  /* Visual */
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

/* Step Icon */
.step-card__icon {
  /* Spacing */
  margin-bottom: 1rem;
  
  /* Visual */
  color: var(--bs-secondary);
  font-size: 2.5rem;
}

/* Step Title */
.step-card__title {
  /* Spacing */
  margin-bottom: 0.75rem;
  
  /* Visual */
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Step Description */
.step-card__description {
  /* Spacing */
  margin-bottom: 0;
  
  /* Visual */
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Section */
.how-it-works__cta {
  /* Spacing */
  margin-top: 3rem;
  
  /* Visual */
  text-align: center;
}

.how-it-works__cta-text {
  /* Spacing */
  margin-bottom: 1.5rem;
  
  /* Visual */
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .how-it-works {
    padding: 60px 0;
  }
  
  .how-it-works__title {
    font-size: 2rem;
  }
  
  /* Hide connector line on tablets and mobile */
  .how-it-works__connector {
    display: none;
  }
  
  .step-card {
    padding: 1.5rem 1rem;
  }
  
  .step-card__number {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .how-it-works {
    padding: 40px 0;
  }
  
  .how-it-works__title {
    font-size: 1.75rem;
  }
  
  .how-it-works__header {
    margin-bottom: 2.5rem;
  }
  
  .step-card {
    padding: 1.5rem 0.5rem;
  }
  
  .step-card__number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-card__icon {
    font-size: 2rem;
  }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .step-card__number {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .step-card:hover .step-card__number {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .step-card__number {
    transition: none;
  }
  
  .step-card:hover .step-card__number {
    transform: none;
  }
}
