/* Site Briana Duranti · editorial de luxo no sistema da apresentação online (preto quente, creme e terracota).
   Celular primeiro. Sem framework. Comportamento em site.js e projeto.js. */

@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/InstrumentSerif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(fonts/Manrope-normal.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0e0d0c;
  --ink-2: #1a1917;
  --ink-3: #2a2825;
  --cream: #f7f2e9;
  --cream-2: #ede5d7;
  --sand: #ddd1bd;
  --text-dark: #17140f;
  --muted-dark: #665d52;
  --text-light: #f7f2e9;
  --muted-light: #b5ab9e;
  --accent: #c8572f;
  --accent-on-light: #a4431f;
  --accent-on-dark: #e48d66;
  --linha-clara: rgba(23, 20, 15, 0.14);
  --linha-escura: rgba(247, 242, 233, 0.16);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(16px, 5vw, 64px);
  --largura: 1320px;
  --topo-h: 60px;
  --barra-h: 64px;
  --raio: 4px;

  --t-hero: clamp(3rem, min(12.5vw, 14vh), 8.2rem); /* 15vh: notebook de tela baixa não empurra o título para baixo do cabeçalho */
  --t-secao: clamp(2.3rem, 8.4vw, 5rem);
  --t-bloco: clamp(1.85rem, 6.4vw, 3.3rem);
  --t-rotulo: 0.72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }
