/* ============================================================
   DESIGN SYSTEM — LP Corretor de Imóveis
   Troque as cores/fontes aqui para mudar toda a LP.

   Tipografia: uma fonte só (Inter) para título e corpo — sem serifa
   decorativa. Hierarquia vem do peso (300 fino → 800 negrito) e de
   um itálico leve para destacar palavras-chave dentro dos títulos
   (veja as tags <em> no index.html).

   Paleta: extraída das fotos reais do corretor (estúdio em preto
   quase neutro + tons de pele/cabelo em caramelo/terracota) — por
   isso o preto tem um leve calor em vez do verde-negro anterior.
   O caramelo NUNCA é usado como cor de texto sobre fundo claro
   (reprova contraste WCAG AA) — para isso existe --brass-deep,
   uma versão escurecida testada em 6.96:1.
   ============================================================ */
:root {
  /* ---------- Cor ---------- */
  --ink:        #14110F;   /* preto quente (fundo de estúdio das fotos): texto principal sobre fundo claro */
  --dark:       #1E1815;   /* fundo das seções escuras */
  --paper:      #F5F1EA;   /* marfim quente: fundo claro */
  --paper-soft: #EDE7DC;   /* marfim levemente mais escuro: cartões, zebra */

  --brass:      #A9754C;   /* caramelo (tom de pele/cabelo das fotos) — SOMENTE sobre fundo escuro, ícones, bordas, texto grande decorativo */
  --brass-soft: #D1A47E;   /* caramelo claro — texto/links sobre fundo escuro (contraste 7,8:1+) */
  --brass-deep: #6E4A2C;   /* caramelo escurecido — ÚNICA versão permitida como texto sobre fundo claro (6,96:1, passa AA) */

  --muted:      #6E655F;   /* texto secundário sobre fundo claro (5,06:1, passa AA) */
  --muted-dark: rgba(245, 241, 234, .72); /* texto secundário sobre fundo escuro */

  --line:       rgba(20, 17, 15, .14);
  --line-light: rgba(245, 241, 234, .16);

  --danger:     #B3432B;

  /* ---------- Tipografia ---------- */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-eyebrow: .75rem;
  --fs-body: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);

  /* ---------- Espaçamento (escala base 4px) ---------- */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;
  --section-pad: clamp(3.5rem, 2.6rem + 4vw, 6.9rem);

  /* ---------- Layout ---------- */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  /* ---------- Sombra ---------- */
  --shadow-md: 0 20px 40px -24px rgba(20, 17, 15, .25);
  --shadow-lg: 0 30px 60px -20px rgba(20, 17, 15, .35);
}

/* ============================================================
   RESET
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Scrollbar personalizada ---------- */
html { scrollbar-color: var(--brass) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 10px; border: 2.5px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--brass-deep); }

/* ============================================================
   LOADING — tela cheia, fundo preto quente, ícone caramelo (ver js/loader.js)
   ============================================================ */
body.is-loading { overflow: hidden; }

.loader {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.loader__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .55;
}
.loader__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--sp-6);
  text-align: center;
}
.loader__icon {
  width: clamp(84px, 12vw, 128px);
  height: auto;
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--sp-6);
  overflow: visible;
}
.loader__icon-coin { transform-origin: 109px 109px; }

.loader__phrase {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.05rem, .9rem + 1vw, 1.5rem);
  color: var(--paper);
  max-width: 420px;
  margin-bottom: var(--sp-6);
  opacity: 0;
}
.loader__bar {
  width: min(220px, 50vw); height: 2px;
  background: rgba(245, 241, 234, .16);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.loader__bar-fill {
  display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--brass-soft), var(--brass));
}
.loader__pct {
  font-size: .75rem; letter-spacing: .16em; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brass-soft);
}

.loader.is-done {
  transition: transform .8s cubic-bezier(.76, 0, .24, 1), opacity .6s ease .2s;
  transform: translateY(-100%);
  opacity: .98;
}

@media (prefers-reduced-motion: reduce) {
  .loader, .loader.is-done { transition: opacity .5s ease; transform: none !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 24px); }
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--dark); color: var(--paper); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

/* palavra de destaque dentro de um título: fina e itálica, quebra o peso do negrito ao redor */
h1 em, h2 em, h3 em, .hero__title em, .section__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass-deep);
}
.section--dark h1 em, .section--dark h2 em, .section--dark h3 em { color: var(--brass-soft); }

