/* ============================================================
   BlockHouse — layout bespoke (manual de marca 2026).
   Navy #013B51 dominante · laranja #F74A21 ação · azul #3F84E5 digital.
   Serif elegante nos títulos (stand-in de IvyEpic) + Sora no texto.
   Motivos da marca: padrão de cubos isométricos, gradientes, arco (porta).
   Escopo: .bh — sem travessão na copy (decisão de estilo).
   ============================================================ */
.bh {
  --navy: #013b51;
  --navy-2: #0a2731;
  --navy-3: #06202a;
  --orange: #f74a21;
  --orange-2: #ff6542;
  --orange-soft: #f6a989;
  --blue: #3f84e5;
  --blue-2: #b8d7f6;
  --blue-3: #dce0eb;
  --paper: #f6f8fb;
  --ink: #0c2530;
  --muted: #566672;
  --line: #e2e8f0;
  /* tokens do bloco escuro e da cor de ação — antes eram hex literais espalhados pelo arquivo,
     o que fazia `tema: <cliente>` não ter efeito nenhum neste layout. */
  --dark-hi: #0a4a63;          /* topo do gradiente escuro */
  --on-dark: #eaf1f5;          /* texto sobre fundo escuro */
  --on-dark-sub: #a9c2ce;
  --on-dark-body: #bcd0da;
  --acao: var(--orange);       /* cor de ação da marca */
  --acao-2: var(--orange-2);
  --on-acao: #fff;             /* texto sobre a cor de ação */
  --acao-glow: rgba(247, 74, 33, .6);
  --acao-ring: rgba(247, 74, 33, .12);
  --dark-veil: rgba(11, 26, 38, .94);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sora), ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.bh ::selection { background: var(--acao); color: var(--on-acao); }

/* --- Tipografia: serif nos títulos, Sora no corpo --- */
.bh h1, .bh h2, .bh h3 {
  font-family: var(--font-display), "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
.bh .bh-eyebrow {
  font-family: var(--font-mono), ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--orange);
}
.bh .bh-sub { font-size: 1.075rem; line-height: 1.6; color: var(--muted); }
.bh .bh-body { line-height: 1.65; color: var(--muted); }

/* --- Seções --- */
.bh-shell { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1.5rem; }
.bh-sec { padding: 4.5rem 0; }
@media (min-width: 768px) { .bh-sec { padding: 6.5rem 0; } }
.bh-navy { background: var(--navy); color: var(--on-dark); }
.bh-navy .bh-sub { color: var(--on-dark-sub); }
.bh-navy .bh-body { color: var(--on-dark-body); }

/* Superfície navy completa: cor + cubos + gradiente numa ÚNICA declaração (camadas
   não se sobrescrevem) + contexto de texto claro. Usar no hero, no CTA e no card "com a marca".
   Antes eu empilhava .bh-card (fundo branco) por cima e o texto claro sumia. */
.bh-navy-panel {
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%233f84e5' stroke-opacity='0.16'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 120% at 15% 0%, var(--dark-hi) 0%, var(--navy) 45%, var(--navy-3) 100%);
  background-size: 56px 100px, cover;
  background-repeat: repeat, no-repeat;
  color: var(--on-dark);
}
.bh-navy-panel .bh-sub { color: var(--on-dark-sub); }
.bh-navy-panel .bh-body { color: var(--on-dark-body); }
.bh-panel-card { border-radius: 18px; padding: 1.75rem; border: 1px solid rgba(255, 255, 255, .14); }

/* --- Padrão de cubos isométricos (motivo da marca) --- */
.bh-cubes {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%233f84e5' stroke-opacity='0.16'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.bh-cubes-ink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cg fill='none' stroke='%23013b51' stroke-opacity='0.06'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* --- Gradientes da marca --- */
.bh-grad-navy { background: radial-gradient(120% 120% at 15% 0%, var(--dark-hi) 0%, var(--navy) 45%, var(--navy-3) 100%); }
.bh-grad-orange { background: linear-gradient(135deg, var(--orange-2), var(--orange)); }

/* --- Foto em ARCO (a "porta de entrada" da marca) --- */
.bh-arch { border-radius: 260px 260px 18px 18px; overflow: hidden; }
.bh-arch img, .bh-hex img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-hex { -webkit-clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%); overflow: hidden; }

