/* =========================================================
   RZ Corretor de Imóveis — Renato Angelo Zola
   Paleta travada na logo: vermelho #C01E2E · marinho #1D1E4E
   Estratégia de cor: Committed — o marinho carrega as superfícies
   de abertura e fechamento, o vermelho é sempre ação.
   ========================================================= */

:root {
  --marinho:        oklch(0.240 0.088 283);
  --marinho-fundo:  oklch(0.185 0.072 283);
  --marinho-claro:  oklch(0.330 0.090 283);
  --vermelho:       oklch(0.492 0.192 26);
  --vermelho-vivo:  oklch(0.545 0.205 26);
  --vermelho-fundo: oklch(0.400 0.160 26);

  --papel:      oklch(0.985 0.004 283);
  --superficie: oklch(1 0 0);
  --aresta:     oklch(0.905 0.008 283);
  --tinta:      oklch(0.235 0.022 283);
  --tinta-fraca: oklch(0.455 0.020 283);   /* 4.9:1 sobre --papel */
  --claro:      oklch(0.985 0.004 283);
  --claro-fraco: oklch(0.855 0.020 283);   /* 8.4:1 sobre --marinho */

  --zap:        oklch(0.520 0.140 152);   /* 5.1:1 com branco */
  --zap-vivo:   oklch(0.575 0.155 152);

  --fonte: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-p: 6px;
  --r-m: 12px;
  --r-g: 20px;

  --sombra-m: 0 1px 2px oklch(0.24 0.088 283 / .06), 0 6px 16px oklch(0.24 0.088 283 / .07);
  --sombra-g: 0 2px 6px oklch(0.24 0.088 283 / .07), 0 18px 44px oklch(0.24 0.088 283 / .13);

  --saida: cubic-bezier(0.22, 1, 0.36, 1);

  --z-base: 1;
  --z-flutua: 40;
  --z-topo: 50;

  --gutter: clamp(1.15rem, 5vw, 3.5rem);
  --larg: 1200px;

  /* silhueta da marca usada como textura de fundo na capa */
  --marca-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 132'%3E%3Cpath d='M60 17 L115 60 L115 127 L5 127 L5 60 Z M60 39 L99 70 L99 110 L21 110 L21 70 Z' fill-rule='evenodd'/%3E%3Cpath d='M29 74 H91 V86 L56 97 H91 V109 H29 V97 L64 86 H29 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem);
  line-height: 1.62;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}
p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--vermelho-vivo);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--larg);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pular {
  position: absolute; left: -9999px; top: 0;
  background: var(--vermelho); color: #fff;
  padding: .8rem 1.2rem; z-index: 100; font-weight: 700;
}
.pular:focus { left: 0; }

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--vermelho);
  --btn-bg-hover: var(--vermelho-vivo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .78rem 1.35rem;
  background: var(--btn-bg); color: #fff;
  border: 0; border-radius: var(--r-p);
  font: inherit; font-weight: 700; font-stretch: 108%;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--saida), transform .18s var(--saida), box-shadow .18s var(--saida);
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: var(--sombra-m); }
.btn:active { transform: translateY(0); }
.btn svg { width: 21px; height: 21px; fill: currentColor; flex: none; }

.btn--g { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.06rem; }
.btn--zap { --btn-bg: var(--zap); --btn-bg-hover: var(--zap-vivo); }
.btn--acao { width: 100%; }

.btn--fantasma {
  --btn-bg: transparent; --btn-bg-hover: oklch(1 0 0 / .14);
  border: 2px solid oklch(1 0 0 / .55);
  color: #fff;
}
.btn--fantasma:hover { box-shadow: none; }

.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Topo ---------- */

.topo {
  position: sticky; top: 0; z-index: var(--z-topo);
  background: var(--marinho-fundo);
  border-bottom: 1px solid oklch(1 0 0 / .10);
}
.topo__linha {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
/* Lockup da marca: símbolo em imagem + texto em fonte real.
   O wordmark rasterizado do JPEG virava borrão em tamanho pequeno. */
.topo__marca {
  flex: none; display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit;
}
.topo__marca img { width: auto; height: 34px; }
.marca__texto { display: flex; flex-direction: column; line-height: 1; }
.marca__texto strong {
  font-size: 1.32rem; font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.03em; color: oklch(0.635 0.205 28);
}
.marca__texto > span {
  margin-top: .2rem;
  font-size: .585rem; font-weight: 700; font-stretch: 108%;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--claro-fraco); white-space: nowrap;
}
.topo__nav { display: none; }
.topo__zap { margin-left: auto; }

