.section {
  padding: 100px 0;
  position: relative;
}

.section-white {
  background: var(--white);
}

/* Para adicionar imagem de fundo futuramente, use:
.section-white {
  background-image: url('../images/nome-da-imagem.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
} */

.section-gray {
  background: var(--gray-100);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--text-primary);
}

.section-dark-pattern {
  background: linear-gradient(180deg, rgba(27, 60, 97, 0.6) 0%, rgba(18, 44, 72, 0.7) 100%),
              url('../images/vantagens-fundo4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  position: relative;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#particles-js canvas {
  opacity: 0.4;
}

.section-dark-pattern .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-header .section-title {
  margin-bottom: 20px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 22px;
  background: transparent;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-dark .section-badge,
.section-dark-pattern .section-badge {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.65);
}

.section-dark .section-title,
.section-dark-pattern .section-title {
  color: var(--white);
}

.section-dark .section-subtitle,
.section-dark-pattern .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* ── STICKY SECTION LAYOUT — "Como Funciona" ───────── */

.how-sticky-section {
  background: var(--gray-100);
  padding: 100px 0;
}

.how-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.how-sticky-panel {
  position: sticky;
  top: 110px;
  text-align: left;
}

.how-sticky-panel .section-badge {
  margin-bottom: 20px;
}

.how-sticky-panel .section-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 16px;
}

.how-sticky-panel .section-subtitle {
  text-align: left;
}

/* Steps verticais */
.how-sticky-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.how-step:last-child {
  border-bottom: none;
}

.how-step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(74,144,217,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step:hover .how-step-num {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 30px rgba(74,144,217,0.45);
}

.how-step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.how-step-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 992px) {
  .how-sticky-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .how-sticky-panel {
    position: static;
    text-align: center;
  }
  .how-sticky-panel .section-title,
  .how-sticky-panel .section-subtitle {
    text-align: center;
  }
  .how-sticky-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .how-step { gap: 18px; padding: 24px 0; }
  .how-step-num { width: 44px; height: 44px; font-size: 0.875rem; }
}
