/* ============================================================
   SERVICOS.CSS — Estilos exclusivos de servicos.html
   ============================================================ */

/* ──────────────────────────────────────────
   SEÇÕES DE SERVIÇO (alternadas claro/escuro)
────────────────────────────────────────── */
.service-section {
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}
.service-section:nth-child(odd)  { background: var(--bg-dark); }
.service-section:nth-child(even) { background: var(--bg-mid); }

.service-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Inverte a ordem nas seções pares */
.service-section:nth-child(even) .service-inner .service-info    { order: 2; }
.service-section:nth-child(even) .service-inner .service-graphic { order: 1; }

/* ── Cabeçalho do serviço ── */
.service-header { margin-bottom: 1.8rem; }

.service-header .svc-icon {
  width: 64px; height: 64px;
  background: rgba(139, 68, 247, 0.15);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--purple-light);
  margin-bottom: 1.4rem;
}
.service-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}
.service-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── Lista de funcionalidades ── */
.features-list {
  margin: 2rem 0;
  list-style: none;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(139, 68, 247, 0.08);
}
.features-list li:last-child { border-bottom: none; }

.feat-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: rgba(139, 68, 247, 0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--purple-light);
}
.feat-text strong {
  display: block;
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.2rem;
}
.feat-text span { font-size: 0.83rem; color: var(--text-light); }

/* Botão CTA dentro da seção de serviço */
.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(139, 68, 247, 0.35);
}
.svc-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139, 68, 247, 0.5);
}

/* ──────────────────────────────────────────
   GRÁFICOS / VISUAIS DE CADA SERVIÇO
────────────────────────────────────────── */
.service-graphic { position: relative; }

/* Card de métricas (Marketing) */
.graphic-card {
  background: var(--gradient);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(139, 68, 247, 0.3);
  position: relative;
  overflow: hidden;
}
.graphic-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.graphic-card .gc-title {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 900;
  margin-bottom: 1.5rem;
}

.metric-row { display: flex; flex-direction: column; gap: 1rem; }
.metric-item { display: flex; flex-direction: column; gap: 0.4rem; }
.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.metric-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}

/* Badges flutuantes nos gráficos */
.float-badge {
  position: absolute;
  background: var(--bg-dark);
  border: 1px solid rgba(139, 68, 247, 0.3);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
}
.float-badge.tl { top: -1.5rem; left: -1.5rem; }
.float-badge.br { bottom: -1.5rem; right: -1.5rem; }
.fb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.fb-text { color: var(--text-light); }
.fb-text strong { display: block; font-weight: 600; color: var(--white); }

/* Demo de chat (Chatbots) */
.chat-demo {
  background: var(--bg-dark);
  border: 1px solid rgba(139, 68, 247, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.chat-header {
  background: var(--gradient);
  padding: 1rem 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.chat-header-dot {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chat-header-info strong { display: block; font-size: 0.9rem; font-weight: 600; }
.chat-header-info span   { font-size: 0.75rem; opacity: 0.8; }
.chat-online {
  width: 8px; height: 8px;
  background: #4CFFA8;
  border-radius: 50%;
  margin-left: auto;
}
.chat-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.bubble.bot {
  background: rgba(139, 68, 247, 0.15);
  border: 1px solid rgba(139, 68, 247, 0.2);
  border-bottom-left-radius: 4px;
  color: var(--text-light);
  align-self: flex-start;
}
.bubble.user {
  background: var(--gradient);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Fluxo de automação (Automações) */
.flow-demo { display: flex; flex-direction: column; gap: 0.8rem; }
.flow-step {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-dark);
  border: 1px solid rgba(139, 68, 247, 0.15);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.flow-step:hover {
  border-color: rgba(139, 68, 247, 0.4);
  transform: translateX(4px);
}
.flow-step-num {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.flow-arrow {
  text-align: center;
  color: var(--purple);
  font-size: 1rem;
  margin: -0.2rem 0;
}
.flow-step-text strong { display: block; font-size: 0.88rem; font-weight: 600; }
.flow-step-text span   { font-size: 0.76rem; color: var(--text-light); }

/* Card de casos de uso (IA sob demanda) */
.usecase-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.usecase-card i { font-size: 1.2rem; min-width: 24px; }
.usecase-card-title { font-weight: 600; font-size: 0.9rem; }
.usecase-card-desc  { font-size: 0.78rem; opacity: 0.75; }

/* ──────────────────────────────────────────
   PLANOS
────────────────────────────────────────── */
#planos {
  padding: 6rem 5%;
  background: var(--bg-mid);
  text-align: center;
}
#planos h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
#planos > p {
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.planos-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.plano-card {
  background: var(--bg-dark);
  border: 1px solid rgba(139, 68, 247, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.plano-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(139, 68, 247, 0.15);
}
.plano-card.featured {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(139, 68, 247, 0.35);
}

.plano-badge {
  position: absolute;
  top: -0.7rem; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--purple-dark);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.plano-name {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}
.plano-card.featured .plano-name { color: rgba(255, 255, 255, 0.8); }

.plano-price {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 900;
  line-height: 1; margin-bottom: 0.3rem;
}
.plano-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.plano-price sub { font-size: 0.9rem; font-weight: 400; opacity: 0.7; }

.plano-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.plano-card.featured .plano-desc { color: rgba(255, 255, 255, 0.75); }

.plano-features {
  list-style: none;
  margin-bottom: 1.8rem;
}
.plano-features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid rgba(139, 68, 247, 0.08);
}
.plano-features li:last-child { border-bottom: none; }
.plano-features li i { color: var(--purple-light); font-size: 0.75rem; }
.plano-card.featured .plano-features li {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}
.plano-card.featured .plano-features li i { color: var(--white); }

.btn-plano {
  display: block; width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
  cursor: pointer; border: none;
}
.btn-plano-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-plano-outline:hover {
  border-color: var(--purple-light);
  background: rgba(139, 68, 247, 0.1);
}
.btn-plano-white {
  background: var(--white);
  color: var(--purple-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.btn-plano-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ──────────────────────────────────────────
   RESPONSIVO
────────────────────────────────────────── */
@media (max-width: 900px) {
  .service-inner { grid-template-columns: 1fr; gap: 3rem; }
  .service-section:nth-child(even) .service-inner .service-info    { order: 1; }
  .service-section:nth-child(even) .service-inner .service-graphic { order: 2; }
  .planos-grid   { grid-template-columns: 1fr; max-width: 380px; }
  .float-badge   { display: none; }
}
@media (max-width: 640px) {
  .service-section { padding: 4rem 5%; }
}