html.travado { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--text-dark); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-on-light); outline-offset: 3px; border-radius: 2px; }
.escuro :focus-visible, .topo:not(.topo-solido) :focus-visible, .barra :focus-visible { outline-color: var(--accent-on-dark); }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.pular:focus { top: 12px; }
.icone { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Tipografia ---------- */
.rotulo { font: 700 var(--t-rotulo)/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-on-light); }
.rotulo-claro, .escuro .rotulo { color: var(--accent-on-dark); }
.titulo-hero, .titulo-secao, .vitrine-titulo, .projeto-titulo { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
.titulo-secao { font-size: var(--t-secao); line-height: 0.98; margin-top: 0.45rem; }
.titulo-hero em, .titulo-secao em, .vitrine-titulo em, .projeto-titulo em, .folha-titulo em, .escolha-casa h3 em { font-style: italic; color: var(--accent-on-light); }
.escuro .titulo-secao em, .titulo-hero em { color: var(--accent-on-dark); }
.secao-topo { max-width: 52rem; }
.secao-texto { margin-top: 0.9rem; color: var(--muted-dark); max-width: 34rem; }

/* ---------- Botões ---------- */
.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px; padding: 0 1.35rem; border-radius: 999px; border: 1px solid transparent; font: 650 0.94rem/1.1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out); }
.botao:active { transform: scale(0.98); }
.botao-acento { background: var(--accent-on-light); color: #fff; }
.botao-acento:hover { background: #8d391a; }
.botao-claro { background: var(--cream); color: var(--ink); }
.botao-claro:hover { background: #fff; }
.botao-contorno { border-color: currentColor; background: transparent; }
.botao-contorno:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.escuro .botao-contorno:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.botao-vidro { background: rgba(247, 242, 233, 0.14); color: var(--cream); border-color: rgba(247, 242, 233, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.botao-vidro:hover { background: rgba(247, 242, 233, 0.26); }
.botao-whats { background: var(--ink); color: var(--cream); }
.botao-whats .icone { color: #25d366; }
.botao-whats:hover { background: var(--ink-3); }
.botao-largo { width: 100%; }

/* ---------- Cabeçalho ---------- */
.topo { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--topo-h); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); color: var(--cream); transition: background-color .35s, color .35s, box-shadow .35s; }
.topo-solido { background: rgba(247, 242, 233, 0.9); color: var(--text-dark); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--linha-clara); }
.marca { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.marca-logo { display: block; height: 34px; width: auto; flex-shrink: 0; }
.topo { --logo-acento: var(--accent-on-dark); }
.topo-solido { --logo-acento: var(--accent-on-light); }
.menu-aberto { --logo-acento: var(--accent-on-dark); }
.topo-menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; }
.topo-menu .icone { width: 26px; height: 26px; }
.topo-quero { display: none; }
.topo-nav { position: fixed; inset: 0; z-index: -1; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding: calc(var(--topo-h) + 24px) var(--gutter) 40px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s; }
.topo-nav ul { display: grid; gap: 0.35rem; }
.topo-nav ul a { font: 400 clamp(2.4rem, 11vw, 3.4rem)/1.08 var(--serif); text-decoration: none; }
.topo-nav ul a:hover { color: var(--accent-on-dark); font-style: italic; }
.topo-whats { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; color: var(--sand); }
.topo-whats .icone { color: #25d366; width: 1.4em; height: 1.4em; }
.menu-aberto .topo-nav { opacity: 1; visibility: visible; }
.menu-aberto { color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Abertura ---------- */
.abertura { position: relative; min-height: max(100svh, 580px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); background: var(--ink); overflow: hidden; isolation: isolate; }
.abertura-fundo { position: absolute; inset: 0; z-index: -1; }
.abertura-fundo picture { display: block; width: 100%; height: 100%; }
.abertura-fundo img { width: 100%; height: 100%; object-fit: cover; animation: abertura-zoom 2.4s var(--ease-out) both; }
.abertura-fundo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 12, 0.55) 0%, rgba(14, 13, 12, 0) 22%, rgba(14, 13, 12, 0.12) 42%, rgba(14, 13, 12, 0.66) 62%, rgba(14, 13, 12, 0.9) 100%); }
.abertura-conteudo { padding: calc(var(--topo-h) + 20px) var(--gutter) calc(64px + env(safe-area-inset-bottom)); display: grid; gap: 1rem; max-width: 64rem; }
.titulo-hero { font-size: var(--t-hero); line-height: 0.92; max-width: 11ch; }
.abertura-sub { max-width: 30rem; color: rgba(247, 242, 233, 0.86); font-size: 1.02rem; }
.abertura .acoes { margin-top: 0.4rem; }
.abertura-conteudo > * { animation: subir 1s var(--ease-out) both; }
.abertura-conteudo > :nth-child(2) { animation-delay: .12s; }
.abertura-conteudo > :nth-child(3) { animation-delay: .24s; }
.abertura-conteudo > :nth-child(4) { animation-delay: .36s; }
.abertura .rotulo { color: var(--sand); }
.abertura-legenda { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; align-items: center; gap: 0.4rem; text-align: right; font: 600 0.7rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 242, 233, 0.78); text-decoration: none; }
.abertura-legenda:hover { color: var(--cream); }
@keyframes abertura-zoom { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Qual é o seu imóvel ---------- */
.escolha { padding: clamp(64px, 12vw, 128px) 0 clamp(36px, 6vw, 64px); }
.seletor { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-2); max-width: 34rem; }
.seletor-opcao { min-height: 46px; padding: 0 0.4rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted-dark); font-weight: 700; font-size: 0.86rem; line-height: 1.1; transition: background-color .3s var(--ease-out), color .3s; }
.seletor-opcao:hover { color: var(--text-dark); }
.seletor-opcao[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.escolha-contagem { min-height: 1.6em; margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted-dark); }
.escolha-casa { margin-top: 1.2rem; padding: 1.4rem; border-radius: var(--raio); background: var(--cream-2); display: grid; gap: 0.7rem; max-width: 34rem; }
.escolha-casa h3 { font: 400 1.9rem/1 var(--serif); }
.escolha-casa .botao { justify-self: start; }

