/**
 * Criativa TM - Estilos Personalizados
 * 
 * Este arquivo contém os estilos personalizados para o site da Criativa TM
 */

/* Animações */
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(15px);
  }
  50% {
    transform: translateY(0) translateX(30px);
  }
  75% {
    transform: translateY(15px) translateX(15px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.animate-float {
  animation: float 15s ease-in-out infinite;
}

/* Botões */
.btn-primary {
  @apply bg-primary text-white font-medium py-3 px-6 rounded-full shadow-md hover:bg-blue-700 transition-colors duration-300 inline-flex items-center justify-center;
}

.btn-orcamento-hero:hover .btn-orcamento-hover,
.btn-orcamento-services:hover .btn-orcamento-hover {
  color: #000000 !important;
}

.btn-primary:hover .btn-nossos-servicos-hover {
  color: #000000 !important;
}

#sobre .btn-primary:hover {
  color: #FFD11C !important;
}

.btn-contato-whatsapp-texto:hover .btn-contato-whatsapp-texto-hover {
  color: #01BE60 !important;
}

.btn-primary:hover .btn-nossos-servicos-hover {
  color: #000000 !important;
}

.btn-secondary {
  @apply bg-white text-primary font-medium py-3 px-6 rounded-full shadow-md hover:bg-gray-100 transition-colors duration-300 border border-primary inline-flex items-center justify-center;
}

/* Testimonials - Tooltip */
.testimonial-text-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: visible;
}

.testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-text.has-tooltip {
  cursor: pointer;
}

.testimonial-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #2D3748;
  color: white;
  padding: 16px;
  border-radius: 8px;
  width: 320px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #2D3748;
}

.testimonial-text-wrapper:hover .testimonial-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.testimonial-text.has-tooltip:hover + .testimonial-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* WhatsApp Botão Flutuante */
.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Cards de Serviços */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: rgba(81, 113, 254, 0.2);
  transform: scale(1.1);
}

.service-icon-wrapper {
  transition: all 0.3s ease;
}

/* Swiper Customização */
.testimonials-slider {
  position: relative;
  padding: 20px 0;
}

.swiper-container {
  padding: 30px 0;
  overflow: visible;
}

.swiper-slide {
  height: auto;
  padding: 0 15px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #5171FE !important;
  background-color: white;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #5171FE;
  color: white !important;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #5171FE;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #5171FE;
}

/* Responsividade */
@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

@media (max-width: 640px) {
  .swiper-slide {
    padding: 0 5px;
  }
}

/* Fix para iOS - espaço em branco após footer */
@supports (-webkit-touch-callout: none) {
  html, body {
    min-height: -webkit-fill-available;
  }
  
  .whatsapp-btn {
    bottom: env(safe-area-inset-bottom, 20px);
  }
}
