/* ================= topo ================= */
.pular { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--grafite); color: var(--papel); }
.pular:focus { top: 12px; }

.topo {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: var(--grafite); background: rgb(245 243 238 / 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* sobre a capa o topo fica transparente e claro */
.com-capa .topo:not(.solido) { background: transparent; color: #f5f3ee; border-color: transparent; backdrop-filter: none; }
.marca { display: flex; align-items: center; gap: var(--e2); margin: 0; text-decoration: none; }
.mono { width: 40px; height: 40px; flex: none; overflow: visible; }
.mono-letras { font: 600 34px/1 var(--f-texto); letter-spacing: -0.06em; fill: currentColor; }
.mono-ponto { fill: var(--ouro); transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease); }
.marca:hover .mono-ponto { transform: scale(1.35); }
.marca-texto { display: grid; gap: 3px; }
.marca-nome { font: 300 1.3125rem/1 var(--f-texto); letter-spacing: 0.02em; }
.marca-nome b { font-weight: 600; }
.marca-sub { font-size: 0.66rem; letter-spacing: 0.04em; opacity: 0.8; white-space: nowrap; }
.marca-sub i { font-style: normal; opacity: 0.5; margin: 0 2px; }
.menu-desk { display: none; }
.menu-btn { position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-btn > span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn > span:nth-child(1) { top: 18px; }
.menu-btn > span:nth-child(2) { top: 26px; }
.menu-aberto .menu-btn > span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-aberto .menu-btn > span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu-aberto .topo { background: transparent; color: #f5f3ee; border-color: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 35;
  display: grid; align-content: space-between;
  padding: calc(110px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--noite); color: #f5f3ee;
  animation: menu-entra 0.6s var(--ease);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font: 400 clamp(2.4rem, 11vw, 3.6rem)/1.15 var(--f-display); text-decoration: none; opacity: 0; animation: subir 0.8s var(--ease) forwards; }
.menu nav a:nth-child(2) { animation-delay: 0.06s; }
.menu nav a:nth-child(3) { animation-delay: 0.12s; }
.menu nav a:nth-child(4) { animation-delay: 0.18s; }
.menu-pe { display: grid; gap: 18px; }
.menu-pe .btn { width: 100%; }
.menu-pe .rotulo { color: #8f948f; text-align: center; }
@keyframes menu-entra { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .topo { height: 80px; }
  .menu-btn, .menu { display: none !important; }
  .menu-desk { display: flex; gap: 40px; font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; }
  .menu-desk a { position: relative; text-decoration: none; padding: 6px 0; }
  .menu-desk a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
  .menu-desk a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ================= capa (stories) ================= */
.capa { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--noite); color: #f5f3ee; isolation: isolate; }
.capa-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.ativo { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.slide.ativo img { animation: aproximar 9s linear forwards; }
@keyframes aproximar { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(12 23 38 / 0.72) 0%, rgb(12 23 38 / 0.35) 40%, rgb(12 23 38 / 0) 58%),
    linear-gradient(0deg, rgb(12 23 38 / 0.92) 0%, rgb(12 23 38 / 0.55) 30%, rgb(12 23 38 / 0) 55%);
}
.capa-barras { position: absolute; z-index: 5; top: calc(var(--e6) + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); display: flex; gap: 6px; }
.capa-barras span { position: relative; flex: 1; height: 2px; background: rgb(245 243 238 / 0.3); overflow: hidden; }
.capa-barras span::after { content: ''; position: absolute; inset: 0; background: #f5f3ee; transform: scaleX(0); transform-origin: left; }
.capa-barras span.feita::after { transform: scaleX(1); }
.capa-barras span.ativa::after { animation: encher var(--duracao, 7s) linear forwards; }
.capa.pausada .capa-barras span.ativa::after { animation-play-state: paused; }
@keyframes encher { to { transform: scaleX(1); } }
.capa-toque { position: absolute; z-index: 3; top: 0; bottom: 34%; width: 34%; border: 0; background: none; cursor: pointer; }
.capa-toque--ant { left: 0; }
.capa-toque--prox { right: 0; width: 66%; }
.capa-toque:focus-visible { outline: 1px solid #f5f3ee; outline-offset: -8px; }

.capa-texto { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); top: calc(var(--e6) + var(--e4) + env(safe-area-inset-top)); pointer-events: none; }
.rotulo--claro { color: rgb(245 243 238 / 0.7); }
.capa-rotulo { opacity: 0; animation: subir 1s var(--ease) 0.2s forwards; }
.capa-titulo { margin-top: var(--e2); font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.4375rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 15ch; opacity: 0; animation: subir 1.2s var(--ease) 0.35s forwards; }
/* subtítulo um passo φ abaixo do título (× 0,618) */
.capa-titulo em { display: block; margin-top: var(--e2); font-size: 0.618em; line-height: 1.3; letter-spacing: 0; color: rgb(245 243 238 / 0.85); }

.slide-info { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.slide.ativo .slide-info > * { animation: subir 1s var(--ease) both; }
.slide.ativo .slide-info > :nth-child(2) { animation-delay: 0.08s; }
.slide.ativo .slide-info > :nth-child(3) { animation-delay: 0.16s; }
.slide-titulo { font: 400 clamp(1.3125rem, 1rem + 1.4vw, 2.125rem)/1.236 var(--f-display); max-width: 22ch; } /* 21 → 34 */
.slide-preco { font-size: var(--t-sm); letter-spacing: 0.08em; color: rgb(245 243 238 / 0.8); }
.slide-meta { font-size: var(--t-sm); color: rgb(245 243 238 / 0.85); }
/* "Ver a coleção": link discreto, deixa a foto respirar */
.capa-link {
  display: inline-flex; align-items: center; gap: var(--e1);
  margin-top: var(--e4); padding: var(--e2) 0;
  font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgb(245 243 238 / 0.55);
  pointer-events: auto;
  opacity: 0; transform: translateY(var(--e3));
  transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s, border-color 0.4s;
}
.pronto .capa-link { opacity: 1; transform: none; }
.capa-link span { display: inline-block; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .capa-link:hover { border-color: #f5f3ee; } .capa-link:hover span { transform: translateX(6px); } }

/* WhatsApp flutuante na cor da marca, com o ponto dourado */
.fab-whats {
  position: fixed; z-index: 30;
  right: var(--e3); bottom: calc(var(--e3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  height: 56px; min-width: 56px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--acento); color: #f5f3ee;
  box-shadow: 0 13px 34px -8px rgb(12 23 38 / 0.55), inset 0 0 0 1px rgb(245 243 238 / 0.12);
  opacity: 0; transform: translateY(var(--e4)) scale(0.8); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.3s;
}
.fab-whats.visivel { opacity: 1; transform: none; pointer-events: auto; }
.fab-whats::after { content: ''; position: absolute; top: 9px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 0 2px var(--acento); }
.fab-whats svg { width: 24px; height: 24px; flex: none; }
.fab-rotulo { max-width: 0; overflow: hidden; white-space: nowrap; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; transition: max-width 0.6s var(--ease), margin 0.6s var(--ease); }
.fab-whats:active { transform: scale(0.94); }
.menu-aberto .fab-whats, body:has(dialog[open]) .fab-whats { opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .fab-whats:hover { background: var(--acento-fundo); }
  .fab-whats:hover .fab-rotulo { max-width: 160px; margin: 0 4px 0 var(--e1); }
}
@media (min-width: 960px) { .fab-whats { right: var(--e4); bottom: var(--e4); } }
.folha-nota { margin-top: calc(-1 * var(--e2)); font-size: var(--t-sm); color: var(--musgo); }
.folha .btn { width: 100%; }

.slide-link { position: relative; z-index: 6; justify-self: start; margin-top: 12px; padding: 12px 0; font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgb(245 243 238 / 0.5); pointer-events: auto; }
.slide-link:hover { border-color: #f5f3ee; }
.capa-rolar { display: none; }
@media (min-width: 960px) {
  .capa-barras { top: 104px; left: auto; width: 320px; }
  .capa-texto { top: auto; bottom: var(--e6); max-width: 58%; }
  .capa-toque { bottom: 50%; }
  /* painel de vidro: o texto do imóvel fica legível sobre qualquer foto */
  .slide-info {
    left: auto; right: var(--gutter); bottom: var(--e6); width: 380px;
    padding: var(--e4); gap: var(--e1);
    background: rgb(12 23 38 / 0.5); backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid var(--ouro);
  }
  .slide-link { margin-top: var(--e2); }
  .slide::after {
    background:
      linear-gradient(90deg, rgb(12 23 38 / 0.6) 0%, rgb(12 23 38 / 0.2) 40%, rgb(12 23 38 / 0) 60%),
      linear-gradient(180deg, rgb(12 23 38 / 0.6) 0%, rgb(12 23 38 / 0) 22%),
      linear-gradient(0deg, rgb(12 23 38 / 0.6) 0%, rgb(12 23 38 / 0) 35%);
  }
  .capa-rolar { display: block; position: absolute; z-index: 5; left: 50%; bottom: 32px; width: 1px; height: 56px; background: rgb(245 243 238 / 0.25); overflow: hidden; }
  .capa-rolar span { position: absolute; inset: 0; background: #f5f3ee; animation: descer 2.4s var(--ease) infinite; }
  @keyframes descer { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
}

/* ================= seções ================= */
main section[id] { scroll-margin-top: 68px; }
@media (min-width: 960px) { main section[id] { scroll-margin-top: 80px; } }
.secao-cab { display: grid; gap: var(--e2); margin-bottom: var(--e5); }
.secao-titulo { font-size: var(--t-xl); letter-spacing: -0.02em; }

.manifesto { padding: var(--secao) 0; }
.manifesto-texto { font: 400 clamp(1.3125rem, 0.9rem + 2vw, 2.125rem)/1.382 var(--f-display); letter-spacing: -0.01em; max-width: 34ch; } /* 21 → 34 */
.manifesto-texto em { color: var(--musgo); }
.manifesto-assinatura { margin-top: var(--e4); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--musgo); }

/* ================= coleção ================= */
.colecao { padding-bottom: var(--secao); }
/* Hierarquia: 1) Comprar / Alugar (abas grandes)  2) tipos (texto pequeno)  3) Filtros (ação discreta) */
.filtros { display: grid; gap: var(--e3); }
.filtros-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--e3); border-bottom: 1px solid var(--linha); }
.abas { position: relative; display: flex; gap: var(--e4); }
.aba {
  padding: 0 0 var(--e2); border: 0; background: none; cursor: pointer;
  font: 400 var(--t-lg)/1 var(--f-display); color: var(--musgo);
  transition: color 0.4s var(--ease);
}
.aba:hover, .aba[aria-pressed='true'] { color: var(--grafite); }
.aba-indicador { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--grafite); transition: transform 0.6s var(--ease), width 0.6s var(--ease); }
.filtros-mais {
  display: inline-flex; align-items: center; gap: var(--e1);
  margin-bottom: var(--e2); padding: 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--grafite);
}
.filtros-mais svg { width: 18px; height: 18px; }
.filtros-contagem { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; background: var(--ouro); color: var(--grafite); font-size: 0.66rem; letter-spacing: 0; }
.filtros-contagem[hidden] { display: none; }
.tipos {
  display: flex; gap: var(--e4); overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  /* esmaece a borda direita: indica que a linha rola */
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--e6)), transparent);
}
.tipos::-webkit-scrollbar { display: none; }
.tipo {
  position: relative; flex: none; padding: var(--e1) 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-sm); letter-spacing: 0.02em; color: var(--musgo); white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.tipo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.tipo:hover { color: var(--grafite); }
.tipo[aria-pressed='true'] { color: var(--grafite); }
.tipo[aria-pressed='true']::after { transform: scaleX(1); }
@media (min-width: 760px) {
  .tipos { margin: 0; padding: 0; mask-image: none; flex-wrap: wrap; row-gap: var(--e1); }
  .aba { font-size: clamp(1.3125rem, 1rem + 0.8vw, 1.625rem); }
}
.resultado { margin: var(--e3) 0 var(--e4); font-size: var(--t-sm); color: var(--musgo); min-height: 1.6em; }

.grade { display: grid; gap: var(--e5) var(--e4); }
@media (min-width: 760px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grade { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; gap: var(--e3); text-decoration: none; }
.foto { position: relative; overflow: hidden; background: #dcd8ce; }
.foto--vazia::after, .foto:empty::after { content: 'João Sol'; position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.4rem var(--f-display); color: var(--musgo); background: #e6e2d8; }
.foto--vazia img { visibility: hidden; }
.card-foto { aspect-ratio: 1 / 1.272; border-radius: var(--raio); } /* retângulo √φ */
.card-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.6s var(--ease); }
.card:hover .card-foto img { transform: scale(1.05); }
.card-foto::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--cal); transform-origin: top; transition: transform 1.3s var(--ease); transition-delay: var(--atraso, 0ms); }
.card.visivel .card-foto::before { transform: scaleY(0); }
.card.revela { transform: none; opacity: 1; }
.card .card-info { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) 0.25s, transform 1s var(--ease) 0.25s; }
.card.visivel .card-info { opacity: 1; transform: none; }
.card-selo { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 6px 10px; background: rgb(12 23 38 / 0.75); color: #f5f3ee; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; }
.card-info { display: grid; gap: var(--e1); }
.card-local { font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--musgo); }
.card-titulo { font-size: var(--t-lg); line-height: 1.236; }
.card-meta { font-size: var(--t-sm); color: var(--musgo); }
.card-preco { margin-top: var(--e1); padding-top: var(--e2); border-top: 1px solid var(--linha); font-size: var(--t-md); font-weight: 500; letter-spacing: 0.02em; }
.card-preco small { font-weight: 400; color: var(--musgo); }

.vazio { grid-column: 1 / -1; padding: var(--e5) 0; text-align: center; color: var(--musgo); }
.vazio strong { display: block; margin-bottom: 8px; font: 400 1.6rem var(--f-display); color: var(--grafite); }
.vazio a { color: var(--grafite); }

/* ================= método ================= */
.metodo { padding: var(--secao) 0; background: var(--noite); color: #f5f3ee; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; }
.passo { display: grid; grid-template-columns: var(--e5) 1fr; gap: var(--e1); padding: var(--e4) 0; border-top: 1px solid rgb(245 243 238 / 0.14); }
.passo:last-child { border-bottom: 1px solid rgb(245 243 238 / 0.14); }
.passo-n { font: 400 1rem var(--f-display); color: rgb(245 243 238 / 0.5); padding-top: 4px; }
.passo h3 { font-size: var(--t-lg); margin-bottom: var(--e2); }
.passo p { color: rgb(245 243 238 / 0.66); font-size: var(--t-sm); max-width: 52ch; }
@media (min-width: 960px) {
  .passos { grid-template-columns: repeat(4, 1fr); gap: var(--e4); }
  .passo { grid-template-columns: 1fr; border-bottom: 0 !important; }
  .passo-n { margin-bottom: var(--e5); }
}

/* ================= corretor ================= */
.corretor { padding: var(--secao) 0; }
.corretor-in { display: grid; gap: var(--e5); }
.corretor-foto { position: relative; margin: 0; aspect-ratio: 1 / 1.272; background: #dcd8ce; overflow: hidden; }
.corretor-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.corretor-iniciais { position: absolute; inset: 0; display: grid; place-items: center; font: 400 5rem var(--f-display); color: var(--musgo); }
.corretor-foto:has(img) .corretor-iniciais { display: none; }
.corretor-texto { display: grid; gap: var(--e3); align-content: center; }
.corretor-bio { font-size: var(--t-lg); line-height: 1.6; color: #3a3d3b; max-width: 48ch; }
.corretor-dados { display: flex; flex-wrap: wrap; gap: var(--e3) var(--e5); margin: var(--e2) 0 0; padding-top: var(--e4); border-top: 1px solid var(--linha); }
.corretor-dados dt { font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--musgo); }
.corretor-dados dd { margin: 6px 0 0; font: 400 1.25rem var(--f-display); }
@media (min-width: 960px) { .corretor-in { grid-template-columns: 1fr 1.618fr; gap: var(--e6); align-items: center; } } /* 38,2 : 61,8 */

/* ================= contato ================= */
.contato { padding: var(--secao) 0 calc(var(--secao) + env(safe-area-inset-bottom)); background: var(--noite); color: #f5f3ee; }
.contato-in { display: grid; gap: var(--e5); }
.contato-texto > p:not(.rotulo) { margin-top: var(--e3); max-width: 40ch; color: rgb(245 243 238 / 0.7); font-size: var(--t-lg); }
.contato-texto .secao-titulo { margin-top: var(--e2); }
.redes { list-style: none; padding: 0; margin: var(--e4) 0 0; display: flex; flex-wrap: wrap; gap: var(--e2); }
.rede {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #f5f3ee; box-shadow: inset 0 0 0 1px rgb(245 243 238 / 0.28);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.rede svg { width: 21px; height: 21px; }
.rede:active { transform: scale(0.94); }
@media (hover: hover) { .rede:hover { background: #f5f3ee; color: var(--grafite); box-shadow: inset 0 0 0 1px #f5f3ee; } }
.redes-texto { margin-top: var(--e2); font-size: var(--t-sm); letter-spacing: 0.02em; color: rgb(245 243 238 / 0.6); }
.redes--rodape { margin: 0; gap: var(--e1); }
.redes--rodape .rede { width: 40px; height: 40px; }
.redes--rodape .rede svg { width: 18px; height: 18px; }
.rodape-admin { color: rgb(245 243 238 / 0.45); }
.form-lead { display: grid; gap: var(--e3); }
.contato .campo > span { color: rgb(245 243 238 / 0.6); }
.contato .campo input, .contato .campo textarea { border-bottom-color: rgb(245 243 238 / 0.2); color: #f5f3ee; }
.contato .campo input:focus, .contato .campo textarea:focus { border-bottom-color: #f5f3ee; }
.contato .campo input::placeholder, .contato .campo textarea::placeholder { color: rgb(245 243 238 / 0.35); }
.contato :focus-visible { outline-color: #f5f3ee; }
.form-lead .btn { margin-top: 8px; width: 100%; }
@media (min-width: 960px) { .contato-in { grid-template-columns: 1.618fr 1fr; gap: var(--e6); align-items: end; } .form-lead .btn { width: auto; justify-self: start; } }

/* ================= rodapé ================= */
.rodape { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--noite); color: rgb(245 243 238 / 0.55); border-top: 1px solid rgb(245 243 238 / 0.1); font-size: var(--t-xs); }
.rodape-in { display: grid; gap: var(--e3); }
.rodape .marca { color: #f5f3ee; }
.rodape-end { line-height: 1.618; }
.rodape-legal { opacity: 0.6; }
@media (min-width: 960px) { .rodape-in { grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--e5); } }

/* ================= folha (bottom sheet) ================= */
.folha { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 0; border: 0; border-radius: 14px 14px 0 0; background: var(--papel); color: var(--grafite); }
.folha[open] { animation: folha-sobe 0.35s var(--ease); }
.folha::backdrop { background: rgb(12 23 38 / 0.55); }
@keyframes folha-sobe { from { transform: translateY(100%); } to { transform: none; } }
.folha-in { display: grid; gap: var(--e3); padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.folha-in::before { content: ''; justify-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--linha); }
.folha-cab { display: flex; align-items: center; justify-content: space-between; }
.folha-cab h2 { font-size: 1.8rem; }
.folha-fechar { width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; font-size: 1rem; cursor: pointer; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.opcoes legend { width: 100%; margin-bottom: 10px; }
.opcoes input { position: absolute; opacity: 0; }
.opcoes span { display: grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linha); border-radius: 999px; font-size: var(--t-sm); cursor: pointer; }
.opcoes input:checked + span { background: var(--grafite); border-color: var(--grafite); color: var(--papel); }
.opcoes input:focus-visible + span { outline: 2px solid var(--grafite); outline-offset: 2px; }
.folha-acoes { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
@media (min-width: 760px) {
  .folha { width: min(100% - 48px, 520px); margin: auto; border-radius: var(--raio); }
  .folha[open] { animation: aparecer 0.45s var(--ease); }
  .folha-in { padding: 24px 32px 32px; }
  .folha-in::before { display: none; }
}
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ================= folha da marca (WhatsApp e "Tenho interesse") ================= */
.folha--marca { background: var(--noite); color: #f5f3ee; border-top: 1px solid var(--ouro); }
.folha--marca::backdrop { background: rgb(12 23 38 / 0.62); }
.folha--marca .folha-in::before { background: var(--ouro); opacity: 0.8; }
.folha--marca .folha-cab h2 { font-size: var(--t-xl); line-height: 1.1; }
.folha--marca .folha-fechar { color: rgb(245 243 238 / 0.7); }
.folha--marca .folha-nota, .folha--marca .folha-imovel { color: rgb(245 243 238 / 0.62); }
.folha--marca .campo > span { color: rgb(245 243 238 / 0.55); }
.folha--marca .campo input, .folha--marca .campo textarea { color: #f5f3ee; border-bottom-color: rgb(245 243 238 / 0.18); font-size: 16px; }
.folha--marca .campo input::placeholder { color: rgb(245 243 238 / 0.3); }
.folha--marca .campo input:focus { border-bottom-color: var(--ouro); }
.folha--marca :focus-visible { outline-color: #f5f3ee; }
.folha--marca .btn--acento { --bg: #f5f3ee; --fg: var(--grafite); }
.folha--marca .btn--fantasma { --fg: #f5f3ee; }
@media (hover: hover) {
  .folha--marca .btn--acento:hover { --bg: #ffffff; }
  .folha--marca .btn--fantasma:hover { --bg: #f5f3ee; --fg: var(--grafite); }
}
.folha--marca .aviso--ok { background: rgb(245 243 238 / 0.1); color: #f5f3ee; }
.folha--marca .aviso--erro { background: rgb(163 39 31 / 0.25); color: #ffd9d4; }
/* altura que acompanha o teclado do celular sem empurrar a página */
.folha { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }

/* ================= aviso de cookies ================= */
.cookies {
  position: fixed; z-index: 50; left: var(--e2); right: var(--e2); bottom: calc(var(--e2) + env(safe-area-inset-bottom));
  display: grid; gap: var(--e2); padding: var(--e3);
  background: var(--noite); color: #f5f3ee; border-top: 1px solid var(--ouro);
  box-shadow: 0 21px 55px -21px rgb(12 23 38 / 0.6);
  font-size: var(--t-sm); line-height: 1.5;
  animation: cookies-sobe 0.5s var(--ease) 1.2s both;
}
.cookies a { color: #f5f3ee; }
.cookies-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e1); }
.cookies .btn { min-height: 44px; }
.cookies .btn--fantasma { --fg: #f5f3ee; }
.cookies .btn--acento { --bg: #f5f3ee; --fg: var(--grafite); }
@keyframes cookies-sobe { from { opacity: 0; transform: translateY(var(--e4)); } to { opacity: 1; transform: none; } }
.com-cookies .fab-whats { bottom: calc(160px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .cookies { left: auto; right: var(--e4); bottom: var(--e4); width: 420px; }
  .com-cookies .fab-whats { bottom: calc(var(--e4) + 190px); }
}
.rodape-links { color: rgb(245 243 238 / 0.45); }
.rodape-links a { color: inherit; }

/* crédito de quem fez o site */
.credito { grid-column: 1 / -1; padding-top: var(--e3); border-top: 1px solid rgb(245 243 238 / 0.08); font-size: 0.72rem; color: rgb(245 243 238 / 0.42); }
.credito a { color: rgb(245 243 238 / 0.7); text-decoration: underline; text-decoration-color: rgb(245 243 238 / 0.25); text-underline-offset: 3px; transition: color 0.3s, text-decoration-color 0.3s; }
.credito a:hover { color: #f5f3ee; text-decoration-color: var(--ouro); }
.credito--links { text-align: center; border: 0; padding-top: 0; margin-top: calc(-1 * var(--e3)); }
