/* Reset e Variáveis */
:root {
    --primary-color: #000000;
    --secondary-color: #D4AF37;
    --whatsapp-color: #25D366;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 50px; width: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary-color); }
.logo { font-size: 24px; font-weight: 700; color: var(--primary-color); }
.logo span { color: var(--secondary-color); }
.navbar ul { display: flex; list-style: none; gap: 30px; }
.navbar a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: var(--transition); }
.navbar a:hover { color: var(--secondary-color); }

/* Hero Section */
.hero { 
    position: relative;
    background: url('banner.png') center/cover no-repeat; 
    height: 70vh; 
    min-height: 500px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    color: var(--secondary-color);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}
.hero-mg-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    margin-bottom: 20px;
}
.hero-content h2 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 5px;
    font-family: 'Times New Roman', serif;
    color: var(--secondary-color);
}
.subtitle {
    font-size: 18px;
    letter-spacing: 7px;
    margin-bottom: 20px;
}
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}
.hero-divider::before, .hero-divider::after {
    content: '';
    height: 1px;
    background: var(--secondary-color);
    flex-grow: 1;
    max-width: 150px;
}
.slogan {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 50px;
    color: #fff;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--secondary-color);
}
.hero-feat i { font-size: 28px; }

@media (max-width: 768px) {
    .hero-content h2 { font-size: 36px; }
    .subtitle { font-size: 14px; letter-spacing: 4px; }
    .hero-features { gap: 20px; }
}

/* Botões Globais */
.btn-primary { display: inline-block; padding: 15px 30px; background-color: var(--secondary-color); color: var(--white); text-decoration: none; font-weight: 600; border-radius: 5px; transition: var(--transition); border: none; cursor: pointer; text-align: center; }
.btn-primary:hover { background-color: #B5952F; transform: translateY(-2px); }

/* Imóveis Section */
.properties-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; color: var(--primary-color); margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 18px; }

/* Filtro de Categorias */
.categories-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.btn-category { padding: 10px 20px; background-color: var(--white); color: var(--text-dark); border: 2px solid #E2E8F0; border-radius: 30px; font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 14px; }
.btn-category:hover { border-color: var(--secondary-color); color: var(--secondary-color); }
.btn-category.active { background-color: var(--secondary-color); color: var(--white); border-color: var(--secondary-color); }

.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

/* Card do Imóvel */
.property-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition); display: flex; flex-direction: column; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-image { height: 250px; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s;}
.property-card:hover .card-image img { transform: scale(1.05); }

.ver-detalhes-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; opacity: 0; transition: 0.3s; }
.card-image:hover .ver-detalhes-overlay { opacity: 1; }

.tag-tipo { position: absolute; top: 15px; left: 15px; background-color: var(--primary-color); color: var(--white); padding: 5px 12px; border-radius: 4px; font-size: 14px; font-weight: 600; z-index: 2;}
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 20px; margin-bottom: 10px; color: var(--text-dark); }
.card-price { font-size: 24px; font-weight: 700; color: var(--secondary-color); margin-bottom: 15px; }
.card-features { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #E2E8F0; color: var(--text-light); font-size: 14px; }
.feature i { margin-right: 5px; color: var(--primary-color); }

/* Footer */
footer { background-color: var(--primary-color); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-info, .footer-contact { flex: 1; min-width: 250px; }
footer h3 { color: var(--secondary-color); margin-bottom: 20px; font-size: 20px; }
footer p { margin-bottom: 10px; color: #CBD5E0; line-height: 1.6; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #A0AEC0; font-size: 14px; }

/* MODAL CLIENTE (DETALHES) */
.modal-cliente { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-cliente-content { background: white; width: 100%; max-width: 1000px; border-radius: 12px; position: relative; max-height: 90vh; overflow-y: auto; }
.fechar-cliente { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #666; z-index: 10;}
.fechar-cliente:hover { color: #000; }

.detalhes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; }

/* Carrossel */
.carrossel-container { position: relative; width: 100%; }
.carrossel { position: relative; width: 100%; height: 400px; border-radius: 8px; overflow: hidden; background: #eee; }
.carrossel img { width: 100%; height: 100%; object-fit: contain; }
.btn-carrossel { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: 0.3s;}
.btn-carrossel:hover { background: rgba(0,0,0,0.8); }
.btn-carrossel.left { left: 10px; }
.btn-carrossel.right { right: 10px; }
.carrossel-contador { text-align: center; margin-top: 10px; font-weight: 600; color: #666; }

/* Info Detalhes */
.info-container h2 { font-size: 28px; color: var(--primary-color); margin-bottom: 5px; }
.localizacao { color: #666; margin-bottom: 15px; }
.preco { font-size: 32px; color: var(--secondary-color); margin-bottom: 20px; }
.features-detalhadas { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.feat-box { background: #f8fafc; padding: 15px; border-radius: 8px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.feat-box i { color: var(--primary-color); font-size: 18px;}
.descricao-box { margin-bottom: 30px; line-height: 1.6; color: #444; }
.descricao-box h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 18px; border-bottom: 2px solid var(--secondary-color); padding-bottom: 5px; display: inline-block;}

.btn-whatsapp-grande { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; background-color: var(--whatsapp-color); color: var(--white); text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 18px; transition: var(--transition); }
.btn-whatsapp-grande:hover { background-color: #1EBE53; transform: scale(1.02); }

/* Responsividade */
@media (max-width: 768px) {
    .navbar ul { display: none; }
    .detalhes-grid { grid-template-columns: 1fr; }
    .carrossel { height: 250px; }
}