/* --- Botões --- */
.bh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-weight: 600; font-size: 1rem; padding: 0.95rem 1.9rem; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  cursor: pointer; font-family: var(--font-sora), sans-serif;
}
.bh-btn-acao { background: var(--acao); color: var(--on-acao); box-shadow: 0 10px 26px -10px var(--acao-glow); }
.bh-btn-acao:hover { transform: translateY(-2px); background: var(--orange-2); }
.bh-btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: var(--on-dark); }
.bh-btn-ghost:hover { border-color: #fff; }
.bh-btn-navy { background: var(--navy); color: #fff; }
.bh-btn-navy:hover { transform: translateY(-2px); background: var(--navy-2); }

/* Formulário (boa prática das nossas LPs: nome + WhatsApp -> dispara conversão -> WhatsApp) */
.bh-form { background: #fff; border-radius: 20px; padding: 1.7rem; box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .55); }
.bh-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.bh-form input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .82rem 1rem;
  font-size: 1rem; color: var(--ink); background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.bh-form input::placeholder { color: #9aa9b4; }
.bh-form input:focus { border-color: var(--acao); box-shadow: 0 0 0 3px var(--acao-ring); }
.bh-form .bh-btn { width: 100%; }
html:has(.bh) { scroll-behavior: smooth; }

/* --- Selo / tag --- */
.bh-tag {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--acao); color: var(--on-acao);
  font-family: var(--font-mono), monospace; text-transform: uppercase; letter-spacing: .12em;
  font-size: .68rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px;
}

/* --- Números (mono) --- */
.bh-dado { font-family: var(--font-mono), monospace; font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--orange); font-variant-numeric: tabular-nums; }

/* --- Cartão --- */
.bh-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; }
.bh-navy .bh-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

/* --- Passos (linha conectando) --- */
.bh-step-n {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--font-mono), monospace; font-weight: 700; flex-shrink: 0;
}

/* --- FAQ --- */
.bh details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: .75rem; }
.bh summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--navy); }
.bh summary::-webkit-details-marker { display: none; }
.bh summary .bh-plus { color: var(--orange); transition: transform .2s ease; font-size: 1.3rem; line-height: 1; }
.bh details[open] summary .bh-plus { transform: rotate(45deg); }

/* --- Float WhatsApp --- */
.bh-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50; box-shadow: 0 12px 30px -8px var(--acao-glow); }

@keyframes bh-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.bh-reveal { animation: bh-up .6s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .bh-reveal { animation: none; } }

/* barra fixa mobile (CRO 2026-08-24) */
.bh-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--dark-veil); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12); }
.bh-sticky .bh-btn { width: 100%; justify-content: center; }
.bh { padding-bottom: 4.8rem; }
@media (min-width: 768px) { .bh-sticky { display: none; } .bh { padding-bottom: 0; } }

/* ============================================================
   Seções de empreendimento (opt-in via `blockhouse:` no YAML).
   ============================================================ */

/* Hero com foto: véu escuro por cima da foto, mais fechado embaixo, onde fica o
   formulário no celular. A foto vem de --bh-hero-foto (inline, do YAML). */
.bh-navy-panel.bh-hero-foto {
  background-image:
    linear-gradient(180deg, rgba(1, 59, 81, .72) 0%, rgba(1, 45, 62, .86) 45%, rgba(6, 32, 42, .97) 100%),
    var(--bh-hero-foto);
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
}
@media (min-width: 768px) {
  .bh-navy-panel.bh-hero-foto {
    background-image:
      linear-gradient(90deg, rgba(6, 32, 42, .95) 0%, rgba(1, 59, 81, .82) 50%, rgba(1, 59, 81, .45) 100%),
      var(--bh-hero-foto);
  }
}

