/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #517e01;
    --primary-dark: #3a5d00;
    --primary-light: #6a9c12;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f1f3f5;
    --border-color: #eaeaea;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOPO ===== */
.topo {
    background-color: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
    max-height: 50px;
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin-left: 30px;
}

.menu ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.menu ul li a:hover {
    color: var(--primary-color);
}

.menu ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu ul li a:hover:after {
    width: 100%;
}

/* ===== BANNER (PROPORÇÃO 1536:400 = 3.84:1) ===== */
.banner {
    width: 100%;
    height: 0;
    padding-top: calc(400 / 1536 * 100%); /* Proporção 1536:400 = 26.04% */
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5; /* Cor de fallback */
}

/* Container dos slides */
.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slides - A imagem ocupará toda a área mantendo proporção */
.slides img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra imagem inteira mantendo proporção */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none; /* evita clique em slide invisível */
}

.slides img.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== INDICADORES DE SLIDE (opcional) ===== */
.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

/* Indicador agora é button */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ===== SETAS DE NAVEGAÇÃO ===== */
.slide-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 3;
    pointer-events: none; /* permite clicar só nas setas */
}

/* Setas agora são buttons */
.nav-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.nav-arrow:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.nav-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ===== BOTÕES ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ===== SEÇÕES GERAIS ===== */
.section {
    padding: 40px 0;
}

/* Centralizar todos os headers */
.section > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
    max-width: 800px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ===== NOSSA HISTÓRIA ===== */
.historia .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.text-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.image-content {
    position: relative;
}

.image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.image-frame:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background-color: var(--primary-light);
    opacity: 0.1;
    border-radius: var(--radius);
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-frame:hover img {
    transform: scale(1.03);
}

/* ===== CARDS - O QUE FAZEMOS (VERSÃO COMPACTA) ===== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduzido de 320px */
    gap: 20px; /* Reduzido de 30px */
    width: 100%;
}

.card {
    background-color: var(--bg-white);
    padding: 25px 20px; /* Reduzido de 40px 30px */
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* Reduzido */
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent; /* Reduzido de 4px */
}

.card:hover {
    transform: translateY(-5px); /* Reduzido de -10px */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Reduzido */
    border-top-color: var(--primary-color);
}

.card-icon {
    width: 60px; /* Reduzido de 80px */
    height: 60px; /* Reduzido de 80px */
    margin: 0 auto 15px; /* Reduzido de 25px */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(81, 126, 1, 0.08); /* Mais transparente */
    border-radius: 50%;
    color: var(--primary-color);
}

.card-icon i {
    font-size: 24px; /* Reduzido de 36px */
}

.card h3 {
    font-size: 1.1rem; /* Reduzido de 1.5rem */
    margin-bottom: 10px; /* Reduzido de 15px */
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 600;
}

.card p {
    font-size: 0.85rem; /* Reduzido de 16px (≈1rem) */
    line-height: 1.5; /* Reduzido de 1.7 */
    color: var(--text-light);
    margin-bottom: 15px; /* Reduzido de 20px */
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem; /* Adicionado tamanho menor */
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Reduzido de 8px */
    transition: var(--transition);
    margin-top: auto;
}

.card-link:hover {
    gap: 8px; /* Reduzido de 12px */
    color: var(--primary-dark);
}

.card-link i {
    font-size: 0.8rem; /* Ícone menor */
}

/* ===== DIFERENCIAIS ===== */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.diferencial {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.diferencial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.diferencial-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(81, 126, 1, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.diferencial-icon i {
    font-size: 30px;
}

.diferencial h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.diferencial p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== RODAPÉ ===== */
.rodape {
    background-color: #ffffff;
    color: #777777;           /* cinza discreto */
    padding: 40px 0 25px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
}

.rodape p,
.rodape a,
.rodape span {
    color: #777777;
    margin: 0;
}

.rodape a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.rodape a:hover {
    color: var(--primary-color);
}

/* ===== REDES SOCIAIS NO TOPO ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(81, 126, 1, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none; /* REMOVE O "_" */
    line-height: 1;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.social-links i {
    line-height: 1;
}

/* ===== RESPONSIVO ===== */

/* Para telas médias (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .banner {
        padding-top: calc(400 / 1536 * 100%); /* Mantém proporção */
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .slide-indicators {
        bottom: 20px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .banner {
        padding-top: calc(400 / 1536 * 100%); /* Mantém proporção */
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slide-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .historia .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .image-frame:before {
        display: none;
    }
}

/* Celulares grandes (576px - 767px) */
@media (max-width: 767px) {
    .banner {
        padding-top: calc(400 / 1536 * 100%); /* Mantém proporção */
    }
    
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
        padding: 0 10px;
    }
    
    .slide-nav {
        padding: 0 10px;
    }
    
    .slide-indicators {
        bottom: 10px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .menu ul {
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .menu.active ul {
        transform: translateY(0);
        opacity: 1;
    }
    
    .menu ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: var(--text-dark);
    }
}

/* Celulares pequenos (até 575px) */
@media (max-width: 575px) {
    .banner {
        padding-top: calc(400 / 1536 * 100%); /* Mantém proporção */
    }
    
    .section {
        padding: 50px 0;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    
    .historia .section-content {
        text-align: center;
    }
    
    .historia .text-content {
        order: 2;
    }
    
    .historia .image-content {
        order: 1;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .slide-indicators {
        gap: 6px;
        bottom: 8px;
    }
    
    /* Para telas muito estreitas, podemos fazer com que a imagem preencha verticalmente */
    .slides img {
        object-fit: cover; /* Em telas estreitas, cobre toda a área */
    }
}

/* Telas muito pequenas (até 360px) */
@media (max-width: 360px) {
    .banner {
        padding-top: calc(400 / 1536 * 100%); /* Mantém proporção */
    }
    
    .nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .slide-indicators {
        bottom: 6px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* ===== ESTILOS ADICIONAIS ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

p + p {
    margin-top: 1rem;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}