/* =================================================================== */
/* 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
/* =================================================================== */
:root {
    --green-dark: #004d2b;
    --green-primary: #01A85A;
    --green-neon-start: #ffee00;
    --green-neon-end: #fff23c;
    --gray-light: #f9f9f9;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --text-color: #444444;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --version-notice-height: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* Compensação ajustada para a nova altura da barra (70px + respiro) */
    padding-top: calc(75px + env(safe-area-inset-top)); 
    overflow-x: hidden;
}

/* --- Tipografia --- */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1, h3 { color: var(--white); }

h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--gray-dark);
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 1.15em;
    line-height: 1.7;
}

/* =================================================================== */
/* 2. LAYOUT E COMPONENTES (BARRA SUPERIOR AJUSTADA)
/* =================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.section:nth-of-type(odd) { background-color: var(--gray-light); }
.section:nth-of-type(even) { background-color: var(--white); }

.top-bar-fixed {
    background: var(--white);
    /* BARRA UM POUCO MAIOR: Aumentada de 50px para 70px */
    height: 80px !important; 
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
    padding-top: env(safe-area-inset-top);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left-group {
    display: flex;
    align-items: center;
}

.top-bar-right-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* LOGO: Proporcional à nova altura da barra */
.top-bar-logo {
    height: 50px !important;    /* Aumentada para acompanhar a barra maior */
    width: auto !important;      /* Mantém a proporção sem achatar */
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.top-bar-phone {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--gray-dark);
    text-decoration: none;
}

.btn-orcamento-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--green-neon-start), var(--green-neon-end));
    color: var(--gray-dark);
    padding: 10px 20px; /* Aumentado para equilibrar visualmente */
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.btn-orcamento-top:hover {
    transform: scale(1.05);
}

/* --- Botões --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--green-neon-start), var(--green-neon-end));
    color: var(--gray-dark);
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.7), 0 8px 25px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 230, 0, 1), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--white);
}

/* =================================================================== */
/* 3. HERO SECTION
/* =================================================================== */
.hero-section {
    background: var(--green-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.hero-section h1 {
    font-size: 4em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.4em;
    margin: 0 auto 50px;
    opacity: 0.95;
    max-width: 800px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    position: relative;
}

.hero-image {
    flex-shrink: 0;
    width: 450px;
    max-width: 100%;
    text-align: center;
}

.hero-visual-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =================================================================== */
/* 4. SEÇÕES ESPECÍFICAS (MOLDURAS E ÍCONES)
/* =================================================================== */
#icones-foco {
    background-color: var(--gray-light);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-inline: auto;
}

.frame-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.outer-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--gray-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inner-fill-green {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-image-centered {
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: 0.5s ease;
}

.icon-item:hover .outer-ring {
    transform: scale(1.1) rotate(-3deg);
    border-color: var(--green-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-item:hover .product-image-centered {
    transform: scale(1.15) rotate(3deg);
}

.icon-item h3 {
    color: var(--gray-dark);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.icon-item h4 {
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: 400;
    text-align: left;
    line-height: 1.6;
}

/* --- Prova Social e Benefícios --- */
.section-proof-separator {
    background: var(--green-primary);
    color: var(--white);
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 40px auto 60px auto;
}

.benefits-list li {
    font-size: 1.25em;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    color: var(--gray-dark);
}

.benefits-list li .icon {
    font-size: 1.6em;
    color: var(--green-primary);
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- Depoimentos --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-item {
    background: var(--white);
    padding: 35px 35px 35px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    border-left: 6px solid var(--green-neon-start);
    text-align: left;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.15em;
    color: var(--gray-dark);
}

.testimonial-item h4 {
    color: var(--green-primary);
    font-size: 1.1em;
}

/* --- Software Detalhes e Contato --- */
.software-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.feature-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    background: var(--white);
    transition: transform 0.3s;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-item h3 {
    color: var(--green-primary);
    padding: 20px 20px 0;
    font-size: 1.5em;
}

.feature-item p {
    padding: 0 20px 20px;
    font-size: 1em;
    margin-bottom: 0;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    display: grid;
    gap: 15px;
}

.contact-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
}

/* =================================================================== */
/* 5. SIMULAÇÃO DE CUSTOS E MODAL
/* =================================================================== */
.reduction-stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.stat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.circle-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: conic-gradient(var(--gray-medium) 0%, var(--gray-medium) 100%);
    transition: background-image 1.5s ease-out;
}

.circle-chart::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: var(--white);
    border-radius: 50%;
}

.percentage {
    position: relative;
    z-index: 2;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gray-dark);
}

.btn-simulation {
    background: var(--green-primary);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 750px;
    max-width: 90%;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
}

.simulation-data-hidden h3 { color: var(--green-primary); margin-top: 15px; }
.simulation-data-hidden .data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: left; }
.simulation-data-hidden ul { list-style: none; }

/* =================================================================== */
/* 6. RESPONSIVIDADE (REAJUSTADA)
/* =================================================================== */
@media (max-width: 768px) {
    .top-bar-content { padding: 0 10px; }
    .top-bar-right-group { gap: 10px; }
    .top-bar-phone { font-size: 0.85em; }
    
    /* Logo equilibrada no mobile */
    .top-bar-logo { height: 38px !important; }
    .top-bar-fixed { 
        height: 60px !important; 
        padding: 5px 0; 
    }
    
    /* Compensação do body menor no mobile */
    body { padding-top: calc(65px + env(safe-area-inset-top)); }

    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { order: 2; padding-top: 50px; }
    .hero-image { order: 1; max-width: 280px; margin: 0 auto; }

    .icon-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 20px; margin-inline: -20px; padding: 0 20px 20px;
    }
    .icon-item { min-width: 85%; scroll-snap-align: center; }
}

footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}
/* Estilização do Link de WhatsApp */
.top-bar-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o número */
    color: #25D366; /* Cor oficial do WhatsApp */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.top-bar-whatsapp:hover {
    transform: scale(1.05);
    color: #128C7E; /* Tom mais escuro no hover */
}

/* Tamanho do Ícone */
.wa-icon {
    width: 24px;
    height: 24px;
}

/* Ajuste para o container no topo */
.top-bar-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsivo: Esconder texto em telas muito pequenas se necessário */
@media (max-width: 480px) {
    .top-bar-whatsapp {
        font-size: 0.9rem;
    }
    .wa-icon {
        width: 20px;
        height: 20px;
    }
}