/* ============================================================
 * styles.css — Estilos complementares ao Tailwind (marca Inédita)
 * Visual profissional
 * ============================================================ */

/* ---------- fundo limpo ---------- */
body {
  background: #f8fafc;
  background-image: none;
}

/* ---------- animação de revelação ao rolar ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].reveal-visivel {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track,
  .counter-spin {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- marquee (faixa rolante de serviços) ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- carimbo giratório do hero ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.counter-spin {
  animation: spin 24s linear infinite reverse;
}

/* ---------- barra de rolagem discreta ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- anel de foco para teclado ---------- */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ---------- toast ---------- */
#toast {
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- tabela do admin ---------- */
table {
  min-width: 900px;
}

/* ---------- assistente virtual ---------- */
#chat-painel {
  animation: chat-in 0.25s ease-out;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #2563eb;
  display: inline-block;
  animation: chat-blink 1.2s infinite;
}
.chat-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- seleção de texto na cor da marca ---------- */
::selection {
  background: #bfdbfe;
  color: #0f172a;
}

/* ---------- animação shimmer para título hero ---------- */
@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ---------- gradiente animado no hero ---------- */
.hero-gradient {
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
}

/* ---------- cards profissionais ---------- */
.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.06);
}

/* ---------- badges profissionais ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* ---------- inputs profissionais ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
select,
textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
