/* =========================================================
   GLOBAL
========================================================= */
html, body {
    overflow-x: hidden !important;
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f5f5f5;
    color: #1d1d1d;
}

h2 {
    font-size: 30px;
    margin-bottom: 25px;
    text-align: center;
}

section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}
section {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

/* =========================================================
   HERO – PREMIUM VIDEO BACKGROUND COM PARALLAX
========================================================= */


.hero {
    width: 100%;
    height: 780px;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 0;
}

/* VÍDEO – CENTRALIZADO + PARALLAX + ALINHAMENTO CORRIGIDO */
.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Ajuste perfeito para mostrar as pessoas */
    object-position: center 32%;

    /* Importante: SEM transition no parallax */
    transform: translateY(0);

    z-index: 0;
}

/* Overlay escuro */
.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.25)
    );

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    z-index: 1;
}

/* Conteúdo */
.hero-content {
    position: relative;
    text-align: center;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0 20px;

    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;

    text-shadow: 0 4px 22px rgba(0,0,0,0.55);
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;

    text-shadow: 0 4px 22px rgba(0,0,0,0.45);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero {
        height: 420px; /* antes 350px */
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 380px; /* antes 300px */
    }

    .hero-content h1 {
        font-size: 28px;
    }
}


/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 768px) {
    .hero {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 768px) {
    .hero {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}

/* =========================================================
   IMÓVEIS LIST
========================================================= */
.imoveis-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* =========================================================
   CARD IMÓVEL
========================================================= */
.card-imovel.vertical {
    width: 280px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    transition: .15s;
}

.card-imovel.vertical:hover {
    transform: translateY(-3px);
}

.card-imovel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-preco {
    font-size: 20px;
    font-weight: 700;
    color: #0081c9;
}

.card-local {
    font-size: 14px;
    color: #555;
}
/* =========================================================
   SOBRE NÓS — PREMIUM + CENTRADO
========================================================= */
.about-wrapper {
    max-width: 900px;                      /* antes 1100px — agora mais centrado */
    margin: 80px auto 60px auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;               /* aproxima colunas */
    gap: 40px;                             /* antes 60px */
    min-height: 380px;                     /* altura mais elegante */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: left;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 22px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;               /* antes flex-end — agora mais centrado */
}

.about-image img {
    width: 100%;
    max-width: 420px;                      /* antes 480px */
    height: 300px;                         /* antes 320px */
    object-fit: cover;
    border-radius: 12px;
}

/* MOBILE SOBRE NÓS */
@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        min-height: auto;
        gap: 40px;
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-image img {
        height: auto;
        max-width: 100%;
    }
}

/* =========================================================
   CONTACTE-NOS — PREMIUM + CENTRADO
========================================================= */
.contact-wrapper {
    max-width: 900px;                      /* antes 1100px */
    margin: 80px auto;
    padding: 0 20px;

    display: flex;
    align-items: center;                   /* centra verticalmente */
    justify-content: center;               /* aproxima colunas */
    gap: 40px;                             /* antes 60px */
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;               /* garante alinhamento */
}

.contact-info h2 {
    font-size: 38px;
    margin-bottom: 15px;
    text-align: left;
}

.contact-sub {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.contact-details p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.5;
}

/* FORMULÁRIO */
.contact-form2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;               /* mantém alinhamento vertical */
    gap: 16px;                             /* mais compacto */
}

.contact-form2 input,
.contact-form2 textarea {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: #fafafa;
    transition: .2s;
}

.contact-form2 textarea {
    min-height: 120px;                     /* antes 130px */
}

.contact-form2 input:focus,
.contact-form2 textarea:focus {
    border-bottom-color: #000;
    background: #fff;
    outline: none;
}

.btn-flat {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
    display: block;
    margin-top: 5px;
}

.btn-flat:hover {
    background: #000;
}

/* MOBILE CONTACTE-NOS */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
        align-items: center;
        text-align: center;
    }

    .contact-info h2,
    .contact-sub,
    .contact-details p {
        text-align: center;
    }

    .contact-form2 {
        width: 100%;
    }
}

/* =========================================================
   MAPA FULL WIDTH
========================================================= */
.mapa-full iframe {
    width: 100%;
    height: 380px;
    border: none;
    pointer-events: none;
}

.mapa-full a {
    display: block;
}


/* =========================================================
   EQUIPA — ESTILO PREMIUM COM IMAGEM A TOCAR NAS BORDAS
========================================================= */

.equipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    justify-content: center;
  
}

.equipa-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;          /* ← ESSENCIAL: faz a imagem colar às bordas */
    text-align: center;
    transition: 0.2s;
}

.equipa-card:hover {
    transform: translateY(-6px);
}

/* FOTO — COLADA AO TOPO */
.equipa-photo img {
    width: 100%;
    height: 260px;             /* ALTURA FIXA IGUAL AO EXEMPLO */
    object-fit: cover;
    display: block;            /* remove espaços */
}

/* INFO */
.equipa-info {
    padding: 20px 18px;
}

.equipa-nome {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.equipa-cargo {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.equipa-info small {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #444;
}

/* LINKS */
.equipa-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.equipa-links a {
    font-size: 14px;
    color: #0081c9;
    text-decoration: none;
}

.equipa-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE GERAL
========================================================= */
@media (max-width: 600px) {
    .imoveis-list {
        padding: 0 10px;
        gap: 20px;
    }

    .card-imovel.vertical {
        width: 100%;
    }

    .card-imovel img {
        height: 220px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   FILTROS — SIMPLES E MINIMALISTAS
========================================================= */

.filtros-premium {
    max-width: 900px;
    margin: 0 auto 30px auto;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filtros-premium input,
.filtros-premium select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    background: #fff;
    width: 200px;
}

.filtros-premium button {
    padding: 10px 18px;
    font-size: 15px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.filtros-premium button:hover {
    background: #000;
}

/* MOBILE */
@media (max-width: 600px) {
    .filtros-premium input,
    .filtros-premium select,
    .filtros-premium button {
        width: 100%;
    }
}
h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.paginacao {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 6px;
    flex-wrap: wrap;
}

.pag-btn,
.pag-num {
    padding: 8px 14px;
    border: 1px solid #ccc;
    text-decoration: none;
    border-radius: 5px;
    color: #333;
}

.pag-num.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pag-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
