/* ===== IMOVEIS CS - Paleta Laranja ===== */
:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    --orange-950: #431407;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-800: #262626;
    --gray-900: #171717;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-full {
    max-width: 100%;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--orange-600);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.95;
}

.filter-group select {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
    background: var(--white);
    color: var(--gray-900);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--orange-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-700);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Empreendimentos - scroll horizontal por região (estilo Cury) */
.empreendimentos {
    padding: 80px 0;
    background: var(--gray-50);
}

.destaque-section {
    padding-bottom: 40px;
}

.regiao-section {
    padding-top: 0;
}

.empreendimentos h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding: 0 24px;
    text-align: center;
}

/* Barra de tabs - estilo Cury */
.region-tabs {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 0 24px 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.region-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border: none;
    background: var(--white);
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--gray-200);
    font-family: inherit;
}

.region-tab:last-child {
    border-right: none;
}

.region-tab:hover {
    background: var(--gray-50);
}

.region-tab.active {
    background: var(--orange-600);
    color: var(--white);
    border-right-color: var(--orange-600);
}

.region-tab.active + .region-tab {
    border-left-color: transparent;
}

.region-tab-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Scroll horizontal - arrastar */
#empreendimentos-scroll.cards-scroll {
    margin-top: 0;
}

.cards-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 24px 32px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.cards-scroll::-webkit-scrollbar {
    height: 8px;
}

.cards-scroll::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.cards-scroll::-webkit-scrollbar-thumb {
    background: var(--orange-300);
    border-radius: 4px;
}

.cards-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--orange-500);
}

.empreendimento-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.empreendimento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--orange-200);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge da zona - sobre a imagem, canto inferior esquerdo (estilo Cury) */
.card-badge-zona {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 8px 14px;
    background: rgba(147, 197, 253, 0.95);
    color: #1e40af;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 8px 0 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.card-body {
    padding: 24px;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-badge.lancamento {
    background: var(--orange-100);
    color: var(--orange-700);
}

.card-badge.obras {
    background: var(--orange-200);
    color: var(--orange-800);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.card-location {
    font-size: 0.875rem;
    color: var(--orange-600);
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.card-amenities span {
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--gray-800);
}

.card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--orange-500);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.card-btn:hover {
    background: var(--orange-600);
}

/* Destaques */
.destaques {
    padding: 80px 0;
    background: var(--white);
}

.destaques h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.destaques-desc {
    color: var(--gray-800);
    margin-bottom: 12px;
}

.destaques-mcmv {
    color: var(--gray-800);
    margin-bottom: 24px;
}

.link-saiba {
    display: inline-block;
    color: var(--orange-600);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.link-saiba:hover {
    color: var(--orange-700);
}

.destaques-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.destaque-card {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--orange-100) 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--orange-200);
    transition: transform 0.2s;
}

.destaque-card:hover {
    transform: translateY(-4px);
}

.destaque-valor {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-700);
    margin-bottom: 8px;
}

.destaque-label {
    font-size: 0.9rem;
    color: var(--gray-800);
}

/* Simulador */
.simulador {
    padding: 80px 0;
    background: var(--gray-50);
}

.simulador h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.simulador-sub {
    color: var(--gray-800);
    margin-bottom: 40px;
}

.simulador-form {
    max-width: 600px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--orange-200);
    border-radius: 4px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--orange-500);
    border-radius: 50%;
    cursor: pointer;
}

.renda-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-600);
    margin-top: 8px;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--orange-500);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.btn-whatsapp-lg {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #25D366;
    color: white !important;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp-lg:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-200);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.logo-footer {
    height: 32px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-200);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--gray-200);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-200);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-800);
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.simulacao-resultados {
    background: var(--orange-50);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.resultado-item:last-child {
    margin-bottom: 0;
}

.resultado-label {
    color: var(--gray-800);
}

.resultado-valor {
    font-weight: 700;
    color: var(--orange-700);
}

.form-contato {
    margin-bottom: 20px;
}

.form-contato-text {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.form-contato input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.form-contato input:focus {
    outline: none;
    border-color: var(--orange-500);
}

.form-contato button {
    width: 100%;
    margin-top: 8px;
}

.link-voltar {
    display: block;
    text-align: center;
    color: var(--orange-600);
    text-decoration: none;
    font-weight: 500;
}

.modal-sucesso {
    text-align: center;
    padding: 40px;
}

.modal-sucesso h3 {
    margin-bottom: 16px;
}

.modal-sucesso p {
    margin-bottom: 12px;
}

.tempo-resposta {
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 24px !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .region-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .region-tab {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 12px 10px;
        font-size: 0.8rem;
    }
    
    .region-tab-icon {
        font-size: 1.25rem;
    }
    
    .empreendimento-card {
        flex: 0 0 280px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group select {
        min-width: 100%;
    }
    
    .destaques-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
