/* ===== Tokens ===== */
:root {
    --cor: #ff385c;            /* cor de destaque (botões, selo) */
    --cor-escura: #d70466;
    --texto: #222222;
    --texto-2: #6a6a6a;
    --borda: #dddddd;
    --borda-leve: #ebebeb;
    --fundo: #ffffff;
    --fundo-2: #f7f7f7;
    --raio: 12px;
    --raio-g: 16px;
    --sombra: 0 6px 16px rgba(0, 0, 0, .12);
    --sombra-leve: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
    --largura: 1120px;
    --logo-h: 90px;           /* altura do logo no topo (ajustável no painel) */
    --topo-h: max(80px, calc(var(--logo-h) + 28px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--texto);
    background: var(--fundo);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 24px; }

/* ===== Botões ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 8px; border: 0;
    font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
    transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primario {
    color: #fff;
    background: radial-gradient(circle at left, var(--cor) 0%, var(--cor-escura) 100%) 0 0 / 200% 100%;
    background-size: 200% 100%;
}
.btn--primario:hover { background-position: 100% 0; }
.btn--contorno { background: #fff; color: var(--texto); border: 1px solid var(--texto); }
.btn--contorno:hover { background: var(--fundo-2); }
.btn--largo { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icone-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
    display: grid; place-items: center; font-size: 18px;
}
.icone-btn:hover { background: var(--fundo-2); }

/* ===== Topo ===== */
.topo {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--borda-leve);
}
.topo__in { height: var(--topo-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca__logo { height: var(--logo-h); width: auto; max-width: min(640px, 52vw); object-fit: contain; object-position: left center; }
.topo__dir { display: flex; align-items: center; gap: 20px; }
.creci {
    font-size: 13px; font-weight: 600; color: var(--texto-2);
    padding: 6px 12px; border: 1px solid var(--borda); border-radius: 999px;
}
.topo__cta { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 999px; }

/* ===== Cabeçalho ===== */
.cabecalho { padding-top: 28px; padding-bottom: 20px; }
.selo {
    display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--cor); background: color-mix(in srgb, var(--cor) 9%, #fff); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.selo:empty { display: none; }
.cabecalho h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.cabecalho__local { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--texto-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Galeria ===== */
.galeria-wrap { position: relative; }
.galeria {
    display: grid; gap: 8px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(320px, 42vw, 480px);
    border-radius: var(--raio-g); overflow: hidden;
}
.galeria__item { position: relative; overflow: hidden; background: var(--fundo-2); border: 0; padding: 0; }
.galeria__item:first-child { grid-row: 1 / 3; }
.galeria__item:nth-child(n + 6) { display: none; } /* no computador a grade mostra 5; o resto fica no mural */
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease, transform .4s ease; }
.galeria__item:hover img { filter: brightness(.85); }
.galeria--1 { grid-template-columns: 1fr; }
.galeria--2 { grid-template-columns: 1fr 1fr; }
.galeria--2 .galeria__item:first-child,
.galeria--1 .galeria__item:first-child { grid-row: 1 / 3; }
.galeria--3 { grid-template-columns: 2fr 1fr; }
.galeria--4 { grid-template-columns: 2fr 1fr 1fr; }
.galeria--4 .galeria__item:nth-child(4) { grid-column: 2 / 4; }

.galeria__todas {
    position: absolute; right: 48px; bottom: 24px;
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--texto); border-radius: 8px;
    padding: 7px 15px; font-size: 14px; font-weight: 600;
}
.galeria__todas:hover { background: var(--fundo-2); }
.galeria__todas[hidden] { display: none; }
.galeria__contador { display: none; }

.placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center; text-align: center;
    color: #b0b0b0; font-size: 13px; font-weight: 500;
    background: linear-gradient(135deg, #f3f3f3, #e9e9e9);
}
.placeholder svg { font-size: 32px; display: block; margin: 0 auto 6px; }

/* ===== Corpo (conteúdo + card) ===== */
.corpo {
    display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 80px;
    padding-top: 32px; padding-bottom: 48px;
}
.bloco { padding: 32px 0; border-bottom: 1px solid var(--borda); }
.bloco:first-child { padding-top: 0; }
.bloco:last-child { border-bottom: 0; }
.sub { color: var(--texto-2); margin: -16px 0 24px; }
.nota { color: var(--texto-2); font-size: 13px; margin: 20px 0 0; }

.resumo h2 { margin-bottom: 4px; }
.detalhes-linha { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; color: var(--texto); }
.detalhes-linha li:not(:last-child)::after { content: "·"; margin: 0 6px; }

/* destaques */
.destaques { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.destaques li { display: grid; grid-template-columns: 32px 1fr; gap: 20px; align-items: start; }
.destaques svg { font-size: 26px; stroke-width: 1.6; margin-top: 2px; }
.destaques strong { display: block; font-weight: 600; }
.destaques p { margin: 2px 0 0; color: var(--texto-2); font-size: 14px; }

.descricao p { margin: 0 0 16px; }
.descricao p:last-child { margin-bottom: 0; }

/* perguntas frequentes */
.faq { border-top: 1px solid var(--borda-leve); }
.faq details { border-bottom: 1px solid var(--borda-leve); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { font-size: 20px; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__resp { color: var(--texto-2); padding: 0 32px 18px 0; }
.faq__resp p { margin: 0 0 10px; }
.faq__resp p:last-child { margin: 0; }

/* vídeo */
.video {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; background: #111;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__capa { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #111; }
.video__capa img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.video__capa:hover img { opacity: 1; }
.video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .95);
    display: grid; place-items: center; box-shadow: var(--sombra); transition: transform .2s ease;
}
.video__capa:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__play svg { font-size: 30px; fill: var(--texto); stroke: none; margin-left: 4px; }
.video .placeholder { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); color: #888; }

/* números */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.numero {
    border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px;
    transition: box-shadow .2s ease;
}
.numero:hover { box-shadow: var(--sombra-leve); }
.numero__valor { display: block; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.numero__rotulo { display: block; margin-top: 6px; color: var(--texto-2); font-size: 14px; font-weight: 500; }

/* comodidades */
.comodidades { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.comodidades li { display: flex; align-items: center; gap: 16px; }
.comodidades svg { font-size: 24px; stroke-width: 1.6; }
.comodidades--lista { grid-template-columns: 1fr; gap: 0; margin: 0; }
.comodidades--lista li { padding: 20px 0; border-bottom: 1px solid var(--borda-leve); }

/* ficha */
.ficha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.ficha div { padding: 18px 20px; border-right: 1px solid var(--borda-leve); border-bottom: 1px solid var(--borda-leve); }
.ficha div:nth-child(3n) { border-right: 0; }
.ficha dt { color: var(--texto-2); font-size: 13px; }
.ficha dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }

/* card lateral */
.lateral { position: relative; }
.card-preco {
    position: sticky; top: calc(var(--topo-h) + 32px);
    border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px;
    box-shadow: var(--sombra);
}
.card-preco__rotulo { margin: 0; color: var(--texto-2); font-size: 14px; }
.card-preco__valor { margin: 2px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.card-preco__cond { margin: 0 0 20px; font-size: 14px; color: var(--texto); font-weight: 500; }
.card-preco__obs { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--texto-2); }
.card-preco__lista { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--borda); display: grid; gap: 10px; }
.card-preco__lista li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card-preco__lista span { color: var(--texto-2); }
.card-preco__lista strong { font-weight: 600; }

/* ===== Formulário ===== */
.interesse { background: var(--fundo-2); padding: 72px 0; }
.interesse__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.interesse__texto h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.interesse__texto p { color: var(--texto-2); font-size: 17px; margin: 0; }
.interesse__preco { margin-top: 28px; display: inline-flex; flex-direction: column; padding: 16px 20px; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra-leve); }
.interesse__preco span { font-size: 13px; color: var(--texto-2); }
.interesse__preco strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.interesse__preco em { font-style: normal; font-size: 13px; color: var(--texto-2); }

.form { background: #fff; border-radius: var(--raio-g); padding: 32px; box-shadow: var(--sombra); display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.opcional { font-weight: 400; color: var(--texto-2); }
.campo input, .campo textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--texto);
    padding: 13px 14px; border: 1px solid #b0b0b0; border-radius: 8px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--texto); box-shadow: 0 0 0 1px var(--texto); }
.campo--invalido input { border-color: #c13515; background: #fff8f6; }
.campo--oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erro { color: #c13515; font-size: 13px; min-height: 0; }
.erro:empty { display: none; }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--texto-2); cursor: pointer; }
.aceite input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--texto); flex-shrink: 0; }
.form__status { margin: 0; font-size: 14px; text-align: center; }
.form__status:empty { display: none; }
.form__status--erro { color: #c13515; }
.form--enviado { text-align: center; padding: 56px 32px; }
.form--enviado svg { font-size: 52px; color: #008a05; margin: 0 auto 12px; }
.form--enviado h3 { font-size: 22px; margin-bottom: 8px; }
.form--enviado p { color: var(--texto-2); margin: 0; }

/* ===== Rodapé ===== */
.rodape { border-top: 1px solid var(--borda); background: var(--fundo); }
.rodape__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 32px; flex-wrap: wrap; }
.rodape__logo { height: calc(var(--logo-h) * .85); width: auto; max-width: 300px; object-fit: contain; object-position: left center; }
.rodape__creci { margin: 8px 0 0; font-size: 13px; color: var(--texto-2); }
.rodape__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--texto); text-decoration: underline; text-underline-offset: 4px; }
.rodape__link:hover { color: var(--cor); }
.rodape__base { border-top: 1px solid var(--borda-leve); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--texto-2); }

