/**
 * SMS Short Code – estilos completos
 * Variáveis em: sms-variables.css
 * sms/css/sms.css
 */

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ========== HERO ========== */
.sms-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--sms-bg-hero);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .sms-hero {
  background: var(--sms-bg-hero);
}

.sms-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .sms-hero-grid {
  color: rgba(255, 255, 255, 0.20);
}

.sms-hero-grid-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sms-hero .container .row>[class*="col-"] {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
}

[data-theme="dark"] .sms-hero::before {
  background: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(0, 162, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.sms-hero .container {
  position: relative;
  z-index: 3;
}

.sms-phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sms-hero-tag {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sms-hero-title {
  font-size: 50px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

.sms-hero-description {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

.sms-hero-description strong {
  color: white;
  font-weight: 700;
}

/* Botões desta página → css/button-sms.css */

/* Celular iPhone (mockup, tela de bloqueio, conversa) → sms-phone.css */

/* ========== COMMON / FEATURES ========== */
.sms-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.sms-section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--rcs-text-primary, #1a1a1a);
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] .sms-section-title {
  color: #f1f5f9;
}

.sms-section-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--rcs-text-secondary, #555);
}

[data-theme="dark"] .sms-section-description {
  color: #e1e1e1;
}

/* Seção diferenciais (padding, título, cards, dominó) → sms-section-diferenciais.css */

/* ========== STATS ========== */
.sms-stats-section {
  padding: 100px 0;
  position: relative;
  background: var(--sms-gradient);
  overflow: hidden;
}

/* Dark: usa gradiente específico para seções (--sms-gradient-section); se não existir, cai em --sms-gradient */
[data-theme="dark"] .sms-stats-section {
  background: var(--sms-gradient-section);
}

.sms-stats-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.sms-stats-section .container {
  position: relative;
  z-index: 1;
}

.sms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.sms-stat-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sms-stat-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

[data-theme="dark"] .sms-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}



.sms-stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sms-stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.sms-stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

/* ========== FAQ ========== */
.sms-faq-title-gradient {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 35%, #00b3ff 70%, #66e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .sms-faq-title-gradient {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 35%, #00b3ff 70%, #66e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sms-faq {
  padding: 80px 0 100px;
}

.sms-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.sms-faq-item {
  background: var(--rcs-card-bg, #fff);
  border: 1px solid var(--rcs-border-color, rgba(0, 0, 0, 0.1));
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-faq-item:hover {
  border-color: var(--sms-primary);
  box-shadow: 0 4px 20px rgba(0, 82, 212, 0.18);
}

[data-theme="dark"] .sms-faq-item {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sms-faq-item:hover {
  border-color: var(--sms-primary);
  box-shadow: 0 4px 20px rgba(0, 162, 255, 0.25);
}

.sms-faq-question {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rcs-text-primary, #1a1a1a);
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.sms-faq-question::-webkit-details-marker {
  display: none;
}

.sms-faq-question::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.25s ease;
}

[data-theme="dark"] .sms-faq-question::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.sms-faq-item[open] .sms-faq-question::after {
  transform: rotate(180deg);
}

[data-theme="dark"] .sms-faq-question {
  color: #f1f5f9;
}

.sms-faq-question:hover {
  color: var(--sms-primary);
}

.sms-faq-question:focus-visible {
  outline: 3px solid rgba(0, 82, 212, 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}

.sms-faq-answer {
  padding: 0 24px 20px;
}

.sms-faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rcs-text-secondary, #666);
}

[data-theme="dark"] .sms-faq-answer p {
  color: #cbd5e1;
}

/* ========== CTA ========== */
.sms-cta {
  padding: var(--sms-cta-section-padding);
  background: var(--sms-cta-bg, var(--sms-gradient));
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark: gradiente de seção; fallback para --sms-gradient */
[data-theme="dark"] .sms-cta {
  background: var(--sms-gradient-section, var(--sms-gradient));
}

.sms-cta .container {
  position: relative;
  z-index: 1;
}

/* SVG no fluxo: entre H2 e P (não atrás), mesmo tamanho */
.sms-cta-svg-wrap {
  margin: -30px auto -30px;
  max-width: min(400px, 70vw);
  pointer-events: none;
  opacity: 1;
}

[data-theme="dark"] .sms-cta-svg-wrap {
  opacity: 0.8;
}

.sms-cta-svg-wrap .sms-cta-svg-inner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.sms-cta-bg-rotate {
  transform-origin: 215.5px 215.5px;
  animation: sms-cta-bg-spin 32s linear infinite;
}

.sms-cta-ring {
  animation: sms-cta-dash-move 28s ease-in-out infinite;
}

@keyframes sms-cta-bg-spin {
  from {
    transform: rotate(0deg);
  }

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

@keyframes sms-cta-dash-move {

  0%,
  100% {
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dashoffset: 34;
  }
}

@media (prefers-reduced-motion: reduce) {

  .sms-cta-bg-rotate,
  .sms-cta-ring {
    animation: none;
  }
}

.sms-cta-content {
  max-width: var(--sms-cta-content-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.sms-cta-content h2 {
  font-size: var(--sms-cta-title-font-size);
  font-weight: var(--sms-cta-title-font-weight);
  line-height: var(--sms-cta-title-line-height);
  letter-spacing: var(--sms-cta-title-letter-spacing);
  color: #fff;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sms-cta-content p {
  font-size: var(--sms-cta-text-font-size);
  line-height: var(--sms-cta-text-line-height);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sms-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .sms-cta::before {
  display: none;
}

/* Animação "SMS" letra por letra: suave, desenha em ~3s, espera ~10s, repete */
.sms-cta-sms-letter {
  stroke-dashoffset: 100;
}

.sms-cta.scroll-reveal.visible .sms-cta-sms-s1 {
  animation: sms-cta-letter-draw 14s ease-in-out 0.3s infinite;
}

.sms-cta.scroll-reveal.visible .sms-cta-sms-m {
  animation: sms-cta-letter-draw 14s ease-in-out 0.3s infinite;
  animation-delay: 1.12s;
}

.sms-cta.scroll-reveal.visible .sms-cta-sms-s2 {
  animation: sms-cta-letter-draw 14s ease-in-out 0.3s infinite;
  animation-delay: 2.24s;
}

@keyframes sms-cta-letter-draw {
  0% {
    stroke-dashoffset: 100;
  }

  /* Cada letra desenha em ~1.1s (8% de 14s), suave */
  8% {
    stroke-dashoffset: 0;
  }

  /* Fica visível ~10s (até 93%) */
  93% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 100;
  }
}

@media (prefers-reduced-motion: reduce) {

  .sms-cta-sms-letter,
  .sms-cta.scroll-reveal.visible .sms-cta-sms-letter {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .sms-hero-title {
    font-size: 38px;
  }

  .sms-hero-description {
    font-size: 18px;
  }

  .sms-section-title {
    font-size: 2.25rem;
  }

  .sms-cta {
    padding: 100px 0;
  }

  .sms-cta-content h2 {
    font-size: 3rem;
  }

  .sms-cta-content p {
    font-size: 1.2rem;
  }

  .sms-hero .container .row>[class*="col-"] {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .sms-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .sms-hero .row {
    flex-direction: column;
  }

  .sms-phone-col {
    width: 100%;
    order: 2;
  }

  .sms-hero-title {
    font-size: 32px;
  }

  .sms-hero-description {
    font-size: 17px;
  }


  .sms-stats-section {
    padding: 60px 0;
  }

  .sms-stats-grid {
    gap: 20px;
  }

  .sms-stat-number {
    font-size: 2.25rem;
  }

  .sms-faq {
    padding: 60px 0 80px;
  }

  .sms-faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }

  .sms-faq-answer {
    padding: 0 20px 16px;
  }

  .sms-cta {
    padding: 80px 0;
  }

  .sms-cta-svg-wrap .sms-cta-svg-inner {
    max-width: min(420px, 82vw);
    min-width: 0;
  }

  .sms-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .sms-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .sms-cta-button {
    font-size: 1.1rem;
    padding: 18px 35px;
  }

  .sms-hero .container .row>[class*="col-"] {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .sms-hero-title {
    font-size: 28px;
  }

  .sms-section-title {
    font-size: 1.75rem;
  }

  .sms-stats-grid {
    grid-template-columns: 1fr;
  }

  .sms-hero-cta {
    display: flex;
    justify-content: center;
  }

  .sms-cta {
    padding: 60px 0;
  }

  .sms-hero .container .row>[class*="col-"] {
    margin-top: 20px;
  }

  .sms-cta-svg-wrap .sms-cta-svg-inner {
    max-width: min(320px, 76vw);
    min-width: 0;
  }

  .sms-cta-content h2 {
    font-size: 2rem;
  }

  .sms-cta-content p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .sms-cta-button {
    font-size: 1rem;
    padding: 16px 30px;
  }
}