/* ATA SYSTEM Technology - Custom styles (Dark Mode + Azul/Ciano) */

:root {
  --dark-900: #05070c;
  --dark-800: #0a0e16;
  --dark-700: #0f141f;
  --dark-600: #161d2b;
  --accent-blue: #0088ff;
  --accent-cyan: #00c8ff;
  --accent-electric: #0077ff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* Mobile: áreas de toque confortáveis e sem zoom em inputs */
@media (max-width: 768px) {
  input, textarea, select, button {
    font-size: 16px; /* evita zoom no iOS ao focar */
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ========== PARTE SUPERIOR (igual atasystem.com.br) ========== */
.topo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.97);
  border-bottom: 1px solid rgba(22, 29, 43, 0.6);
  backdrop-filter: blur(8px);
}
.topo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topo-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}
.topo-logo img {
  display: block;
  height: 88px;
  width: auto;
  max-width: 360px;
}
.topo-nav {
  display: none;
}
.topo-nav a {
  color: #d1d5db;
  text-decoration: none;
  padding: 8px 4px;
  margin: 0 4px;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.topo-nav a:hover {
  color: #00c8ff;
}
.topo-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
}
.topo-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.topo-mobile {
  display: block;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(22, 29, 43, 0.6);
  background: #0a0e16;
}
.topo-mobile a {
  display: block;
  padding: 14px 0;
  color: #d1d5db;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(22, 29, 43, 0.5);
}
.topo-mobile a:last-child {
  border-bottom: none;
}
.topo-mobile a:hover {
  color: #00c8ff;
}
.topo-mobile.hidden {
  display: none !important;
}
@media (min-width: 768px) {
  .topo-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .topo-menu-btn {
    display: none;
  }
  .topo-mobile {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .topo-inner {
    padding: 0 24px;
  }
  .topo-logo img {
    height: 96px;
    max-width: 400px;
  }
}
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Logo (uso geral) */
.logo-wrap {
  background: transparent !important;
  padding: 0;
  border: none;
}
.logo-img {
  display: block;
  background: transparent !important;
}
img.logo-img {
  background-color: transparent !important;
}

/* ========== RODAPÉ (High-Tech / IA e Automação) ========== */
.rodape {
  position: relative;
  background: #0a0e16;
  border-top: 1px solid rgba(0, 200, 255, 0.12);
  color: #e5e7eb;
  padding: 16px 0 20px;
  margin: 0;
  overflow: hidden;
}
/* Padrão geométrico (grid) sutil no fundo */
.rodape::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.rodape-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.rodape-logo {
  padding-bottom: 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(22, 29, 43, 0.8);
}
.rodape-logo a {
  display: inline-block;
  line-height: 0;
}
.rodape-logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 240px;
}
.rodape-colunas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .rodape-colunas {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.rodape-titulo {
  margin: 0 0 8px;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}
.rodape-texto {
  margin: 0 0 16px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* Linhas com ícones */
.rodape-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.875rem;
}
.rodape-item:last-child {
  margin-bottom: 0;
}
.rodape-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 200, 255, 0.7);
}
.rodape-cnpj,
.rodape-suporte {
  margin: 0;
  color: #9ca3af;
}
.rodape-suporte a {
  color: #00c8ff;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.rodape-suporte a:hover {
  color: #22d3ee;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}
/* Card de Conversão (substitui formulário) */
.rodape-card-conversao {
  padding: 28px 24px;
  background: rgba(15, 20, 31, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.rodape-card-titulo {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.rodape-card-texto {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.55;
}
.rodape-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.rodape-card-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5), 0 0 24px rgba(37, 211, 102, 0.25);
  filter: brightness(1.08);
  color: #fff;
}
.rodape-card-btn:active {
  transform: scale(0.98);
}
.rodape-card-btn-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
/* Container opcional para iframe de chat (use quando ativar o widget) */
.rodape-widget-chat {
  margin-top: 16px;
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
}
.rodape-widget-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.rodape-copy {
  padding-top: 10px;
  border-top: 1px solid rgba(22, 29, 43, 0.8);
  text-align: center;
  color: #6b7280;
  font-size: 0.8rem;
}

/* Service cards - mobile first padding */
.service-card {
  @apply relative p-5 sm:p-6 lg:p-8 rounded-2xl bg-dark-700/80 border border-dark-600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 136, 255, 0.2);
  border-color: rgba(0, 200, 255, 0.3);
}

.service-card .icon-wrap {
  @apply w-14 h-14 rounded-xl flex items-center justify-center mb-6;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.15) 0%, rgba(0, 200, 255, 0.1) 100%);
  border: 1px solid rgba(0, 200, 255, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .icon-wrap {
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.25) 0%, rgba(0, 200, 255, 0.2) 100%);
  transform: scale(1.05);
}