@media (min-width: 900px) {
  .topo__linha { min-height: 82px; gap: 2rem; }
  .topo__marca img { height: 42px; }
  .marca__texto strong { font-size: 1.6rem; }
  .marca__texto > span { font-size: .66rem; }
  .topo__nav {
    display: flex; gap: 1.9rem; margin-left: auto;
  }
  .topo__nav a {
    color: var(--claro-fraco); text-decoration: none;
    font-weight: 600; font-size: .97rem;
    padding: .4rem 0;
    border-bottom: 2px solid transparent;
    transition: color .18s var(--saida), border-color .18s var(--saida);
  }
  .topo__nav a:hover { color: #fff; border-bottom-color: var(--vermelho-vivo); }
  .topo__zap { margin-left: 0; }
}
@media (max-width: 899px) {
  .topo__zap span { display: none; }
  .topo__zap { padding-inline: 1rem; }
}

/* ---------- Capa ---------- */

.capa {
  position: relative;
  background: var(--marinho-fundo);
  color: var(--claro);
  overflow: hidden;
  isolation: isolate;
}
/* Sem fotografia de banco de imagem: a capa é cor + tipografia.
   O desenho do telhado da marca vira a textura de fundo, bem discreta. */
.capa::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 88% 8%, oklch(0.492 0.192 26 / .30) 0%, transparent 58%),
    radial-gradient(90% 70% at 4% 100%, oklch(0.330 0.090 283 / .55) 0%, transparent 62%);
}
.capa::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -6%; top: 50%; translate: 0 -50%;
  width: min(52vw, 620px); aspect-ratio: 120 / 132;
  opacity: .07;
  background: currentColor;
  -webkit-mask: var(--marca-mask) center / contain no-repeat;
          mask: var(--marca-mask) center / contain no-repeat;
}
@media (max-width: 900px) { .capa::before { opacity: .05; right: -22%; } }
.capa__texto {
  padding-block: clamp(3.2rem, 9vw, 6.5rem) clamp(3.4rem, 9vw, 7rem);
  max-width: 46rem;
}
.capa__selo {
  margin: 0 0 1.5rem;
  font-weight: 700; font-size: .86rem; letter-spacing: .04em;
  color: var(--claro-fraco);
  display: inline-flex; align-items: center;
  padding: .4rem .85rem;
  border: 1px solid oklch(1 0 0 / .30);
  border-radius: 999px;
}
.capa h1 {
  font-size: clamp(2.05rem, 1.45rem + 2.7vw, 3.45rem);
  letter-spacing: -0.034em;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}
/* vermelho da marca clareado só o necessário para 4.9:1 sobre o marinho */
.capa h1 em { font-style: normal; color: oklch(0.635 0.205 28); }
.capa__sub {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.24rem);
  line-height: 1.62;
  color: var(--claro-fraco);
  max-width: 40ch;
  margin: 0 0 2.2rem;
}
.capa__acoes { display: flex; flex-wrap: wrap; gap: .9rem; }
.capa__acoes .btn { flex: 1 1 auto; min-width: 15rem; }
@media (min-width: 620px) { .capa__acoes .btn { flex: 0 0 auto; } }

/* ---------- Faixa de bairros ---------- */

.faixa {
  background: var(--marinho);
  color: var(--claro-fraco);
  border-top: 3px solid var(--vermelho);
}
.faixa p {
  margin: 0;
  padding-block: clamp(1.3rem, 3.2vw, 1.9rem);
  font-size: clamp(.98rem, .95rem + .2vw, 1.1rem);
  max-width: 66ch;
}
.faixa strong { color: #fff; font-weight: 700; }

/* ---------- Sobre ---------- */

.sobre { padding-block: clamp(3.5rem, 8vw, 7rem); }
.sobre__grade { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .sobre__grade { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: start; }
  .sobre__retrato { position: sticky; top: 110px; }
}

.retrato__vazio {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--superficie);
  border: 1px solid var(--aresta);
  border-radius: var(--r-g);
  padding: 2.5rem;
  box-shadow: var(--sombra-m);
}
.retrato__vazio img { width: 100%; max-width: 15rem; opacity: .92; }
.sobre__retrato > img,
.retrato__foto {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: var(--r-g); box-shadow: var(--sombra-g);
  display: block;
}
.retrato__cred {
  margin: 1.1rem 0 0;
  font-weight: 700; font-stretch: 108%; line-height: 1.35;
}
.retrato__cred span { display: block; font-weight: 500; color: var(--tinta-fraca); font-size: .93rem; }

