/*
Theme Name: Kavlen Costa Premium
Theme URI: https://kavlencosta.com/
Author: Seu Nome / Agência
Author URI: https://kavlencosta.com/
Description: Tema exclusivo e de alto padrão desenvolvido para a corretora Kavlen Costa.
Version: 1.0
Text Domain: kavlen-costa
*/

/* ==========================================================================
   KAVLEN COSTA - IMOBILIÁRIA PREMIUM (STYLE.CSS V2.0)
   ========================================================================== */

/* 1. VARIÁVEIS E CONFIGURAÇÕES GERAIS */
:root {
    --navy-blue: #001F3F;
    --navy-light: #003366;
    --gold: #C7A85A;
    --gold-hover: #b49545;
    --white: #ffffff;
    --gray-light: #f4f6f9;
    --gray-text: #666666;
    --shadow-soft: 0 10px 30px rgba(0, 31, 63, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 31, 63, 0.15);
    --radius: 12px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--gray-light);
    color: #333;
    overflow-x: hidden; /* Evita rolagem lateral no mobile */
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Montserrat', sans-serif;
}

a { text-decoration: none !important; }

/* 2. NAVBAR (MENU) */
.navbar {
    background-color: var(--navy-blue);
    padding: 15px 0;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand {
    color: var(--gold) !important;
    letter-spacing: 1px;
    font-weight: 800;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

.btn-wpp-nav {
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-wpp-nav:hover {
    background: var(--gold);
    color: white;
}

/* 3. HERO SECTION (CAPA) */
.hero {
    /* O WordPress lidará com a imagem de fundo via inline CSS na front-page, mas deixamos um fallback aqui */
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 31, 63, 0.7));
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    min-height: 85vh; 
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -76px; 
    padding-top: 100px;
}

.display-title {
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy-blue) !important; }

.hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. BUSCA FLUTUANTE (SEARCH BOX) */
.search-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-top: 5px solid var(--gold);
    margin-top: 40px;
}

.form-label-custom {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.form-select-custom, .form-control-custom {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--navy-blue);
    background-color: #fcfcfc;
}

.form-select-custom:focus, .form-control-custom:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 168, 90, 0.2);
}

.btn-gold {
    background-color: var(--gold);
    color: white;
    font-weight: 700;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(199, 168, 90, 0.4);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    color: white;
}

/* 5. CARDS DE IMÓVEIS */
.section-imoveis {
    padding: 80px 0;
}

.imovel-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%; 
}

.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    height: 250px; 
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.imovel-card:hover .card-img-top {
    transform: scale(1.05); 
}

/* Etiquetas sobre a foto */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.status-badge.vendido { background-color: #dc3545; }
.status-badge.alugado { background-color: #0dcaf0; }
.status-badge.disponivel { background-color: #198754; display: none; }

.price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

.text-shadow { text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Corpo do Card */
.card-body { padding: 20px; }

.card-title {
    font-weight: 700;
    color: var(--navy-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-specs {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.card-specs span i { color: var(--gold); margin-right: 5px; }

.card-footer {
    background: white;
    border: none;
    padding: 0 20px 20px;
}

.btn-outline-navy {
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-outline-navy:hover {
    background: var(--navy-blue);
    color: white;
}

/* 6. DETALHES DO IMÓVEL (Página Interna) */
.detail-carousel-img {
    height: 60vh; 
    object-fit: cover;
}

.property-header {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-top: -60px; 
    position: relative;
    z-index: 10;
}

.feature-box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: 0.3s;
}
.feature-box:hover { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.feature-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 5px;
    display: block;
}

.btn-whatsapp-big {
    background-color: #25D366;
    color: white;
    font-weight: 800;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    border: none;
    transition: 0.3s;
    width: 100%;
    display: block;
}

.btn-whatsapp-big:hover {
    background-color: #1ebe57;
    transform: scale(1.02);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* 7. FOOTER PREMIUM */
.footer-premium {
    background-color: var(--navy-blue);
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 35px; height: 35px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}
.social-icons a:hover { background: var(--gold); }

.copyright-bar {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.8rem;
}

/* ==========================================================================
   8. RESPONSIVIDADE (MOBILE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.2rem; }
    
    .hero { 
        min-height: auto; 
        padding-top: 120px; 
        padding-bottom: 60px;
        text-align: center;
    }
    .display-title { font-size: 2rem; }
    
    .search-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .card-img-wrapper { height: 200px; }
    
    .detail-carousel-img { height: 40vh; }
    
    .property-header {
        margin-top: 0; 
        border-radius: 0;
        box-shadow: none;
        padding: 25px 15px;
    }
    
    .feature-box { padding: 10px; }
    .feature-icon { font-size: 1.2rem; }
}