/* --- 1. VARIÁVEIS E BASE --- */
: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;
    background-color: var(--white);
    overflow-x: hidden;
}

/* 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;
}

/* --- 2. FORMATAÇÃO GLOBAL DE SEÇÕES (A Correção do Bug) --- */
section {
    padding: 80px 5%;
    text-align: center; /* Isso garante que tudo fique centralizado novamente */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

/* --- 3. HERO SECTION (Para Raiz e Empreendimentos) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.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;
}

.carousel-slide.active {
    opacity: 1;
}

/* Estilo Exclusivo da Capa da Página Raiz */
.root-hero {
    background-image: url('https://placehold.co/1920x1080/0c1c38/a38c64?text=Foto+Capa+Salto/Itu\n(1920x1080)'); 
    background-size: cover; background-position: center; background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 28, 56, 0.85); z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; padding: 20px; max-width: 800px;
}

.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);
}

.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); }

/* --- 4. ELEMENTOS DA PÁGINA RAIZ (Filtros e Cards) --- */
.quick-filters {
    display: flex; gap: 15px; justify-content: center; margin-top: 30px; flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent; border: 2px solid var(--secondary-color);
    color: var(--white); padding: 10px 25px; border-radius: 30px;
    text-decoration: none; font-weight: 600; transition: all 0.3s;
}

.filter-btn:hover { background-color: var(--secondary-color); color: var(--primary-color); }

.portfolio-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
    max-width: 1200px; margin: 0 auto;
}

.property-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); width: 100%; max-width: 350px;
    text-align: left; transition: transform 0.3s ease; display: flex; flex-direction: column;
}

.property-card:hover { transform: translateY(-10px); }

.card-image-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.badge {
    position: absolute; top: 15px; left: 15px; padding: 5px 12px;
    border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: var(--white); z-index: 2;
}
.badge-alert { background-color: #d93838; }
.badge-mcmv { background-color: #2e8b57; }
.badge-premium { background-color: var(--secondary-color); }

.card-content { padding: 25px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-family: var(--font-heading); color: var(--primary-color); margin: 0 0 10px 0; font-size: 1.4rem; }
.card-content p { font-size: 0.9rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

.financial-info { background-color: var(--accent-color); padding: 15px; border-radius: 8px; font-size: 0.9rem; color: var(--text-color); margin-bottom: 20px; }
.card-link-btn { display: block; text-align: center; background-color: var(--primary-color); color: var(--white); padding: 12px; text-decoration: none; border-radius: 6px; font-weight: 600; transition: 0.3s; }
.card-link-btn:hover { background-color: var(--secondary-color); }

/* --- 5. ELEMENTOS DE PÁGINAS DE EMPREENDIMENTO --- */
/* 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: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(163, 140, 100, 0.1), transparent);
    transition: left 0.5s ease;
}
.benefit-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}
.benefit-item:hover::before {
    left: 100%;
}
.benefit-icon { 
    width: 80px; 
    height: 80px; 
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}
.benefit-item h3 { font-size: 1.4rem; color: var(--primary-color); margin: 0; }

/* Galeria de Fotos */
.photo-carousel-section { background-color: var(--white); padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.carousel-container { position: relative; width: 100%; max-width: 900px; margin-bottom: 20px; }
.main-photo-container { width: 100%; margin-bottom: 20px; aspect-ratio: 16 / 9; overflow: hidden; }
#main-photo { width: 100%; height: 100%; object-fit: cover; 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: 0.3s; border: 3px solid transparent; }
.thumbnail:hover, .thumbnail.active-thumbnail { opacity: 1; transform: translateY(-3px); border: 3px solid var(--secondary-color); }
.carousel-nav { position: absolute; top: 50%; 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; 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; }

/* Localização */
.location-section { background-color: var(--accent-color); }
.location-content p { max-width: 800px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Plantas */
.plants-section { background-color: var(--white); position: relative; }
.plants-carousel-container { position: relative; max-width: 1200px; margin: 0 auto 2rem; overflow-x: hidden; overflow-y: hidden; }
.plants-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 30px; padding: 0 5px; overflow-x: scroll; -ms-overflow-style: none; scrollbar-width: none; scroll-behavior: smooth; margin-bottom: 2rem; }
.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; padding: 0 15px;}
.plant-image { width: 100%; height: auto; display: block; }

/* 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: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; width: 90%; max-width: 900px; animation: zoom 0.6s; }
.lightbox-caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; height: 150px; animation: zoom 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; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: #bbb; text-decoration: none; }

/* CTA Final e Manifesto */
.final-cta-section { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white); }
.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; }
.manifesto-section { background-color: var(--primary-color); color: var(--white); padding: 80px 5%; text-align: center; }
.manifesto-title { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 30px; color: var(--secondary-color); }
.manifesto-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* --- 6. RODAPÉ E ANIMAÇÕES GERAIS --- */
footer { background-color: #061022; color: var(--white); text-align: center; padding: 20px 5%; font-size: 0.9rem; }
.fade-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-element.visible { opacity: 1; transform: translateY(0); }

/* --- 7. RESPONSIVIDADE MOBILE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .whatsapp-float { bottom: 20px; left: 20px; right: auto; }
    .thumbnail { width: 100px; height: 70px; }
    .plants-grid { overflow-x: scroll; flex-direction: column; align-items: center; overflow-x: visible; flex-wrap: wrap; padding-bottom: 20px; }
    .plants-carousel-container { overflow: visible; }
    .plant-item { flex: none; width: 100%; max-width: 320px; margin-bottom: 30px; }
    .plant-item:hover { transform: none; }
}