/* ============================================================
   style.css — Animações e estilos customizados
   Complementa o Tailwind CSS com efeitos visuais da marca
   ============================================================ */

/* ── Variáveis de cor da marca ── */
:root {
  --teal:          #1d6b7c;
  --teal-dark:     #0e4c5a;
  --teal-mid:      #2d8fa5;
  --teal-light:    #e0f5f8;
  --pink:          #d43589;
  --pink-light:    #fce7f3;
  --purple:        #8b4fa8;
  --purple-light:  #f3e8ff;
  --gradient:      linear-gradient(135deg, #1d6b7c 0%, #8b4fa8 55%, #d43589 100%);
  --gradient-soft: linear-gradient(135deg, rgba(29,107,124,.07) 0%, rgba(139,79,168,.05) 55%, rgba(212,53,137,.07) 100%);
}

/* ── Reset & base ── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ── Texto com degradê da marca ── */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Fundo com degradê da marca ── */
.bg-brand-gradient { background: var(--gradient); }
.bg-brand-soft     { background: var(--gradient-soft); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease-out, transform .65s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .26s; }
.reveal-delay-4 { transition-delay: .34s; }
.reveal-delay-5 { transition-delay: .42s; }
.reveal-delay-6 { transition-delay: .50s; }

/* ── Cards de serviço ── */
.service-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--card-shadow, rgba(29,107,124,.12));
}
.service-card .icon-box {
  transition: transform .3s ease;
}
.service-card:hover .icon-box {
  transform: scale(1.08);
}

/* ── Header sticky ── */
#header {
  transition: box-shadow .3s ease, padding .3s ease;
}
#header.scrolled {
  box-shadow: 0 2px 20px rgba(29,107,124,.1);
}

/* ── Botão flutuante WhatsApp ── */
#whatsapp-float {
  opacity: 0;
  transform: translateY(16px) scale(.9);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
  pointer-events: none;
}
#whatsapp-float.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#whatsapp-float:hover {
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
  transform: translateY(-3px) scale(1.04);
}
@keyframes wa-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
#whatsapp-float.ping {
  animation: wa-ping 1.8s ease-in-out 3;
}

/* ── Ilustração hero — animação de ondas ── */
@keyframes wave-ring {
  0%   { transform: scale(1); opacity: .25; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wave-ring-1 { animation: wave-ring 2.6s ease-out infinite; }
.wave-ring-2 { animation: wave-ring 2.6s ease-out .85s infinite; }
.wave-ring-3 { animation: wave-ring 2.6s ease-out 1.7s infinite; }

/* ── Input/textarea focus ── */
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,107,124,.15);
}

/* ── Credencial check item ── */
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}
.credential-item .check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(29,107,124,.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── Nav link hover ── */
.nav-link {
  position: relative;
  color: #4b5563;
  font-weight: 500;
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after { width: 100%; }

/* ── Info card de contato ── */
.info-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.info-card .icon-wrap {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: .75rem;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mobile menu transition ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
#mobile-menu.open {
  max-height: 360px;
}

/* ── Scrollbar custom (webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 3px; }

/* ── Floating badge animation ── */
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.float-badge { animation: float-badge 3.5s ease-in-out infinite; }
.float-badge-2 { animation: float-badge 3.5s ease-in-out 1.2s infinite; }

/* ── FAQ ── */
.faq-item { transition: box-shadow .2s; }
.faq-btn  { outline: none; background: transparent; cursor: pointer; }
.faq-btn:hover { background: rgba(29,107,124,.03); }
.faq-answer { border-top: 1px solid #f1f5f9; }

/* ── Chatbot button ── */
#chatbot-btn {
  transition: opacity .4s ease, transform .4s ease, background .2s;
}
#chatbot-btn:hover { transform: scale(1.08) !important; }

/* ── Chatbot widget ── */
#chatbot-widget {
  transition: opacity .25s ease, transform .25s ease;
}
#chatbot-messages::-webkit-scrollbar { width: 4px; }
#chatbot-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* ── Chatbot input focus ── */
#chatbot-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,107,124,.12);
}