/* ===== Barra móvel ===== */
.barra-mobile { display: none; }

/* ===== Modal de fotos ===== */
body.travado { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; animation: subir .3s ease; }
.modal__topo { position: sticky; top: 0; background: #fff; padding: 12px 24px; z-index: 1; }
.modal__corpo { max-width: 760px; margin: 0 auto; padding: 8px 24px 64px; }
.mural { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mural button { border: 0; padding: 0; background: var(--fundo-2); aspect-ratio: 4 / 3; overflow: hidden; }
.mural button:nth-child(3n + 1) { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.mural img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s ease; }
.mural button:hover img { filter: brightness(.88); }

.lightbox { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: grid; place-items: center; animation: aparecer .2s ease; }
.lightbox img { max-width: calc(100% - 160px); max-height: calc(100% - 140px); object-fit: contain; user-select: none; }
.lightbox__fechar { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.lightbox__fechar:hover { background: rgba(255, 255, 255, .12); }
.lightbox__contador { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 15px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; display: grid; place-items: center; font-size: 20px; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .12); }
.lightbox__nav--ant { left: 32px; }
.lightbox__nav--prox { right: 32px; }

.dialogo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 24px; animation: aparecer .2s ease; }
.dialogo__caixa { background: #fff; border-radius: var(--raio-g); width: 100%; max-width: 680px; max-height: 86vh; overflow-y: auto; padding: 16px 32px 32px; animation: subir .3s ease; }
.dialogo__caixa h2 { margin: 16px 0 8px; }

@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* revelar ao rolar */
.revelar { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 960px) {
    .corpo { grid-template-columns: 1fr; gap: 0; }
    .lateral { display: none; }
    .interesse__in { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 743px) {
    :root { --topo-h: max(64px, calc(var(--logo-h) * .72 + 20px)); }
    h2 { font-size: 20px; }
    .container { padding: 0 16px; }
    .marca__logo { height: calc(var(--logo-h) * .72); max-width: 58vw; }
    .topo__cta { display: none; }
    .creci { font-size: 12px; padding: 4px 10px; }

    .cabecalho { padding-top: 20px; }

    /* galeria vira carrossel deslizável */
    .galeria {
        display: flex; height: auto; aspect-ratio: 4 / 3;
        margin: 0 -16px; border-radius: 0; gap: 0;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .galeria::-webkit-scrollbar { display: none; }
    .galeria__item, .galeria__item:nth-child(n + 6) { display: block; flex: 0 0 100%; scroll-snap-align: start; }
    .galeria__item img { transition: none; }
    .galeria__todas { display: none; }
    .galeria__contador {
        display: block; position: absolute; right: 16px; bottom: 14px; pointer-events: none;
        background: rgba(34, 34, 34, .75); color: #fff; font-size: 12px; font-weight: 600;
        padding: 4px 10px; border-radius: 6px;
    }
    .galeria__contador[hidden] { display: none; }

    .corpo { padding-top: 24px; }
    .bloco { padding: 28px 0; }
    .numeros { gap: 12px; }
    .numero { padding: 18px; }
    .comodidades { grid-template-columns: 1fr; }
    .ficha { grid-template-columns: repeat(2, 1fr); }
    .ficha div:nth-child(3n) { border-right: 1px solid var(--borda-leve); }
    .ficha div:nth-child(2n) { border-right: 0; }

    .interesse { padding: 48px 0 56px; }
    .form { padding: 24px 20px; }

    .rodape { padding-bottom: 80px; }

    .barra-mobile {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--borda);
        transition: transform .25s ease;
    }
    .barra-mobile strong { display: block; font-size: 17px; font-weight: 800; }
    .barra-mobile span { font-size: 13px; color: var(--texto-2); }
    .barra-mobile .btn { min-height: 46px; }
    .barra-mobile--oculta { transform: translateY(110%); }

    .mural { grid-template-columns: 1fr; }
    .mural button:nth-child(3n + 1) { grid-column: auto; aspect-ratio: 4 / 3; }
    .modal__topo { padding: 8px 16px; }
    .modal__corpo { padding: 0 0 48px; }

    .lightbox img { max-width: 100%; max-height: calc(100% - 160px); }
    .lightbox__nav { top: auto; bottom: 32px; transform: none; }
    .lightbox__nav--ant { left: calc(50% - 64px); }
    .lightbox__nav--prox { right: calc(50% - 64px); }

    .dialogo { padding: 0; align-items: end; }
    .dialogo__caixa { border-radius: var(--raio-g) var(--raio-g) 0 0; max-height: 92vh; padding: 12px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .revelar { opacity: 1; transform: none; }
}
