/* Variáveis de Cores */
:root {
    --color-black: #1A1A1A;
    --color-yellow: #FFC107;
    --color-white: #FFFFFF;
    --color-light-grey: #F5F5F5;
    --color-medium-grey: #CCCCCC;
}

/* Reset Básico e Fontes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Botões */
.btn-primary-nav,
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary-nav {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: 2px solid var(--color-yellow);
}

.btn-primary-nav:hover {
    background-color: var(--color-black);
    color: var(--color-yellow);
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: 2px solid var(--color-yellow);
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background-color: var(--color-black);
    color: var(--color-yellow);
    border: 2px solid var(--color-yellow);
}

.btn-secondary {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #1b1e25;
}

.main-header .logo img {
    height: 40px; /* Ajuste conforme o tamanho real do logo */
    
}

.main-header .main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-header .main-nav ul li a {
    color: var(--color-white);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header .main-nav ul li a:hover {
    color: var(--color-yellow);
}

/* Specific styling for the "Acessar Plataforma" button in the nav */
.main-header .main-nav ul li .btn-access-platform {
    background-color: var(--color-yellow);
    color: var(--color-black) !important; 
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--color-yellow);
}

.main-header .main-nav ul li .btn-access-platform:hover {
    background-color: var(--color-black);
    color: var(--color-yellow) !important;
    border-color: var(--color-yellow);
}


.menu-toggle {
    display: none; /* Esconde o botão de menu em telas maiores */
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    min-height: 100vh; /* Ocupa a altura total da tela */
    overflow: hidden;
    color: var(--color-white);
    padding-top: 100px; /* Espaço para o header */
}

/* Background Diagonal */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--color-black) 50%, var(--color-yellow) 50.1%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    max-width: 60%; /* Ajusta o conteúdo para a área preta */
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 550px;
    color: var(--color-white);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-right: 5%;
}

.hexagon {
    width: 300px;
    height: 170px;
    background-color: var(--color-white); /* Ou rgba(255, 255, 255, 0.2) para transparência */
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.geometric-shape {
    background-color: var(--color-yellow);
    position: absolute;
    border-radius: 5px;
}

.shape-1 {
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
    right: 15%;
    bottom: 20%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.shape-2 {
    width: 100px;
    height: 100px;
    transform: rotate(-30deg);
    left: 10%;
    top: 25%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* Sections Gerais */
section {
    padding: 6rem 5%;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--color-black);
    color: var(--color-white);
}

.how-it-works-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-card {
    background-color: #333; /* Um cinza mais escuro que o body */
    padding: 2rem;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-card h3 {
    color: var(--color-yellow);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 1rem;
    color: var(--color-light-grey);
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--color-black);
}
.icon-placeholder img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}


/* Advantages Section */
.advantages-section {
    background-color: var(--color-white);
    color: var(--color-black);
    padding-bottom: 8rem; /* Mais espaço para o CTA final */
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-item {
    background-color: var(--color-light-grey);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item h4 {
    color: var(--color-black);
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.95rem;
    color: #555;
}

.icon-placeholder-white {
    width: 60px;
    height: 60px;
    background-color: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.icon-placeholder-white img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-light-grey);
    color: var(--color-black);
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto; /* Para simular um carrossel, mas sem a funcionalidade JS */
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    min-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #444;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--color-black);
    text-align: right;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(to top left, var(--color-black) 50%, var(--color-yellow) 50.1%);
    color: var(--color-white);
    padding: 6rem 5%;
    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 2.2rem;
    color: var(--color-black);
}

.final-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.final-cta-content .btn-secondary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.final-cta-content .btn-secondary:hover {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-black);
}

/* Footer */
.main-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 3rem 5%;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 40px;
    
}

.footer-links ul li a,
.footer-contact p,
.footer-social p {
    color: var(--color-light-grey);
    margin-bottom: 0.5rem;
    display: block; /* Para os links aparecerem um abaixo do outro */
}

.footer-links ul li a:hover {
    color: var(--color-yellow);
}

.footer-social .social-icons img {
    height: 24px;
    width: 24px;
    margin-right: 0.8rem;
    filter: brightness(0) invert(1); /* Ícones brancos */
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-medium-grey);
}

