/* J.R. Martins — site público (institucional e Nova Arary). Mesma identidade "Curva de Nível" da plataforma. */
:root {
  --surface: #eef2ec; --surface-raised: #fff; --surface-sunken: #e2e9e3; --line: #d3ddd6; --line-strong: #7d8c82;
  --ink: #1c2420; --ink-muted: #56655c; --mata: #0f3b2e; --mata-2: #16523f; --musgo: #2e6b4f; --mata-soft: #e1ebe4;
  --on-mata: #fff; --on-mata-soft: #c9ddd2; --ipe: #f2b705; --on-ipe: #231a00; --ipe-ink: #7a5600; --ipe-soft: #fcf0c8;
  --lago: #1f5a7a; --lago-soft: #dfebf2; --perigo: #b3261e;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 12px 32px rgb(15 59 46 / .14), 0 2px 6px rgb(15 59 46 / .08);
  --larg: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--mata); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.caixa { max-width: var(--larg); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.secao { padding-block: 72px; }
.secao-alt { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.secao-mata { background: var(--mata); color: var(--on-mata); }
.secao-mata h2, .secao-mata h3 { color: #fff; }
.secao-mata .suave { color: var(--on-mata-soft); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--musgo); margin-bottom: 14px; }
.secao-mata .eyebrow { color: var(--ipe); }
.intro { max-width: 62ch; color: var(--ink-muted); font-size: 18px; margin-top: 14px; }
.secao-mata .intro { color: var(--on-mata-soft); }
.suave { color: var(--ink-muted); }
.pequeno { font-size: 14px; line-height: 1.45; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 700 16px/20px var(--sans); text-decoration: none; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; transition: filter 140ms, transform 80ms, background-color 140ms; }
.btn { transition: filter 150ms ease, transform 150ms ease, background 150ms ease; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--lago); outline-offset: 2px; }
.btn-ipe { background: var(--ipe); border-color: var(--ipe); color: var(--on-ipe); }
.btn-ipe:hover { filter: brightness(1.05); }
.btn-mata { background: var(--mata); border-color: var(--mata); color: #fff; }
.btn-mata:hover { filter: brightness(1.15); }
.btn-claro { background: transparent; border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-claro:hover { background: rgb(255 255 255 / .1); filter: none; }
.btn-whats::before { content: ""; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.8 11.8 0 0 0 12 0C5.5 0 .2 5.3.2 11.8c0 2.1.5 4.1 1.6 5.9L0 24l6.4-1.7a11.8 11.8 0 0 0 5.6 1.4c6.5 0 11.8-5.3 11.8-11.8 0-3.2-1.2-6.1-3.3-8.4zM12 21.7c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.8 1 1-3.7-.2-.4A9.8 9.8 0 0 1 2.2 11.8C2.2 6.4 6.6 2 12 2a9.7 9.7 0 0 1 9.8 9.8c0 5.4-4.4 9.9-9.8 9.9zm5.4-7.3c-.3-.1-1.8-.9-2-1s-.5-.1-.7.1-.8 1-.9 1.2-.3.2-.6.1a8 8 0 0 1-4-3.5c-.3-.5.3-.5.9-1.6.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.2 5.1 4.5 1.9.8 2.6.9 3.6.7.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4l-.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--mata); color: var(--on-mata); border-bottom: 1px solid rgb(255 255 255 / .08); }
.topo .caixa { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 19px/1 var(--display); }
.marca svg { width: 30px; height: 30px; }
.topo nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topo nav a { color: var(--on-mata-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.topo nav a:hover, .topo nav a[aria-current] { color: #fff; background: rgb(255 255 255 / .1); }
.topo .acoes { display: flex; gap: 8px; align-items: center; }
.topo .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 760px) { .topo nav { display: none; } .topo .btn-claro { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mata); color: #fff; }
.hero-curvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-curvas rect, .hero-curvas path { fill: none; stroke: var(--musgo); stroke-width: 1.5; }
.hero-curvas circle { display: none; }
.hero .caixa { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 80px 88px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgb(0 0 0 / .18)); pointer-events: none; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--ipe); }
.hero .intro { color: var(--on-mata-soft); }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-figura { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / .35); aspect-ratio: 5 / 4; background: var(--mata-2); outline: 1px solid rgb(255 255 255 / .12); }
.hero-figura img { width: 100%; height: 100%; object-fit: cover; }
.hero-figura .legenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; background: linear-gradient(transparent, rgb(0 0 0 / .6)); color: #fff; font: 600 13px/1.3 var(--sans); }
.selo-fase { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ipe); color: var(--on-ipe); font: 700 13px/18px var(--sans); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.selo-fase.esgotada { background: var(--on-mata-soft); color: var(--mata); }
@media (max-width: 860px) { .hero .caixa { grid-template-columns: 1fr; padding-block: 48px 56px; } .hero-figura { order: -1; aspect-ratio: 16 / 10; } }

/* Faixa de números */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.numero { background: var(--surface-raised); border: 1px solid var(--line); border-top: 3px solid var(--ipe); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 4px; }
.numero strong { font: 800 38px/1.05 var(--display); color: var(--mata); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.numero span { font-size: 14px; color: var(--ink-muted); }
.secao-mata .numero { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
.secao-mata .numero strong { color: var(--ipe); }
.secao-mata .numero span { color: var(--on-mata-soft); }

/* Cartões de empreendimento */
.empreendimentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 36px; }
.emp { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 2px rgb(15 59 46 / .06); }
.emp figure { margin: 0; aspect-ratio: 16 / 9; background: var(--mata-soft); position: relative; }
.emp figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.emp:hover figure img { transform: scale(1.03); }
.emp { transition: box-shadow 200ms ease, transform 200ms ease; }
.emp:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.emp figure .faixa { position: absolute; top: 14px; left: 14px; }
.emp-corpo { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.emp-corpo .lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-muted); font-size: 15px; }
.emp-corpo .lista li::before { content: "·"; color: var(--ipe-ink); font-weight: 800; margin-right: 8px; }
.emp-corpo .acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.emp.esgotado figure { filter: saturate(.75); }

/* Grade de diferenciais */
.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grade { grid-template-columns: 1fr; } }
.item { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.item .icone { width: 46px; height: 46px; border-radius: 12px; background: var(--mata-soft); color: var(--mata); display: grid; place-items: center; margin-bottom: 4px; }
.item .icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.item p { color: var(--ink-muted); font-size: 15px; }
.secao-mata .item { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
.secao-mata .item p { color: var(--on-mata-soft); }
.secao-mata .item .icone { background: var(--ipe); color: var(--on-ipe); }

/* Passos */
.passos { counter-reset: passo; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
.passo { position: relative; padding: 22px 22px 22px 64px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; align-content: start; }
.passo::before { counter-increment: passo; content: counter(passo); position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--ipe); color: var(--on-ipe); display: grid; place-items: center; font: 800 15px/1 var(--display); }
.passo p { color: var(--ink-muted); font-size: 15px; }
@media (min-width: 981px) { .passos { position: relative; } .passos::before { content: ""; position: absolute; left: 34px; right: 34px; top: 36px; border-top: 2px dashed var(--line-strong); opacity: .5; } }

/* Planta */
.planta-caixa { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 28px; overflow-x: auto; }
.planta { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--sans); }
.planta .via { fill: var(--surface-sunken); }
.planta .rua { font-size: 2.6px; font-weight: 600; fill: var(--ink-muted); text-anchor: middle; dominant-baseline: middle; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.planta .extra path { fill: var(--surface-sunken); stroke: var(--line-strong); stroke-width: .3; stroke-dasharray: 1 .6; }
.planta .extra text { font-size: 2.2px; fill: var(--ink-muted); text-anchor: middle; dominant-baseline: middle; }
.planta .lote path { fill: var(--mata-soft); stroke: #fff; stroke-width: .45; stroke-linejoin: round; transition: fill 120ms; }
.planta .lote text { font-size: 3.1px; font-weight: 700; fill: var(--mata); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.planta .lote:hover path, .planta .lote:focus-visible path { fill: var(--ipe); stroke: var(--mata); stroke-width: .8; }
.planta .lote:hover text { fill: var(--on-ipe); }
.planta .lote { cursor: pointer; outline: none; }
.planta-legenda { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.planta-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.dica-rolar { display: none; font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
@media (max-width: 800px) { .dica-rolar { display: block; } }

/* Tabela de condições */
.condicoes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; margin-top: 36px; }
@media (max-width: 860px) { .condicoes { grid-template-columns: 1fr; } }
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabela th, .tabela td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tabela th { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunken); }
.tabela td.num, .tabela th.num { text-align: right; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela-rolar { overflow-x: auto; }
.lista-check { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lista-check li { padding-left: 30px; position: relative; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ipe); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.lista-check li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--on-ipe); border-bottom: 2px solid var(--on-ipe); transform: rotate(-45deg); }

/* Galeria */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 32px; }
.galeria figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--mata-soft); aspect-ratio: 4 / 3; position: relative; }
.galeria figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.galeria figure:hover img { transform: scale(1.03); }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .6)); color: #fff; font-size: 13px; }
.galeria figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .galeria figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; } }
.sem-fotos { display: none; }
.galeria:empty + .sem-fotos { display: block; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 820px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 20px/1 var(--display); color: var(--musgo); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-muted); }