.sobre h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.9rem);
  margin-bottom: 1.4rem;
  max-width: 20ch;
}
.sobre__texto p { max-width: 62ch; margin: 0 0 1.25rem; }
.sobre__texto p:first-of-type {
  font-size: clamp(1.1rem, 1.03rem + .4vw, 1.3rem);
  color: var(--tinta);
  font-weight: 500;
}
.sobre__assinatura {
  font-weight: 700; font-stretch: 112%; font-size: 1.15rem;
  color: var(--vermelho); margin-top: 1.8rem !important;
}

/* ---------- Imóveis ---------- */

.imoveis {
  background: var(--superficie);
  border-block: 1px solid var(--aresta);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.imoveis__topo { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.imoveis__topo h2 { font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.7rem); margin-bottom: .9rem; }
.imoveis__topo p { color: var(--tinta-fraca); margin: 0; }

.imoveis__lista {
  display: grid; gap: clamp(1.2rem, 2.5vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

/* filtros */
.filtros { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.filtro {
  font: inherit; font-size: .93rem; font-weight: 700;
  min-height: 44px; padding: .5rem 1.1rem;
  color: var(--marinho); background: transparent;
  border: 1.5px solid var(--aresta); border-radius: 999px;
  cursor: pointer;
  transition: background-color .16s var(--saida), border-color .16s var(--saida), color .16s var(--saida);
}
.filtro:hover { border-color: var(--marinho); }
.filtro--ativo { background: var(--marinho); border-color: var(--marinho); color: #fff; }

/* cartão */
.imovel {
  display: flex; flex-direction: column;
  background: var(--papel);
  border: 1px solid var(--aresta);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: transform .22s var(--saida), box-shadow .22s var(--saida), border-color .22s var(--saida);
}
.imovel:hover { transform: translateY(-3px); box-shadow: var(--sombra-g); border-color: transparent; }

.imovel__faixa {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem 1.25rem;
  background: var(--marinho); color: #fff;
}
.imovel__tipo { font-size: .95rem; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.imovel__fin {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .26rem .6rem; border-radius: 999px;
  background: oklch(1 0 0 / .16);
}
.imovel__fin--locacao { background: var(--vermelho); }

.imovel__corpo { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.imovel__local { font-size: .87rem; font-weight: 700; color: var(--vermelho); margin: 0; }
.imovel__titulo { font-size: 1.13rem; letter-spacing: -0.022em; margin: 0; }

.imovel__specs {
  display: flex; flex-wrap: wrap; gap: .35rem .5rem;
  margin: .35rem 0 0; padding: 0; list-style: none;
}
.imovel__specs li {
  font-size: .83rem; font-weight: 600; color: var(--tinta-fraca);
  background: var(--superficie);
  border: 1px solid var(--aresta);
  padding: .2rem .55rem; border-radius: var(--r-p);
}

.imovel__resumo {
  margin: .5rem 0 0; font-size: .93rem; line-height: 1.55; color: var(--tinta-fraca);
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.imovel__preco {
  margin: auto 0 0; padding-top: 1rem;
  font-size: 1.35rem; font-weight: 800; font-stretch: 112%;
  color: var(--marinho);
  letter-spacing: -0.02em; line-height: 1.2;
}
.imovel__preco small {
  display: block; margin-top: .2rem;
  font-size: .79rem; font-weight: 600; color: var(--tinta-fraca); letter-spacing: 0;
}

.imovel__acoes { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; }
.imovel__cta { flex: 1; min-height: 46px; padding: .6rem 1rem; font-size: .95rem; }
.imovel__video {
  flex: none;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 46px; padding: .6rem .9rem;
  color: var(--marinho); text-decoration: none;
  font-size: .9rem; font-weight: 700;
  border: 1.5px solid var(--aresta); border-radius: var(--r-p);
  transition: border-color .16s var(--saida), background-color .16s var(--saida);
}
.imovel__video:hover { border-color: var(--marinho); background: var(--superficie); }
.imovel__video svg { width: 17px; height: 17px; fill: currentColor; }

.imoveis__vazio { margin: 2rem 0 0; color: var(--tinta-fraca); }
.imoveis__rodape { margin: clamp(1.8rem, 3vw, 2.5rem) 0 0; font-size: .85rem; color: var(--tinta-fraca); max-width: 70ch; }

/* ---------- Atendimento ---------- */

.atendimento { padding-block: clamp(3.5rem, 8vw, 7rem); }
.atendimento h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.7rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}
.atendimento__itens { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 760px) { .atendimento__itens { grid-template-columns: 1fr 1fr; } }
.atendimento article { border-top: 2px solid var(--marinho); padding-top: 1.1rem; }
.atendimento h3 {
  font-size: 1.24rem; margin-bottom: .6rem; color: var(--vermelho);
}
.atendimento p { margin: 0; color: var(--tinta-fraca); max-width: 52ch; }

/* ---------- Contato ---------- */

.contato {
  background: var(--marinho-fundo);
  color: var(--claro);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.contato__grade { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); }
@media (min-width: 920px) { .contato__grade { grid-template-columns: 1fr minmax(23rem, 27rem); align-items: start; } }

.contato h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.8rem); margin-bottom: 1.1rem; max-width: 16ch; }
.contato__chamada > p { color: var(--claro-fraco); max-width: 42ch; margin: 0 0 1.9rem; }
.contato__ig { margin: 1.8rem 0 0; font-size: .97rem; color: var(--claro-fraco); }
.contato__ig a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

.form {
  background: var(--superficie);
  color: var(--tinta);
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  border-radius: var(--r-g);
  box-shadow: var(--sombra-g);
  display: grid; gap: 1.05rem;
}
.campo { display: grid; gap: .38rem; }
.campo label { font-weight: 700; font-size: .93rem; }
.campo label span[aria-hidden] { color: var(--vermelho); }
.campo .opc { font-weight: 500; color: var(--tinta-fraca); }
.campo input, .campo textarea {
  font: inherit; font-size: 1rem;
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  color: var(--tinta);
  background: var(--papel);
  border: 1.5px solid var(--aresta);
  border-radius: var(--r-p);
  transition: border-color .16s var(--saida), box-shadow .16s var(--saida);
}
.campo textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--tinta-fraca); opacity: 1; }
.campo input:focus, .campo textarea:focus {
  outline: none; border-color: var(--marinho);
  box-shadow: 0 0 0 3px oklch(0.240 0.088 283 / .16);
}
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] { border-color: var(--vermelho); }
.campo--oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.erro { margin: 0; font-size: .85rem; font-weight: 600; color: var(--vermelho-fundo); }

.form__aviso { margin: -.2rem 0 0; font-size: .83rem; color: var(--tinta-fraca); }
.form__estado { margin: 0; font-size: .95rem; font-weight: 600; }
.form__estado.ok    { color: oklch(0.45 0.13 152); }
.form__estado.falha { color: var(--vermelho-fundo); }

/* ---------- Rodapé ---------- */

.rodape { background: var(--marinho); color: var(--claro-fraco); padding-block: clamp(2.6rem, 6vw, 4rem) 1.6rem; }
.rodape__grade { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .rodape__grade { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.rodape__marca { margin-bottom: 1rem; }
.rodape__marca img { height: 44px; }
.rodape__marca .marca__texto strong { font-size: 1.7rem; }
.rodape__marca .marca__texto > span { font-size: .68rem; }
.rodape__creci { margin: 0; font-size: .93rem; line-height: 1.6; }
.rodape__col h2 { font-size: 1rem; color: #fff; margin-bottom: .7rem; letter-spacing: -0.01em; }
.rodape__col p { margin: 0 0 .4rem; font-size: .95rem; }
.rodape__col a { color: #fff; text-underline-offset: 3px; }

.rodape__fim {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / .14);
  display: grid; gap: .6rem;
  font-size: .8rem; line-height: 1.55;
  color: oklch(0.78 0.020 283);
}
.rodape__fim p { margin: 0; max-width: 78ch; }

/* ---------- WhatsApp flutuante ---------- */

.zap-flutua {
  position: fixed; z-index: var(--z-flutua);
  right: clamp(.9rem, 3vw, 1.6rem);
  bottom: clamp(.9rem, 3vw, 1.6rem);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--zap); color: #fff;
  border-radius: 50%;
  box-shadow: var(--sombra-g);
  transition: background-color .18s var(--saida), transform .18s var(--saida);
}
.zap-flutua:hover { background: var(--zap-vivo); transform: scale(1.06); }
.zap-flutua svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Movimento ---------- */

@media (prefers-reduced-motion: no-preference) {
  .revela { opacity: 0; transform: translateY(18px); }
  .revela.dentro {
    opacity: 1; transform: none;
    transition: opacity .6s var(--saida), transform .6s var(--saida);
  }
  .imoveis__lista .imovel { animation: sobe .5s var(--saida) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .zap-flutua, .topo__zap, .capa__foto { display: none; }
  body { background: #fff; }
}
