/* Reset de margens e definição de box-sizing */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #ffffff;
}

header { 
    background-color: #0a2540; 
    color: #ffffff; 
    padding: 2rem 1rem; 
    text-align: center; 
}

/* Regra técnica para centralizar e dimensionar o logotipo */
.logo-header {
    max-width: 200px; /* Define a largura máxima do logo */
    height: auto;
    margin: 0 auto 1rem auto; /* Centraliza horizontalmente e adiciona margem inferior */
    display: block;
}

h1 { font-size: 2rem; letter-spacing: 1px; }

main { 
    max-width: 1100px; 
    margin: 3rem auto; 
    padding: 0 1.5rem; 
    text-align: center; 
}

h2 { color: #0a2540; margin-bottom: 1rem; }

footer { 
    background-color: #f4f7fa; 
    padding: 2rem; 
    text-align: center; 
    font-size: 0.9rem; 
    border-top: 1px solid #e6ebf1;
    margin-top: 4rem;
}

/* -- Estilos do Catálogo Premium -- */
#catalogo {
    margin: 4rem 0;
}

.section-title {
    font-size: 2.2rem;
    color: #0a2540;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
}

.grid-imoveis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.card-imovel {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-imovel:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-imovel:hover .img-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.card-content h4 {
    font-size: 1.25rem;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

.preco {
    font-weight: 700;
    color: #2e8b57;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.desc {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.btn-contato {
    display: inline-block;
    background-color: #0a2540;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-contato:hover {
    background-color: #153b61;
    transform: translateY(-2px);
    color: #fff;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    main { margin: 1.5rem auto; }
}