/* =========================================
   COMPONENTES UI (Botões, Cards, Forms, Etc)
   ========================================= */

/* Botões - Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px; /* Padding ajustado para formato Pill elegante */
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    z-index: 1;
}

/* PADRONIZAÇÃO GLOBAL: Estilo "Chame Agora" (Tech Blue Premium)
   Aplicado a btn-primary e btn-ghost para uniformidade visual */
.btn-primary,
.btn-ghost {
    background-color: var(--color-accent);
    color: var(--color-white);
    /* Sombra e profundidade Tech */
    box-shadow: 0 4px 20px rgba(47, 124, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none; /* Garante remoção de bordas antigas do ghost */
}

/* Shine Effect (Brilho que passa) - Global para botões padrão */
.btn-primary::after,
.btn-ghost::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    transition: none;
    z-index: -1;
}

/* Hover State Padronizado */
.btn-primary:hover,
.btn-ghost:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    /* Glow aumentado no hover */
    box-shadow: 0 10px 30px rgba(47, 124, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    filter: brightness(1.05);
    color: white; /* Garante contraste no ghost */
}

.btn-primary:hover::after,
.btn-ghost:hover::after {
    animation: btn-shine 0.75s ease-in-out;
}

@keyframes btn-shine {
    0% { left: -75%; opacity: 0; }
    20% { opacity: 1; }
    100% { left: 125%; opacity: 0; }
}

.btn-primary:active,
.btn-ghost:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(47, 124, 255, 0.2);
}

/* Variantes de Contexto (Mantidas para acessibilidade em fundos azuis) */
.btn-white {
    background-color: #FFFFFF;
    color: var(--color-accent);
    border: 1px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background-color: #f8fafc;
    color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Whatsapp Button - Mantém identidade de cor mas adota forma Pill e Sombra */
.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-small {
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* Nav Links */
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: width 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.logo {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(47, 124, 255, 0.3));
}

/* AJUSTE 2: CARDS com Profundidade e Glow Interno */
.icp-card, .eco-card {
    background: #FFFFFF;
    border-radius: 16px;
    transition: var(--transition);
}

.icp-card {
    padding: 40px 36px;
    /* Borda muito sutil e escura para definição */
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); /* Sombra difusa */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Estado Hover dos Cards: Interação "Silenciosa" */
.icp-card:hover {
    transform: translateY(-4px);
    /* Borda acende levemente em azul */
    border-color: rgba(47, 124, 255, 0.2);
    /* Sombra mais profunda e Glow interno sutil */
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(47, 124, 255, 0.03); 
}

.eco-card {
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1); /* Topo levemente mais claro para luz */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.eco-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 124, 255, 0.2);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(47, 124, 255, 0.03);
}

/* AJUSTE 3: ÍCONES com Microinterações e GLOW NEON */
.icp-icon, .eco-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(15, 23, 42, 0.5);
    color: var(--color-accent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; /* Mais quadrado, mais tech */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
    transition: var(--transition);
    
    /* NEON GLOW SUTIL (Estado Normal) */
    box-shadow: 0 0 15px rgba(47, 124, 255, 0.1), inset 0 0 10px rgba(47, 124, 255, 0.05);
    text-shadow: 0 0 8px rgba(47, 124, 255, 0.4);
}

.eco-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

/* Efeito no ícone quando o card pai é hoverado (NEON BOOST) */
.icp-card:hover .icp-icon,
.eco-card:hover .eco-icon {
    background-color: rgba(47, 124, 255, 0.1);
    color: #60a5fa; /* Azul mais claro/aceso */
    border-color: rgba(47, 124, 255, 0.2);
    transform: scale(1.05);
    /* Glow aumentado */
    box-shadow: 0 0 25px rgba(47, 124, 255, 0.25), inset 0 0 15px rgba(47, 124, 255, 0.1); 
    text-shadow: 0 0 15px rgba(47, 124, 255, 0.8);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--color-gray-ui);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}

.blog-content { 
    padding: 24px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.blog-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.blog-cat { 
    color: var(--color-accent); 
    font-weight: 700; 
    text-transform: uppercase; 
}

.blog-title { 
    font-size: 1.25rem; 
    margin-bottom: 12px; 
    line-height: 1.3; 
    color: var(--color-black);
}

.blog-excerpt { 
    font-size: 0.95rem; 
    color: var(--color-text-gray); 
    margin-bottom: 20px; 
    flex-grow: 1;
}

.blog-link { 
    margin-top: auto; 
    font-weight: 600; 
    color: var(--color-accent); 
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    /* Sombras e Bordas Refinadas */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.stars {
    color: #FBBF24;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); /* Glow nas estrelas */
}

.quote {
    font-style: italic;
    color: var(--color-dark-gray);
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

/* Formulários */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.02); /* Input sutilmente translúcido */
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: var(--transition);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.1);
}

/* Accordion (FAQ) - REFINED */
.accordion-item {
    background: white;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.accordion-header {
    padding: 24px; /* Mais espaçamento */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: background 0.3s;
    user-select: none;
}

.accordion-header:hover { background-color: rgba(255, 255, 255, 0.02); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    background-color: transparent;
}

.accordion-content p {
    padding: 0 24px 24px 24px;
    color: var(--color-text-gray);
    margin: 0;
}

.icon-toggle { transition: transform 0.3s; color: var(--color-accent); }
.accordion-item.active .icon-toggle { 
    transform: rotate(180deg); 
    /* NEON GLOW ATIVO */
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.7));
}

/* Floating Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 3s infinite;
}

.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animações (Fade Up) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

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

/* Marquee Chips - Visual Blue Premium */
.marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    /* Estilo Blue Premium Tech */
    background: rgba(30, 58, 138, 0.25); /* Azul profundo translúcido */
    border: 1px solid rgba(96, 165, 250, 0.25); /* Borda azul suave */
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #bfdbfe; /* Texto azul claro */
    white-space: nowrap;
    transition: var(--transition);
    
    /* Glassmorphism & Glow */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: default;
    letter-spacing: 0.02em;
}

.marquee-tag:hover {
    background: rgba(30, 58, 138, 0.4);
    border-color: rgba(96, 165, 250, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.marquee-tag i {
    font-size: 0.5rem;
    color: #60a5fa;
    opacity: 0.8;
    transition: var(--transition);
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

.marquee-tag:hover i { 
    opacity: 1; 
    color: #ffffff;
    /* Glow mais intenso no hover */
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Teraleads Lead Form Popup */
.tl-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;z-index:9999;padding:24px;}
.tl-popup-overlay.is-open{display:flex;}
.tl-popup{max-width:520px;width:100%;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:22px 20px;position:relative;}
.tl-popup h3{margin:0 0 8px 0;font-size:20px;line-height:1.2;}
.tl-popup p{margin:0 0 14px 0;opacity:.85;}
.tl-popup .tl-popup-actions{display:flex;gap:10px;justify-content:flex-end;}
.tl-popup button{cursor:pointer;}
.tl-popup-close{position:absolute;top:10px;right:12px;background:transparent;border:0;font-size:22px;line-height:1;opacity:.7;}
.tl-popup-close:hover{opacity:1;}
.tl-popup-success{border-left:5px solid #22c55e;}
.tl-popup-error{border-left:5px solid #ef4444;}
