/* ==========================================================================
   Dra. Magda Conceição — estilos complementares ao Tailwind CDN
   Paleta (briefing): primária #17564E · secundária #8EC5CF · fundo #F8F4ED · texto #111827
   Tipografia (referência): Outfit
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Alpine.js: esconde elementos até a inicialização */
[x-cloak] {
  display: none !important;
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Eyebrow / kicker padrão da referência (H6 acima do H2) */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #17564E;
}

/* --------------------------------------------------------------------------
   Flip-boxes circulares — seção "Como funciona" (Seção 7 do blueprint)
   Sem JS: gira no hover e no foco (teclado/toque)
   -------------------------------------------------------------------------- */
.flip {
  perspective: 1200px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.flip:hover .flip-inner,
.flip:focus-within .flip-inner,
.flip:active .flip-inner {
  transform: rotateY(180deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.125rem;
}
.flip-back {
  transform: rotateY(180deg);
}

/* --------------------------------------------------------------------------
   Carrossel de depoimentos — scroll-snap no mobile (Seção 10 do blueprint)
   -------------------------------------------------------------------------- */
.snap-carousel {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar {
  display: none;
}
.snap-carousel > * {
  scroll-snap-align: center;
}

/* Estrelas de avaliação */
.stars {
  color: #E9B949;
  letter-spacing: 0.15em;
}

/* Linha tracejada decorativa entre os passos (referência: dashed.png) */
.dashed-line {
  background-image: repeating-linear-gradient(
    to right,
    #8EC5CF 0 10px,
    transparent 10px 20px
  );
  height: 3px;
}

/* Tabelas e blocos largos nunca estouram a tela */
.prose-scroll {
  overflow-x: auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* Área de toque mínima para links de navegação e botões */
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
}

/* Detalhe de acessibilidade: foco visível consistente */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #8EC5CF;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Barra de consentimento de cookies (LGPD) */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: #F8F4ED;
  border-top: 2px solid #8EC5CF;
  box-shadow: 0 -8px 30px rgba(17, 24, 39, 0.18);
}
.cookie-bar-text {
  margin: 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
}
.cookie-bar-text a {
  color: #17564E;
  font-weight: 600;
  text-decoration: underline;
}
.cookie-bar-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  min-height: 44px;
  min-width: 110px;
  padding: 0.65rem 1.5rem;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #17564E;
}
.cookie-btn-accept {
  background: #17564E;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #0E3A34;
}
.cookie-btn-reject {
  background: transparent;
  color: #17564E;
}
.cookie-btn-reject:hover {
  background: rgba(23, 86, 78, 0.08);
}
@media (max-width: 640px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-bar-actions {
    justify-content: center;
  }
  .cookie-btn {
    flex: 1;
    max-width: 200px;
  }
}

/* Accordion FAQ — transição suave do ícone */
.faq-icon {
  transition: transform 0.25s ease;
}
.faq-open .faq-icon {
  transform: rotate(45deg);
}
