/* Estilos migrados do index4.html (mesma identidade visual, sem build step) */

.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.step-card {
  border-left: 3px solid #01909f;
}
.nav-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}
.nav-visible {
  max-height: 500px;
}
.selected-card {
  border: 2px solid #01909f;
  background-color: rgba(1, 144, 159, 0.05);
}

/* Slider (hero da home) */
.slider-container {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 350px;
  overflow: hidden;
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Ancorado ao lado esquerdo, encostando no centro em telas grandes (right: 50%
   faz a borda direita do bloco tocar o meio da .slide); em telas menores o
   texto some da posição fixa ao centro e ocupa até 80% de largura, senão o
   bloco fica estreito demais para caber o texto.
   position: absolute (não fixed) porque .slider recebe um transform via JS
   a cada troca de slide, o que o torna containing block de descendentes
   position:fixed — com fixed, os 3 slides acabariam sobrepostos no mesmo
   ponto da tela em vez de cada um respeitar seu próprio .slide. */
.slide-content {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 80%;
  max-width: 80%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
  color: white;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .slide-content {
    left: auto;
    right: 50%;
    width: auto;
    max-width: none;
  }
}
@media (max-width: 640px) {
  .slider-container {
    min-height: 420px;
  }
}
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.slider-dot.active {
  background: white;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}
.slider-arrow.prev {
  left: 15px;
}
.slider-arrow.next {
  right: 15px;
}

/* Cartão de crédito (checkout) — os contêineres cardNumber/expirationDate/
   securityCode recebem um <iframe> do SDK do Mercado Pago; o iframe em si
   está no nosso DOM (só o conteúdo dele é de outra origem), então dá pra
   forçar o tamanho por CSS normal mesmo sem poder estilizar o conteúdo. */
.mp-card-field {
  line-height: 1;
}
.mp-card-field iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Ícone do widget de carrinho — pisca pra cor de destaque (accent, mesma
   rgb(230 126 34) do bg-accent do Tailwind) ao adicionar um item, chamando
   atenção de que o carrinho foi atualizado. */
@keyframes cart-widget-flash {
  0%, 100% { background-color: #01909f; }
  50% { background-color: rgb(230 126 34 / var(--tw-bg-opacity, 1)); }
}
.cart-widget-flash {
  animation: cart-widget-flash 0.6s ease-in-out 2;
}

/* WhatsApp flutuante */
#whatsapp-float {
  animation: pulse 2s infinite;
  transition: bottom 0.3s ease;
}
#whatsapp-float:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Balão de conversa do ícone flutuante do WhatsApp. z-index explícito
   garante que o balão sempre fique por cima do ícone (que vem depois dele
   no HTML e também é position:relative) — sem isso, nos momentos em que
   ficam próximos (ex: durante a animação de entrada, que desloca o balão
   6px pra baixo), o ícone pintava por cima e escondia parte do balão. */
#whatsapp-bubble {
  z-index: 10;
  animation: whatsapp-bubble-in 0.25s ease-out;
}
@keyframes whatsapp-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.whatsapp-bubble-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  border-radius: 50%;
  background: #35495e;
  opacity: 0.4;
  animation: whatsapp-dot-bounce 1s infinite ease-in-out;
}
.whatsapp-bubble-dots span:nth-child(2) { animation-delay: 0.15s; }
.whatsapp-bubble-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes whatsapp-dot-bounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.whatsapp-bubble-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  vertical-align: -0.15em;
  margin-left: 1px;
  animation: whatsapp-cursor-blink 0.8s steps(1) infinite;
}
@keyframes whatsapp-cursor-blink {
  50% { opacity: 0; }
}

/* Editor WYSIWYG das Mensagens do Sistema (/admin/mensagens). O Tailwind
   (Preflight) zera margem/lista/tamanho de h1-h3, ul, ol por padrão — aqui
   restauramos a aparência nativa só dentro do editor, pra bater com o que
   o e-mail final (HTML puro, sem CSS nenhum) realmente mostra pro
   destinatário no cliente de e-mail dele. */
.rte-editor {
  background: #fff;
  cursor: text;
}
.rte-editor:focus {
  outline: none;
}
.rte-editor h2 { font-size: 1.5em; font-weight: 700; margin: 0.6em 0; }
.rte-editor h3 { font-size: 1.25em; font-weight: 700; margin: 0.6em 0; }
.rte-editor p { margin: 0.75em 0; }
.rte-editor ul { list-style: disc; padding-left: 1.5em; margin: 0.75em 0; }
.rte-editor ol { list-style: decimal; padding-left: 1.5em; margin: 0.75em 0; }
.rte-editor a { color: #01909f; text-decoration: underline; }
.rte-editor blockquote { border-left: 3px solid #ccc; padding-left: 1em; color: #555; margin: 0.75em 0; }
