/* ==========================================================================
    1. VARIÁVEIS E ESTILOS GLOBAIS
    ========================================================================== */
:root {
    --verde-principal: #5cb030;
    --verde-escuro: #0d463d;
    --cinza-claro: #f3f3f3;
    --cinza-escuro: #444;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: var(--cinza-escuro);
    background-color: #ffffff;
}

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

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

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 20px;
    background-color: var(--verde-principal);
    color: white;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--verde-escuro);
}


/* ==========================================================================
    2. SEÇÃO DO BANNER SUPERIOR
    ========================================================================== */
.banner-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    margin-top: 120px;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.banner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    margin: 0;
    font-size: 3rem;
}


/* ==========================================================================
    3. LAYOUT PRINCIPAL (CONTEÚDO E SIDEBAR)
    ========================================================================== */
.main-content {
    padding: 40px 0;
    background-color: #ffffff;
}

.main-content .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-left {
    flex: 1;
}

.sidebar-right {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
    4. SIDEBAR - STATUS DA OBRA
    ========================================================================== */
.status-obra {
    text-align: center;
}

.status-obra .banner-logo {
    display: block;
    max-width: 250px;
    margin: 0 auto 20px;
}

.status-obra h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.status-obra ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.status-obra li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-obra li > span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.progress-bar {
    position: relative;
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 5px;
}

.progress-bar span {
    z-index: 1;
    font-size: 0.8rem;
    font-weight: bold;
    color: black;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--verde-principal);
    transition: width 0.5s ease;
}

.status-obra .button {
    display: block;
    width: 100%;
    margin-top: 20px;
}


/* ==========================================================================
    5. GALERIA DE FOTOS E PLANTAS
    ========================================================================== */
.galeria-fotos h3,
.plantas-baixas-conteiner h3,
.outros-empreendimentos h3,
.mapa-section h3 {
    margin-bottom: 30px;
    text-align: center;
}

.outros-empreendimentos .container {
    text-align: center;
    font-size: 1.5rem;
}

.galeria-fotos h3,
.plantas-baixas-conteiner h3 {
    font-size: 2rem;
}

.outros-empreendimentos h3,
.mapa-section h3 {
    font-size: 2.5rem;
}

/* --- Sliders Splide.js --- */
#main-slider {
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#main-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#thumbnail-slider {
    max-width: 770px;
    margin-left: auto;
    margin-right: auto;
}

#thumbnail-slider .splide__track {
    overflow: hidden;
}

#thumbnail-slider .splide__slide {
    position: relative;
    cursor: pointer;
    border: 3px solid var(--verde-principal);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

#thumbnail-slider .splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#thumbnail-slider .splide__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#thumbnail-slider .splide__slide.is-active {
    border-color: var(--verde-escuro);
}

#thumbnail-slider .splide__slide.is-active::after {
    opacity: 1;
}

.splide__pagination {
    bottom: -5px !important;
}

.splide__pagination__page {
    background-color: #bbb;
}

.splide__pagination__page.is-active {
    background-color: var(--verde-principal);
}

/* --- Plantas Baixas (Refatorado) --- */
.plantas-baixas-conteiner h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
    border-bottom: 2px solid var(--verde-principal);
    padding-bottom: 10px;
}

.planta-section {
    background-color: #ffffff;
}

.plantas-baixas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espaço entre as plantas */
}

.planta-item {
    width: 100%;
    max-width: 800px; /* Ajuste conforme necessário */
    text-align: center;
}

.planta-item img {
    width: 100%;
    height: auto;
    display: block;
}

.legenda-planta {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
    6. ESTÁGIO DO PROJETO (TIMELINE) - CORRIGIDO
    ========================================================================== */

/* Estilos gerais da seção */
.estagio-do-projeto {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.estagio-do-projeto h2 {
    font-family: 'Neogrotesk Ess Alt', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #0d463d;
    margin-bottom: 50px;
}

/* Contêiner da linha do tempo */
.timeline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 60px;
}

/* Linha central que conecta os pontos */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #5cb030;
    z-index: 0;
    margin: 0 10%;
}

/* Item da linha do tempo */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Wrapper do ícone para o efeito de destaque */
.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #f3f3f3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Estilo para o ícone interno - padrão */
.timeline-icon i {
    font-size: 50px;
    color: #0d463d;
    transition: color 0.3s ease;
}

/* CORREÇÃO: Estilo para estágio concluído */
.icon-wrapper.completed {
    background-color: #5cb030 !important;
    box-shadow: 0 0 20px rgba(92, 176, 48, 0.5) !important;
}

