/* Ajustes finos que complementam o Tailwind */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* 80px = altura do header (64px) + respiro (16px) */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Esconde o marcador padrão do <details> */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Animação suave no botão WhatsApp flutuante */
.js-whatsapp.fixed {
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Foco acessível pra navegação por teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Plano destaque: scale só em telas grandes (já tratado por lg:scale-105) */
@media (max-width: 1023px) {
  #planos .lg\:scale-105 {
    transform: none;
  }
}

/* Animação suave do grafismo no hero (mantida pra outros lugares se precisar) */
.animate-float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-1.5deg); }
}

/* ===========================================================
   BALANCE-SWAY — animação dos pratos do hero
   Gira a partir da base dos bastões, simulando o equilíbrio
   real dos pratos em hastes (assimétrico pra parecer orgânico)
   =========================================================== */
.animate-balance-sway {
  animation: balance-sway 7s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  transform-origin: 50% 100%;
}
@keyframes balance-sway {
  0%   { transform: rotate(-1.4deg) translateY(0); }
  25%  { transform: rotate(0.6deg)  translateY(-2px); }
  50%  { transform: rotate(1.4deg)  translateY(-3px); }
  75%  { transform: rotate(-0.6deg) translateY(-1px); }
  100% { transform: rotate(-1.4deg) translateY(0); }
}

/* Brisa nos pratos do topo — leve oscilação adicional, atrasada */
@keyframes plates-breeze {
  0%, 100% { transform: rotate(0deg); }
  33%      { transform: rotate(0.8deg); }
  66%      { transform: rotate(-0.5deg); }
}

/* ===========================================================
   MARQUEE — faixa fina horizontal (ticker de depoimentos)
   Cada depoimento é uma pílula auto-width em uma linha só.
   =========================================================== */
.marquee {
  --duration: 38s;
}
@media (max-width: 640px) {
  .marquee {
    --duration: 26s;
  }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--duration) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-card {
  flex-shrink: 0;
  margin-right: 16px;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Acessibilidade — se o usuário pediu menos animação, vira scroll horizontal nativo */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* ===========================================================
   ANIMAÇÕES DE ENTRADA AO ROLAR (scroll reveal)
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: cada filho atrasa um pouco mais (até 8 itens) */
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }
.reveal[data-delay="6"] { transition-delay: 0.42s; }
.reveal[data-delay="7"] { transition-delay: 0.49s; }
.reveal[data-delay="8"] { transition-delay: 0.56s; }

/* ===========================================================
   BOTÕES — micro-interações
   =========================================================== */
a.js-scroll,
a.js-whatsapp,
button[type="submit"] {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background-color 0.2s ease;
}
a.js-scroll:hover,
a.js-whatsapp:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}
a.js-scroll:active,
a.js-whatsapp:active,
button[type="submit"]:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* Sweep de brilho nos CTAs principais (verde aquamarine) */
.bg-mint {
  position: relative;
  overflow: hidden;
}
.bg-mint::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.bg-mint:hover::before { left: 125%; }

/* ===========================================================
   CARDS — elevação no hover (refinado)
   =========================================================== */
.rounded-3xl[class*="hover:"] {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}

/* ===========================================================
   MENU — indicador ativo (scrollspy)
   =========================================================== */
header nav a {
  position: relative;
  padding-bottom: 4px;
}
header nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #79E49E;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
header nav a.is-active {
  color: white;
}
header nav a.is-active::after {
  transform: scaleX(1);
}

/* ===========================================================
   BADGE "MAIS ESCOLHIDO" — pulso sutil
   =========================================================== */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(121, 228, 158, 0.4); }
  50%      { box-shadow: 0 10px 25px -5px rgba(121, 228, 158, 0.7), 0 0 0 4px rgba(121, 228, 158, 0.15); }
}
.badge-pulse {
  animation: badge-pulse 2.8s ease-in-out infinite;
}

/* ===========================================================
   WHATSAPP FLUTUANTE — wiggle a cada 8s pra chamar atenção
   =========================================================== */
@keyframes whatsapp-wiggle {
  0%, 90%, 100%      { transform: rotate(0deg); }
  92%, 94%, 96%, 98% { transform: rotate(-10deg); }
  93%, 95%, 97%      { transform: rotate(10deg); }
}
.js-whatsapp.fixed svg {
  animation: whatsapp-wiggle 8s ease-in-out infinite;
  transform-origin: center;
}

/* ===========================================================
   FAQ — animação no ícone +
   =========================================================== */
details > summary i[data-lucide="plus"] {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================
   FORMULÁRIO — campos animados no focus
   =========================================================== */
#diagnosticoForm input,
#diagnosticoForm select {
  transition: border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease;
}
#diagnosticoForm input:focus,
#diagnosticoForm select:focus {
  transform: translateY(-1px);
}

/* ===========================================================
   RESPEITO À PREFERÊNCIA DE MENOS ANIMAÇÃO
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-float,
  .badge-pulse,
  .js-whatsapp.fixed svg {
    animation: none !important;
  }
  .bg-mint::before {
    display: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

