/* ===== VARIÁVEIS E ESTILOS GLOBAIS ===== */
:root {
    --primary-color: #25D366;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --beach-color: #1abc9c;
    --ocean-color: #2980b9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.custom-navbar {
    background-color: var(--secondary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: var(--beach-color) !important;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--beach-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('./img/capa.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* ===== BOTÕES ===== */
.beach-btn {
    background-color: var(--beach-color);
    border-color: var(--beach-color);
    color: white;
    transition: all 0.3s ease;
}

.beach-btn:hover {
    background-color: #16a085;
    border-color: #16a085;
    color: white;
    transform: translateY(-2px);
}

.btn-ver-empreendimento {
    background-color: var(--beach-color);
    border-color: var(--beach-color);
    color: white;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-ver-empreendimento:hover {
    background-color: #16a085;
    border-color: #16a085;
    color: white;
}

/* ===== CARDS ===== */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.empreendimento-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.empreendimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== CITY CARDS ===== */
.city-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.city-card:hover img {
    transform: scale(1.1);
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.city-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    margin: 0;
    text-align: center;
}

/* ===== SEÇÃO CORRETORA ===== */
.corretora-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.corretora-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.corretora-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.corretora-stat {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.corretora-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.corretora-stat i {
    font-size: 2rem;
    color: var(--beach-color);
    margin-bottom: 10px;
}

/* ===== MÉTODO DE TRABALHO ===== */
.method-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.method-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-left: 5px solid var(--beach-color);
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: var(--beach-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.partnership-logos {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo-item {
    text-align: center;
    padding: 1rem;
}

.logo-item i {
    font-size: 2.5rem;
    color: var(--beach-color);
    margin-bottom: 1rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: var(--beach-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== BOTÃO WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #128C7E;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

@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);
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ===== TEMAS ===== */
.beach-theme {
    background-color: var(--beach-color);
    color: white;
}

.ocean-theme {
    background-color: var(--ocean-color);
    color: white;
}

.beach-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231abc9c' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ===== FORMULÁRIOS ===== */
.form-control:focus {
    border-color: var(--beach-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
}

/* ===== RODAPÉ ===== */
footer {
    background-color: var(--secondary-color);
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0;
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .city-card {
        height: 180px;
    }
    
    .corretora-stats {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .method-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }
}

/* Celulares */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0;
        min-height: 40vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .city-card {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .corretora-img {
        width: 150px;
        height: 150px;
    }
    
    .method-card {
        padding: 1.5rem;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .partnership-logos {
        padding: 1.5rem;
    }
    
    .logo-item i {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Correção para cards de empreendimentos em mobile */
    .empreendimento-card .card-body {
        padding: 1rem;
    }
    
    .empreendimento-card .card-title {
        font-size: 1.1rem;
    }
    
    .empreendimento-card .h5 {
        font-size: 1rem;
    }
    
    /* Melhor espaçamento entre seções */
    section {
        padding: 3rem 0 !important;
    }
}

/* Celulares pequenos */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .col, [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .method-card {
        padding: 1rem;
    }
    
    .corretora-stat {
        padding: 10px;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    /* Botões em coluna no mobile */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section .btn + .btn {
        margin-left: 0;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 70vh;
    }
}
/* ===== CORREÇÕES ESPECÍFICAS PARA MOBILE ===== */

/* Container e Grid - CORREÇÕES CRÍTICAS */
@media (max-width: 767.98px) {
    /* Garante que o container ocupe 100% */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Corrige o sistema de grid do Bootstrap */
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
        display: block;
    }
    
    .row.g-4 {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    /* Force todas as colunas para 100% em mobile */
    [class*="col-"] {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Especificamente para as colunas dos empreendimentos */
    .col-md-6, 
    .col-lg-3, 
    .col-md-4, 
    .col-md-8, 
    .col-md-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* NAVBAR MOBILE */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(44, 62, 80, 0.95) !important;
        padding: 20px !important;
        margin-top: 10px;
        border-radius: 10px;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0 !important;
        display: block;
    }
    
    .custom-navbar .d-flex {
        justify-content: center;
        margin-top: 15px;
    }
}

/* HERO SECTION MOBILE */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0 60px 0 !important;
        min-height: 50vh !important;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .hero-section .me-2 {
        margin-right: 0 !important;
    }
}

/* EMPREENDIMENTOS MOBILE */
@media (max-width: 767.98px) {
    #empreendimentos .row {
        display: flex;
        flex-direction: column;
    }
    
    .empreendimento-card {
        margin-bottom: 25px;
        width: 100%;
    }
    
    .card.h-100 {
        height: auto !important;
    }
    
    /* Garante que os cards não fiquem lado a lado */
    .col-md-6.col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* CIDADES MOBILE */
@media (max-width: 767.98px) {
    .city-card {
        height: 150px;
        margin-bottom: 20px;
    }
    
    .city-card img {
        height: 150px;
    }
    
    /* Force 1 coluna por linha */
    .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* CORRETORA SECTION MOBILE */
@media (max-width: 767.98px) {
    .corretora-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .corretora-stats {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .corretora-stat {
        margin-bottom: 15px;
    }
    
    .corretora-img {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 20px auto;
    }
}

/* MÉTODO DE TRABALHO MOBILE */
@media (max-width: 767.98px) {
    .method-card {
        margin-bottom: 25px;
        padding: 1.5rem;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    /* Force 1 coluna */
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* PARTNERSHIP LOGOS MOBILE */
@media (max-width: 767.98px) {
    .partnership-logos {
        padding: 1.5rem;
    }
    
    .logo-item {
        margin-bottom: 20px;
    }
    
    /* 2 colunas em mobile pequeno */
    .col-md-3.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* CONTATO MOBILE */
@media (max-width: 767.98px) {
    #contato .col-md-8 {
        padding: 0 15px;
    }
    
    .beach-theme .form-control {
        margin-bottom: 15px;
    }
}

/* RODAPÉ MOBILE */
@media (max-width: 767.98px) {
    footer .col-md-4 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    footer .d-flex {
        justify-content: center;
    }
}

/* WHATSAPP BUTTON MOBILE */
@media (max-width: 767.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* CORREÇÕES ESPECÍFICAS PARA BOTÕES EM MOBILE */
@media (max-width: 767.98px) {
    .btn {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .beach-btn, .ocean-theme {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* GARANTIR QUE IMAGENS SEJAM RESPONSIVAS */
img {
    max-width: 100%;
    height: auto;
}

/* CORREÇÃO PARA EVITAR HORIZONTAL SCROLL */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ESPAÇAMENTO ENTRE SEÇÕES EM MOBILE */
@media (max-width: 767.98px) {
    section {
        padding: 3rem 0 !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* TEXTOS EM MOBILE */
@media (max-width: 767.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

/* CORREÇÃO FINAL - GARANTIR QUE TUDO FIQUE EM UMA COLUNA */
@media (max-width: 767.98px) {
    .row {
        flex-direction: column;
    }
    
    [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}