:root {
    --primary-color: #0c1c38;
    --secondary-color: #a38c64;
    --accent-color: #f3f3f3;
    --text-color: #333;
    --white: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #29A71A;
    color: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
}

/* Seção Principal (Hero) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/* Carrossel de Imagens do Hero */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Imagens para os slides */
.hero-image-1 {
    background-image: url('img/GranTorre.webp');
    filter: brightness(0.7);
}

.hero-image-2 {
    background-image: url('img/Grantorre2.webp');
    filter: brightness(0.7);
}

.hero-image-3 {
    background-image: url('img/Grantorre3.jpg');
    filter: brightness(0.7);
}

.carousel-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#subtitle2{
    font-size: 1.3rem;
    font-weight: 600;
    color:lightgreen;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #bfa886;
    transform: translateY(-3px);
}

/* Seções Padrão */
section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Seção de Benefícios */
.benefits-section {
    background-color: var(--accent-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

/* Seção do Carrossel Secundário - Empreendimento */
.photo-carousel-section {
    background-color: var(--white);
    padding: 80px 5% 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    position: relative; /* Para posicionar as setas */
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
}

.main-photo-container {
    width: 100%;
    margin-bottom: 20px;
    /* NOVO: Fixa a proporção do container. Tente 16/9, que é comum para fotos de paisagem. */
    aspect-ratio: 16 / 9; 
    overflow: hidden; /* Importante para o object-fit */
}

#main-photo {
    width: 100%;
    /* Removido height: auto; */
    height: 100%; /* NOVO: Faz a imagem preencher a altura fixa do container */
    object-fit: cover; /* NOVO: Garante que a imagem cubra a área sem distorcer (cortando o que for preciso) */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.5s ease-in-out;
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
}

.thumbnail {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s, border 0.3s;
    border: 3px solid transparent;
}

.thumbnail:hover, .thumbnail.active-thumbnail {
    opacity: 1;
    transform: translateY(-3px);
    border: 3px solid var(--secondary-color);
}

/* Botões de Navegação do Carrossel de Empreendimento */
.carousel-nav {
    position: absolute;
    top: 50%; /* Centraliza verticalmente em relação ao main-photo-container */
    transform: translateY(-100%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-container .prev-button {
    left: 10px;
}

.carousel-container .next-button {
    right: 10px;
}


/* Seção de Localização */
.location-section {
    background-color: var(--accent-color);
}

.location-content p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Seção de Plantas */
.plants-section {
    background-color: var(--white);
    position: relative;
}

.plants-carousel-container {
    position: relative;
    max-width: 1200px; 
    margin: 0 auto 2rem;
    /* MANTÉM O OVERFLOW HIDDEN NO CONTAINER PAI PARA CORTAR A VISUALIZAÇÃO */
    overflow-x: hidden; 
    overflow-y: hidden; 
}

.plants-grid {
    display: flex;
    flex-wrap: nowrap; /* Impede quebras de linha */
    justify-content: flex-start;
    gap: 30px;
    padding: 0 5px; 
    
    /* AJUSTE CHAVE: FORÇA O COMPORTAMENTO DE ROLAGEM NO ELEMENTO QUE O JS TENTA ROLAR */
    overflow-x: scroll; /* Adicionado para habilitar a rolagem programática */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    
    scroll-behavior: smooth; 
    margin-bottom: 2rem;
}

/* Esconde a barra de rolagem (Chrome, Safari e Opera) */
.plants-grid::-webkit-scrollbar {
    display: none;
}

.plant-item {
    flex: 0 0 280px; 
    background: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer; 
}

.plant-item:hover {
    transform: scale(1.05);
}

.plant-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.plant-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.plant-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Botões de Navegação do Carrossel de Plantas */
.plants-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(12, 28, 56, 0.7); 
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plants-nav:hover {
    background-color: var(--primary-color);
}

.plants-carousel-container .prev-button.plants-nav {
    left: 5px;
}

.plants-carousel-container .next-button.plants-nav {
    right: 5px;
}


/* LIGHTBOX (MODAL) */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-content, .lightbox-caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Seção de Credibilidade */
.credibility-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 5%;
}

/* Garante que o texto dentro da seção de credibilidade seja branco */
#credibility-text {
    color: var(--white);
}

.credibility-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.brand-logo img {
    max-height: 100px;
    width: auto;
}

/* Seção Final CTA */
.final-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 5%;
}

.final-cta-section .section-title, .final-cta-section p {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.large-cta {
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 5%;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 40px;
        left: 20px;
        right: auto;
        width: 60px;
        height: 60px;
    }

    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }
    .thumbnail {
        width: 100px;
        height: 70px;
    }

    /* Otimização carrossel de plantas para mobile */
    .plants-grid {
        justify-content: flex-start;
        /* Habilita rolagem com o dedo no mobile */
        overflow-x: scroll; 
    }
    .plants-carousel-container {
        /* Remove limites que possam esconder o conteúdo vertical */
        overflow: visible; 
    }

    .plants-grid {
        /* Muda a direção do Flexbox para coluna (vertical) */
        flex-direction: column;
        align-items: center; /* Centraliza os cards */
        
        /* Remove a rolagem horizontal */
        overflow-x: visible; 
        
        /* Garante que os itens possam quebrar linha se necessário */
        flex-wrap: wrap; 
        
        /* Ajusta o espaçamento */
        padding-bottom: 20px;
    }

    .plant-item {
        /* Reseta a largura fixa anterior (flex: 0 0 280px) */
        flex: none;
        
        /* Define uma largura confortável para o card no celular */
        width: 100%;
        max-width: 320px; 
        
        /* Adiciona espaço entre um card e outro (verticalmente) */
        margin-bottom: 30px; 
    }
    .plant-item:hover {
        transform: none;
    }
    .plants-nav {
        /* Esconde as setas no mobile, deixando a rolagem manual */
        display: none; 
    }
    .carousel-nav {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}

/* Animações de Scroll */
.benefit-item, .plant-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.benefit-item.visible, .plant-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Os estilos de hover permanecem os mesmos */
.benefit-item:hover {
    transform: translateY(-10px);
}

.plant-item:hover {
    transform: scale(1.05);
}