/* =========================================================================
   home.css — estilos específicos da Home (7 seções + lightbox).
   Depende de base.css (variáveis de marca, botões, container).
   ========================================================================= */

/* Placeholder de imagem (hero, fotos, plantas, capa do vídeo, mapa) */
.img-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    background:
        linear-gradient(135deg, #EAEEF4 0%, #DDE4EE 100%);
    color: #7E8AA0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    border: 1px dashed #C2CDDE;
}
.img-slot::before {
    content: "📷 ";
    margin-right: 6px;
    filter: grayscale(1);
    opacity: .7;
}

/* Foto real ocupando o slot (hero, capa de vídeo, amenities). */
.foto { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Plantas: mostrar inteira, sem cortar, sobre fundo branco. */
.foto--contain { object-fit: contain; padding: 12px; background: #fff; }
/* Fotos/plantas clicáveis (abrem no lightbox de imagem). */
.foto--zoom { cursor: zoom-in; }

/* Lightbox de imagem (fotos e plantas ampliadas). Reaproveita .lightbox. */
.lightbox--img .lightbox__img {
    max-width: min(1080px, 96vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox--img .lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    transform: none;
}

/* Botões --lg/--ghost/--branco agora vivem no base.css (usados em várias páginas). */
.no-scroll { overflow: hidden; }

/* Bloco de introdução reutilizado nas seções */
.intro { max-width: 620px; margin-bottom: clamp(34px, 5vw, 52px); }
.intro h2 { margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; text-wrap: balance; }
.intro p { margin: 0; font-size: clamp(16px, 1.9vw, 18px); line-height: 1.55; color: var(--cinza); text-wrap: pretty; }

/* ====================== HERO ====================== */
.hero {
    position: relative;
    min-height: clamp(480px, 74vh, 640px);
    background: var(--azul);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
@media (max-width: 700px) {
    /* No celular o hero fica alto demais em 74vh; deixa a altura seguir o conteúdo. */
    .hero { min-height: 0; }
    .hero__inner { padding-top: 24px; padding-bottom: 30px; }
}
.hero__media { position: absolute; inset: 0; }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 31, 75, .55) 0%, rgba(2, 31, 75, .35) 45%, rgba(2, 31, 75, .82) 100%);
    pointer-events: none;
}
.hero__inner { position: relative; width: 100%; padding-top: 40px; padding-bottom: 56px; color: #fff; }
.hero__content { max-width: 680px; }
.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(2, 31, 75, .55);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(3px);
}
.hero__pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); }
.hero__titulo {
    margin: 0 0 16px;
    font-size: clamp(34px, 6.4vw, 62px);
    line-height: 1.04;
    font-weight: 800;
    color: #fff;
    text-wrap: balance;
}
.hero__sub {
    margin: 0 0 28px;
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
    max-width: 560px;
    text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 13px; }

/* ====================== NÚMEROS ====================== */
.stats { background: var(--azul); color: #fff; }
.stats__inner { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.stats__label {
    margin: 0 0 30px;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--laranja);
}
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 24px; }
.stat__num { font-size: clamp(38px, 6vw, 56px); font-weight: 800; line-height: 1; }
.stat__cap { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .72); font-weight: 500; }

/* ====================== LIFESTYLE + VÍDEO ====================== */
.video {
    position: relative;
    max-width: 860px;
    margin: 0 auto clamp(34px, 5vw, 52px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--linha);
    background: var(--azul);
}
/* aspect-ratio igual à imagem (1277x718) → mostra a capa inteira, sem corte. */
.video__cover { display: block; width: 100%; aspect-ratio: 1277 / 718; }
.video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 31, 75, .12) 0%, rgba(2, 31, 75, .18) 50%, rgba(2, 31, 75, .62) 100%);
    pointer-events: none;
}
.video__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 20px;
}
.video__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--laranja);
    box-shadow: 0 12px 34px rgba(255, 94, 16, .5);
    transition: background var(--transicao);
}
.video__play:hover .video__play-icon { background: var(--laranja-2); }
.video__play-text { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; text-shadow: 0 2px 12px rgba(2, 31, 75, .5); }

