/* ============================================
   tatoLabs SAS - Component Styles
   ============================================ */

/* --- FAQ Accordion --- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* --- Pricing Card Hover --- */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12);
}

/* --- Form Input Focus Glow --- */
.form-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* --- Chat Mockup --- */
.chat-phone {
  width: 100%;
  max-width: 380px;
  background: var(--chat-bg, #0b141a);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header {
  background: var(--chat-header-bg, #1f2c34);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.chat-body {
  padding: 16px;
  min-height: 400px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  animation: fade-in-up 0.4s ease-out forwards;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--chat-bubble-user, #005c4b);
  color: #e9edef;
  border-bottom-right-radius: 2px;
}

.chat-bubble-agent {
  align-self: flex-start;
  background: var(--chat-bubble-agent, #1f2c34);
  color: #e9edef;
  border-bottom-left-radius: 2px;
}

.chat-bubble-time {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 2px;
  text-align: right;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
  background: var(--chat-bubble-agent, #1f2c34);
  border-radius: 8px;
  border-bottom-left-radius: 2px;
}
.typing-dot {
  width: 8px;
  height: 8px;
  background: #8696a0;
  border-radius: 50%;
}
.typing-dot:nth-child(1) { animation: typing-dot 1.4s infinite 0s; }
.typing-dot:nth-child(2) { animation: typing-dot 1.4s infinite 0.2s; }
.typing-dot:nth-child(3) { animation: typing-dot 1.4s infinite 0.4s; }

/* Light mode chat overrides */
html:not(.dark) .chat-phone {
  --chat-bg: #efeae2;
  --chat-header-bg: #f0f2f5;
  --chat-bubble-user: #d9fdd3;
  --chat-bubble-agent: #ffffff;
}
html:not(.dark) .chat-bubble {
  color: #111b21;
}
html:not(.dark) .chat-header {
  color: #111b21;
}

/* --- Nav scrolled state --- */
.nav-scrolled-dark {
  background: rgba(10, 10, 10, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-scrolled-light {
  background: rgba(250, 250, 250, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

/* --- Success Message Animation --- */
@keyframes scale-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.animate-scale-in {
  animation: scale-in 0.3s ease-out forwards;
}