.icon-wrapper.completed .timeline-icon i {
    color: #ffffff !important;
}

/* CORREÇÃO: Estilo para estágio ativo atual */
.icon-wrapper.active {
    background-color: #FFC107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6) !important;
    animation: pulse 1.5s infinite;
}

.icon-wrapper.active .timeline-icon i {
    color: #0d463d !important;
}

/* CORREÇÃO: Quando um estágio é concluído E ativo (para casos especiais) */
.icon-wrapper.completed.active {
    background-color: #FFC107 !important;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8) !important;
}

.icon-wrapper.completed.active .timeline-icon i {
    color: #0d463d !important;
}

/* Animação para o ponto ativo */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.timeline-label {
    font-family: 'Neogrotesk Ess Alt', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #444;
}

/* Botão "Quero saber mais" */
.btn-saber-mais {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    background-color: #5cb030;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-saber-mais:hover {
    background-color: #0d463d;
}

/* ==========================================================================
    7. SEÇÃO "OUTROS EMPREENDIMENTOS"
    ========================================================================== */
.outros-empreendimentos {
    padding: 40px 20px;
    background-color: white;
}

.empreendimentos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card-empreendimentos {
    width: 100%;
    max-width: 350px;
    padding: 30px;
    overflow: hidden;
    color: white;
    text-align: center;
    background-color: var(--verde-escuro);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: -60px;
}

.card-empreendimentos-foto img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
}

.card-empreendimentos-conteudo h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.empreendimentos-subtitle {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #d1d1d1;
    padding-top: 1em;
}

.empreendimentos-botao {
    display: inline-block;
    padding: 12px 30px;
    border: 3px solid transparent;
    border-radius: 40px;
    background-color: #00bf52;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.empreendimentos-botao:hover {
    background-color: #1a4d46;
    border-color: #00bf52;
}

/* ==========================================================================
    8. SEÇÃO MAPA E FAQ
    ========================================================================== */
.mapa-section {
    padding: 40px 0;
    text-align: center;
    font-size: 1.5rem;
    background-color: #ffffff;
}

.mapa-embed {
    width: 100%;
    height: 500px;
    border: 0;
    margin-top: 40px;
}

/* CORREÇÃO: Nova classe para mapa responsivo */
.mapa-embed-responsive {
    width: 100%;
    height: 500px;
    border: 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.mapa-embed-responsive iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.faq-section {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
}

.faq-section h2 {
    margin-bottom: 50px;
    font-size: 2.25rem;
    color: #005451;
}

.faq-accordion {
    max-width: 710px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #005451;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.faq-question {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    font-weight: 300;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-content {
    max-height: 1000px;
    padding: 20px;
}


/* ==========================================================================
    9. RESPONSIVIDADE (MEDIA QUERIES)
    ========================================================================== */
@media (min-width: 768px) {
    .main-content .container {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .content-left {
        flex: 2;
    }

    .sidebar-right {
        flex: 1;
        position: sticky;
        top: 140px;
    }
}

@media (max-width: 767px) {
    .banner-section {
        height: 20vh;
        margin-top: 100px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }
    
    .main-content .container {
        padding: 20px;
    }

    .planta-item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .faq-question {
        font-size: 1rem;
    }
    
    .faq-section {
        margin-top: -50px;
    }
    
    .card-empreendimentos {
        margin-bottom: 10px;
    }
    
    /* CORREÇÃO: Timeline centralizada no mobile */
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 20px;
        max-width: 300px;
        margin: 0 auto;
        margin-left: calc(20% + 20px);
    }

    .timeline-container::before {
        left: 40px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: calc(100% - 60px);
        margin: 0;
    }

    .timeline-item {
        flex-direction: row;
        text-align: left;
        margin-bottom: 30px;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .icon-wrapper {
        margin-right: 20px;
        width: 80px;
        height: 80px;
        position: relative;
        z-index: 2;
    }
    
    .timeline-icon i {
        font-size: 40px;
    }
    
    .timeline-label {
        font-size: 1.2rem;
        flex: 1;
    }

    /* CORREÇÃO: Mapa responsivo no mobile */
    .mapa-embed-responsive {
        height: 300px;
        margin: 20px 0;
    }

    .mapa-section .container {
        padding: 10px;
    }

    .mapa-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .legenda-planta {
    margin-top: 10px;
    font-size: 19px;
    color: #666;
}
}