/* --- Reset e Fontes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #F8F9FA;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1A1A1A;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul { list-style: none; }

/* --- Paleta de Cores Premium --- */
:root {
    --red-primary: #C0392B; /* Vermelho escuro e sofisticado */
    --red-hover: #E74C3C;
    --dark-bg: #1A1A1A;
    --text-light: #FFFFFF;
    --grey-bg: #F8F9FA;
    --grey-border: #E0E0E0;
}

.highlight { color: var(--red-primary); }
.relative { position: relative; }

/* --- Header --- */
header {
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--red-primary);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-text span {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1A1A1A;
    text-transform: uppercase;
}

.main-nav a:hover { color: var(--red-primary); }

.cta-header {
    background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
    color: var(--text-light);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1A1A1A;
}

/* --- Hero com Search Bar --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #170303 50%, #4d0000 100%);
    padding: 200px 0 150px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,0,0,0.05) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Barra de Busca Glassmorphism */
.search-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    text-align: left;
}

.input-group label {
    display: block;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.btn-search {
    background: var(--red-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    height: 45px;
}

.btn-search:hover { background: var(--red-hover); }

/* --- Seções Globais --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    text-transform: uppercase;
}

.section-title span { color: var(--red-primary); }

.title-line {
    width: 60px;
    height: 4px;
    background: var(--red-primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.title-line.left { margin: 10px 0 20px 0; }

/* --- Destaques --- */
.properties { padding: 80px 0; }

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid var(--grey-border);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--red-primary);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px; left: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.badge.red { background-color: var(--red-primary); }
.badge.dark { background-color: var(--dark-bg); }

.card-body { padding: 25px; }

.card-body h3 { font-size: 1.3rem; margin-bottom: 5px; }

.location { color: #888; font-size: 0.85rem; margin-bottom: 15px; }
.location i { color: var(--red-primary); margin-right: 5px; }

.features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.features i { color: var(--dark-bg); margin-right: 5px; }

.price {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--red-primary);
    margin-bottom: 20px;
}
.price small { font-size: 0.8rem; color: #999; font-weight: 400; }

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-card.primary {
    background: var(--red-primary);
    color: white;
}
.btn-card.primary:hover { background: var(--dark-bg); }

/* --- Serviços e Financiamento --- */
.services {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.services-content h2 { color: white; font-size: 2.2rem; margin-bottom: 20px; }
.services-content p { color: #BBB; max-width: 700px; margin: 0 auto 40px auto; }

.bank-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bank {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.bank i { color: var(--red-hover); margin-right: 8px; }

/* --- Sobre & Contato --- */
.about { padding: 100px 0; background: white; }

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.experience-badge {
    background: linear-gradient(135deg, var(--red-primary), var(--dark-bg));
    color: white;
    height: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 30px rgba(192, 57, 43, 0.2);
}

.experience-badge .years { font-size: 5rem; font-weight: 900; line-height: 1; }
.experience-badge .text { font-size: 1.5rem; font-family: 'Montserrat'; font-weight: 700; text-transform: uppercase; }

.about-content p { margin-bottom: 20px; font-size: 1.1rem; color: #555; }

.contact-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.agent-card {
    display: flex;
    align-items: center;
    background: var(--grey-bg);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 300px;
}

.agent-card i { font-size: 2rem; color: var(--dark-bg); margin-right: 15px; }
.agent-card h4 { font-size: 1rem; margin-bottom: 3px; }
.agent-card p { margin: 0; font-weight: 700; color: var(--red-primary); font-size: 1.1rem;}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* --- Footer --- */
footer { background: var(--dark-bg); color: #CCC; padding-top: 60px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h2 { color: white; margin-bottom: 5px; }
.footer-info .creci { color: var(--red-primary); font-weight: 700; margin-bottom: 15px; }

.footer-contact h3, .footer-action h3 { color: white; margin-bottom: 20px; }
.footer-contact p { line-height: 1.8; }
.footer-contact i { color: var(--red-primary); margin-right: 10px; }

.btn-footer-wa {
    display: block;
    background: #25D366;
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 10px;
}
.btn-footer-wa:hover { background: #1EBE5D; color: white; }

.footer-bottom {
    background: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Botão Flutuante do WhatsApp --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-wa:hover { transform: scale(1.1); color: white; }


/* --- Estilo para o seu link no rodapé --- */
.footer-bottom a {
    color: #CCCCCC; /* Deixa a cor igual ao resto do texto do rodapé */
    text-decoration: none; /* Tira a linha de baixo */
    font-weight: 700; /* Deixa a fonte um pouco mais gordinha para destacar */
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: var(--red-primary); /* Fica vermelho (cor do site) ao passar o mouse */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsivo --- */
@media (max-width: 900px) {
    .search-form { flex-direction: column; align-items: stretch; }
    .btn-search { margin-top: 10px; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .experience-badge { height: 200px; }
    .contact-cards { flex-direction: column; }
}

@media (max-width: 768px) {
    .main-nav, .cta-header { display: none; }
    .menu-toggle { display: block; }
    .hero-content h2 { font-size: 2.5rem; }
    .hero { padding: 150px 0 100px 0; }
}

/* --- Lightbox / Modal --- */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--red-primary); }
.lightbox-prev, .lightbox-next { background: rgba(0,0,0,0.5); border: none; color: white; font-size: 2rem; padding: 15px; cursor: pointer; border-radius: 50%; position: absolute; transition: 0.3s; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--red-primary); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 10px; top: -40px; }
}

/* --- Paginação --- */
.pagination-controls { display: flex; justify-content: center; gap: 10px; margin-top: 50px; width: 100%; }
.page-btn { padding: 10px 18px; background: white; border: 1px solid var(--grey-border); border-radius: 6px; cursor: pointer; font-weight: 700; transition: 0.3s; }
.page-btn:hover:not(:disabled) { background: #EEE; }
.page-btn.active { background: var(--red-primary); color: white; border-color: var(--red-primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }