/**
 * ============================================
 * RCS CONCLUSION SECTION CSS
 * ============================================
 * 
 * Estilos para seção de conclusão - Design minimalista e impactante
 * 
 * @component .rcs-conclusion-section - Seção de conclusão
 */

/* ============================================
   SEÇÃO: CONCLUSÃO
   ============================================ */

.rcs-conclusion-section {
  padding: 80px 0;
  background: var(--rcs-bg-hero, linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%));
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* SVG no fluxo (entre H2 e P), mesmo layout do SMS/WhatsApp – tamanho alinhado ao SMS */
.rcs-cta-svg-wrap {
  margin: -30px auto -30px;
  max-width: min(400px, 70vw);
  pointer-events: none;
}

.rcs-cta-svg-wrap .rcs-cta-svg-inner,
.rcs-cta-svg-wrap .rcs-bg-svg {
  display: block;
  width: 100%;
  height: auto;
}

.rcs-cta-svg-wrap .rcs-bg-svg {
  width: 100%;
  height: auto;
}

/* Modo escuro: SVG mais visível (menos apagado) */
[data-theme="dark"] .rcs-cta-svg-wrap {
  opacity: 1;
  filter: brightness(1.35) contrast(1.08);
}

/* Grupo de círculos concêntricos – rotação suave (viewBox 460, centro 230) */
.rcs-cta-svg-wrap .rcs-cta-bg-rotate {
  transform-origin: 230px 230px;
  animation: rcs-cta-circle-rotate 40s linear infinite;
}

@keyframes rcs-cta-circle-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Texto RCS: preenchimento sempre visível */
.rcs-cta-svg-wrap .rcs-cta-rcs-fill.text-path {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Texto RCS: redesenho a cada 7 segundos, animação suave */
.rcs-cta-rcs-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.rcs-conclusion-section.scroll-reveal.visible .rcs-conclusion-content {
  opacity: 1;
  transform: translateY(0);
}

.rcs-conclusion-section.scroll-reveal.visible .rcs-cta-rcs-draw {
  animation: rcs-cta-rcs-loop 12s ease-in-out infinite;
}

@keyframes rcs-cta-rcs-loop {
  0% {
    stroke-dashoffset: 100;
  }

  20% {
    stroke-dashoffset: 0;
  }

  70% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 100;
  }
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
  }
}

.rcs-conclusion-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.rcs-conclusion-content {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.rcs-conclusion-content.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcs-conclusion-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.rcs-conclusion-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Botões movidos para rcs-button.css */

/* Efeito de brilho no fundo */
.rcs-conclusion-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
}

/* ============================================
   RESPONSIVIDADE - CONCLUSÃO
   ============================================ */

@media (max-width: 992px) {
  .rcs-conclusion-section {
    padding: 100px 0;
    min-height: 70vh;
  }

  .rcs-conclusion-title {
    font-size: 3rem;
  }

  .rcs-conclusion-text {
    font-size: 1.2rem;
  }

  .rcs-cta-svg-wrap {
    max-width: min(260px, 75vw);
  }
}

@media (max-width: 768px) {
  .rcs-conclusion-section {
    padding: 80px 0;
    min-height: 60vh;
  }

  .rcs-conclusion-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .rcs-conclusion-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }



  .rcs-cta-svg-wrap {
    max-width: min(220px, 80vw);
    margin: 20px auto 24px;
  }

  .rcs-conclusion-section::after {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  .rcs-conclusion-section {
    padding: 60px 0;
  }

  .rcs-conclusion-title {
    font-size: 2rem;
  }

  .rcs-conclusion-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }


}

@media (prefers-reduced-motion: reduce) {
  .rcs-conclusion-content {
    transition: opacity 0.4s linear;
    transform: none;
  }

  .rcs-cta-rcs-draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .rcs-cta-svg-wrap .rcs-cta-bg-rotate {
    animation: none;
  }

  .rcs-conclusion-section::after {
    animation: none;
  }
}