/*
 * Mídia Inteligente - Custom Stylesheet
 */

/* ======== Variáveis e Configurações Globais ======== */
:root {
    --primary-color: #4A00E0; /* Roxo principal */
    --secondary-color: #8E2DE2; /* Azul/Roxo secundário */
    --cta-gold: #FFC107; /* Dourado para CTAs */
    --cta-gold-hover: #FFD54F; /* Dourado mais claro para hover */
    --light-bg: #f5f0ff; /* Fundo claro baseado no roxo */
    --lighter-bg: #fdfaff; /* Fundo quase branco */
    --white: #ffffff;
    --text-color: #333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
}

.g-emoji {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.cta-button {
    background-color: var(--cta-gold);
    color: var(--text-color); /* Cor do texto escura para melhor contraste */
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease; /* Transição para todas as propriedades */
}
.cta-button:hover {
    background-color: var(--cta-gold-hover);
    color: var(--text-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ======== Animações Globais ======== */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 89, 152, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 10px 20px rgba(59, 89, 152, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 89, 152, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes line-draw {
    to { stroke-dashoffset: 0; }
}


.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======== Navbar ======== */
.navbar {
    transition: background-color 0.3s ease-in-out;
}
.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--light-bg);
}

/* ======== Hero Section ======== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s both;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.animated-icon-hero {
    font-size: 15vw;
    position: absolute;
    bottom: -5vw;
    right: 5vw;
    opacity: 0.1;
    transform: rotate(-15deg);
    z-index: 1;
}

/* ======== Dor Section ======== */
#dor {
    background-color: var(--lighter-bg);
}
.pain-card {
    border: none;
    border-radius: 15px;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.pain-card .icon-wrapper {
    font-size: 3rem;
    display: inline-block;
    animation: icon-bounce 2s infinite ease-in-out;
}
.pain-card:nth-child(2) .icon-wrapper { animation-delay: 0.2s; }
.pain-card:nth-child(3) .icon-wrapper { animation-delay: 0.4s; }

/* ======== Funcionalidades Section ======== */
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 89, 152, 0.15);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

/* ======== Como Funciona Section ======== */
.steps-container {
    position: relative;
}
.step {
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
    border: 5px solid var(--light-bg);
    box-shadow: 0 0 0 5px var(--primary-color);
}

/* Conectores animados - Apenas para Desktop */
@media (min-width: 768px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 20%;
        right: 20%;
        height: 5px;
        background-image: linear-gradient(to right, var(--secondary-color) 50%, transparent 50%);
        background-size: 20px 5px;
        z-index: 0;
    }
}


/* ======== Dashboard Mockup ======== */
.dashboard-mockup {
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}
.mockup-header {
    background-color: #e8e8e8;
    padding: 10px;
    display: flex;
}
.mockup-header .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #ccc;
}
.mockup-header .dot:first-child { background-color: #ff5f56; }
.mockup-header .dot:nth-child(2) { background-color: #ffbd2e; }
.mockup-header .dot:nth-child(3) { background-color: #27c93f; }

.mockup-body {
    display: flex;
    height: 450px;
}
.sidebar {
    width: 25%;
    background-color: var(--lighter-bg);
    padding: 20px;
}
.sidebar-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
}
.sidebar-item.active {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 500;
}
.main-content {
    width: 75%;
    padding: 20px;
}
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    flex: 1;
    background: var(--lighter-bg);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.stat-card span {
    font-size: 0.9rem;
    color: #666;
}
.stat-card strong {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
}

/* Tooltip CSS */
.stat-card::after, .bar::after, .map-chart i::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}
.stat-card:hover::after, .bar:hover::after, .map-chart i:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}


.charts {
    display: flex;
    gap: 20px;
    height: 250px;
}
.bar-chart {
    flex: 2;
    display: flex;
    align-items: flex-end;
    gap: 10%;
    padding: 0 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}
.bar {
    flex: 1;
    background-color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s;
    animation: bar-grow 1.5s ease-out;
}
@keyframes bar-grow {
  from { height: 0; }
}
.bar:hover {
    background-color: var(--primary-color);
}
.map-chart {
    flex: 1;
    background-color: var(--light-bg);
    border-radius: 5px;
    position: relative;
}
.map-chart i {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    animation: map-ping 2s infinite;
}
.map-chart i:nth-child(2) { animation-delay: 0.3s; }
.map-chart i:nth-child(3) { animation-delay: 0.6s; }