.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-deep); margin-bottom: var(--sp-4);
}
.section--dark .eyebrow,
.eyebrow--light { color: var(--brass-soft); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-6);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--brass); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-deep); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-soft); }
.btn--small { padding: 11px 20px; font-size: .875rem; background: var(--ink); color: var(--paper); }
.btn--small:hover { background: var(--brass); color: var(--ink); }
.btn--full { width: 100%; border: none; font-family: var(--font-body); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.header.is-scrolled {
  background: rgba(245, 241, 234, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; flex-direction: column; line-height: 1.15; }
.header__logo span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.header__logo small { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.header__nav-inline { display: flex; align-items: center; gap: 32px; font-size: .875rem; font-weight: 500; }
.header__nav-inline a { position: relative; }
.header__nav-inline a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--brass); transition: width .3s var(--ease);
}
.header__nav-inline a:hover::after { width: 100%; }

/* menu mobile (overlay em tela cheia) — escondido por padrão, só existe abaixo de 960px */
.header__nav { display: none; }
.header__nav-cta { display: none; }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  flex-shrink: 0;
  transition: opacity .2s;
}
.header__toggle span {
  display: block; height: 2px; width: 22px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__nav-close { display: none; }
.nav-backdrop { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: var(--sp-8); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-8); align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.06; letter-spacing: -.025em;
  margin-bottom: var(--sp-5);
  overflow-wrap: break-word;
}
.hero__sub { font-size: var(--fs-lg); color: var(--muted); max-width: 480px; margin-bottom: var(--sp-7); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: var(--sp-7); }
.hero__creci {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero__creci a { color: var(--brass-deep); font-weight: 600; }
.hero__creci-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }

.hero__portrait { position: relative; max-width: 460px; margin: 0 auto; }
/* moldura só da foto (não do nome sobreposto, que sangra de propósito pra fora
   da caixa) — contém o zoom/parallax do GSAP em animations.js */
.hero__img-frame { overflow: hidden; border-radius: var(--radius-lg); }
.hero__img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(.92);
}
.hero__name-overlay {
  position: absolute; left: -4%; bottom: 5%; right: -4%;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 6.5rem);
  letter-spacing: -.02em;
  color: var(--brass);
  text-shadow: 0 2px 30px rgba(20, 17, 15, .5);
  pointer-events: none;
  line-height: 1;
  overflow-wrap: break-word;
}

/* ============================================================
   MARQUEE DE REGIÕES
   ============================================================ */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--line);
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 30s linear infinite;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
}
.marquee__track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--brass-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: var(--sp-9) 0 var(--sp-6); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: var(--sp-6) var(--sp-5) var(--sp-6) 0; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: none; }
.stat + .stat { padding-left: var(--sp-5); }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3.25rem);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label { margin-top: var(--sp-2); font-size: .875rem; color: var(--muted); }

/* ============================================================
   CASES — REGISTRO DE VENDAS (elemento assinatura)
   ============================================================ */
.cases__list { margin-top: var(--sp-7); border-top: 1px solid var(--line); }
.case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.5fr) auto;
  gap: var(--sp-6); align-items: center;
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.case:hover { background: rgba(169, 117, 76, .06); }

/* animação própria do card (sem depender de foto): uma linha dourada "varre"
   horizontalmente da esquerda pra direita, e o título desliza um pouco pro lado */
.case::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.case:hover::after { transform: scaleX(1); }
.case__imovel, .case__local { transition: transform .4s var(--ease); }
.case:hover .case__imovel, .case:hover .case__local { transform: translateX(10px); }

/* foto horizontal que aparece ACIMA do cursor (nunca em cima do texto) ao passar sobre um case (ver main.js) */
.cursor-preview {
  position: fixed;
  top: 0; left: 0;
  width: min(230px, 20vw);
  aspect-ratio: 16 / 10;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  clip-path: circle(0% at 50% 100%);
  transition: opacity .3s var(--ease), clip-path .55s var(--ease);
  background: var(--dark);
}
/* raio grande o bastante pra cobrir os 4 cantos — a foto revela por inteiro, não fica cortada em cima */
.cursor-preview.is-visible { opacity: 1; clip-path: circle(150% at 50% 100%); }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .cursor-preview { display: none; }
}
.case__imovel { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.case__local { font-size: .8rem; color: var(--muted); margin-top: var(--sp-1); letter-spacing: .03em; }
.case__valor {
  font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.case__tempo { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-deep); margin-top: var(--sp-1); font-weight: 700; }
.case__detalhe { font-size: .9375rem; color: var(--muted); }
.case__stamp {
  font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-deep); border: 1.5px solid var(--brass);
  padding: 10px 14px; border-radius: var(--radius);
  transform: rotate(-6deg);
  white-space: nowrap;
  justify-self: start;
}

