/* Fontes */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Scrollbar customizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1515;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #10b981 #0d1515;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Body e background */
body {
    background: #101C1C;
    color: #e5e7eb;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Botões */
.btn-primary {
    @apply bg-gradient-to-r from-emerald-500 to-teal-600 text-white px-6 py-3 rounded-full font-semibold hover:shadow-lg hover:scale-105 transition-all duration-300 inline-flex items-center justify-center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    @apply bg-white text-emerald-600 border-2 border-emerald-600 px-6 py-3 rounded-full font-semibold hover:bg-emerald-600 hover:text-white transition-all duration-300 inline-flex items-center justify-center;
}

.btn-lg {
    @apply px-8 py-4 text-lg;
}

.btn-white {
    @apply bg-white text-emerald-600 px-6 py-3 rounded-full font-semibold hover:bg-emerald-50 transition-all duration-300 inline-flex items-center justify-center;
}

/* Títulos de seção */
.section-title {
    @apply text-4xl lg:text-5xl font-playfair font-bold mb-6 text-center;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.text-white {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

/* Cards de serviço */
.service-card {
    @apply bg-white p-8 rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-500 border border-gray-100;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    /* Tornar texto/ícones escuros quando o cartão fica claro (hover/focus/active) */
    color: #071522;
}

/* Garantir legibilidade dos textos internos quando o cartão fica claro */
.service-card:hover h3,
.service-card:focus h3,
.service-card:active h3,
.service-card:hover p,
.service-card:focus p,
.service-card:active p,
.service-card:hover li,
.service-card:focus li,
.service-card:active li,
.service-card:hover .text-sm,
.service-card:focus .text-sm,
.service-card:active .text-sm,
.service-card:hover i,
.service-card:focus i,
.service-card:active i {
    color: #071522 !important;
}

/* Ajuste para elementos com classes de texto claras já aplicadas (ex.: text-gray-300) */
.service-card:hover .text-gray-300,
.service-card:focus .text-gray-300,
.service-card:active .text-gray-300,
.service-card:hover .text-gray-400,
.service-card:focus .text-gray-400,
.service-card:active .text-gray-400,
.service-card:hover .text-gray-600,
.service-card:focus .text-gray-600,
.service-card:active .text-gray-600 {
    color: #334155 !important; /* tom escuro para textos secundários */
}

/* Cards de depoimento */
.testimonial-card {
    @apply bg-white p-8 rounded-3xl shadow-lg hover:shadow-xl transition-all duration-300 border border-gray-100;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* FAQ */
.faq-item {
    @apply transition-all duration-300 hover:shadow-md;
}

.faq-question:hover {
    @apply bg-gray-100;
}

.faq-question.active i {
    transform: rotate(180deg);
}

/* Formulário de contato */
.contact-input {
    @apply w-full px-4 py-3 bg-white/20 border border-white/30 rounded-xl text-white placeholder-purple-200 focus:outline-none focus:border-white/50 focus:bg-white/30 transition-all duration-300;
    color: #000;
}

.contact-input::placeholder {
    color: rgba(196, 181, 253, 0.7);
}

/* Header com glassmorphism */
#header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#header.scrolled {
    @apply bg-white/95 shadow-lg;
}

/* Links de navegação */
.nav-link {
    @apply relative;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-gradient-to-r from-emerald-400 to-teal-400 transition-all duration-300;
}

.nav-link:hover::after,
.nav-link.active::after {
    @apply w-full;
}

/* Responsividade */
@media (max-width: 768px) {
    .section-title {
        @apply text-3xl;
    }

    .service-card,
    .testimonial-card {
        @apply p-6;
    }
}

/* Efeitos especiais */
.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradientes personalizados */
.gradient-purple-pink {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.gradient-indigo-purple {
    background: linear-gradient(135deg, #06b6d4, #10b981);
}

.gradient-pink-red {
    background: linear-gradient(135deg, #14b8a6, #059669);
}

/* Animações de hover para ícones */
.service-card i,
.testimonial-card i {
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Efeito parallax sutil */
@media (prefers-reduced-motion: no-preference) {
    .parallax-element {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Estados de foco para acessibilidade */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Não destacar borda ao clicar em itens do menu ou perguntas (remove outline padrão) */
.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible,
.faq-question:focus,
.faq-question:active,
.faq-question:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Indicadores sutis de foco (substituem a borda) */
/* Nav links: mudança leve de cor + sublinhado discreto */
.nav-link:focus-visible {
    color: #bbf7d0; /* tom claro de emerald */
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(187,247,208,0.5);
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

/* FAQ questions: leve fundo acentuado sem borda */
.faq-question:focus-visible {
    background: rgba(16,185,129,0.06);
    border-radius: 12px;
    transition: background 150ms ease;
}

.faq-question:focus-visible i {
    transform: rotate(180deg);
    transition: transform 160ms ease;
}

/* Botão mobile: foco sutil (sem outline pesado) */
#mobile-menu-btn:focus-visible {
    outline: none;
    box-shadow: none;
    background: rgba(16,185,129,0.06);
    border-radius: 8px;
    color: #bbf7d0;
    transition: background 150ms ease, color 150ms ease;
}

#mobile-menu-btn:focus-visible i {
    color: #bbf7d0;
}

/* Transições suaves para todos os elementos interativos */
button,
a,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Efeito de loading para botões */
.btn-primary:active {
    transform: scale(0.98);
}

/* Sombras personalizadas */
.shadow-purple {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.shadow-pink {
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.15);
}

/* Animação de pulso personalizada */
@keyframes pulse-purple {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.animate-pulse-purple {
    animation: pulse-purple 2s infinite;
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(16,185,129,0.12);
  z-index: 9999;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(6,182,212,0.16);
}
.whatsapp-float:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px rgba(16,185,129,0.10);
}
@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}