/* ---------- Vitrine ---------- */
.vitrine { padding: 0 var(--gutter) clamp(72px, 12vw, 140px); max-width: var(--largura); margin: 0 auto; }
.vitrine-lista { counter-reset: projeto; display: grid; gap: clamp(56px, 10vw, 120px); }
.vitrine-item { counter-increment: projeto; }
.vitrine-bloco { display: grid; gap: 1.3rem; }
.vitrine-texto { display: grid; gap: 0.75rem; align-content: start; border-top: 1px solid var(--linha-clara); padding-top: 1.1rem; }
.vitrine-texto .rotulo::before { content: counter(projeto, decimal-leading-zero) ' — '; color: var(--muted-dark); }
.vitrine-titulo { font-size: var(--t-bloco); line-height: 1; }
.vitrine-texto .acoes { margin-top: 0.3rem; }
.vitrine-quadro { display: block; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.vitrine-quadro img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.vitrine-quadro:hover img { transform: scale(1.03); }
.anima [data-revelar] { clip-path: inset(9% 9% 9% 9%); transition: clip-path 1.2s var(--ease-out); }
.anima [data-revelar] img { transform: scale(1.12); }
.anima [data-revelar].visivel { clip-path: inset(0 0 0 0); }
.anima [data-revelar].visivel img { transform: scale(1); }
.vitrine-item.saindo { opacity: 0; transform: translateY(12px); }
.vitrine-item { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }

/* ---------- Seções escuras e corte diagonal ---------- */
.escuro { background: var(--ink); color: var(--text-light); }
.funciona { position: relative; padding: calc(clamp(72px, 12vw, 140px) + 6vw) var(--gutter) clamp(56px, 9vw, 110px); clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%); margin-top: -6vw; }
.funciona > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }
.abas { display: flex; gap: 1.6rem; margin-top: 2rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--linha-escura); overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { flex-shrink: 0; padding: 0.9rem 0; border: 0; background: none; color: var(--muted-light); font-weight: 700; font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.aba:hover { color: var(--cream); }
.aba[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--accent-on-dark); }
.painel { display: grid; gap: 1.6rem; animation: subir .6s var(--ease-out) both; }
.painel:focus-visible { outline-offset: 8px; }
.painel-intro { display: grid; gap: 0.8rem; max-width: 36rem; color: rgba(247, 242, 233, 0.86); font-size: 1.05rem; }
.painel-marca { font: italic 400 2rem/1 var(--serif); color: var(--cream); }
.painel-intro .logo { height: 40px; width: auto; flex-shrink: 0; }
.painel-foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--raio); }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; counter-reset: etapa; }
.trilho::-webkit-scrollbar { display: none; }
.cartao { scroll-snap-align: start; display: grid; align-content: start; gap: 0.5rem; min-height: 150px; padding: 1.3rem; border-radius: var(--raio); background: var(--ink-2); border: 1px solid var(--linha-escura); }
.cartao h4 { font: 700 1rem/1.3 var(--sans); }
.cartao p { color: var(--muted-light); font-size: 0.92rem; }
.cartao-numero { font: italic 400 2.1rem/1 var(--serif); color: var(--accent-on-dark); }
.cartao-destaque { font: 400 2.6rem/1 var(--serif); color: var(--accent-on-dark); }
.cartao-garantia { background: var(--accent-on-light); border-color: transparent; }
.cartao-garantia .cartao-destaque, .cartao-garantia p { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 0.45rem 0.9rem; border: 1px solid var(--linha-escura); border-radius: 999px; font-size: 0.85rem; color: var(--sand); }
.fonte { font-size: 0.75rem; color: var(--muted-light); }
.painel-video video { width: min(100%, 340px); border-radius: var(--raio); background: var(--ink-2); }