/* ============================================================
   SOBRE / LIFESTYLE
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); align-items: center; }

/* grid "reels": foto grande à esquerda + duas fotos empilhadas à direita */
.about__photos {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-4);
  aspect-ratio: 3 / 4;
}
.about__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); filter: saturate(.95); box-shadow: var(--shadow-lg); }
.about__photo--1 { grid-column: 1; grid-row: 1 / 3; }
.about__photo--2 { grid-column: 2; grid-row: 1; }
.about__photo--3 { grid-column: 2; grid-row: 2; }
.about__bio p { margin-bottom: var(--sp-4); color: var(--muted-dark); }
.about__bio { margin-bottom: var(--sp-6); }

/* ============================================================
   IMÓVEIS — convite ao contato (sem vitrine pública de carteira)
   painel escuro com foto, no mesmo espírito da seção de frase
   ============================================================ */
.properties__invite {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.properties__invite-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: saturate(.85);
  will-change: transform;
}
.properties__invite-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(20, 17, 15, .9) 0%, rgba(20, 17, 15, .8) 45%, rgba(20, 17, 15, .93) 100%);
}
.properties__invite-content {
  position: relative; z-index: 1;
  max-width: 620px;
  padding: var(--sp-9) var(--sp-7);
  text-align: center;
}
.properties__invite-content .eyebrow { color: var(--brass-soft); }
.properties__invite-content .section__title {
  color: var(--paper);
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.6rem);
}
.properties__invite-content .section__title em { color: var(--brass-soft); }
.properties__invite-text {
  font-size: 1.0625rem; color: var(--muted-dark); line-height: 1.65;
  margin-bottom: var(--sp-6);
}
.properties__invite-note { margin-top: var(--sp-4); font-size: .8125rem; color: rgba(245, 241, 234, .55); }

/* ============================================================
   CAMINHOS (FUNIL DUPLO)
   ============================================================ */
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-top: var(--sp-7); }
.path {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  transition: border-color .3s, transform .35s var(--ease);
}
.path:hover { border-color: var(--brass); transform: translateY(-4px); }
.path__tag { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; margin-bottom: var(--sp-4); }
.path__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--sp-5); line-height: 1.2; }
.path__list li {
  padding: var(--sp-3) 0 var(--sp-3) 26px; position: relative;
  border-bottom: 1px solid var(--line-light);
  font-size: .9375rem; color: var(--muted-dark);
}
.path__list li::before {
  content: "—"; position: absolute; left: 0; color: var(--brass-soft);
}
.path__link { display: inline-block; margin-top: var(--sp-6); color: var(--brass-soft); font-weight: 600; transition: color .25s, letter-spacing .3s; }
.path__link:hover { color: var(--paper); letter-spacing: .02em; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); }
.testimonial {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-5);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s;
  min-width: 0;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial__text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; font-style: italic; line-height: 1.5; flex: 1; }
.testimonial__text::before { content: "\201C"; color: var(--brass-deep); }
.testimonial__text::after { content: "\201D"; color: var(--brass-deep); }
.testimonial__autor { font-weight: 700; font-size: .875rem; }
.testimonial__cargo { font-size: .8125rem; color: var(--muted); }

/* ============================================================
   FRASE
   ============================================================ */
.quote {
  padding: calc(var(--sp-9) + var(--sp-5)) 0;
  text-align: center; position: relative; overflow: hidden;
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
/* camada de fundo animada separadamente (parallax via GSAP, ver animations.js) —
   maior que a section pra sobrar espaço de sobra pro deslocamento sem revelar bordas */
.quote__bg {
  position: absolute; top: -12%; left: 0; right: 0; height: 124%;
  background-size: cover; background-position: center;
  filter: saturate(.85);
  will-change: transform;
}
.quote__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.72) 0%, rgba(20,17,15,.6) 45%, rgba(20,17,15,.82) 100%);
}
.quote__inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.quote__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(7rem, 6rem + 8vw, 13rem);
  line-height: .6;
  color: var(--brass);
  opacity: .22;
  margin-bottom: clamp(-1.5rem, -1rem, -.5rem);
  pointer-events: none;
  user-select: none;
}
.quote__text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.25; letter-spacing: -.015em;
  max-width: 820px; margin: 0 auto var(--sp-6);
  color: var(--paper);
}
.quote__text em { font-style: italic; font-weight: 300; color: var(--brass-soft); }
.quote__rule { width: 56px; height: 2px; background: var(--brass); margin-bottom: var(--sp-5); }
.quote__author {
  font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-soft);
}

