/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */

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

:root {
    /* Cores principais */
    --verde-primario: #2d8659;
    --verde-escuro: #1f5d3f;
    --verde-claro: #4ca977;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --cinza-medio: #e0e0e0;
    --cinza-escuro: #333333;
    --texto: #2c3e50;
    
    /* Espaçamentos */
    --espacamento-pequeno: 1rem;
    --espacamento-medio: 2rem;
    --espacamento-grande: 4rem;
    
    /* Tipografia */
    --fonte-principal: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--texto);
    background-color: var(--branco);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espacamento-pequeno);
}

/* ========================================
   HEADER / CABEÇALHO
   ======================================== */

.header {
    background-color: var(--branco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: inline-block;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--verde-primario);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--texto);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--verde-primario);
}

.btn-header {
    white-space: nowrap;
}

/* ========================================
   BOTÕES
   ======================================== */

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-white,
.btn-outline-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--verde-primario);
    color: var(--branco);
    border-color: var(--verde-primario);
}

.btn-primary:hover {
    background-color: var(--verde-escuro);
    border-color: var(--verde-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.btn-secondary {
    background-color: var(--branco);
    color: var(--verde-primario);
    border-color: var(--verde-primario);
}

.btn-secondary:hover {
    background-color: var(--verde-primario);
    color: var(--branco);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--verde-primario);
    border-color: var(--verde-primario);
}

.btn-outline:hover {
    background-color: var(--verde-primario);
    color: var(--branco);
}

.btn-white {
    background-color: var(--branco);
    color: var(--verde-primario);
    border-color: var(--branco);
}

.btn-white:hover {
    background-color: var(--cinza-claro);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--branco);
    border-color: var(--branco);
}

.btn-outline-white:hover {
    background-color: var(--branco);
    color: var(--verde-primario);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    padding: var(--espacamento-grande) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--verde-escuro);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--texto);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ========================================
   SEÇÕES GERAIS
   ======================================== */

.about,
.portal {
    padding: var(--espacamento-grande) 0;
}

.about {
    background-color: var(--branco);
}

.portal {
    background-color: var(--cinza-claro);
}

.section-title {
    font-size: 2.25rem;
    color: var(--verde-escuro);
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-intro,
.portal-intro {
    font-size: 1.15rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--texto);
}

/* ========================================
   CARDS E GRIDS
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--verde-primario);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--texto);
    line-height: 1.6;
}

/* ========================================
   FEATURES GRID (Portal)
   ======================================== */

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

.feature-card {
    background-color: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 134, 89, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.35rem;
    color: var(--verde-primario);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--texto);
    line-height: 1.6;
}

.portal-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ========================================
   CTA FINAL
   ======================================== */

.cta-final {
    background: linear-gradient(135deg, var(--verde-primario) 0%, var(--verde-escuro) 100%);
    padding: var(--espacamento-grande) 0;
    color: var(--branco);
}

.cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER / RODAPÉ
   ======================================== */

.footer {
    background-color: var(--cinza-escuro);
    color: var(--branco);
    padding: var(--espacamento-grande) 0 var(--espacamento-medio);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    color: var(--verde-claro);
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--verde-claro);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVIDADE - MOBILE FIRST
   ======================================== */

/* Tablets e dispositivos menores */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .nav {
        display: none;
    }
    
    .btn-header {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
}

/* Dispositivos móveis */
@media (max-width: 640px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero {
        padding: var(--espacamento-medio) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-large {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.65rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1.05rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-large {
        width: 100%;
    }
    
    .portal-cta {
        flex-direction: column;
    }
    
    .portal-cta .btn-large {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Telas muito pequenas */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .logo img {
        max-width: 160px;
        height: auto;
    }
    
    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}