/* ---------- Sobre ---------- */
.sobre { padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(80px, 12vw, 150px); }
.sobre > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }
.sobre-grade { display: grid; gap: 2.4rem; }
.sobre-foto { order: -1; width: min(100%, 420px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--raio); background: var(--ink-2); }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
.sobre-frase { margin-top: 1.4rem; font: 400 clamp(2rem, 7.6vw, 4.4rem)/1.04 var(--serif); letter-spacing: -0.01em; max-width: 22ch; }
.sobre-frase .p { color: var(--cream); transition: color .5s; }
.sobre-frase .d { font-style: italic; color: var(--accent-on-dark); }
.acender .sobre-frase .p:not(.aceso) { color: #4a453f; }
.numeros { margin-top: clamp(48px, 8vw, 88px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.2rem; border-top: 1px solid var(--linha-escura); padding-top: 1.6rem; }
.numero { display: grid; align-content: start; gap: 0.3rem; }
.numero dt { order: 2; font: 400 clamp(2.6rem, 10vw, 4.6rem)/0.95 var(--serif); }
.numero-prefixo { order: 1; font-size: 0.78rem; color: var(--muted-light); }
.numero dd { order: 3; color: var(--muted-light); font-size: 0.88rem; max-width: 16rem; }

/* ---------- Depoimentos ---------- */
.depoimentos { padding: clamp(64px, 10vw, 120px) var(--gutter); max-width: var(--largura); margin: 0 auto; }
.depoimentos-lista { margin-top: 2rem; display: grid; gap: 2rem; }
.depoimentos blockquote p { font: italic 400 clamp(1.6rem, 5vw, 2.4rem)/1.15 var(--serif); }
.depoimento-autor { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted-dark); }

/* ---------- Contato e formulário ---------- */
.contato { padding: clamp(72px, 12vw, 140px) var(--gutter); max-width: var(--largura); margin: 0 auto; }
.contato-grade { margin-top: 2.2rem; display: grid; gap: 2.4rem; }
.contato-form { background: #fbf8f2; border: 1px solid var(--linha-clara); border-radius: var(--raio); padding: clamp(1.2rem, 4vw, 2.2rem); }
.contato-lado { display: grid; gap: 1.2rem; align-content: start; }
.loja { display: grid; gap: 1rem; }
.loja figcaption { display: grid; gap: 0.25rem; font-size: 0.92rem; }
.loja figcaption a { color: var(--muted-dark); }
.contato-insta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; }

.form-lead { display: grid; gap: 1.15rem; }
.campo { display: grid; gap: 0.45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.campo label, .campo legend { font-weight: 700; font-size: 0.86rem; padding: 0; }
.campo input[type="text"], .campo input[type="tel"] { width: 100%; min-height: 50px; padding: 0 0.95rem; border: 1px solid rgba(23, 20, 15, 0.28); border-radius: 10px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.campo input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(164, 67, 31, 0.18); }
.campo input[aria-invalid="true"] { border-color: var(--accent-on-light); }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes-coluna { display: grid; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao span { display: flex; align-items: center; min-height: 46px; padding: 0 1rem; border: 1px solid rgba(23, 20, 15, 0.28); border-radius: 10px; background: #fff; font-size: 0.93rem; transition: background-color .2s, color .2s, border-color .2s; }
.opcao input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.opcao input:focus-visible + span { outline: 2px solid var(--accent-on-light); outline-offset: 2px; }
.form-referencia { font-size: 0.88rem; padding: 0.7rem 0.9rem; background: var(--cream-2); border-radius: 10px; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erro { color: var(--accent-on-light); font-weight: 600; font-size: 0.92rem; }
.form-erro a { display: inline-flex; margin-top: 0.6rem; }
.form-nota { font-size: 0.78rem; color: var(--muted-dark); }
.form-lead button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.form-sucesso { display: grid; gap: 0.8rem; justify-items: start; padding: 0.4rem 0; }
.form-sucesso-titulo { font: 400 2.2rem/1 var(--serif); }
.form-sucesso:focus { outline: none; }
.form-sucesso .botao, .form-erro .botao { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 0.7rem; }

/* ---------- Folha (formulário em janela) ---------- */
.folha { width: 100%; max-width: 100%; max-height: 94svh; margin: auto 0 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--cream); color: var(--text-dark); overflow: hidden; }
.folha[open] { animation: folha-subir .45s var(--ease-out); }
.folha::backdrop { background: rgba(14, 13, 12, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.folha-corpo { max-height: 94svh; overflow-y: auto; overscroll-behavior: contain; padding: 1.6rem var(--gutter) calc(1.6rem + env(safe-area-inset-bottom)); }
.folha-corpo::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: rgba(23, 20, 15, 0.18); margin: -0.6rem auto 1rem; }
.folha-fechar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream-2); }
.folha-titulo { font: 400 2.3rem/1 var(--serif); padding-right: 3rem; }
.folha-texto { margin: 0.5rem 0 1.4rem; color: var(--muted-dark); }
@keyframes folha-subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Barra fixa ---------- */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: var(--barra-h); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(26, 25, 23, 0.94); color: var(--cream); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--linha-escura); transform: translateY(110%); transition: transform .45s var(--ease-out); }
.barra.visivel { transform: none; }
.barra-texto { flex: 1; display: grid; line-height: 1.15; min-width: 0; }
.barra-texto span { font-size: 0.72rem; color: var(--muted-light); }
.barra-texto strong { font: 400 1.3rem/1.05 var(--serif); }
.barra .botao { min-height: 44px; }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transition: bottom .45s var(--ease-out); z-index: 35; display: grid; gap: 0.8rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--ink-2); color: var(--cream); border: 1px solid var(--linha-escura); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); font-size: 0.9rem; max-width: 460px; }
.com-barra .cookies { bottom: calc(var(--barra-h) + 12px + env(safe-area-inset-bottom)); }
.cookies a { color: var(--sand); }
.cookies-acoes { display: flex; gap: 8px; justify-content: flex-end; }
.cookies .botao { min-height: 40px; padding: 0 1rem; }
/* Aviso na chegada: a abertura sobe o conteúdo pela altura dele (--cookies-h, medido em site.js).
   Na entrada o ajuste é imediato (o texto ainda está surgindo); depois da escolha, o conteúdo desce suave. */
