/* --------------------------------------------------
   VARIÁVEIS E BASE
-------------------------------------------------- */
:root {
    --bg-body: #050506;
    --bg-elevated: #0d0d10;
    --bg-soft: #111118;
    --text-main: #f5f5f5;
    --text-soft: #b5b5c3;
    --text-muted: #8a8a96;
    --gold: #e5b564;
    --gold-soft: #f3c97a;
    --border-soft: rgba(255, 255, 255, 0.14);
    --radius-lg: 1.2rem;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #111111 0, #050506 55%);
    color: var(--text-main);
}

img {
    max-width: 100%;
    display: block;
}

main {
    display: block;
}

/* Container base */
.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

/* --------------------------------------------------
   TOPO / HEADER
-------------------------------------------------- */
.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top, #171717 0, #050506 55%);
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    display: block;
    max-height: 40px;
}

/* Navegação */
.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-soft);
    text-decoration: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transition: width 0.18s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-main);
}

.nav-icons {
    display: flex;
    gap: 0.6rem;
    margin-left: 0.8rem;
    opacity: 0.75;
}

.icon {
    font-size: 0.9rem;
}

/* --------------------------------------------------
   BOTÕES
-------------------------------------------------- */
.btn {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn.small {
    padding: 0.55rem 1.3rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f3d08a);
    color: #111111;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.btn.full-width {
    width: 100%;
}

/* --------------------------------------------------
   HERO (HOME)
-------------------------------------------------- */
.hero {
    padding-block: 4.5rem 3.5rem;
    background: radial-gradient(circle at top left, #171717 0, var(--bg-body) 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3.3vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.hero-subtitle {
    max-width: 34rem;
    font-size: 0.98rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero image */
.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
    background: url('../img/hero-condominio.jpg') center center / cover no-repeat;
    isolation: isolate;
}

.hero-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.hero-label {
    position: absolute;
    left: 1.6rem;
    bottom: 1.6rem;
    z-index: 2;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-label p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-label span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* --------------------------------------------------
   IMÓVEIS EM DESTAQUE
-------------------------------------------------- */
.featured {
    padding-block: 2.4rem 3.2rem;
}

.featured-inner {
    padding-top: 1.4rem;
}

.featured h2 {
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.property-card {
    background: linear-gradient(180deg, #15151b 0, #07070a 100%);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
    position: relative;
}

.property-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--gold);
    color: #111111;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.card-badge.badge-rent {
    background: #4bb37b;
    color: #071309;
}

.card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.card-location {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
}

.card-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-price {
    margin: 0;
    font-weight: 600;
    color: var(--gold-soft);
}

/* --------------------------------------------------
   PAGE HERO (IMÓVEIS / CONTATO / SOBRE)
-------------------------------------------------- */
.page-hero {
    padding-block: 2.6rem 1.8rem;
}

.page-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.2rem;
}

.page-hero h1 {
    margin: 0 0 0.7rem;
}

.page-hero .hero-subtitle {
    max-width: 460px;
}

/* --------------------------------------------------
   FILTROS DE IMÓVEIS (LADO DIREITO NA PÁGINA IMÓVEIS)
-------------------------------------------------- */
.filters {
    padding: 1.1rem 1.1rem 1rem;
    background: var(--bg-soft);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    min-width: 260px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-soft);
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background: #09090d;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.55rem 0.75rem;
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: inherit;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-soft);
}

/* --------------------------------------------------
   CTA / BLOCO INSTITUCIONAL
-------------------------------------------------- */
.cta {
    padding-block: 2.8rem 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.2rem;
}

.cta-tag {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    max-width: 430px;
    line-height: 1.7;
}

.cta-actions {
    min-width: 260px;
}

.cta-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------
   CONTATO
-------------------------------------------------- */
.section-contact {
    padding-block: 2.6rem 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 2.4rem;
}

.contact-form {
    background: var(--bg-soft);
    padding: 1.6rem 1.7rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.contact-info h2 {
    margin-top: 0;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.contact-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.contact-list li + li {
    margin-top: 0.4rem;
}

/* --------------------------------------------------
   PÁGINA DETALHE DO IMÓVEL
-------------------------------------------------- */
.property-hero {
    padding-block: 3.2rem 2.6rem;
    background: radial-gradient(circle at top, #171717 0, var(--bg-body) 60%);
    border-bottom: 1px solid var(--border-soft);
}

.property-hero-content {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    align-items: flex-end;
}

.property-location-line {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.property-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    background: var(--gold);
    color: var(--bg-body);
}

.pill.badge-rent {
    background: #419a63;
    color: var(--text-main);
}

.pill-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--text-main);
}

.property-price-block {
    max-width: 260px;
    text-align: right;
}

.property-price-big {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-soft);
}

.property-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0.9rem;
}

/* Layout principal */
.property-layout {
    padding-block: 2.8rem 3.2rem;
}

.property-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    border-radius: var(--radius-lg);
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-color: #101010;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.gallery-thumb {
    border-radius: 0.7rem;
    height: 70px;
    background-size: cover;
    background-position: center;
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.9;
    cursor: pointer;
}

/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.info-block {
    padding: 1.2rem 1.3rem;
    border-radius: 1rem;
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-block h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1.1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-soft);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.info-text {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* Descrição e características */
.property-description {
    padding-block: 0 3rem;
}

.property-description h2 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.property-description p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.property-features {
    padding-block: 0 3.2rem;
}

.property-features h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    color: var(--text-main);
}

/* --------------------------------------------------
   LIGHTBOX / CARROSSEL DE FOTOS DO IMÓVEL
-------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.lightbox-inner {
    position: relative;
    max-width: min(1200px, 100% - 2rem);
    width: 100%;
    height: min(90vh, 840px); /* usa quase a altura da tela */
    border-radius: 1.2rem;
    overflow: hidden;
    background: #050506;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #050506;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 15, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.lightbox-arrow:hover {
    background: rgba(25, 25, 30, 0.95);
    transform: translateY(-50%) translateY(-1px);
    opacity: 1;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 15, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5f5;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
    opacity: 0.85;
    line-height: 0;
}

.lightbox-close:hover {
    background: rgba(25, 25, 30, 0.95);
    transform: translateY(-1px);
    opacity: 1;
}

/* --------------------------------------------------
   RODAPÉ
-------------------------------------------------- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-block: 1.6rem 1.8rem;
    background: #050506;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-credits {
    font-size: 0.82rem;
}

/* WhatsApp no rodapé */
.footer-whatsapp-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.footer-whatsapp-row a {
    color: var(--gold-soft);
    text-decoration: none;
}

.footer-whatsapp-row a:hover {
    text-decoration: underline;
}

.whatsapp-icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #25D366; /* verde WhatsApp */
    display: inline-block;
    position: relative;
}

.whatsapp-icon-circle::after {
    content: "\260E"; /* símbolo de telefone simples */
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff;
}

/* --------------------------------------------------
   RESPONSIVO
-------------------------------------------------- */
@media (max-width: 960px) {
    .topbar-content {
        flex-wrap: wrap;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .hero-image {
        order: -1;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .property-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .property-price-block {
        max-width: 100%;
        text-align: left;
    }

    .property-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-thumbs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Ajuste do menu no mobile */
@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
        padding-block: 0.8rem;
    }

    .logo {
        margin-bottom: 0.2rem;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 0.4rem;
        column-gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
    }

    .nav-icons {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 1.5rem, 100%);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-main {
        min-height: 260px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-whatsapp-row {
        align-items: flex-start;
    }
}