/* ==========================================================================
   Alô Síndico – Gestão Condominial
   Estilos complementares ao Tailwind (utilitário via CDN)
   ========================================================================== */

:root {
  --as-blue-900: #0f2942;
  --as-blue-800: #163a5c;
  --as-blue-700: #1d4d78;
  --as-blue-600: #2563eb;
  --as-blue-100: #e8f0fb;
  --as-gray-50: #f7f9fb;
  --as-gray-100: #eef1f5;
  --as-gray-500: #64748b;
  --as-whatsapp: #25d366;
  --as-whatsapp-dark: #128c4a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1e293b;
}

/* Compensa a navbar fixa ao usar âncoras internas */
section[id] {
  scroll-margin-top: 96px;
}

/* Navbar com leve sombra ao rolar */
.navbar-scrolled {
  box-shadow: 0 4px 24px rgba(15, 41, 66, 0.08);
}

/* Botão WhatsApp — único elemento em verde no site */
.btn-whatsapp {
  background-color: var(--as-whatsapp);
  transition: background-color .2s ease, transform .15s ease;
}
.btn-whatsapp:hover {
  background-color: var(--as-whatsapp-dark);
  transform: translateY(-1px);
}

/* Botão WhatsApp flutuante (mobile e desktop) */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(18, 140, 74, .35);
  animation: as-pulse 2.4s infinite;
}
@keyframes as-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Reveal ao rolar a página */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards com leve elevação no hover */
.as-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.as-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 41, 66, .10);
  border-color: var(--as-blue-600);
}

/* Linha do tempo "Como funciona" */
.timeline-line {
  background: linear-gradient(180deg, var(--as-blue-600) 0%, var(--as-blue-100) 100%);
}

/* FAQ accordion */
.faq-item .faq-icon {
  transition: transform .25s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 480px;
}

/* Gradiente de fundo do Hero */
.hero-gradient {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.12), transparent 60%),
              linear-gradient(180deg, var(--as-blue-900) 0%, var(--as-blue-800) 60%, var(--as-blue-700) 100%);
}

/* Selo "depoimento ilustrativo" */
.badge-ilustrativo {
  font-size: .68rem;
  letter-spacing: .04em;
}

/* Scrollbar suave (opcional, estético) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--as-gray-50); }
::-webkit-scrollbar-thumb { background: #c7d2e0; border-radius: 999px; }

/* Foco acessível visível */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--as-blue-600);
  outline-offset: 2px;
}
