/* ---- Reset e Configurações Globais ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Estilos Gerais do Corpo (Body) ---- */
body {
    font-family: 'Nunito', sans-serif;
    color: #343A40;
    background-color: #F8F9FA;
    font-size: 16px;
}

/* ---- Container Principal ---- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Cabeçalho ---- */
.main-header {
    background: #009A44;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DEE2E6;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo span {
    font-size: 1rem;
    line-height: 1.2;
}

.logo strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* AJUSTE: REGRAS PARA .main-nav REMOVIDAS */

.login-button {
    background: transparent;
    color: #FFFFFF;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #FFFFFF;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #FFFFFF;
    color: #009A44;
}

/* ---- Seção de Pesquisa (Hero) ---- */
.hero-search {
    background-color: #FFFFFF;
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid #DEE2E6;
}

.hero-search h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid #DEE2E6;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #009A44;
}

.search-bar input {
    width: 100%;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    background: #009A44;
    color: #FFFFFF;
    border: none;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background: #007A33;
}

.search-bar button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 154, 68, 0.4);
}

/* ---- Seção de Cards de Categoria ---- */
.category-section {
    background-color: #FFFFFF;
}

a.card-link {
    text-decoration: none;
    color: inherit; /* Herda a cor do texto do pai */
}

.category-cards-grid {
    display: grid;
    /* Cria uma grade responsiva com colunas de no mínimo 250px */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #FFFFFF;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.category-card .card-icon {
    height: 45px;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #343A40;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1; /* Empurra o botão para baixo */
    margin-bottom: 1.5rem;
}

.category-card .card-button {
    color: #009A44;
    font-weight: 700;
    font-size: 1rem;
}


/* ---- Seções de Destaque, Relatórios e CTA ---- */
.new-section {
    padding: 5rem 0;
}

/* Seção Em Destaque */
.featured-section {
    background-color: #F8F9FA;
}

.section-header-alt {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header-alt h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #343A40;
}

.section-header-alt p {
    font-size: 1.1rem;
    color: #6c757d;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-link {
    background: transparent;
    border: 1px solid #DEE2E6;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link.active,
.tab-link:hover {
    background: #009A44;
    color: #FFFFFF;
    border-color: #009A44;
}

.featured-cards-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
}

.featured-card {
    flex: 0 0 280px;
    background: #FFFFFF;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.featured-card .card-tag {
    display: inline-block;
    background-color: #eee;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.featured-card h3 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.featured-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.featured-card a {
    text-decoration: none;
    color: #009A44;
    font-weight: 700;
    margin-top: auto;
}

/* Seção Relatórios */
.reports-section {
    background-color: #F8F9FA;
}

.reports-intro {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.reports-text {
    flex: 1;
    min-width: 300px;
}

.reports-illustration {
    flex: 1;
    min-width: 300px;
}

.reports-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #009A44;
    margin-bottom: 1rem;
}

.reports-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #343A40;
}

.cta-button-white {
    background: #009A44;
    color: #FFFFFF;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.cta-button-white:hover {
    background-color: #007A33;
}

.reports-illustration img {
    max-width: 100%;
    height: auto;
}

.stats-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 5px solid;
    flex: 1;
    min-width: 300px;
}

.stat-card.green-border { border-top-color: #009A44; }
.stat-card.blue-border { border-top-color: #005A9C; }
.stat-card.yellow-border { border-top-color: #FFD700; }
.stat-card h4 { font-weight: 800; margin-bottom: 1rem; }
.stat-numbers { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.stat-numbers strong { font-size: 2rem; font-weight: 800; display: block; }
.stat-numbers span { font-size: 0.9rem; color: #6c757d; }
.stat-button { text-decoration: none; font-weight: 700; }
.stat-card.green-border .stat-button { color: #009A44; }
.stat-card.blue-border .stat-button { color: #005A9C; }
.stat-card.yellow-border .stat-button { color: #FFD700; }

/* Seção Faça seu Cadastro (CTA) */
.cta-section {
    background-color: #005A9C;
    color: #FFFFFF;
    text-align: center;
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-white-arrow {
    background: #FFFFFF;
    color: #005A9C;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-button-white-arrow:hover {
    transform: scale(1.05);
}


/* Seção do Mapa */
.map-section {
    background-color: #FFFFFF;
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ---- Rodapé ---- */
.main-footer {
    background: #009A44;
    color: #FFFFFF;
    padding: 1.5rem 0;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-footer nav a {
    text-decoration: none;
    color: #FFFFFF;
    margin-left: 1.5rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.main-footer nav a:hover {
    opacity: 1;
}

.main-footer p {
    color: #FFFFFF;
    opacity: 0.9;
}


/* ---- Media Queries para Responsividade ---- */
@media (max-width: 992px) {
    .main-header .container {
        /* Permite que o logo e o botão fiquem em lados opostos mesmo sem a nav */
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .main-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .main-footer nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-footer nav a {
        margin-left: 0;
    }
}