/**
 * How It Works Section Styles
 * Modern, clean design aligned with theme aesthetics
 * 
 * @package TablyClub
 */

.tc-how-it-works {
  padding: clamp(3rem, 8vw, 6rem) 0;
  /* Background color set via Customizer inline styles */
  position: relative;
}

.tc-how-it-works__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.tc-how-it-works__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--how-title-color, #2c3e50);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.tc-how-it-works__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--how-text-color, #666);
  margin: 0;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.tc-how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .tc-how-it-works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tc-how-it-works__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Step Card - Clean, minimal design */
.tc-step-card {
  background: white;
  border-radius: 1rem;
  padding: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tc-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--tc-color-3);
}

.tc-step-card__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tc-color-3);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tc-step-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.tc-step-card__title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--how-title-color, #2c3e50);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tc-step-card__description {
  font-size: clamp(0.9375rem, 2vw, 1rem);
  color: var(--how-text-color, #666);
  line-height: 1.65;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .tc-how-it-works__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .tc-step-card {
    padding: 1.75rem 1.5rem;
  }
}