@keyframes map-ping {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}


/* ======== Depoimentos ======== */
.testimonial-card {
    text-align: center;
    padding: 2rem 5rem;
    background-color: var(--lighter-bg);
    border-radius: 15px;
}
.testimonial-card .avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: avatar-pop 0.5s ease-out;
}
@keyframes avatar-pop {
    from { transform: scale(0.5); opacity: 0;}
    to { transform: scale(1); opacity: 1;}
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}
.testimonial-company {
    color: var(--secondary-color);
    font-weight: 500;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 20px;
}
.carousel-fade .carousel-item {
    transition-duration: 1s;
}

/* ======== FAQ ======== */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important; 
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.accordion-header {
    border-radius: 10px;
}
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--white);
    border-radius: 10px;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}
.accordion-collapse {
    transition: height 0.5s ease;
}

/* ======== Rodapé / Contato ======== */
footer {
    background-color: var(--primary-color);
    color: var(--light-bg);
}
.footer-title {
    color: var(--white);
}
footer a {
    color: var(--light-bg);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--white);
}
.form-control {
    background-color: var(--secondary-color);
    border: none;
    padding: 15px;
    color: var(--white);
}
.form-control::placeholder {
    color: var(--light-bg);
}
.form-control:focus {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: var(--white);
}
.social-icons a {
    color: var(--light-bg);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}
.social-icons a:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
}


/* ======== Responsividade ======== */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .pain-card {
        padding: 1.5rem;
    }
    .steps-container::before {
        display: none;
    }
    .step {
        margin-bottom: 30px;
    }
    .step:not(:last-child)::after {
        content: '↓';
        font-size: 2rem;
        color: var(--secondary-color);
        display: block;
        margin-top: 15px;
    }
    .mockup-body {
        flex-direction: column;
        height: auto;
    }
    .sidebar, .main-content {
        width: 100%;
    }
    .stats {
        flex-direction: column;
    }
    .charts {
        flex-direction: column;
        height: auto;
    }
    .bar-chart {
        height: 200px;
    }
    .map-chart {
        height: 200px;
    }
    .testimonial-card {
        padding: 2rem;
    }
}

/* ======== Seção de Enriquecimento de Dados ======== */
#enriquecimento {
    background-color: var(--white);
}

.enrichment-card {
    background-color: var(--lighter-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    height: 100%;
}

.enrichment-card .form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.enrichment-card .form-control {
    background-color: var(--white);
    border: 1px solid #ddd;
    padding: 12px;
    color: var(--text-color);
}
.enrichment-card .form-control:focus {
    background-color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(74, 0, 224, 0.25);
    color: var(--text-color);
}

.results-card .data-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #999;
    text-align: center;
}
.results-card .data-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.enriched-data-list .data-point {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInSlide 0.5s forwards;
}
.enriched-data-list .data-point:last-child {
    margin-bottom: 0;
}

.data-point .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.data-point .info {
    flex-grow: 1;
}

.data-point .info .label {
    font-weight: 600;
    font-family: var(--heading-font);
    display: block;
    color: var(--text-color);
}

.data-point .info .value {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Animação para os pontos de dados */
@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======== Seção Mídia / TV Logos ======== */
.tv-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem; /* Espaçamento entre os logos */
}

.tv-logo {
    height: 50px; /* Altura padrão para todos os logos */
    max-width: 150px; /* Largura máxima para evitar que fiquem muito grandes */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.tv-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ======== Seção CTA Final ======== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.dynamic-benefits-container {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2rem 0;
    min-height: 50px; /* Evita que o layout "pule" */
    color: var(--cta-gold);
}

.dynamic-benefits-container i {
    margin-right: 10px;
    animation: pop-in 0.5s forwards;
}

#dynamic-benefit-text {
    display: inline-block;
    opacity: 0;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(15px); }
    15%, 85% { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
}


.cta-whatsapp {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: var(--white);
    padding: 20px 45px;
    font-size: 1.2rem;
    animation: pulse 2s infinite; /* Reutilizando a animação de pulso */
}

.cta-whatsapp:hover {
    background-color: #1DAA51;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}