/* Styles from simulation.html */
.simulation-container {
    max-width: 800px;
    margin: 80px auto 40px auto; /* Adjust top margin to clear header */
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.simulation-container h1 {
    color: #2c3e50; /* Adjust to your brand's primary color */
    margin-bottom: 20px;
    font-size: 2.5em;
    font-family: 'Montserrat', sans-serif;
}

.simulation-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-family: 'Open Sans', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}

.form-group select {
    appearance: none; /* Remove default select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.8c-3.6%2C3.6-7.8%2C5.4-12.4%2C5.4c-4.6%2C0-8.8-1.8-12.4-5.4L146.2%2C77.4L30.2%2C197.8c-3.6%2C3.6-7.8%2C5.4-12.4%2C5.4c-4.6%2C0-8.8-1.8-12.4-5.4l-3.6-3.6c-7.2-7.2-7.2-18.9%2C0-26.1L133.8%2C2.6c7.2-7.2%2C18.9-7.2%2C26.1%2C0l126.8%2C126.8c7.2%2C7.2%2C7.2%2C18.9%2C0%2C26.1L287%2C197.8z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Space for the custom arrow */
}

.simulation-form button {
    background-color: #FFC107; /* Your primary button color */
    color: #1A1A1A; /* Text color for the button */
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.simulation-form button:hover {
    background-color: #e0ac00; /* Slightly darker hover color */
}

.simulation-results {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: left;
    display: none; /* Hidden by default */
}

.simulation-results h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
}

.simulation-results p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #34495e;
    font-family: 'Open Sans', sans-serif;
}

.simulation-results p strong {
    color: #FFC107;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 5%;
    }

    .main-header .main-nav {
        position: absolute;
        top: 70px; /* Ajuste conforme altura do header */
        left: 0;
        width: 100%;
        background-color: var(--color-black);
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%); /* Esconde o menu */
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        padding: 1rem 0;
        border-top: 1px solid var(--color-yellow);
    }

    /* Corrected active class target */
    .main-header .main-nav.active {
        transform: translateY(0); /* Mostra o menu */
    }

    .main-header .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .main-header .main-nav ul li {
        width: 100%;
    }
    .main-header .main-nav ul li a {
        padding: 0.5rem 0;
        display: block;
    }

    /* Adjustments for the "Acessar Plataforma" button in mobile view */
    .main-header .main-nav ul li .btn-access-platform {
        margin: 1rem auto 0; /* Center and add top margin */
        display: block; /* Make it a block element to take full width */
        width: fit-content; /* Adjust width to content */
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px; /* Ajuste para o header */
    }

    .hero-content {
        max-width: 90%;
        padding: 3rem 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .hero-graphic {
        padding: 3rem 0;
        min-height: 300px;
    }

    .hexagon {
        width: 250px;
        height: 140px;
    }
    .geometric-shape {
        display: none; /* Simplifica para mobile */
    }

    .how-it-works-container {
        flex-direction: column;
        align-items: center;
    }
    .step-card {
        width: 100%;
        max-width: 400px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-carousel {
        flex-wrap: nowrap; /* Mantém o carrossel na horizontal, mas agora rolável */
        overflow-x: scroll; /* Adiciona barra de rolagem horizontal */
        -webkit-overflow-scrolling: touch; /* Suaviza rolagem no iOS */
    }
    .testimonial-card {
        min-width: 90%;
        margin-right: 1rem; /* Adiciona espaçamento entre os cards no carrossel */
    }

    .final-cta-section {
        padding: 4rem 5%;
    }
    .final-cta-content h2 {
        font-size: 1.8rem;
    }
    .final-cta-content p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo, .footer-links, .footer-social, .footer-contact {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    .footer-social .social-icons {
        justify-content: center;
    }
    .footer-links ul {
        flex-direction: column;
        padding: 0;
    }

    /* Responsive adjustments for simulation page */
    .simulation-container {
        margin: 60px 20px 20px 20px;
        padding: 20px;
    }

    .simulation-container h1 {
        font-size: 2em;
    }

    .simulation-form button {
        padding: 12px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1.1rem;
    }
    section {
        padding: 4rem 5%;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}