/**
 * CSS Customizado — Websaint
 * 
 * Estilos que complementam o Tailwind CSS.
 * Em produção, este arquivo é mesclado com o Tailwind compilado.
 */

@tailwind base;
@tailwind components;
@tailwind utilities;


/* ========================================
   Configurações Globais
   ======================================== */
html {
    cursor: url('../images/cursor.svg') 4 4, auto;
}

/* ========================================
   Animação sutil do botão WhatsApp
   ======================================== */
@keyframes pulse-slow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ========================================
   Gradiente do Hero e Video BG
   ======================================== */
@keyframes videoFadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

.animate-video-bg {
    opacity: 0;
    animation: videoFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 2s;
}

.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #c7d2fe 100%);
}

.hero-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
}

/* ========================================
   Cards com efeito hover premium
   ======================================== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Glassmorphism para cards especiais
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   Badge animado "Mais popular"
   ======================================== */
.badge-popular {
    background: linear-gradient(135deg, #4D73F5, #818CF8);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ========================================
   Scrollbar personalizado
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========================================
   Efeito gradiente em textos
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, #4D73F5 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Toggle mensal/anual
   ======================================== */
.toggle-switch {
    transition: background-color 0.3s ease;
}

.toggle-slider {
    transition: transform 0.3s ease;
}

/* ========================================
   Skeleton loading para imagens
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Contadores animados
   ======================================== */
.counter-number {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Formulários - estados de foco
   ======================================== */
.form-input:focus {
    outline: none;
    border-color: #4D73F5;
    box-shadow: 0 0 0 3px rgba(77, 115, 245, 0.15);
}

.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ========================================
   Header scroll effect
   ======================================== */
.header-scrolled {
    background: rgba(15, 23, 42, 0.85) !important; /* dark-900 com transparência */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.logo-white {
    filter: brightness(0) invert(1);
}

/* ========================================
   Seção escura (dark sections)
   ======================================== */
.section-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

.section-dark h2,
.section-dark h3 {
    color: #ffffff;
}

/* ========================================
   Animação de entrada suave
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Prose content (legal pages)
   ======================================== */
.prose-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.prose-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose-content p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.prose-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose-content ul li {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 0.25rem;
}

.prose-content a {
    color: #4D73F5;
    text-decoration: underline;
}

.prose-content a:hover {
    color: #3b5fe0;
}

/* ========================================
   Form validation error states
   ======================================== */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ========================================
   Logo Marquee Animation
   ======================================== */
.logo-marquee-container:hover .logo-marquee {
    animation-play-state: paused;
}

.logo-marquee {
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ========================================
   Google Translate Custom
   ======================================== */
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ========================================
   Homepage 02 - Cinematic V2 Styles
   ======================================== */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
}

.magnetic-btn:hover {
    transform: scale(1.03);
}

/* Base noise overlay for the v2 layout */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