/* Itens de especificação com ✓ */
.bh-specs { display: grid; gap: .8rem; }
@media (min-width: 640px) { .bh-specs { grid-template-columns: 1fr 1fr; } }
.bh-specs li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); line-height: 1.45; font-weight: 500; }
.bh-specs li span { color: var(--acao); font-weight: 700; }

/* Foto grande ao lado do texto */
.bh-foto-destaque { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(1, 59, 81, .55); }
.bh-foto-destaque img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bh-foto-destaque figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .9rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(1, 59, 81, .85)); }

/* Imagem com texto dentro (ex.: aérea com pontos marcados): sem recorte, legenda abaixo */
.bh-foto-inteira { background: #fff; }
.bh-foto-inteira img { aspect-ratio: auto; object-fit: contain; }
.bh-foto-inteira figcaption { position: static; background: #fff; color: var(--muted); padding: .6rem .9rem; font-size: .78rem; }

/* Lazer em grupos, dentro do painel escuro */
.bh-lazer-grupo { border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 1.4rem 1.5rem; background: rgba(255, 255, 255, .04); }
.bh-lazer-grupo h3 { color: #fff; font-size: 1.25rem; }
.bh-lazer-grupo ul { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.bh-lazer-grupo li { font-size: .85rem; color: var(--on-dark); padding: .35rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }

/* Implantação oficial (imagem numerada) */
.bh-implantacao { margin-left: 0; margin-right: 0; border-radius: 18px; overflow: hidden; background: #fff; }
.bh-implantacao img { width: 100%; display: block; }
.bh-implantacao figcaption { font-size: .75rem; color: var(--muted); background: #fff; padding: .55rem .9rem; }

/* Galeria compacta: 2 colunas no celular, 3 no desktop */
.bh-galeria { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 900px) { .bh-galeria { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.bh-galeria figure { position: relative; border-radius: 14px; overflow: hidden; margin: 0; }
.bh-galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bh-galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .7rem .55rem; color: #fff; font-size: .72rem; line-height: 1.25; background: linear-gradient(transparent, rgba(1, 59, 81, .88)); }
@media (min-width: 900px) { .bh-galeria figcaption { font-size: .85rem; padding: 1.2rem 1rem .8rem; } }

/* Título com a foto do prédio num quadrado pequeno ao lado */
/* Meio a meio: título numa metade, prédio (quadrado) na outra. */
.bh-titulo-quadrado { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .9rem; }
.bh-titulo-quadrado h1 { min-width: 0; font-size: 1.28rem; line-height: 1.12; }
.bh-titulo-quadrado img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 62% center; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .8); }
@media (min-width: 640px) { .bh-titulo-quadrado h1 { font-size: 1.9rem; } }
@media (min-width: 768px) { .bh-titulo-quadrado { gap: 1.5rem; } .bh-titulo-quadrado h1 { font-size: 2.1rem; } .bh-titulo-quadrado img { border-radius: 20px; } }
@media (min-width: 1024px) { .bh-titulo-quadrado h1 { font-size: 2.45rem; } }
.bh .bh-hero-subtitulo { margin-top: .85rem; font-family: var(--font-mono), monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--orange); }
@media (min-width: 768px) { .bh .bh-hero-subtitulo { font-size: .95rem; } }

/* Barra fixa do celular some enquanto o formulário está na tela */
.bh-sticky { transition: transform .25s ease, opacity .25s ease; }
.bh-sticky.bh-sticky-oculta { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Faixa de foto no topo do hero (só celular) */
.bh-hero-faixa { position: relative; margin: 0 0 .25rem; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7); }
.bh-hero-faixa img { width: 100%; aspect-ratio: 390 / 190; object-fit: cover; object-position: center 88%; display: block; }

/* Botão flutuante: com `blockhouse:` só no desktop (no celular já existe a barra fixa) */
@media (max-width: 767px) { .bh-float.bh-float-desktop { display: none; } }
.bh-float { transition: transform .25s ease, opacity .25s ease; }

/* Números do hero em 3 colunas também no celular */
.bh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bh-stats .bh-dado { font-size: clamp(1.15rem, 5.2vw, 2.6rem); white-space: nowrap; }
.bh-stats .text-sm { font-size: .72rem; line-height: 1.35; }
@media (min-width: 768px) { .bh-stats { gap: 2rem; } .bh-stats .text-sm { font-size: .875rem; } }

/* Lazer no celular: sem caixa por grupo, só título e pílulas */
@media (max-width: 639px) {
  .bh-lazer-grupo { border: 0; background: none; padding: 0; }
  .bh-lazer-grupo + .bh-lazer-grupo { padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
  .bh-lazer-grupo h3 { font-size: 1.1rem; }
  .bh-lazer-grupo ul { margin-top: .6rem; gap: .35rem; }
  .bh-lazer-grupo li { font-size: .78rem; padding: .28rem .6rem; }
}
.bh-hero-faixa figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .8rem .45rem; font-size: .68rem; color: #fff; background: linear-gradient(transparent, rgba(1, 59, 81, .85)); }

/* Plantas em lista (uma linha por opção) */
.bh-plantas { padding: .4rem 1.5rem; }
.bh-plantas li { display: flex; flex-direction: column; gap: .15rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.bh-plantas li:last-child { border-bottom: 0; }
.bh-plantas strong { color: var(--navy); font-weight: 600; }
.bh-plantas span { color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) {
  .bh-plantas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .bh-plantas li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* Passos compactos (sem cartão por passo) */
.bh-passos { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .bh-passos { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; } .bh-passos li { flex-direction: column; } }
.bh-passos h3 { font-size: 1.05rem; }
.bh-passos .bh-body { margin-top: .3rem; font-size: .92rem; }

/* Vídeo da obra (carrega o player só no clique) */
.bh-video .vit-video { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); box-shadow: 0 30px 60px -34px rgba(1, 59, 81, .55); }
.bh-video .vit-video iframe, .bh-video .vit-video-botao, .bh-video .vit-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.bh-video .vit-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.2rem; height: 4.2rem; border-radius: 999px; display: grid; place-items: center; background: var(--acao); color: #fff; box-shadow: 0 12px 30px -8px var(--acao-glow); }

/* Endereço */
.bh-endereco { display: flex; gap: .7rem; font-style: normal; font-size: 1.05rem; line-height: 1.5; color: var(--ink); font-weight: 500; }

/* ============================================================
   Paletas por marca para este layout.
   A ESTRUTURA (cubos, bloco escuro, serif, arco) é neutra e reutilizável;
   a COR vem do tema do cliente. Sem estes blocos, uma LP de outro cliente
   renderizava no navy+laranja da BlockHouse com o logo dele em cima.
   BlockHouse não tem bloco próprio: é o default declarado em .bh.
   ============================================================ */

/* Confiar Imóveis — grafite + dourado (a chave dourada da marca).
   Valores derivados de .tema-confiar em app/globals.css. */
.tema-confiar .bh {
  --navy: #121214;
  --navy-2: #1c1c20;
  --navy-3: #08080a;
  --dark-hi: #2c2c32;
  --on-dark: #f4f1ea;
  --on-dark-sub: #c9c2ae;
  --on-dark-body: #ded8c8;

  --acao: #c99a2f;             /* dourado Confiar */
  --acao-2: #d6af4c;
  --on-acao: #16161a;          /* grafite sobre dourado: branco em dourado não tem contraste */
  --acao-glow: rgba(201, 154, 47, .5);
  --acao-ring: rgba(201, 154, 47, .18);
  --dark-veil: rgba(18, 18, 20, .94);

  --orange: #c99a2f;           /* legado: usos antigos de --orange seguem a cor de ação */
  --orange-2: #d6af4c;
  --orange-soft: #e3cd96;
  --blue: #a87e20;             /* "digital" da BlockHouse → dourado escuro na Confiar */
  --blue-2: #e8dcc0;
  --blue-3: #efe9dd;

  --paper: #faf8f4;
  --ink: #1c1c20;
  --muted: #6b6b74;
  --line: #e6e1d8;
}