/* Contato / rodapé */
.contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.contato .item strong { font-size: 18px; }
.contato a { color: inherit; }
.rodape { background: #0b2b21; color: var(--on-mata-soft); padding-block: 36px; font-size: 14px; }
.rodape .caixa { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.rodape a { color: #fff; }
.rodape .marca { margin-bottom: 8px; }
.rodape .plataforma { text-align: right; }
@media (max-width: 700px) { .rodape .caixa { grid-template-columns: 1fr; } .rodape .plataforma { text-align: left; } }

/* Cartão de aviso legal */
.nota-legal { margin-top: 20px; font-size: 13px; color: var(--ink-muted); max-width: 70ch; }

/* Botão flutuante do WhatsApp */
.whats-flutuante { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 20; box-shadow: var(--shadow); background: #1e6a42; border-color: #1e6a42; color: #fff; border-radius: 999px; }
.whats-flutuante:hover { filter: brightness(1.1); }

/* Imagem opcional que não existe ainda */
[data-opcional].sem-imagem { display: none; }
.fase-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--ipe); color: var(--on-ipe); border-radius: var(--radius); padding: 22px 26px; margin-top: 36px; }
.fase-banner strong { font: 800 26px/1.1 var(--display); }
.fase-banner .btn-mata { white-space: nowrap; }
@media (max-width: 760px) { .fase-banner { grid-template-columns: 1fr; } }

/* Celular: menu recolhido num botão, ações empilhadas, botão do topo só com o ícone */
.menu-btn { display: none; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .45); background: transparent; color: #fff; font: 700 14px/20px var(--sans); cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: rgb(255 255 255 / .12); }
/* Ícone do botão do menu: três traços; aberto, um X */
.menu-btn::before { content: ""; width: 18px; height: 14px; background: currentColor; flex: none;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M0 1h18M0 7h18M0 13h18' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.menu-btn[aria-expanded="true"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M3 0l12 14M15 0L3 14' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }

/* Celular: uma linha (marca à esquerda, ações e menu à direita); o menu abre por cima da página, sem empurrá-la */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; }
  .topo .caixa { flex-wrap: nowrap; gap: 12px; min-height: 60px; padding-block: 8px; }
  .topo .marca { margin-right: auto; }
  .topo .acoes { order: 2; } .menu-btn { order: 3; }
  .topo nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 11; flex-direction: column; gap: 2px;
    max-height: calc(100dvh - 60px); overflow-y: auto; padding: 8px 16px 20px; background: var(--mata);
    border-top: 1px solid rgb(255 255 255 / .12); box-shadow: 0 18px 30px rgb(0 0 0 / .35); }
  .topo.aberto nav { display: flex; }
  .topo nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; font-size: 17px; border-radius: 0; color: #fff; }
  .topo nav a + a { border-top: 1px solid rgb(255 255 255 / .08); }
  .topo nav .menu-cta { margin-top: 12px; justify-content: center; gap: 10px; border-top: 0; border-radius: 12px; background: var(--ipe); color: var(--on-ipe); font-weight: 700; }
  /* Fundo escurecido atrás do menu aberto (tocar nele fecha) */
  .topo.aberto::after { content: ""; position: fixed; inset: 0; top: 60px; z-index: 10; background: rgb(0 0 0 / .45); }
  .hero-acoes .btn, .emp-corpo .acoes .btn { flex: 1 1 auto; width: 100%; }
  .numero strong { font-size: 28px; }
  .secao { padding-block: 52px; }
}
@media (max-width: 480px) {
  .topo .acoes { display: none; } /* o hero já traz o botão; no topo estreito só a marca e o menu */
}

.acesso-restrito { font-size: 12px; color: rgb(201 221 210 / .6); text-decoration: none; }
.acesso-restrito:hover { color: #fff; text-decoration: underline; }
.rodape .plataforma { align-self: end; }

/* Itens só do menu do celular */
.topo nav .so-celular { display: none; }
@media (max-width: 760px) { .topo nav .so-celular { display: flex; } }
