* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: #f4f6f8;
    color: #1f2933;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ─────────────── HEADER ─────────────── */
header {
    background: #0f172a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

nav a:hover,
nav a.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

/* ─────────────── BOTÕES GERAIS ─────────────── */
.btn,
.btn-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn {
    background: #fbbf24;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-card {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
    font-size: 0.95rem;
}

.btn-card:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ─────────────── HERO ─────────────── */
.hero {
    height: 70vh;
    min-height: 500px;
    background: url("../images/hero/hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ─────────────── SEÇÕES GERAIS ─────────────── */
.destaques,
.sobre,
.contatos,
.atendimento,
.imoveis {
    padding: 80px 0;
}

.destaques { padding-top: 60px; padding-bottom: 40px; }
.imoveis   { padding: 40px 0 100px; }

/* ─────────────── BUSCA ─────────────── */
.busca {
    background: white;
    padding: 30px 25px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    justify-content: center;
    align-items: center;
}

.busca select,
.busca input,
.busca button {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    min-width: 180px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.busca select:focus,
.busca input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.15);
}

/* ─────────────── GRID E CARDS (corrigido e melhorado) ─────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
    padding-bottom: 60px;          /* ← espaço extra para rolagem em qualquer zoom */
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    position: relative;
    cursor: pointer;
    display: flex;                 /* ← novo */
    flex-direction: column;        /* ← novo */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.14);
}

.card:hover img{
    transform: none;
    flex-shrink: 0;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;           /* ← principal correção */
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    flex-shrink: 0;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: #1f2933;
    line-height: 1.3;
}

