/* Configurações básicas */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #1a4f78;
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #f2c811;
}

.logo-container {
    display: flex;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

.header-info p {
    margin: 5px 0;
    font-size: 0.9em;
    text-align: right;
}

/* Estilo do Dashboard e Main */
main {
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-container {
    width: 100%; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 30px auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-container iframe {
    display: block;
    border: none;
    min-height: 700px;
    height: 100vh !important;
    margin-bottom: -40px;
}

/* --- Estilo para a Área do Banner --- */
.banner-area {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-color: #ffffff;
}

.banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}


/* --- Estilo dos Botões de Ação --- */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    height: 100%;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Adicionado cursor para indicar interatividade */
}

.download, .dropbtn {
    background-color: #0078d4;
    color: white;
}

.download:hover, .dropbtn:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
}

.suggestions {
    background-color: #f2c811;
    color: #333;
}

.suggestions:hover {
    background-color: #e0b400;
    transform: translateY(-2px);
}


/* --- Estilos para o Dropdown (Novo) --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Escondido por padrão */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; /* Garante que fique acima de outros elementos */
    border-radius: 6px;
    top: 100%; /* Posiciona abaixo do botão */
    margin-top: 5px;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: #1a4f78;
}

/* Mostra o menu quando a classe 'show' é adicionada via JavaScript */
.show {
    display: block;
}

.arrow-down {
    margin-left: 10px;
    font-size: 0.8em;
}


/* --- Estilos para a Seção "Sobre a Carnaúba" --- */

.about-carnauba {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.about-carnauba h2 {
    color: #1a4f78;
    border-bottom: 2px solid #f2c811;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2em;
}

.carnauba-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.intro-text {
    flex: 2;
    font-size: 1.1em;
}

.intro-image {
    flex: 1;
    max-width: 250px;
    text-align: center;
}

.intro-image img {
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s;
}

.product-item h3 {
    color: #0078d4;
    margin-top: 0;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 15px;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.product-image img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid #f2c811;
}

.product-content p {
    text-align: justify;
    font-size: 1em;
}

/* Footer (Rodapé) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 5%;
    font-size: 0.8em;
}

/* Media Queries para Responsividade em telas menores */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-info p {
        text-align: center;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    /* O dropdown precisa de ajustes para telas menores */
    .dropdown {
        width: 80%;
    }
    .dropbtn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        min-width: 100%;
        left: 0;
        right: 0;
    }

    .btn:not(.dropbtn) { /* Aplicado a outros botões */
        width: 80%;
        justify-content: center;
    }

    .banner-img {
        height: 150px;
    }
    
    .carnauba-intro {
        flex-direction: column;
    }

    .intro-text,
    .intro-image {
        flex: none;
        width: 100%;
    }

    .intro-image img {
        max-width: 100%;
        height: auto;
    }
}