/* --- 1. VARIÁVEIS E BASE (Restaurado) --- */
: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);
}

/* 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. HEADER DA PÁGINA RAIZ --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.root-hero {
    /* Template de 1920x1080 (Proporção 16:9) para a Capa */
    background-image: url('img/hero.png'); 
    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); /* Azul primário com transparência */
    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);
}

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

/* --- 3. VITRINE DE IMÓVEIS (CARDS) --- */
.portfolio-section {
    padding: 80px 5%;
    text-align: center;
}

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

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

.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 1.1rem;
}

.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%;
    /* Mantém a proporção exata de 4:3 (ex: 800x600px) */
    aspect-ratio: 4/3;
    height: 250px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Selos (Badges) */
.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;
}

.financial-info em {
    color: #d93838;
    font-weight: bold;
    font-style: normal;
}

.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: background-color 0.3s;
}

.card-link-btn:hover {
    background-color: var(--secondary-color);
}

/* --- 4. MANIFESTO (AUTORIDADE) --- */
.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;
}

/* --- 5. RODAPÉ E ANIMAÇÕES --- */
footer {
    background-color: #061022; /* Um tom um pouco mais escuro que o primary */
    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);
}

/* 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; /* Mudado para esquerda no mobile, como no original */
        right: auto;
    }
}