/* Importando uma fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Variáveis de Cor */
:root {
    --primary-purple: #6a0dad;
    --dark-purple: #4b0082;
    --light-purple: #e9d5ff;
    --text-color: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    padding-top: 56px; /* Altura da navbar */
}

/* --- Barra de Navegação --- */
.navbar {
    background-color: var(--primary-purple);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

/* --- Seção Home --- */
#home {
    height: 90vh;
    min-height: 500px;
    /*background: linear-gradient(rgba(40, 0, 70, 0.6), rgba(40, 0, 70, 0.6)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDEyfHxjaXR5c2NhcGV8ZW58MHx8fHwxNjgxMzQ1Mzkz&ixlib=rb-4.0.3&q=80&w=1920') no-repeat center center; */
    background: linear-gradient(rgba(40, 0, 70, 0.6), rgba(40, 0, 70, 0.6)), url('https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?q=80&w=1073&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center;
    background-size: cover;
}

#home h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ---  Geral --- */
section {
    padding: 80px 0;
}

h2 {
    color: var(--dark-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}


/* --- Seção Imóveis --- */
#imoveis {
    background-color: #f8f9fa;
}

#imoveis .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

#imoveis .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

#imoveis .card-title {
    color: var(--primary-purple);
    font-weight: 600;
}

#imoveis .card-body i {
    color: var(--primary-purple);
    margin-right: 8px;
}

.card .card-img-top {
  width: 100%;
  height: 220px; /* <-- Defina uma altura fixa para todas as imagens */
  object-fit: cover; /* <-- A propriedade chave para evitar distorção */
}

#imoveis .btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#imoveis .btn-primary:hover {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
}


/* --- Seção Sobre --- */
.profile-pic {
    width: 250px;
    height: 250px;
    object-fit: cover;
    text-align: center;
    border: 5px solid var(--light-purple);
}

/* --- Seção Contato --- */
#contato {
    background-color: var(--dark-purple);
}

#contato h2, #contato .lead {
    color: #fff;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-sm {
    margin: 10px;
}

.btn-lg:hover {
    transform: scale(1.05);
}

/* btn instagram */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: white;
}

/* --- Rodapé --- */
footer {
    background-color: #212529 !important;
}


/* Carrossel */
.carousel-item img {
    height: 500px; 
    object-fit: cover; 
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }
}

/* icone carrossel */
.icon {
    color: var(--primary-purple);
}

.descricao-carrosel {
    font-size: 0.8rem;
    font-weight: 600;
    
}

/* Grupo de botões de filtros */
#filtro-botoes{
    display:flex; 
    flex-wrap:wrap;
    gap:0.5rem;
}

@media (max-width: 576px) {
    
    #filtro-botoes .btn{
        flex: 0 0 48%; 
        max-width:48%;
        text-align:center;
    }
    
    #contato .btn{ white-space:nowrap; }
}