/* ============================================================
   Daiane Lacerda — Psicóloga Clínica
   Estilos complementares ao Tailwind (via CDN no index.html)
   ============================================================ */

:root {
  --color-cream: #f2e9e2;
  --color-sage: #55613f;
  --color-terracotta: #c97a50;
  --color-text: #332e26;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Figtree", sans-serif;
  color: var(--color-text);
  background-color: var(--color-cream);
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Acordeão de FAQ ---------- */
.faq-item .faq-icon {
  transition: transform 0.25s ease;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item[data-open="true"] .faq-answer {
  max-height: 20rem;
}

/* ---------- Surgimento suave ao rolar a página ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal-stagger.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
  .reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
  .reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
  .reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
  .reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
}