.card-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.preco {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2563eb;
    margin: 8px 0 16px;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.badge.novo         { background: #16a34a; }
.badge.oportunidade { background: #dc2626; }

/* ─────────────── CARD ESPECIAL DO MODAL ─────────────── */
.modal-imovel-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin: 0 auto 32px;
    max-width: 580px;           /* ou 100% se quiser ocupar toda largura */
    transition: all 0.4s ease;
}

.modal-imovel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

.modal-imovel-card img {
    width: 100%;
    height: 320px;              /* maior que no grid, fica mais imponente no modal */
    object-fit: cover;
    transition: transform 0.7s ease;
}

.modal-imovel-card:hover img {
    transform: scale(1.05);
}

.modal-card-info {
    padding: 24px 28px;
}

.modal-card-info h3 {
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: #1f2933;
    line-height: 1.25;
}

.modal-card-info p {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 16px;
}

.modal-imovel-card .preco {
    font-size: 1.8rem;          /* maior destaque no modal */
    font-weight: 800;
    color: #2563eb;
    margin: 12px 0 20px;
}

/* Badge no modal (maior e mais visível) */
.modal-imovel-card .badge {
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ─────────────── MODAL ─────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;                 /* ← aumentado para zoom alto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.aberto {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 960px;
    max-height: 96vh;                  /* ← aumentado */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex;                     /* ← novo */
    flex-direction: column;            /* ← novo */
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.aberto .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal.fechando .modal-content {
    transform: translateY(30px);
    opacity: 0;
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 38px;
    color: white;
    background: rgba(0, 0, 0, 0.55);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Hover */
.close-modal:hover {
    background: #e11d48;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

.close-modal::before {
    content: "";
    display: block;
    line-height: 40px;
    text-align: center;
}

/* Carrossel no topo do modal */
.modal-gallery {
    position: relative;
    flex: 0 0 auto;                    /* ← não cresce */
    height: 380px;
    background: #111;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-gallery .prev,
.modal-gallery .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery .prev:hover,
.modal-gallery .next:hover {
    background: rgba(251,191,36,0.85);
    transform: translateY(-50%) scale(1.12);
}

.modal-gallery .prev { left: 16px; }
.modal-gallery .next { right: 16px; }

.dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 6;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fbbf24;
    transform: scale(1.4);
}

/* Conteúdo abaixo do carrossel */
.modal-body {
    flex: 1 1 auto;                    /* ← ocupa o espaço restante */
    overflow-y: auto;                  /* ← BARRA DE ROLAGEM AQUI */
    padding: 28px 32px;
    -webkit-overflow-scrolling: touch;
}

.modal-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.modal-cidade {
    color: #64748b;
    font-size: 17px;
    margin-bottom: 20px;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #334155;
}

.spec-item i {
    color: #2563eb;
    font-size: 20px;
}

.modal-preco {
    font-size: 34px;
    font-weight: 700;
    color: #2563eb;
    margin: 20px 0 28px;
}

.btn-whats-modal {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whats-modal:hover {
    background: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.35);
}

/* ─────────────── SOBRE ─────────────── */
.sobre{
    background:white;
    padding:60px 0;
}

.sobre-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.sobre img{
    width:100%;
    border-radius:10px;
}

.sobre .btn{
    margin-top:20px;
    display:inline-block;
}

/* ─────────────── CONTATOS ─────────────── */
.contatos{
    padding:90px 0;
    background:linear-gradient(180deg,#f8fafc,#eef2f7);
}

.titulo-contato{
    text-align:center;
    font-size:34px;
    margin-bottom:10px;
}

.subtitulo-contato{
    text-align:center;
    color:#64748b;
    margin-bottom:50px;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}

.contato-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:28px;
}

.contato-card{
    background:white;
    padding:35px 25px;
    border-radius:16px;
    text-align:center;
    text-decoration:none;
    color:#1f2933;
    box-shadow:0 8px 25px rgba(0,0,0,0.05);
    transition:all .28s ease;
    position:relative;
    overflow:hidden;
}

.contato-card:hover{
    transform:translateY(-7px);
    box-shadow:0 16px 35px rgba(0,0,0,0.08);
}

.contato-icon{
    width:60px;
    height:60px;
    margin:0 auto 15px auto;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    background:#f1f5f9;
}

.contato-card h3{
    margin-bottom:6px;
    font-size:18px;
}

.contato-card p{
    font-size:14px;
    color:#64748b;
    overflow-wrap:break-word;
}

.contato-card::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:3px;
    background:transparent;
    transition:0.25s;
}

.contato-card:hover::after{
    background:#2563eb;
}

.whatsapp i{color:#25d366;}
.instagram i{color:#e1306c;}
.facebook i{color:#1877f2;}
.email i{color:#2563eb;}
.telefone i{color:#f59e0b;}

/* ─────────────── ATENDIMENTO ─────────────── */
.atendimento {
    padding: 80px 0;
    background: white;
}

.atendimento-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.atendimento-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.atendimento-info p {
    color: #64748b;
    max-width: 480px;
    font-size: 1.05rem;
}

.horarios {
    background: #f8fafc;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.horario-item:last-child {
    border: none;
}

.horario-item span {
    color: #64748b;
}

/* ─────────────── WHATSAPP FLOAT ─────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* CTA TEMPLATE */

.cta-template{
    padding:80px 20px;
    margin-top:60px;
    text-align:center;
    background:linear-gradient(180deg,#f8fafc,#eef2f7);
    border-top:1px solid #e2e8f0;
}

.cta-template h2{
    font-size:32px;
    margin-bottom:12px;
    color:#1f2933;
}

.cta-template p{
    max-width:600px;
    margin:0 auto 30px auto;
    color:#64748b;
}

.cta-template .btn-site{
    display:inline-block;
    background:#2563eb;
    color:white;
    padding:14px 26px;
    border-radius:8px;
    text-decoration:none;
    font-weight:500;
    transition:all .25s ease;
}

.cta-template .btn-site:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

/* FOOTER */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:20px;
}

/* ─────────────── RESPONSIVO ─────────────── */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
    }

    nav.active { display: block; }

    nav ul {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .hero {
        height: 60vh;
        min-height: 420px;
    }

    .hero h1 { font-size: 2.4rem; }

    .busca {
        flex-direction: column;
        padding: 25px;
    }

    .busca select,
    .busca input,
    .busca button { min-width: 100%; }

    .sobre-grid,
    .atendimento-box {
        grid-template-columns: 1fr;
    }

    .sobre img { order: -1; }

    .contato-grid { grid-template-columns: 1fr; }

    .horario-item {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .modal {
        padding: 10px;
    }
    .modal-content {
        max-height: 98vh;
    }
    .modal-gallery {
        height: 260px;
    }
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .grid {
        padding-bottom: 60px;
    }
}
