@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* =============================================== */
/* === 1. DESIGN SYSTEM & VARIÁVEIS GLOBAIS ==== */
/* =============================================== */
:root {
    /* Paleta de Cores */
    --primary-color: #0084ff;
    --primary-color-rgb: 0, 132, 255;
    --background-color: #0B0C10;
    --card-bg-color: #1A1D24;
    --text-color: #EAEAEA;
    --text-color-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Consistência */
    --transition-speed: 0.3s ease;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* =============================================== */
/* ===== 2. ESTILOS GERAIS E TIPOGRAFIA ======== */
/* =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Tipografia fluida */
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw + 1rem, 2.8rem);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color-secondary);
    font-size: 1.05rem;
    margin-bottom: 50px;
}

/* =============================================== */
/* ======== 3. COMPONENTES REUTILIZÁVEIS ========= */
/* =============================================== */

/* --- Componente: Botão --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-speed);
}
.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-4px);
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.2);
    margin-bottom: 20px;
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-color-secondary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-color: var(--text-color);
}
.btn-inverted {
    background-color: var(--text-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* --- Componente: Carrossel (Genérico) --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.carousel-slider {
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-card {
    flex-shrink: 0; /* Impede que os cards encolham */
    user-select: none;
    -webkit-user-drag: none;
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-speed);
}
.carousel-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}
.carousel-button.prev { left: 15px; }
.carousel-button.next { right: 15px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dots .dot.active {
    background: var(--primary-color);
}

/* =============================================== */
/* ============ 4. LAYOUT E SEÇÕES ================ */
/* =============================================== */

/* --- Seções (Espaçamento Padrão) --- */
.projects-section, .systems-section, .stats-section, .testimonials-section, .simulator-section {
    padding: 80px 0;
}

/* --- Seção: Hero --- */
.hero { text-align: center; padding: 30px 0; }
.logo { display: block; margin: 0 auto 30px; max-width: 130px; }
h1 .highlight { color: var(--primary-color); }
.hero p { color: var(--text-color-secondary); }
.social-proof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.client-photos img { width: 45px; height: 45px; border-radius: 50%; border: 3px solid var(--background-color); margin-left: -15px; object-fit: cover; }
.client-photos img:first-child { margin-left: 0; }
.rating .stars { color: #fdd835; }

/* --- Seção: Simulador --- */
.simulator-container { background: rgba(30, 33, 40, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-color); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37); padding: 25px; border-radius: var(--border-radius-lg); max-width: 700px; margin: 0 auto; }
.simulator-container h2 { font-weight: 600; text-align: center; margin-bottom: 30px; font-size: 1.5rem; }
.progress-bar { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.progress-bar::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: rgba(255,255,255,0.2); transform: translateY(-50%); z-index: 1; }
.step-progress { background-color: var(--background-color); color: var(--text-color-secondary); padding: 4px 8px; font-size: 0.8rem; white-space: nowrap; border-radius: 20px; border: 2px solid var(--border-color); z-index: 2; transition: all 0.4s ease; }
.step-progress.active { border-color: var(--primary-color); color: var(--primary-color); font-weight: 600; }
.step { display: none; animation: fadeIn 0.5s; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group input { width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-color); font-size: 1rem; }
.input-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.4); }
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.option-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 2px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: var(--transition-speed); }
.option-card i { font-size: 2rem; margin-bottom: 10px; color: var(--text-color-secondary); transition: color var(--transition-speed); }
.option-card span { font-weight: 600; }
.option-card.active, .option-card:hover { background-color: rgba(var(--primary-color-rgb), 0.1); border-color: var(--primary-color); transform: translateY(-5px); }
.option-card.active i, .option-card:hover i { color: var(--primary-color); }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; }
.result-card { background-color: rgba(0,0,0,0.2); padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; }
.result-card-icon { font-size: 1.8rem; color: var(--primary-color); background-color: rgba(var(--primary-color-rgb), 0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-card-info h3 { font-size: 0.8rem; font-weight: 600; color: var(--text-color-secondary); margin-bottom: 2px; }
.result-card-info p { font-size: 1.2rem; font-weight: 700; }
.charts-container { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 50px; margin-bottom: 40px; }
.chart-box { position: relative; height: 300px; width: 100%; margin-bottom: 50px; }
.chart-box h4 { text-align: center; font-weight: 600; font-size: 1rem; margin-bottom: 20px; }
.chart-box canvas { max-width: 100%; max-height: 100%; }
.disclaimer { text-align: center; color: var(--text-color-secondary); margin-bottom: 30px; margin-top: 0; }

/* --- Outras Seções (Stats, Systems, CTA, Footer) --- */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 20px; text-align: center; }
.stat-card { background-color: var(--card-bg-color); padding: 25px; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); transition: var(--transition-speed); }
.stat-card:hover { transform: translateY(-8px); border-color: var(--primary-color); }
.stat-card i { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-card h3 { font-size: 1.8rem; }
.systems-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
.system-card { background-color: var(--card-bg-color); padding: 30px; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); text-align: center; transition: var(--transition-speed); }
.system-card:hover { transform: translateY(-8px); border-color: var(--primary-color); }
.system-card-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background-color: rgba(var(--primary-color-rgb), 0.1); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--primary-color); }
.cta-banner { position: relative; padding: 100px 0; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cta-banner-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../img/b1.jpg'); background-size: cover; background-position: center; background-attachment: fixed; z-index: -1; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: -1; }
.whatsapp-float { position: fixed; width: 50px; height: 50px; bottom: 20px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; font-size: 25px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 100; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition-speed); }
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); }
.site-footer { background-color: #06070A; color: var(--text-color-secondary); padding-top: 60px; }
.footer-logo { margin: 0 auto 30px; max-width: 130px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 50px; text-align: center; }
.footer-column h4 { color: var(--text-color); margin-bottom: 25px; position: relative; display: inline-block; }
.footer-column h4::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background-color: var(--primary-color); }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul a { color: var(--text-color-secondary); text-decoration: none; transition: var(--transition-speed); }
.footer-column ul a:hover { color: var(--primary-color); }
.footer-bottom { background-color: #000; text-align: center; padding: 20px 0; border-top: 1px solid var(--border-color); }

/* =============================================== */
/* ====== 5. ESTILOS ESPECÍFICOS DE CARDS ======== */
/* =============================================== */

/* --- Card de Projeto --- */
.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-speed);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}
.project-card .project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.project-card-content h3, .project-card-content p {
    color: var(--text-color);
}