/* ============================================================
   CONTATO / FORM
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.contact__sub { color: var(--muted-dark); font-size: 1.0625rem; margin-bottom: var(--sp-8); max-width: 420px; }
.contact__direct { border-top: 1px solid var(--line-light); padding-top: var(--sp-6); }
.contact__direct p { font-size: .875rem; color: rgba(245, 241, 234, .6); margin-bottom: var(--sp-4); }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: var(--sp-7) var(--sp-6);
}
.form__field { margin-bottom: var(--sp-5); }
.form__field label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.form__field input[type="text"],
.form__field select,
.form__field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-family: var(--font-body); font-size: .9375rem; color: var(--ink);
  transition: border-color .25s;
  resize: vertical;
}
.form__field select { appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236E6E66" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 40px;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--brass); }
.form__radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: .875rem; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.radio:has(input:checked) { border-color: var(--brass); background: rgba(169, 117, 76, .1); }
.radio input { accent-color: var(--brass); }
.form__note { margin-top: var(--sp-4); font-size: .8125rem; color: var(--muted); text-align: center; }

/* blocos de qualificação que aparecem conforme o tipo escolhido */
.form__conditional {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .35s var(--ease);
}
.form__conditional.is-active {
  max-height: 900px;
  opacity: 1;
}

/* ---------- Formulário em etapas (wizard) ---------- */
.form__progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: var(--sp-6); }
.form__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.form__dot.is-active { background: var(--brass); transform: scale(1.2); }

.form__steps { position: relative; }
.form__step { display: none; }
.form__step.is-active { display: block; }
.form__step.is-active.anim-fwd { animation: stepInFwd .45s var(--ease); }
.form__step.is-active.anim-back { animation: stepInBack .45s var(--ease); }
@keyframes stepInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }

.form__step-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-2); }
.form__step-actions .btn { flex: 1; }
.form__back {
  font-size: .8125rem; font-weight: 600; color: var(--muted);
  padding: 12px 4px; transition: color .25s;
  white-space: nowrap;
}
.form__back:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .form__step.is-active.anim-fwd, .form__step.is-active.anim-back { animation: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding: var(--sp-7) 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.footer__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.footer__creci { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 241, 234, .55); }
.footer__city { font-size: .875rem; color: rgba(245, 241, 234, .6); }
.footer__ig { color: var(--brass-soft); font-weight: 600; font-size: .875rem; }

.footer__credit {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line-light);
  text-align: center;
}
.footer__credit a {
  font-size: .75rem; color: rgba(245, 241, 234, .45);
  transition: color .25s;
}
.footer__credit a:hover { color: var(--brass-soft); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   PLACEHOLDER DE IMAGEM (quando a foto ainda não existe)
   ============================================================ */
img.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(169, 117, 76, .12) 0 12px, rgba(169, 117, 76, .05) 12px 24px),
    var(--dark);
  min-height: 160px;
  object-fit: cover;
}

/* ============================================================
   ANIMAÇÕES (reveal ao rolar — controlado 100% pelo GSAP/ScrollTrigger,
   ver js/animations.js. opacity:0 aqui só evita flash de conteúdo visível
   antes do JS assumir; se o GSAP não carregar, o próprio JS força opacity:1.)
   ============================================================ */
.reveal { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   RESPONSIVO
   Breakpoints: 1180 · 960 (nav) · 860 · 680 · 480
   ============================================================ */

/* Telas grandes: evita que o container fique espremido em monitores ultrawide */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}

@media (max-width: 1180px) {
  .hero__grid { gap: var(--sp-7); }
  .about__grid, .contact__grid { gap: var(--sp-7); }
  .testimonials__grid { gap: var(--sp-5); }
}

/* ---------- Navegação: overlay em tela cheia, links grandes entrando/saindo dos lados ---------- */
@keyframes navInLeft { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: translateX(0); } }
@keyframes navInRight { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: translateX(0); } }
@keyframes navOutLeft { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-70px); } }
@keyframes navOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(70px); } }

