/**
 * voz-channel-sections.css
 * Seções de canais (Voz + WhatsApp, RCS, SMS). Layout: texto e celular lado a lado.
 * Fundo e textos usam variáveis --voz-page-bg e --voz-text-* (voz-variables.css).
 */

/* ========== INTRO (voz + canais: atendimento) ========== */
.voz-channel-intro {
  padding: 64px 0 48px;
  background: var(--voz-page-bg);
  text-align: center;
}

.voz-channel-intro__heading {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  line-height: 1.25;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #08c0f5 0%, #1365a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.voz-channel-intro__text {
  font-size: 18px;
  color: var(--voz-text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .voz-channel-intro__text {
  color: #ffffff;
}

.voz-channel-intro__text strong {
  color: #0e6b86;
  font-weight: 600;
}

[data-theme="dark"] .voz-channel-intro__text strong {
  color: #1dd1a1;
}

/* ========== SEÇÃO BASE (container, grid) ========== */
.voz-channel-section {
  padding: 100px 0;
}

.voz-channel-section__container {
  position: relative;
  z-index: 1;
}

.voz-channel-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.12fr);
  gap: 48px;
  align-items: center;
  min-height: 400px;
  max-width: 96%;
  margin-left: auto;
  margin-right: auto;
}


/* ========== COLUNA DO CELULAR (radial atrás, moldura) ========== */
.voz-channel-section__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voz-channel-section__phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;

  background:
    radial-gradient(circle at 40% 45%,
      rgba(0, 198, 255, 0.7) 0%,
      transparent 60%),
    radial-gradient(circle at 60% 55%,
      rgba(0, 144, 255, 0.6) 0%,
      transparent 65%);

  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .voz-channel-section__phone::before {
  background: radial-gradient(circle at 50% 50%,
      #1e7ba8 0%,
      #1c8cd6 40%,
      #0e6b86 60%,
      transparent 78%);
  opacity: 0.4;
}

.voz-channel-section__phone-radial {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 65%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .voz-channel-section__phone-radial {
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 65%);
}

.voz-channel-phone {
  position: relative;
  z-index: 1;
  max-width: 270px;
  width: 100%;
  margin: 0 auto;
  padding: 4px;
  border-radius: 30px;
  background: linear-gradient(165deg,
      #3d4654 0%,
      #343c4a 25%,
      #2e3542 50%,
      #2a303c 75%,
      #262b36 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .voz-channel-phone {
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ========== COLUNA DE TEXTO (badge, título, descrição, lista) ========== */
.voz-channel-section__text-col {
  min-width: 0;
}

.voz-channel-section .rcs-section1-text {
  padding-left: 20px;
}

@media (max-width: 440px) {
  .voz-channel-section .rcs-section1-text {
    padding-left: 0;
  }
}

.voz-channel-section .rcs-section1-text.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease 0.2s,
    transform 0.8s ease 0.2s;
}

.voz-channel-section .rcs-section1-text.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.voz-channel-section .rcs-section1-badge {
  display: inline-block;
  background: linear-gradient(135deg, #08c0f5 0%, #1365a9 100%);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(8, 192, 245, 0.25);
  white-space: nowrap;
}

.voz-channel-section .rcs-section1-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #08c0f5 0%, #1365a9 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.voz-channel-section .rcs-section1-desc {
  font-size: 1.1rem;
  color: var(--voz-text-body);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.voz-channel-section .rcs-section1-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.voz-channel-section .rcs-section1-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.55rem;
  font-weight: 500;
  color: var(--voz-text-muted);
}

.voz-channel-section .rcs-section1-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08c0f5 0%, #1365a9 100%);
  box-shadow: 0 0 0 3px rgba(8, 192, 245, 0.15);
}

[data-theme="dark"] .voz-channel-section .rcs-section1-list li {
  color: var(--voz-text-light);
}

/* ========== JANELA DE CHAT (RCS e SMS; WhatsApp usa voz-channel-wa-demo) ========== */
.voz-channel-chat-window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 249, 0.99) 100%);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

[data-theme="dark"] .voz-channel-chat-window {
  background: linear-gradient(180deg,
      rgba(28, 28, 30, 0.98) 0%,
      rgba(22, 22, 24, 0.99) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.voz-channel-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.voz-channel-chat-window--rcs .voz-channel-chat-header {
  background: linear-gradient(135deg, #5e35b1 0%, #1e88e5 100%);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.voz-channel-chat-window--sms .voz-channel-chat-header {
  background: linear-gradient(135deg, #0e6b86 0%, #1f6a7d 100%);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.voz-channel-chat-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voz-channel-chat-window--rcs .voz-channel-chat-header-avatar {
  background: rgba(255, 255, 255, 0.3);
}

.voz-channel-chat-window--sms .voz-channel-chat-header-avatar {
  background: #1dd1a1;
}

.voz-channel-chat-header-avatar img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.voz-channel-chat-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voz-channel-chat-header-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

.voz-channel-chat-header-verified {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.voz-channel-chat-window--rcs .voz-channel-chat-header-verified,
.voz-channel-chat-window--sms .voz-channel-chat-header-verified {
  display: none;
}

.voz-channel-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.voz-channel-chat-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.voz-channel-chat-header-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.voz-channel-chat-body {
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  padding: 16px 12px;
  scrollbar-width: thin;
}

.voz-channel-chat-window--rcs .voz-channel-chat-body {
  background-color: #f5f5f5;
  background-image: none;
}

[data-theme="dark"] .voz-channel-chat-window--rcs .voz-channel-chat-body {
  background-color: #1a1d24;
  background-image: none;
}

.voz-channel-chat-window--sms .voz-channel-chat-body {
  background-color: #f0f2f5;
  background-image: none;
}

[data-theme="dark"] .voz-channel-chat-window--sms .voz-channel-chat-body {
  background-color: #1e2128;
  background-image: none;
}

.voz-channel-chat-placeholder {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.4);
  margin: 0;
  text-align: center;
  padding: 20px 0;
}

[data-theme="dark"] .voz-channel-chat-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.voz-btn-primary-sections {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: var(--voz-background-btn);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--voz-box-shadow-btn);
  position: relative;
  overflow: hidden;
  border: none;
}

.voz-btn-primary-sections:hover {
  background: var(--voz-background-btn-hover);
  color: #000000;
  box-shadow: var(--voz-box-shadow-btn-hover);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 991px) {
  .voz-channel-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .voz-channel-section__inner .voz-channel-section__phone {
    order: -1;
  }

  .voz-channel-section__phone-radial {
    width: 380px;
    height: 380px;
  }

  .voz-channel-section__phone::before {
    width: 440px;
    height: 440px;
  }
}

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

  .voz-channel-phone {
    max-width: 280px;
  }

  .voz-channel-chat-body {
    min-height: 360px;
    max-height: 440px;
  }

  /* RCS e SMS: manter altura da janela próxima ao WhatsApp em responsivo */
  .voz-channel-chat-window--rcs,
  .voz-channel-chat-window--sms {
    min-height: 460px;
  }

  .voz-channel-chat-window--rcs .voz-channel-chat-body,
  .voz-channel-chat-window--sms .voz-channel-chat-body {
    min-height: 380px;
    max-height: none;
  }
}