.cookies-decidido .abertura-conteudo, .cookies-decidido .abertura-legenda { transition: padding-bottom .45s var(--ease-out), bottom .45s var(--ease-out); }
.com-cookies .abertura-conteudo { padding-bottom: calc(var(--cookies-h, 0px) + 36px + env(safe-area-inset-bottom)); }
.com-cookies .abertura-legenda { bottom: calc(var(--cookies-h, 0px) + 16px + env(safe-area-inset-bottom)); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--ink); color: var(--cream); padding: clamp(56px, 9vw, 96px) var(--gutter) calc(var(--barra-h) + 32px + env(safe-area-inset-bottom)); display: grid; gap: 2rem; }
.rodape > * { width: 100%; max-width: var(--largura); margin: 0 auto; }
.rodape { --logo-acento: var(--accent-on-dark); }
.rodape-logo { display: block; width: min(100%, 440px); height: auto; }
.rodape-links { display: grid; gap: 0.9rem; }
.rodape-links a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--sand); }
.rodape-links a:hover { color: var(--cream); }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-top: 1.4rem; border-top: 1px solid var(--linha-escura); font-size: 0.78rem; color: var(--muted-light); }
.rodape-fim-links { display: inline-flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.rodape-cookies { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.rodape-cookies[hidden] { display: none; }

/* ---------- Página de projeto ---------- */
.pagina-projeto, .pagina-texto { padding-top: var(--topo-h); }
.projeto-topo { padding: clamp(24px, 5vw, 56px) var(--gutter) 1.4rem; max-width: var(--largura); margin: 0 auto; display: grid; gap: 0.7rem; }
.voltar { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--muted-dark); text-decoration: none; margin-bottom: 0.4rem; }
.voltar:hover { color: var(--text-dark); }
.projeto-titulo { font-size: clamp(2.2rem, 8vw, 4.4rem); line-height: 0.98; max-width: 20ch; }
.perto { max-width: var(--largura); margin: 0 auto; }
.perto-palco { position: relative; }
.perto-quadro { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.perto-quadro .perto-imagem, .perto-quadro .perto-camada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perto-camada { opacity: 0; transition: opacity .45s ease; }
.perto-camada.visivel { opacity: 1; }
.perto-quadro.inteira { aspect-ratio: auto; display: flex; align-items: center; }
.perto-quadro.inteira .perto-imagem { position: static; height: auto; object-fit: contain; }
.perto-quadro.inteira .planta { display: none; }
.perto-inteira { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(14, 13, 12, 0.6); color: var(--cream); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.perto-contador { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(14, 13, 12, 0.6); color: var(--cream); font: 700 0.72rem/1 var(--sans); letter-spacing: 0.08em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.planta { position: absolute; top: 12px; right: 12px; z-index: 3; width: 28%; max-width: 230px; padding: 6px; border-radius: 10px; background: rgba(247, 242, 233, 0.94); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.planta img { width: 100%; border-radius: 4px; }
.planta-cone { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: hidden; border-radius: 4px; }
.planta-cone path { fill: rgba(200, 87, 47, 0.42); stroke: var(--accent); stroke-width: 0.6; vector-effect: non-scaling-stroke; transition: d .6s var(--ease-out); }
.planta-cone circle { fill: var(--accent); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: cx .6s var(--ease-out), cy .6s var(--ease-out); }
.perto-barra { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
.perto-barra::-webkit-scrollbar { display: none; }
.perto-aba { flex-shrink: 0; scroll-snap-align: start; min-height: 42px; padding: 0 1rem; border: 1px solid rgba(23, 20, 15, 0.22); border-radius: 999px; background: transparent; font-weight: 650; font-size: 0.88rem; transition: background-color .25s, color .25s, border-color .25s; }
.perto-aba:hover { border-color: var(--ink); }
.perto-aba[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.perto-texto { padding: 0.4rem var(--gutter) 0; display: grid; gap: 0.5rem; max-width: 46rem; }
.perto-nome { font: 400 clamp(1.9rem, 6vw, 2.8rem)/1 var(--serif); }
.perto-descricao { color: var(--muted-dark); font-size: 1.04rem; }
.perto-materiais { margin-top: 0.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.perto-materiais img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--raio); }
.perto-materiais span { display: block; margin-top: 0.45rem; font-size: 0.86rem; color: var(--muted-dark); }
.perto-materiais strong { color: var(--text-dark); }
.projeto-todas { max-width: var(--largura); margin: clamp(56px, 9vw, 96px) auto 0; padding: 0 var(--gutter) clamp(56px, 9vw, 96px); }
.todas-lista { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.todas-lista a { display: grid; gap: 0.4rem; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.todas-lista img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); }
.projeto-fim { padding: clamp(72px, 12vw, 140px) var(--gutter) clamp(56px, 9vw, 96px); display: grid; gap: 1.6rem; }
.projeto-fim > * { max-width: var(--largura); width: 100%; margin: 0 auto; }
.projeto-fim .titulo-secao { max-width: 16ch; }
.proximo { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; margin-top: 2rem; padding: 1.2rem; min-height: 220px; border-radius: var(--raio); overflow: hidden; color: var(--cream); text-decoration: none; isolation: isolate; }
.proximo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.proximo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 13, 12, 0) 30%, rgba(14, 13, 12, 0.82)); }
.proximo:hover img { transform: scale(1.04); }
.proximo > span { display: grid; gap: 0.35rem; }
.proximo strong { font: 400 clamp(1.7rem, 6vw, 2.6rem)/1 var(--serif); }
.proximo .icone { width: 28px; height: 28px; }

/* ---------- Texto longo (privacidade) ---------- */
.texto-longo { max-width: 44rem; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 10vw, 120px); display: grid; gap: 1rem; }
.texto-longo h2 { margin-top: 1.4rem; font: 400 1.7rem/1.1 var(--serif); }
.texto-longo p { color: #3d3830; }
.texto-acoes { display: grid; gap: 10px; margin-top: 0.8rem; }
.texto-acoes .botao { white-space: normal; text-align: center; line-height: 1.25; padding-block: 0.7rem; }
@media (min-width: 560px) { .texto-acoes { grid-auto-flow: column; justify-content: start; } }

/* ---------- Telas maiores ---------- */
@media (min-width: 700px) {
  .numeros { grid-template-columns: repeat(4, 1fr); }
  .todas-lista { grid-template-columns: repeat(3, 1fr); }
  .contato-grade { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .perto-quadro { aspect-ratio: 3 / 2; }
  .folha { max-width: 580px; margin: auto; border-radius: 22px; }
  .folha-corpo { padding: 2.2rem 2.2rem 2.2rem; }
  .folha-corpo::before { display: none; }
  .depoimentos-lista { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  :root { --topo-h: 76px; }
  .marca-logo { height: 40px; }
  .topo-menu { display: none; }
  .topo-quero { display: inline-flex; min-height: 42px; }
  .topo-nav { position: static; z-index: auto; flex-direction: row; align-items: center; gap: 1.8rem; padding: 0; background: none; color: inherit; opacity: 1; visibility: visible; }
  .topo-nav ul { display: flex; gap: 1.6rem; }
  .topo-nav ul a { font: 600 0.9rem/1 var(--sans); }
  .topo-nav ul a:hover { color: inherit; font-style: normal; text-decoration: underline; text-underline-offset: 6px; }
  .topo-whats { color: inherit; font-size: 0.9rem; }
  .topo-whats span { display: none; }
  .barra { display: none; }
  .cookies { bottom: 20px; left: 20px; right: auto; max-width: 640px; grid-template-columns: 1fr auto; align-items: center; gap: 1.2rem; }
  .com-cookies .abertura-conteudo { padding-bottom: calc(var(--cookies-h, 0px) + 48px); }
  .com-cookies .abertura-legenda { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .rodape { padding-bottom: 40px; grid-template-columns: 1fr auto; align-items: end; }
  .rodape > * { margin: 0; }
  .rodape-fim { grid-column: 1 / -1; }
  .abertura-conteudo { padding-bottom: 88px; }
  .vitrine-bloco { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  .vitrine-item:nth-child(even) .vitrine-bloco { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); }
  .vitrine-item:nth-child(even) .vitrine-texto { order: 2; }
  .vitrine-quadro { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--raio); }
  .funciona .painel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .funciona .painel > .trilho, .funciona .painel > .fonte, .funciona .painel > .chips { grid-column: 1 / -1; }
  .trilho { margin: 0; padding: 0 0 6px; grid-auto-columns: 280px; }
  .painel-video { grid-column: 2; grid-row: 1 / span 2; }
  .sobre-grade { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
  .sobre-foto { order: 0; width: 100%; }
  .perto-palco { padding: 0 var(--gutter); }
  .perto-quadro { border-radius: var(--raio); aspect-ratio: 16 / 9; }
  .perto-barra { padding: 16px 0; }
  .planta { width: 22%; }
  .perto-texto { padding: 0.4rem var(--gutter) 0; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anima [data-revelar], .anima [data-revelar] img { clip-path: none; transform: none; }
}