.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 22px; }
.amenity__img { display: block; width: 100%; height: 174px; }
.amenity__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(2, 31, 75, .07);
    align-items: center;
    justify-content: center;
    color: var(--azul);
    margin-bottom: 13px;
}
.amenity h3 { margin: 0 0 7px; font-size: 18.5px; font-weight: 700; }
.amenity p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cinza); }

/* ====================== UNIDADES ====================== */
.plantas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
.planta {
    display: flex;
    flex-direction: column;
    background: var(--fundo);
    border: 1px solid var(--linha);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow var(--transicao);
}
.planta:hover { box-shadow: 0 16px 36px rgba(2, 31, 75, .1); }
.planta__img { display: block; width: 100%; height: 280px; background: #fff; border-bottom: 1px solid var(--linha); }
.planta__body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; }
.planta h3 { margin: 0 0 5px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.planta__area { font-size: 17px; font-weight: 700; color: var(--laranja); margin-bottom: 18px; }
.planta__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; flex: 1; align-content: flex-start; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--linha);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tinta-2);
}
.plantas-nota { margin: 14px 0 0; font-size: 12.5px; color: var(--cinza-3); }

.folder {
    margin-top: clamp(28px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    background: var(--azul);
    border-radius: 22px;
    padding: clamp(22px, 3vw, 30px) clamp(24px, 3vw, 34px);
}
.folder__info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.folder__icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.folder__titulo { font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: #fff; line-height: 1.25; }
.folder__sub { font-size: 14.5px; color: rgba(255, 255, 255, .72); font-weight: 500; }

/* ====================== PROPRIETÁRIO ====================== */
.morador { background: #fff; }
.morador__panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--azul), var(--azul-2));
    border-radius: 28px;
    padding: clamp(32px, 5vw, 60px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: center;
}
.morador__glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 94, 16, .14);
    pointer-events: none;
}
.morador__content { position: relative; }
.morador__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.morador__content h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: #fff; text-wrap: balance; }
.morador__content p { margin: 0 0 26px; font-size: clamp(15.5px, 1.9vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 480px; }
.morador__art { position: relative; display: flex; justify-content: center; }
.morador__cards {
    width: min(300px, 80%);
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.doc-card {
    width: 84px;
    height: 104px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.doc-card span { font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.doc-card--manual { background: #fff; color: var(--azul); transform: rotate(-5deg); }
.doc-card--planta { background: var(--laranja); color: #fff; transform: rotate(5deg); }

/* ====================== LOCALIZAÇÃO ====================== */
.local__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.local__map { border-radius: 22px; overflow: hidden; min-height: 320px; border: 1px solid var(--linha); }
.local__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.local__card {
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: 22px;
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.local__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 94, 16, .1);
    align-items: center;
    justify-content: center;
    color: var(--laranja);
    margin-bottom: 16px;
}
.local__card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.local__card > p { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--cinza); }
.local__lista { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.local__item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--tinta-2); font-weight: 500; }
.local__item-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); flex: none; }
.local__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--azul); text-decoration: none; transition: color var(--transicao); }
.local__link:hover { color: var(--laranja); }

/* ====================== CONTATO RESUMO ====================== */
/* (.canais / .canal* são componentes compartilhados em base.css) */
.contato-cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; }

/* ====================== LIGHTBOX ====================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(2, 12, 30, .88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 40px);
}
.lightbox.is-open { display: flex; }
.lightbox__dialog { position: relative; width: 100%; max-width: 1040px; }
.lightbox__close {
    position: absolute;
    top: -8px;
    right: 0;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--azul-2), var(--azul));
}
.lightbox__placeholder-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lightbox__placeholder strong { font-size: 18px; font-weight: 700; }
.lightbox__placeholder span { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); max-width: 360px; }