/* --- Card de Depoimento --- */
.new-depoimento-card {
    background: #1A1D24; /* Usando cor do card-bg */
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-speed);
    height: 100%; /* Importante para alinhamento no flex */
}
.new-depoimento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}
.new-depoimento-card .card-media-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    overflow: hidden;
}
.new-depoimento-card iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    pointer-events: none; /* Impede iframe de "roubar" o swipe */
}
.new-depoimento-card:hover iframe {
    pointer-events: auto; /* Permite interação com o vídeo no hover */
}
.new-depoimento-card .card-content {
    padding: 25px;
    text-align: left;
    flex: 1; /* Faz o conteúdo ocupar o espaço restante */
    display: flex;
    flex-direction: column;
}
.new-depoimento-card .card-economia-label {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}
.new-depoimento-card .card-economia-valor {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0 15px;
}
.new-depoimento-card .card-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Empurra os benefícios para baixo */
}
.new-depoimento-card .card-benefits {
    list-style: none;
    padding: 15px 0 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}
.new-depoimento-card .card-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =============================================== */
/* =========== 6. RESPONSIVIDADE ================= */
/* =============================================== */

/* --- Telas Pequenas (até 767px) --- */
@media (max-width: 767px) {

    .hero { 
        padding: 0; 
    }



    h1 { 
        font-size: 18px;
        padding: 0;
        font-weight: 300;

    }


    .highlight { 
        font-weight: 800;
        padding: 0;
        font-size: 20px;
        color: var(--primary-color); 
    }


    .testimonials-section {
        padding: 30px 5px; /* Menos padding vertical */
    }


    .projects-section {
        padding: 60px 0; /* Menos padding vertical */
    }

    /* Modificação para padding customizado no mobile */
    #projects-carousel {
        padding: 0 7px; /* Mantém o padding original para os projetos */
    }

    #testimonials-carousel {
        padding: 0 15px; /* << AUMENTE ESTE VALOR COMO QUISER */
    }
    
    .new-depoimento-card {
        max-width: 100%; /* Faz o card ocupar no máximo 90% do espaço disponível */
    }

    .carousel-button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .carousel-button.prev { left: -8px; }
    .carousel-button.next { right: -8px; }
}



/* --- Tablets (a partir de 768px) --- */
@media (min-width: 768px) {
    .social-proof { flex-direction: row; }
    .input-group-row { flex-direction: row; gap: 20px; }
    .results-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .systems-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); text-align: left; }
    .footer-column h4::after { left: 0; transform: none; }
    .chart-box { height: 350px; }
}

/* --- Desktops (a partir de 1024px) --- */
@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Telas Largas (a partir de 1440px) --- */
@media (min-width: 1440px) {
    .container { max-width: 1280px; }
}


.text-secondary.small {
    color: #000000;
    text-align: center; /* centraliza o texto */
    display: block;     /* necessário para que text-align funcione em <a> inline */
}


.text-secondary.small:hover {
    color: #aaaaaa;
    text-align: center; /* centraliza o texto */
    display: block;     /* necessário para que text-align funcione em <a> inline */
}

