/* ============================================================
   M85 Home — estilos premium específicos da home (agência geral).
   Carrega após site.css. Mesmo nível da landing real-estate.
   ============================================================ */

/* ============================================================
   HERO de luxo — foto full-bleed + painel "liquid glass".
   Escritório de agência premium (Nano Banana Pro) ao fundo.
   ============================================================ */
/* ----- Base = mobile: foto no topo, cartão de vidro embaixo, centralizado ----- */
.hero-lux {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  min-height: clamp(600px, 90svh, 840px);
  display: flex;
  align-items: flex-start;
  background: #0a0807;
}
.hero-lux-bg { position: absolute; inset: 0; z-index: -2; }
.hero-lux-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.hero-lux::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,6,5,.5) 0%, rgba(8,6,5,.14) 18%, rgba(8,6,5,.1) 42%, rgba(8,6,5,.56) 72%, rgba(8,6,5,.9) 100%);
}
.hero-lux-wrap { width: 100%; padding-top: clamp(190px, 33svh, 310px); padding-bottom: 30px; }

/* ---------- Vidro líquido ---------- */
.glass {
  background: linear-gradient(150deg, rgba(40,33,29,.52), rgba(13,11,10,.4));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(244,241,236,.16);
  border-radius: 24px;
  box-shadow:
    0 34px 80px -28px rgba(0,0,0,.82),
    0 2px 10px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-lux-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: clamp(22px, 5.4vw, 46px);
  text-align: center;
}
.hero-lux-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 78% at 50% -8%, rgba(224,40,46,.2), transparent 50%);
}
.hero-lux-card > * { position: relative; }

.hero-lux .kicker { color: rgba(244,241,236,.9); justify-content: center; }
.hero-lux .kicker .tick { width: 22px; height: 2px; background: var(--m85-red); }
.hero-lux .hero-title {
  color: var(--m85-paper);
  font-size: clamp(30px, 7.6vw, 50px);
  line-height: 1.05; letter-spacing: -.03em;
  margin-top: 14px; max-width: none; text-wrap: balance;
}
.hero-lux .hero-lead { color: rgba(244,241,236,.84); font-size: 15.5px; line-height: 1.6; margin: 14px auto 0; max-width: 46ch; }
.hero-lux .hero-cta { margin-top: 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-lux .hero-cta .btn { width: 100%; }
.hero-lux .hero-list {
  flex-direction: column; gap: 11px; margin: 24px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(244,241,236,.14);
  width: fit-content; max-width: 100%; text-align: left;
}
.hero-lux .hero-list li { color: rgba(244,241,236,.86); font-size: 14px; flex: none; min-width: 0; }
.hero-lux .hero-list .num { color: var(--m85-red); }

/* CTA secundário em vidro */
.btn-glass {
  background: rgba(244,241,236,.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--m85-paper);
  border: 1px solid rgba(244,241,236,.3);
}
.btn-glass:hover { background: rgba(244,241,236,.18); border-color: rgba(244,241,236,.5); }

/* ----- ≥760: layout desktop — cartão à esquerda, foto ao fundo/direita ----- */
@media (min-width: 760px) {
  .hero-lux { align-items: center; min-height: clamp(580px, 84vh, 880px); }
  .hero-lux-bg img { object-position: 60% 50%; }
  .hero-lux::before {
    background:
      linear-gradient(96deg, rgba(8,6,5,.92) 0%, rgba(8,6,5,.7) 33%, rgba(8,6,5,.2) 64%, rgba(8,6,5,.06) 100%),
      linear-gradient(0deg, rgba(8,6,5,.5) 0%, rgba(8,6,5,0) 38%);
  }
  .hero-lux-wrap { padding-top: 44px; padding-bottom: 52px; }
  .hero-lux-card { max-width: 560px; margin-inline: 0; text-align: left; padding: clamp(34px, 3.6vw, 46px); }
  .hero-lux .kicker { justify-content: flex-start; }
  .hero-lux .hero-lead { margin-inline: 0; max-width: none; font-size: 16px; }
  .hero-lux .hero-cta { justify-content: flex-start; flex-direction: row; }
  .hero-lux .hero-cta .btn { width: auto; }
  .hero-lux .hero-list { width: auto; margin-inline: 0; }
}
@media (min-width: 1080px) {
  .hero-lux-card { max-width: 600px; }
  .hero-lux .hero-title { font-size: clamp(46px, 4.2vw, 60px); }
  .hero-lux .hero-lead { font-size: 18px; }
}

/* ============================================================
   Motor "Dois times" — variante em CICLO (portado da real-estate)
   ============================================================ */
.motor-cycle { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cycle { position: relative; width: 100%; max-width: 384px; aspect-ratio: 1; margin: 0 auto; }
.cycle-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-track { fill: none; stroke: rgba(236,230,220,.14); stroke-width: 1.4; }
.cycle-flow { fill: none; stroke: var(--m85-red); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 9 24.33; }
html.anim .cycle-flow { animation: cycle-flow 3.6s linear infinite; }
@keyframes cycle-flow { to { stroke-dashoffset: -33.33; } }
.cycle-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: radial-gradient(circle at 50% 32%, rgba(209,26,32,.34), rgba(27,22,19,.94) 68%);
  border: 1px solid rgba(236,230,220,.16);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1);
}
.cycle-hub img { height: 22px; }
.cycle-hub span { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.12; letter-spacing: -.01em; color: var(--m85-paper); }
.cycle-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; width: max-content; }
.cycle-n-top { left: 50%; top: 14%; }
.cycle-n-right { left: 86%; top: 50%; }
.cycle-n-bottom { left: 50%; top: 86%; }
.cycle-n-left { left: 14%; top: 50%; }
.cycle-node-ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: #211a16; border: 1px solid rgba(236,230,220,.2); color: var(--m85-paper);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.7);
}
.cycle-node-ico .ico { width: 20px; height: 20px; margin: 0; }
.cycle-node-t { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--m85-paper); white-space: nowrap; }
.cycle-caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--m85-grey); margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .cycle-flow { animation: none !important; } }

