/* ==========================================================================
   Trisul | Black Friday LP
   Sistema de cor 70/20/10: preto e cinzas escuros / branco / dourado
   ========================================================================== */

@font-face { font-family: "Nexa"; src: url("../assets/fonts/nexa-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../assets/fonts/nexa-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../assets/fonts/nexa-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../assets/fonts/nexa-xbold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* 70% preto / cinza escuro */
  --ink-950: #060607;
  --ink-900: #0b0b0c;
  --ink-850: #0f0f11;
  --ink-800: #161618;
  --ink-700: #232326;
  --ink-600: #36363a;
  --ink-400: #8a8a90;
  --ink-300: #b4b4ba;
  /* 20% branco */
  --white: #ffffff;
  --paper: #efeeea;
  /* 10% dourado (destaques e CTAs) */
  --gold: #fcc62e;
  --gold-deep: #c79011;
  --gold-grad: linear-gradient(135deg, #ffe39a 0%, #fcc62e 38%, #c79011 100%);

  --radius-section: 48px;
  --radius-card: 30px;
  --radius-pill: 999px;
  --overlap: 48px;
  --section-pad: clamp(72px, 8vw, 112px); /* respiro visível, igual em cima e embaixo */
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Nexa", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--ink-900); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.08em 2em .82em; border: 0; border-radius: var(--radius-pill);
  font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn--gold {
  background: var(--gold-grad); color: var(--ink-900);
  box-shadow: 0 10px 28px -10px rgba(252, 198, 46, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 34px -10px rgba(252, 198, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn--gold:active { transform: translateY(0); }
/* Ícone Trisul à direita do texto. Margens negativas mantêm a altura do botão; top compensa o respiro da Nexa. */
.btn--gold::after {
  content: ""; flex: none; position: relative; top: -.14em;
  width: 1.95em; height: 1.95em; margin: -.5em -.55em -.5em -.3em;
  background: url("../assets/img/icone-cta.svg") center / contain no-repeat;
}
.btn--lg { padding: 1.22em 2.8em .96em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Cabeçalho de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.section-head--dark { color: var(--ink-900); }
.section-head--dark .eyebrow { color: var(--ink-900); }
.section-head__lead { max-width: 560px; font-size: 1.15rem; font-weight: 400; line-height: 1.5; color: var(--ink-600); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; z-index: 4; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 75vh; min-height: 75svh;
  padding: clamp(22px, 3vw, 40px) var(--gutter) calc(var(--overlap) + clamp(12px, 1.6vw, 22px));
  background: var(--ink-950);
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  box-shadow: 0 1px 0 rgba(252, 198, 46, .45), 0 24px 60px -24px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__video.is-ready { opacity: .3; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(6, 6, 7, .9) 0%, rgba(6, 6, 7, .58) 38%, rgba(6, 6, 7, .3) 70%, rgba(6, 6, 7, .55) 100%),
    radial-gradient(70% 60% at 85% 0%, rgba(252, 198, 46, .12), transparent 70%);
}
.hero__top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 20px 32px; width: 100%; max-width: 1560px; margin-inline: auto;
}
.hero__logo { display: block; width: clamp(210px, 26vw, 368px); filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .6)); }
.hero__logo img { width: 100%; height: auto; }

/* Bloco "Restam apenas N unidades com valor de Black Friday": número em destaque, sem caixa */
.restam { display: grid; gap: 0; justify-items: end; text-align: right; }
.restam__label { font-size: clamp(1rem, 1.5vw, 1.45rem); font-weight: 400; line-height: 1.3; color: var(--white); }
.restam__num { line-height: .9; }
.restam__num strong {
  display: block; font-size: clamp(5rem, min(11vw, 22vh), 11rem); font-weight: 800; line-height: .9; letter-spacing: -.03em;
  padding-top: .2em; margin-bottom: -.07em; /* a Nexa deixa o dígito colado em cima e longe de baixo: equilibra os dois espaços */
  color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 8px 40px rgba(252, 198, 46, .18);
}

.hero__content { width: 100%; max-width: 1560px; margin-inline: auto; padding-top: 36px; }
.hero h1 {
  display: grid; gap: .02em; justify-items: start;
  font-size: clamp(2rem, min(calc(3.51vw + 24px), 8.55vh, calc((100vw - 2 * var(--gutter)) / 7.7)), 8.1rem); /* acompanha largura e altura da janela; o último termo garante que "oportunidade" caiba */
  font-weight: 800; line-height: .98; letter-spacing: -.03em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.h1__line { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; }
.hero__text { display: grid; gap: 14px; max-width: 640px; font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero__text p { text-wrap: balance; }
.hero__text strong { font-weight: 700; color: var(--gold); }
.hero .btn { margin-top: 28px; }
.hero__content > .btn { margin-top: 0; } /* botão logo abaixo do título */


/* ==========================================================================
   Produtos
   ========================================================================== */
.produtos {
  position: relative; z-index: 3; isolation: isolate;
  margin-top: calc(var(--overlap) * -1);
  padding: calc(var(--overlap) + clamp(44px, 4vw, 56px)) 0 var(--section-pad);
  background: var(--ink-850);
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px -24px rgba(0, 0, 0, .7);
  overflow: hidden;
}

/* Mesh em tons de preto e cinza, movimento muito lento.
   Sem filter/backdrop-filter: gradientes radiais já são suaves e evitam falhas de composição. */
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink-850); contain: paint; }
.mesh i { position: absolute; border-radius: 50%; width: 70vmax; height: 70vmax; will-change: transform; }
.mesh i:nth-child(1) { left: -20vmax; top: -18vmax; background: radial-gradient(circle, rgba(60, 60, 66, .75) 0%, transparent 66%); animation: mesh-a 64s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { right: -24vmax; top: 6%; background: radial-gradient(circle, rgba(44, 44, 49, .8) 0%, transparent 66%); animation: mesh-b 78s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { left: 8%; bottom: -30vmax; background: radial-gradient(circle, rgba(52, 52, 58, .7) 0%, transparent 66%); animation: mesh-c 70s ease-in-out infinite alternate; }
.mesh i:nth-child(4) { right: 12%; bottom: -12vmax; width: 50vmax; height: 50vmax; background: radial-gradient(circle, rgba(32, 32, 36, .8) 0%, transparent 68%); animation: mesh-a 90s ease-in-out infinite alternate-reverse; }
@keyframes mesh-a { to { transform: translate3d(16vmax, 10vmax, 0) scale(1.15); } }
@keyframes mesh-b { to { transform: translate3d(-18vmax, 14vmax, 0) scale(.9); } }
@keyframes mesh-c { to { transform: translate3d(14vmax, -14vmax, 0) scale(1.1); } }

/* Grid fluido com cards de no mínimo 350px: 1 coluna no mobile, 2, 3 e 4 conforme a largura. Sem "ver mais". */
.produtos .container { max-width: 1760px; }
.cards { --cols: 1; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.card-wrap { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 820px)  { .cards { --cols: 2; } }
@media (min-width: 1230px) { .cards { --cols: 3; } } /* 1230 e não 1200: descontando a barra de rolagem, o card não fica abaixo de 350px */
@media (min-width: 1600px) { .cards { --cols: 4; } }

.card {
  container-type: inline-size; /* permite dimensionar o preço pela largura do card (cqw) */
  position: relative; isolation: isolate; height: 100%; aspect-ratio: 5 / 6.6;
  border: 3px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-card);
  background: var(--ink-800);
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
.card:hover { border-color: rgba(252, 198, 46, .65); }
.card__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center top; /* imagens horizontais ficam centralizadas */
  transition: transform 1.2s var(--ease);
}
.card:hover .card__img { transform: scale(1.04); }

.card { cursor: pointer; }
.card__badge {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 800; line-height: 1; color: var(--white);
  background: rgba(10, 10, 11, .72); border: 1px solid rgba(252, 198, 46, .6);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
/* todos os selos usam a mesma duração e começam juntos, então piscam em uníssono; pulso suave (1 ciclo a cada 1,6 s) */
.card__badge { animation: piscar 1.6s ease-in-out infinite; }
@keyframes piscar { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .card__badge { animation: none; } }
.card__badge svg { flex: none; max-width: none; width: 17px; height: 17px; fill: var(--gold); }
.card__badge span { position: relative; top: .14em; } /* alinha o texto da Nexa ao centro do ícone */

/* Esfumaçado: gradiente longo sobe do rodapé e revela a imagem, sem caixa de vidro */
.card__glass {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  display: grid; gap: 12px; padding: 120px 18px 18px;
  color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 16px rgba(0, 0, 0, .75);
}
.card__glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(8, 8, 9, .86) 0%, rgba(8, 8, 9, .78) 34%, rgba(8, 8, 9, .56) 58%,
    rgba(8, 8, 9, .28) 78%, rgba(8, 8, 9, .08) 92%, rgba(8, 8, 9, 0) 100%);
}
.card__head { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; min-height: 6.2rem; } /* reserva 2 linhas de título para alinhar os cards */
.card__where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.card__status {
  display: inline-flex; align-items: center; padding: .62em .95em .4em; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 700; line-height: 1; color: var(--white); white-space: nowrap;
  background: rgba(10, 10, 11, .55); border: 1px solid rgba(255, 255, 255, .3); text-shadow: none;
}
.card__bairro { position: relative; top: .12em; font-size: .92rem; font-weight: 700; line-height: 1.2; color: var(--white); } /* compensa o respiro da Nexa para alinhar com o texto da pílula */
.card__title { font-size: 1.35rem; font-weight: 800; line-height: 1.15; color: var(--white); }
.card__area { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin-top: -4px; font-size: 1rem; font-weight: 700; color: var(--white); }
.card__tipo { font-size: .92rem; font-weight: 400; color: rgba(255, 255, 255, .88); }
.card__tipo::before { content: "|"; margin-right: .3em; color: rgba(255, 255, 255, .45); }
@container (max-width: 319px) { .card__tipo::before { display: none; } } /* telas muito estreitas: a tipologia quebra para a linha de baixo, sem a barra solta */

.card__offer { display: grid; align-content: center; box-sizing: border-box; min-height: 6rem; padding: 12px 0 2px; border-top: 1px solid rgba(255, 255, 255, .16); }
/* o divisor fica logo abaixo da metragem em todos os cards; o conteúdo (desconto ou preço) centraliza no espaço até o botão */
.card__desc { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 1.05rem; font-weight: 800; color: var(--white); }
.card__desc strong { font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--gold); }
.card__price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 14px; }
.card__de { font-size: clamp(.8rem, 2.6cqw, .88rem); font-weight: 700; line-height: 1.3; color: var(--white); padding-bottom: .25em; }
.card__de s { text-decoration-thickness: 1px; }
.card__por { display: grid; justify-items: start; gap: 0; margin-left: auto; font-size: .92rem; font-weight: 800; color: var(--white); }
.card__por span { line-height: 1.2; }
.card__por strong { font-size: clamp(1.3rem, 6.4cqw, 1.65rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--gold); }
.card__unid { flex-basis: 100%; margin-top: 2px; font-size: .7rem; font-weight: 700; color: var(--white); }
/* valores de 7 dígitos (a partir de R$ 1 milhão): fonte um pouco menor para "de" e "por" continuarem na mesma linha em qualquer largura de card */
.card__price--long { column-gap: 10px; }
.card__price--long .card__por strong { font-size: clamp(1.1rem, 5.4cqw, 1.5rem); }
.card__cta { width: 100%; }

/* Faixas "BLACK FRIDAY TRISUL": decorativas, inclinadas e movidas pelo scroll (js/main.js).
   O texto vem de ::before, então não é selecionável, não aparece no DOM e não é lido por leitores de tela. */
.bands { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; -webkit-user-select: none; }
.band {
  position: absolute; left: -15%; right: -15%; top: var(--top, auto); bottom: var(--bottom, auto);
  transform: rotate(-6deg); transform-origin: center;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.band__track {
  position: relative; left: 50%; width: max-content; white-space: nowrap; will-change: transform;
  transform: translate3d(-50%, 0, 0);
  --txt: "BLACK FRIDAY TRISUL \00a0\2022\00a0 ";
  font-size: clamp(5.5rem, 13vw, 13rem); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  padding-block: .326em .02em; /* maiúsculas da Nexa ficam altas na linha: compensa para a distância às duas bordas ficar igual */
  color: rgba(255, 255, 255, .045);
  border-block: 6px dotted rgba(255, 255, 255, .08); /* borda pontilhada acima e abaixo da frase */
}
.band__track::before { content: var(--txt) var(--txt) var(--txt) var(--txt) var(--txt) var(--txt) var(--txt) var(--txt); }
@media (max-width: 720px) { .produtos { padding-bottom: calc(var(--section-pad) + 56px); } /* abre espaço para a faixa abaixo do último card */
.band__track { color: rgba(255, 255, 255, .06); border-block-color: rgba(255, 255, 255, .1); } }

/* ==========================================================================
   Contato (invertido: fundo claro, conteúdo escuro)
   ========================================================================== */
.contato {
  position: relative; z-index: 2;
  margin-top: calc(var(--overlap) * -1);
  padding: calc(var(--overlap) + var(--section-pad)) 0 var(--section-pad);
  color: var(--ink-900);
  background: var(--white);
  border-radius: 0 0 var(--radius-section) var(--radius-section);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 26px 50px -30px rgba(0, 0, 0, .35);
}
.contato__inner { max-width: 1080px; }

.form__grid { display: grid; grid-template-columns: 1fr; gap: 6px 56px; margin-bottom: 14px; }
@media (min-width: 760px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }

.field { display: grid; align-content: start; gap: 2px; padding-bottom: 6px; }
.field label { font-size: 1rem; font-weight: 400; line-height: 1.35; color: var(--ink-600); }
.field input, .field select {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #b9b9bd; border-radius: 0;
  background: transparent; font-size: 1.02rem; font-weight: 400; color: var(--ink-900);
  appearance: none; -webkit-appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: #9a9aa0; font-weight: 300; }
.field select {
  cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 18px;
}
.field select:invalid { color: #9a9aa0; font-weight: 300; }
.field select option { color: var(--ink-900); }
.field input:hover, .field select:hover { border-bottom-color: var(--ink-900); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 0 var(--gold-deep); }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #b3261e; box-shadow: 0 1px 0 0 #b3261e; }
.field__error { min-height: 1.2em; font-size: .85rem; font-weight: 400; color: #b3261e; }

.form__legal { display: grid; gap: 10px; margin-top: 22px; color: var(--ink-600); }
.form__legal-link { font-size: 1.02rem; font-weight: 400; line-height: 1.4; color: var(--ink-600); }
.form__legal-link a { color: var(--ink-900); font-weight: 700; text-underline-offset: 3px; text-decoration-color: var(--gold-deep); text-decoration-thickness: 2px; }
.form__legal-text { font-size: .8rem; font-weight: 300; line-height: 1.6; }
.form__legal ul { display: grid; gap: 2px; }
.form__legal li::before { content: "\2022\00a0"; }
.form__status:empty { display: none; }
.form__status { margin-top: 14px; min-height: 1.4em; font-size: .92rem; font-weight: 700; }
.form__status.is-ok { color: #1c6b3a; }
.form__status.is-error { color: #b3261e; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer {
  position: relative; z-index: 1;
  margin-top: calc(var(--overlap) * -1);
  padding: calc(var(--overlap) + 36px) 0 40px;
  color: var(--ink-600);
  background: var(--paper);
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer__brand img { width: clamp(120px, 14vw, 150px); height: auto; }
.footer__brand p { font-size: .82rem; font-weight: 300; }
.footer__id360 { display: block; width: 70px; opacity: .85; transition: opacity .2s; }
.footer__id360:hover { opacity: 1; }
.footer__id360 img { width: 100%; height: auto; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  width: min(92vw, 520px); max-height: 92vh; max-height: 92dvh; padding: 0; margin: auto;
  color: var(--ink-900); background: var(--white);
  border: 0; border-radius: 32px; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7);
}
.modal[open] { animation: modal-in .4s var(--ease); }
.modal::backdrop { background: rgba(6, 6, 7, .82); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__box { position: relative; padding: clamp(28px, 5vw, 40px) clamp(28px, 5vw, 44px) clamp(24px, 4vw, 32px); }
.modal__close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%;
  background: var(--white); cursor: pointer; transition: background .2s, transform .2s;
}
.modal__close:hover { background: #f3f3f1; transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-900); stroke-width: 2; stroke-linecap: round; }
.modal__logo { width: 172px; height: auto; margin-bottom: 30px; }
.modal__title { margin-bottom: 26px; padding-right: 24px; font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 700; line-height: 1.18; }
.modal__title span { background: linear-gradient(transparent 62%, rgba(252, 198, 46, .75) 62%); }
.modal .form__grid { display: none; }
.modal .btn { margin-top: 6px; }

/* ==========================================================================
   Responsivo e preferências
   ========================================================================== */
@media (max-width: 720px) {
  :root { --radius-section: 32px; --overlap: 32px; --radius-card: 26px; }
  .restam { width: 100%; justify-items: start; text-align: left; gap: 4px; }
  .restam__num strong { font-size: clamp(4.5rem, 24vw, 6.5rem); }
  .hero__text { max-width: none; }
  .hero__logo { width: 203px; }
  .hero__top { row-gap: 44px; }
  .hero__content { padding-top: 36px; }
  .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh i { animation: none; }
  .band__track { will-change: auto; }
  .hero__video { display: none; }
  .card, .card__img, .btn, .modal[open], .modal[open]::backdrop { transition: none; animation: none; }
}

/* ==========================================================================
   Caixa de mensagem dos formulários HUBID (callback do events.js)
   ========================================================================== */
.box-mensagem { display: none; margin-top: 20px; padding: 20px 22px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 24px; background: #f6f5f1; color: var(--ink-900); }
.box-mensagem-ativo { display: grid; gap: 6px; justify-items: start; }
.box-mensagem.is-erro { border-color: rgba(179, 38, 30, .45); background: #fdf1f0; }
.box-mensagem.is-ok { border-color: rgba(28, 107, 58, .4); background: #f0f8f2; }
.box-mensagem__titulo { font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.box-mensagem__texto { font-size: 1rem; line-height: 1.5; color: var(--ink-600); }
.box-mensagem__voltar {
  margin-top: 8px; padding: .8em 1.6em .6em; border: 1.5px solid var(--ink-900); border-radius: var(--radius-pill);
  background: transparent; font-size: .95rem; font-weight: 800; line-height: 1; color: var(--ink-900); cursor: pointer;
  transition: background .2s, color .2s;
}
.box-mensagem__voltar:hover { background: var(--ink-900); color: var(--white); }
.box-mensagem-load { justify-items: center; padding: 26px; }
.box-mensagem-load::before {
  content: ""; width: 28px; height: 28px; border: 3px solid rgba(11, 11, 12, .15); border-top-color: var(--gold-deep);
  border-radius: 50%; animation: bf-spin .8s linear infinite;
}
@keyframes bf-spin { to { transform: rotate(360deg); } }
.btn.is-loading::after { animation: bf-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .box-mensagem-load::before, .btn.is-loading::after { animation-duration: 2s; } }

/* Primeiro scroll: o título da seção fica compacto para os cards já aparecerem logo abaixo do hero */
.produtos .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* ==========================================================================
   Filtro por bairro (seção de imóveis)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.section-head__text { display: grid; gap: 14px; }
.filtro { display: flex; align-items: center; gap: 14px; }
.filtro__label { font-size: 1rem; font-weight: 700; line-height: 1.2; color: var(--white); white-space: nowrap; }
.filtro__select {
  min-width: 240px; padding: .95em 3em .78em 1.4em; border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, .07); color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.2; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center; background-size: 18px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.filtro__select:hover { border-color: var(--gold); background-color: rgba(255, 255, 255, .11); }
.filtro__select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.filtro__select option { color: var(--ink-900); background: var(--white); }
.card-wrap[hidden] { display: none; }
@media (max-width: 720px) {
  .section-head--row { flex-direction: column; align-items: stretch; }
  .filtro { width: 100%; }
  .filtro__select { flex: 1; min-width: 0; }
}

/* Telas largas e baixas (ex.: 1366x680): título em uma linha à esquerda e botão à direita,
   para o hero ocupar menos altura e o início da seção de imóveis aparecer no primeiro scroll. */
@media (min-width: 900px) and (max-height: 780px) {
  .hero:not(.hero--corretores) .hero__content { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 24px; }
  .hero:not(.hero--corretores) h1 {
    display: flex; flex-wrap: wrap; gap: 0 .26em; margin-bottom: 0;
    font-size: clamp(1.7rem, min(3.4vw, 7vh), 4rem);
  }
  .hero:not(.hero--corretores) .hero__content > .btn { flex: none; }
}