/* Ícone nos cards com foto (entre imagem e título) */
.service-card-icon {
  @apply w-11 h-11 sm:w-12 sm:h-12 rounded-xl flex items-center justify-center mb-4 flex-shrink-0;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.2) 0%, rgba(0, 200, 255, 0.15) 100%);
  border: 1px solid rgba(0, 200, 255, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.3) 0%, rgba(0, 200, 255, 0.25) 100%);
  transform: scale(1.05);
}

/* CTA button */
.cta-btn {
  box-shadow: 0 4px 20px rgba(0, 136, 255, 0.35);
}

.cta-btn:hover {
  box-shadow: 0 8px 30px rgba(0, 136, 255, 0.45);
}

/* Animações de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Cookie bar - escondida quando aceito (JS adiciona .hidden) */
#cookie-bar.hidden {
  transform: translateY(100%);
}

/* Evita flash da barra de cookies se já aceito (classe no html antes do paint) */
html.cookie-accepted #cookie-bar {
  transform: translateY(100%);
}

/* Input focus ring alinhado ao tema */
.input-field:focus {
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

/* Ajuste do rodapé quando cookie bar está visível */
body.cookie-visible {
  padding-bottom: 0;
}

/* Logo no header - fundo limpo, imagem nítida */
.header-logo-link {
  background: transparent !important;
  padding: 0;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.logo-header {
  display: block;
  width: auto;
  height: 3rem;
  max-height: 4rem;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 640px) {
  .logo-header { height: 3.5rem; max-width: 220px; }
}
@media (min-width: 768px) {
  .logo-header { height: 4rem; max-width: 260px; }
}
.header-logo-fallback {
  letter-spacing: 0.02em;
  color: #fff;
}

/* Nav link underline opcional no hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Modal Webchat (Fale com a nossa equipe + chat) ===== */
.webchat-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.webchat-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
body.webchat-modal-open {
  overflow: hidden;
}
.webchat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.webchat-modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 85vh;
  max-height: 700px;
  background: var(--dark-800);
  border-radius: 16px;
  overflow: hidden;
}
.webchat-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
}
.webchat-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.webchat-modal__body {
  height: 100%;
  min-height: 450px;
  background: var(--dark-700);
}
.webchat-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.webchat-app .webchat-start {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 56px 14px 14px;
}
.webchat-app .webchat-title {
  margin: 0;
  font-size: 18px;
}
.webchat-app .webchat-hint {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}
.webchat-app .webchat-error {
  margin: 0;
  color: #ff9a9a;
  font-size: 13px;
}
.webchat-app .webchat-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--dark-600);
  color: #fff;
  border-radius: 8px;
  padding: 0 12px;
  outline: none;
}
.webchat-app .webchat-btn {
  height: 42px;
  border: 0;
  background: #25d366;
  color: #062611;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}
.webchat-app .webchat-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.webchat-app .webchat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 56px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.webchat-app .webchat-new-chat-link {
  font-size: 12px;
  color: #25d366;
  text-decoration: underline;
}
.webchat-app .webchat-new-chat-link:hover {
  color: #4ade80;
}
.webchat-app .webchat-status {
  font-size: 11px;
  color: rgba(143, 255, 186, 0.95);
}
.webchat-app .webchat-status--error {
  color: #ffafaf;
}
.webchat-app .webchat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.webchat-app .webchat-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.webchat-app .webchat-msg--me {
  align-self: flex-end;
  background: #25d366;
  color: #05280f;
}
.webchat-app .webchat-msg--agent {
  align-self: flex-start;
  background: var(--dark-600);
  color: #fff;
}
.webchat-app .webchat-audio {
  width: min(240px, 70vw);
  display: block;
}
.webchat-app .webchat-image {
  width: min(240px, 70vw);
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.webchat-app .webchat-video {
  width: min(240px, 70vw);
  max-height: 260px;
  border-radius: 8px;
  display: block;
  background: #000;
}
.webchat-app .webchat-file-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}
.webchat-app .webchat-caption {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.9;
}
.webchat-app .webchat-icon-btn--recording {
  background: #7a1010;
  border-color: rgba(255, 0, 0, 0.45);
  color: #fff;
}
.webchat-app .webchat-empty {
  align-self: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.webchat-app .webchat-composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.webchat-app .webchat-file {
  display: none;
}
.webchat-app .webchat-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--dark-600);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}
.webchat-app .webchat-emoji-panel {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--dark-800);
}
.webchat-app .webchat-emoji-panel[aria-hidden="false"] {
  display: flex;
}
.webchat-app .webchat-emoji-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 768px) {
  .webchat-modal__box {
    max-width: 100%;
    height: 90vh;
    border-radius: 14px;
  }
  .webchat-modal__body {
    min-height: 0;
  }
  .webchat-app .webchat-composer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .webchat-app .webchat-btn {
    min-width: 84px;
  }
}