/* ---------- "Três frentes, um motor" — ícone-arte grande animado (escuro) ---------- */
.fronts { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 44px; }
.front { text-align: center; }
.front-art { display: flex; justify-content: center; align-items: flex-end; height: 132px; margin-bottom: 22px; }
.front-art .art { width: 100%; max-width: 230px; height: 100%; overflow: visible; }
.front h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0 0 9px; color: var(--m85-paper); }
.front > p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: rgba(236,230,220,.66); margin: 0 auto 16px; max-width: 30ch; }
.front-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.front-tags li { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: rgba(236,230,220,.68); border: 1px solid rgba(236,230,220,.16); border-radius: var(--radius-pill); padding: 5px 11px; }
@media (min-width: 780px) {
  .fronts { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 52px; }
  .front { padding: 0 8px; }
  .front:not(:last-child) { border-right: 1px solid rgba(236,230,220,.08); }
}

/* ---- artes SVG: visíveis por padrão; animam só sob html.anim ---- */
.art-ring { stroke: rgba(236,230,220,.2); stroke-width: 1; }
.art-cross { stroke: rgba(236,230,220,.12); stroke-width: 1; }
.art-dial { stroke: rgba(236,230,220,.2); stroke-width: 2; stroke-linecap: round; fill: none; }
.art-zone { stroke: var(--m85-red); stroke-width: 3; stroke-linecap: round; fill: none; }
.art-tick line { stroke: rgba(236,230,220,.3); stroke-width: 1.5; }
.art-needle line { stroke: var(--m85-red); stroke-width: 2.6; stroke-linecap: round; }
.chat-dot { fill: rgba(236,230,220,.6); }
/* Inside Sales — troca de mensagens (lead → resposta do SDR) */
.chat { transform-box: fill-box; transform-origin: center; }
html.anim .chat-in { animation: chat-a 3.8s ease-in-out infinite; }
html.anim .chat-out { animation: chat-b 3.8s ease-in-out infinite; }
@keyframes chat-a { 0%, 4% { opacity: 0; transform: translateY(6px) scale(.95); } 13%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chat-b { 0%, 34% { opacity: 0; transform: translateY(6px) scale(.95); } 43%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
/* "digitando" nos 3 pontos da bolha do lead */
html.anim .chat-dot { animation: chat-type 1.3s ease-in-out infinite; }
html.anim .chat-dot-2 { animation-delay: .18s; }
html.anim .chat-dot-3 { animation-delay: .36s; }
@keyframes chat-type { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* Marketing — radar */
.art-sweep { transform-box: view-box; transform-origin: 90px 66px; }
html.anim .art-sweep { animation: art-spin 5s linear infinite; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.art-hit { transform-box: view-box; transform-origin: 90px 66px; }
html.anim .art-hit { animation: art-hit 2.6s ease-in-out infinite; }
@keyframes art-hit { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.55); } }
/* RevOps — medidor (ponteiro oscila e fica na zona-alvo = previsibilidade) */
.art-needle { transform-box: view-box; transform-origin: 90px 104px; transform: rotate(46deg); }
html.anim .art-needle { animation: rev-needle 3.6s ease-in-out infinite; }
@keyframes rev-needle { 0%, 100% { transform: rotate(26deg); } 50% { transform: rotate(56deg); } }

@media (prefers-reduced-motion: reduce) {
  .chat, .chat-in, .chat-out, .chat-dot, .art-sweep, .art-hit, .art-needle { animation: none !important; }
  .chat, .chat-in, .chat-out, .chat-dot, .art-sweep, .art-hit { transform: none !important; opacity: 1 !important; }
  .art-needle { transform: rotate(46deg) !important; }
}

/* ---------- Stats — payoff gigante + marca M85 no fundo ---------- */
.stats { position: relative; overflow: hidden; }
/* marca M85 como grafismo grande e sutil, sangrando pela direita */
.stats-mark { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 52%; max-width: 560px; opacity: .07; z-index: 0; pointer-events: none; }
.stats-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; }
.stat { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(244,241,236,.22); }
.stat:first-child { border-top: none; padding-top: 0; }
.stat-head { display: flex; flex-direction: column; }
.stat-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 13vw, 76px); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; color: var(--m85-paper); }
.stat-sup { display: block; margin: 8px 0 0 0; font-family: var(--font-body); font-weight: 700; font-size: clamp(19px, 4.6vw, 21px); color: var(--m85-ink); letter-spacing: 0; }
.stat-lab { margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(244,241,236,.9); max-width: 420px; }
@media (min-width: 860px) {
  .stat { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; padding: 34px 0; }
  .stat-big { font-size: clamp(62px, 6vw, 88px); }
  .stat-lab { margin-top: 0; font-size: 17px; }
  .stats-mark { right: -4%; width: 42%; }
}