@media (max-width: 960px) {
  .header__nav-inline { display: none; }

  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: var(--paper);
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease);
    z-index: 55;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .header__nav {
    position: fixed; inset: 0;
    width: 100%; height: 100dvh;
    margin: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2.2vh, 16px);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 56;
    transition: opacity .25s var(--ease);
  }
  /* o botão hambúrguer some enquanto o menu está aberto — o "x" estilizado dentro do
     overlay é o único controle de fechar, evita dois botões "x" competindo */
  .header__toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; }
  .header__nav.is-open, .header__nav.is-closing { opacity: 1; }
  .header__nav.is-open { pointer-events: auto; }

  .header__nav a {
    width: auto;
    padding: 4px 0;
    border-bottom: none;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(2.1rem, 5vw + 1rem, 3.5rem);
    color: var(--ink);
    opacity: 0;
    transition: color .25s;
  }
  .header__nav a:not(.btn)::after { display: none; }
  .header__nav a:not(.btn):hover,
  .header__nav a:not(.btn):active { color: var(--brass-deep); }

  /* entrada: alterna esquerda/direita, uma de cada vez */
  .header__nav.is-open a:nth-of-type(odd) { animation: navInLeft .65s var(--ease) forwards; }
  .header__nav.is-open a:nth-of-type(even) { animation: navInRight .65s var(--ease) forwards; }
  .header__nav.is-open a:nth-of-type(1) { animation-delay: .08s; }
  .header__nav.is-open a:nth-of-type(2) { animation-delay: .16s; }
  .header__nav.is-open a:nth-of-type(3) { animation-delay: .24s; }
  .header__nav.is-open a:nth-of-type(4) { animation-delay: .32s; }
  .header__nav.is-open a:nth-of-type(5) { animation-delay: .4s; }

  /* saída: mesma ideia, na ordem inversa (o último a entrar é o primeiro a sair) */
  .header__nav.is-closing a:nth-of-type(odd) { animation: navOutLeft .4s var(--ease) forwards; }
  .header__nav.is-closing a:nth-of-type(even) { animation: navOutRight .4s var(--ease) forwards; }
  .header__nav.is-closing a:nth-of-type(1) { animation-delay: .16s; }
  .header__nav.is-closing a:nth-of-type(2) { animation-delay: .12s; }
  .header__nav.is-closing a:nth-of-type(3) { animation-delay: .08s; }
  .header__nav.is-closing a:nth-of-type(4) { animation-delay: .04s; }
  .header__nav.is-closing a:nth-of-type(5) { animation-delay: 0s; }

  .header__nav a.header__nav-cta {
    display: inline-flex; margin-top: var(--sp-6);
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 16px 34px; background: var(--ink); color: var(--paper);
    transition: background .25s, color .25s, transform .25s;
  }
  .header__nav a.header__nav-cta:hover { background: var(--brass); color: var(--ink); }
  .header__cta-desktop { display: none; }
  .header__toggle { display: flex; }

  .header__nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: var(--sp-5); right: var(--sp-5);
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; color: var(--ink);
    border: 1px solid var(--line);
    z-index: 50;
    transition: color .2s, background .2s, transform .2s, border-color .2s;
  }
  .header__nav-close:hover { color: var(--ink); background: var(--brass); border-color: var(--brass); transform: rotate(90deg); }

  .nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .header__nav a { animation: none !important; opacity: 1; }
  .nav-backdrop, .header__nav-close, .header__nav { transition: none; }
}

@media (min-width: 961px) {
  .header__nav-cta { display: none !important; }
}

@media (max-width: 860px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--sp-7); }
  .hero__portrait { order: -1; max-width: 380px; }
  .hero__name-overlay { left: 0; right: 0; text-align: right; bottom: -6%; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }

  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .paths__grid { grid-template-columns: 1fr; }

  .case {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--sp-3); column-gap: var(--sp-5);
  }
  .case__detalhe { grid-column: 1 / -1; }
  .case__stamp { grid-row: 1; grid-column: 2; justify-self: end; }

  .about__photos { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .section { padding: var(--section-pad) 0; }
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: var(--sp-6); }

  .header__logo span { font-size: 1.05rem; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; }

  .testimonials__grid { grid-template-columns: 1fr; }
  .properties__invite-content { padding: var(--sp-7) var(--sp-5); }

  .case { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-6) 0; }
  .case__stamp { justify-self: start; grid-row: auto; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-top: 1px solid var(--line); padding-left: 0; }
  .stat:first-child { border-top: none; }

  .about__photos { aspect-ratio: 3 / 4; }

  .form { padding: var(--sp-6) var(--sp-5); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form__radios { flex-direction: column; }
  .radio { width: 100%; }
  .hero__creci { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__creci-dot { display: none; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .path { padding: var(--sp-6) var(--sp-5); }
}