/* ---------- Contato — "o que você leva" + form em vidro sobre brilho vermelho ---------- */
.contato-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.contato-list li { position: relative; padding-left: 26px; font-family: var(--font-body); font-size: 15.5px; line-height: 1.45; color: rgba(236,230,220,.84); }
.contato-list li::before { content: ""; position: absolute; left: 3px; top: 2px; width: 6px; height: 11px; border: solid var(--m85-red); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* brilho vermelho sutil atrás do form (dá textura pro vidro desfocar + amarra ao hero) */
#contato { position: relative; overflow: hidden; }
#contato::before { content: ""; position: absolute; z-index: 0; right: -8%; top: 10%; width: 58%; height: 80%; background: radial-gradient(closest-side, rgba(209,26,32,.32), transparent 72%); pointer-events: none; }
.contato-in { position: relative; z-index: 1; }
/* form como cartão de vidro premium */
.demo-form, .demo-sent {
  background: linear-gradient(160deg, #241c18, #16100d);
  border: 1px solid rgba(236,230,220,.16);
  border-radius: 22px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,255,255,.07);
}
.form-tag { color: var(--m85-red-bright); }
@media (min-width: 860px) { .contato-list li { font-size: 16px; } }

/* base .sec-sub (não existe na home) */
.sec-sub { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--text-muted); margin: 14px 0 0; max-width: 540px; }
/* ============================================================
   "Do anúncio à visita" — jornada.
   Mobile: timeline vertical (nó à esquerda, texto à direita).
   Desktop (≥860): caminho horizontal de 5 etapas.
   ============================================================ */
.sec-dark .sec-sub { color: rgba(236,230,220,.66); }
.journey { list-style: none; margin: 36px 0 0; padding: 0; }
.jstep {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 18px;
  padding-bottom: 34px;
}
.jstep:last-child { padding-bottom: 0; }
.jstep-node {
  grid-column: 1; grid-row: 1 / 4; align-self: start; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1d1814; border: 1px solid rgba(236,230,220,.2); color: var(--m85-paper);
}
.jstep-node .ico { width: 23px; height: 23px; }
.jstep.is-end .jstep-node { background: var(--m85-red); border-color: var(--m85-red); box-shadow: 0 6px 16px -8px rgba(209,26,32,.5); }
.jstep-lane { grid-column: 2; grid-row: 1; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--m85-grey); }
.jstep.is-end .jstep-lane { color: var(--m85-red-bright); }
.jstep-name { grid-column: 2; grid-row: 2; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--m85-paper); margin: 3px 0 0; }
.jstep-desc { grid-column: 2; grid-row: 3; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: rgba(236,230,220,.66); margin: 6px 0 0; max-width: 34ch; }
/* conector vertical (mobile), do nó até o próximo */
.jstep:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: rgba(236,230,220,.16); }
/* o trecho que chega na "Visita" puxa pro vermelho */
.jstep:nth-last-child(2)::before { background: linear-gradient(to bottom, rgba(236,230,220,.16), var(--m85-red)); }
/* leve pulso no destino */
.jstep.is-end .jstep-node { transform-origin: center; }
html.anim .jstep.is-end .jstep-node { animation: j-pulse 2.6s ease-in-out 1.2s infinite; }
@keyframes j-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (min-width: 860px) {
  .journey { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 56px; }
  .jstep { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
  .jstep-node { align-self: center; margin-bottom: 18px; }
  .jstep-name { margin-top: 4px; }
  .jstep-desc { margin: 8px auto 0; max-width: 200px; }
  /* conector horizontal: da borda direita deste nó até a borda esquerda do próximo
     (fica no gap entre os nós e para antes do destino — nada vaza do último nó) */
  .jstep:not(:last-child)::before {
    left: calc(50% + 28px); width: calc(100% - 56px);
    top: 28px; bottom: auto; height: 2px;
  }
  .jstep:nth-last-child(2)::before { background: linear-gradient(to right, rgba(236,230,220,.16), var(--m85-red)); }
}
@media (prefers-reduced-motion: reduce) { html.anim .jstep.is-end .jstep-node { animation: none !important; } }
/* home: jornada com 4 etapas */
@media (min-width: 860px) { .journey { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Jornada em fundo claro (quebra a sequência de seções escuras) ---------- */
.sec-paper .jstep-node { background: #fff; border-color: rgba(21,17,15,.12); color: var(--m85-ink); box-shadow: 0 6px 16px -8px rgba(21,17,15,.18); }
.sec-paper .jstep.is-end .jstep-node { background: var(--m85-red); border-color: var(--m85-red); color: #fff; box-shadow: 0 8px 18px -8px rgba(209,26,32,.5); }
.sec-paper .jstep-name { color: var(--m85-ink); }
.sec-paper .jstep-desc { color: var(--m85-grey-deep); }
.sec-paper .jstep-lane { color: var(--m85-grey-deep); }
.sec-paper .jstep.is-end .jstep-lane { color: var(--m85-red); }
.sec-paper .jstep:not(:last-child)::before { background: rgba(21,17,15,.14); }
.sec-paper .jstep:nth-last-child(2)::before { background: linear-gradient(to bottom, rgba(21,17,15,.14), var(--m85-red)); }
@media (min-width: 860px) {
  .sec-paper .jstep:nth-last-child(2)::before { background: linear-gradient(to right, rgba(21,17,15,.14), var(--m85-red)); }
}
