/* ============================================================
   NUMO — Subpáginas de investimento (Alavancagem / Short Stay / Terrenos)
   Estende numo-site.css. Usa apenas tokens oficiais de colors_and_type.css.
   ============================================================ */

/* ============ HERO DE SUBPÁGINA ============ */
/* altura padronizada com a home (.hero: 86vh / 92vh em mobile) */
.hero--page .hero__content { max-width: 840px; padding-top: 72px; }
.hero--page h1 { font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1.08; }
.hero h1 .u { border-bottom: 3px solid rgba(247,255,255,.5); padding-bottom: 4px; }

/* ============ FLOW — "Como funciona na prática" (5 passos) ============ */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 54px; }
.flow__card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px 22px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.flow__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow__n { font-size: 13px; font-weight: var(--w-bold); color: var(--imperial-300); letter-spacing: .1em; }
.flow__icn { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--branco-gelo);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border); }
.flow__icn svg.lucide { width: 22px; height: 22px; color: var(--imperial-blue); }
.flow__txt { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.flow__txt b { color: var(--azul-escuro); font-weight: var(--w-bold); }
.flow__hl { font-size: 1.35rem; font-weight: var(--w-extrabold); color: var(--imperial-blue);
  letter-spacing: -.02em; margin: auto 0 0; }
.flow__note { font-size: 12.5px; color: var(--fg-muted); margin: -6px 0 0; }
/* card final destacado */
.flow__card--accent { background: var(--imperial-blue); border-color: var(--imperial-blue); }
.flow__card--accent .flow__n { color: rgba(247,255,255,.6); }
.flow__card--accent .flow__icn { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.flow__card--accent .flow__icn svg.lucide { color: #fff; }
.flow__card--accent .flow__txt { color: rgba(247,255,255,.85); }
.flow__card--accent .flow__txt b { color: #fff; }
.flow__card--accent .flow__hl { color: #fff; }

/* ============ SEÇÃO CALCULADORA (estende .lev) ============ */
.lev .lev__copy .lev__tag { color: rgba(247,255,255,.7); }

/* ============ PERFIL — "É para você?" (escuro) ============ */
.perfil { background: var(--imperial-blue); position: relative; overflow: hidden; }
.perfil__pattern { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("assets/logos/NUMO_Grafismo.png") 0 0 / 560px auto repeat;
  filter: brightness(0) invert(1); opacity: .05;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); }
.perfil__graf { position: absolute; right: -70px; bottom: -60px; width: 460px; opacity: .07;
  filter: brightness(0) invert(1); pointer-events: none; }
.perfil__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 2; }
.perfil__copy h2 { color: #fff; font-size: var(--fs-h1); font-weight: var(--w-extrabold);
  letter-spacing: -.02em; line-height: var(--lh-snug); margin: 0; text-wrap: balance; }
.perfil__copy h2 .light { font-weight: var(--w-light); }
.perfil__copy p { color: rgba(247,255,255,.78); font-size: var(--fs-lead); font-weight: var(--w-light);
  line-height: 1.5; margin: 18px 0 0; }
.perfil__copy .btn { margin-top: 30px; }
.perfil__list { display: flex; flex-direction: column; gap: 14px; }
.perfil__item { display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 20px 22px; }
.perfil__check { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(143,180,255,.16); color: #8fb4ff; margin-top: 1px; }
.perfil__check svg.lucide { width: 17px; height: 17px; stroke-width: 2.4; }
.perfil__text { font-size: 15.5px; color: rgba(247,255,255,.82); line-height: 1.5; margin: 0; }
.perfil__text b { color: #fff; font-weight: var(--w-bold); }

/* ============ FATORES — metodologia (7 fatores) ============ */
.fatores { background: #fff; border-top: 1px solid var(--border); }
.fatores__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }

.fator { position: relative; overflow: hidden; min-height: 256px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, #ffffff 0%, var(--branco-gelo) 70%, #eaf1fb 100%);
  box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(1,23,70,.04);
  display: flex; flex-direction: column; cursor: pointer; isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.fator::before { content: ""; position: absolute; right: -26px; bottom: -22px; width: 150px; height: 150px;
  background: url("assets/logos/NUMO_Grafismo.png") no-repeat; background-size: 560px; background-position: -36px -150px;
  opacity: .06; z-index: 0; pointer-events: none; }
.fator__ghost { position: absolute; top: 8px; right: 18px; z-index: 0; font-size: 4.2rem; line-height: 1;
  font-weight: var(--w-black); letter-spacing: -.04em; color: var(--imperial-blue); opacity: .055; pointer-events: none; }

.fator__face { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 26px 24px 22px; }
.fator__icn { width: 52px; height: 52px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, #0a2a6b, var(--imperial-blue));
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(1,23,70,.22); }
.fator__icn svg.lucide { width: 24px; height: 24px; color: #fff; stroke-width: 1.9; }
.fator__eyebrow { font-size: 11px; font-weight: var(--w-bold); letter-spacing: .16em; color: var(--imperial-300); margin: 20px 0 0; }
.fator__title { font-size: 1.12rem; font-weight: var(--w-extrabold); color: var(--azul-escuro);
  letter-spacing: -.015em; line-height: 1.2; margin: 6px 0 0; }
.fator__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: var(--w-bold); letter-spacing: .04em; color: var(--imperial-blue); }
.fator__more svg.lucide { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.fator__more::before { content: ""; width: 20px; height: 1.5px; background: var(--imperial-blue); opacity: .35;
  transition: width var(--dur) var(--ease); }

.fator__panel { position: absolute; inset: 0; z-index: 2; padding: 26px 24px; background: var(--grad-hero);
  display: flex; flex-direction: column; gap: 11px; justify-content: center;
  opacity: 0; pointer-events: none;
  -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease), opacity var(--dur) var(--ease); }
.fator__panel::after { content: ""; position: absolute; right: -30px; top: -28px; width: 150px; height: 150px;
  background: url("assets/logos/NUMO_Grafismo.png") no-repeat; background-size: 560px; background-position: -36px -150px;
  opacity: .12; filter: brightness(0) invert(1); pointer-events: none; }
.fator__panel h3 { position: relative; z-index: 1; font-size: 1.05rem; font-weight: var(--w-extrabold); color: #fff; margin: 0; letter-spacing: -.01em; }
.fator__panel p { position: relative; z-index: 1; font-size: 13px; line-height: 1.55; color: rgba(247,255,255,.86); margin: 0; }
.fator__panel p b { color: #fff; font-weight: var(--w-bold); }

.fator.open .fator__panel { opacity: 1; -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
@media (hover: hover) {
  .fator:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--imperial-300), var(--shadow-md); }
  .fator:hover .fator__more::before { width: 30px; }
  .fator:hover .fator__more svg.lucide { transform: translateX(3px); }
  .fator:hover .fator__panel { opacity: 1; -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
}

/* card CTA dentro da grade */
.fator--cta { cursor: default; background: var(--azul-escuro); box-shadow: none; }
.fator--cta::before { opacity: .08; filter: brightness(0) invert(1); }
.fator--cta .fator__face { justify-content: center; gap: 14px; }
.fator--cta p { font-size: 14.5px; color: rgba(247,255,255,.78); line-height: 1.45; margin: 0; }
.fator--cta .btn { align-self: flex-start; }
@media (hover: hover) { .fator--cta:hover { transform: none; box-shadow: none; } }

@media (max-width: 900px) { .fatores__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fatores__grid { grid-template-columns: 1fr; } .fator { min-height: 210px; } }

/* ============ PLANO DE SAÍDA — revenda (linha do tempo) ============ */
.saida { background: var(--branco-gelo); border-top: 1px solid var(--border); }
.saida__timeline { list-style: none; margin: 56px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.saida__timeline::before { content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--imperial-blue), var(--border)); z-index: 0; }
.saida__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px; }
.saida__marker { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--imperial-blue);
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--branco-gelo);
  transition: transform var(--dur) var(--ease); }
.saida__marker svg.lucide { width: 24px; height: 24px; color: var(--imperial-blue); }
.saida__step:hover .saida__marker { transform: scale(1.07); }
.saida__step-content { display: flex; flex-direction: column; gap: 8px; }
.saida__step-n { font-size: .72rem; font-weight: var(--w-bold); letter-spacing: .14em;
  text-transform: uppercase; color: var(--imperial-blue); }
.saida__text { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; max-width: 230px; }
.saida__text b { color: var(--azul-escuro); font-weight: var(--w-bold); }

/* etapa final — sinal positivo (venda concluída) */
.saida__step--done .saida__marker { background: var(--positive); border-color: var(--positive);
  box-shadow: 0 0 0 6px var(--branco-gelo), 0 8px 22px rgba(6,190,53,.32); animation: saidaPop .9s var(--ease) .2s both; }
.saida__step--done .saida__marker svg.lucide { color: #fff; }
.saida__step--done:hover .saida__marker { transform: scale(1.07); }
.saida__step--done .saida__step-n { color: var(--positive-deep); }
.saida__step--done .saida__text b { color: var(--positive-deep); }
@keyframes saidaPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .saida__step--done .saida__marker { animation: none; } }

/* case de sucesso (abre modal de vídeo) */
.saida__case { margin-top: 56px; display: flex; justify-content: center; }
.saida__case-btn { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 16px 28px 16px 16px; box-shadow: var(--shadow-sm); cursor: pointer;
  text-align: left; max-width: 540px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.saida__case-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.saida__case-thumb { position: relative; flex: 0 0 auto; width: 88px; height: 88px; border-radius: var(--r-lg);
  overflow: hidden; background: var(--azul-escuro); }
.saida__case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.saida__case-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,14,23,.26); }
.saida__case-play svg.lucide { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.saida__case-copy { display: flex; flex-direction: column; gap: 4px; }
.saida__case-eyebrow { font-size: .7rem; font-weight: var(--w-bold); letter-spacing: .14em;
  text-transform: uppercase; color: var(--imperial-blue); }
.saida__case-title { font-size: 1.1rem; font-weight: var(--w-bold); color: var(--fg); line-height: 1.3; }
.saida__case-sub { font-size: 13.5px; color: var(--fg-muted); }

@media (max-width: 860px) {
  .saida__timeline { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .saida__timeline::before { top: 8px; bottom: 8px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--border), var(--imperial-blue), var(--border)); }
  .saida__step { flex-direction: row; align-items: flex-start; text-align: left; gap: 22px; padding-bottom: 34px; }
  .saida__step:last-child { padding-bottom: 0; }
  .saida__marker { flex: 0 0 auto; }
  .saida__text { max-width: none; }
}
@media (max-width: 560px) {
  .saida__case-btn { padding: 14px; gap: 16px; }
  .saida__case-thumb { width: 74px; height: 74px; }
}

/* ============ VÍDEO — "Veja na prática" ============ */
.vplay { background: #fff; border-top: 1px solid var(--border); }
.vplay__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vplay__copy h2 { font-size: var(--fs-h1); font-weight: var(--w-extrabold); letter-spacing: -.02em;
  line-height: var(--lh-snug); margin: 0; color: var(--fg); }
.vplay__copy h2 .light { font-weight: var(--w-light); }
.vplay__copy p { font-size: var(--fs-lead); font-weight: var(--w-light); color: var(--fg-muted);
  line-height: 1.5; margin: 18px 0 0; max-width: 520px; }
.vplay__frame { position: relative; border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg); background: var(--azul-escuro); cursor: pointer; }
.vplay__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplay__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplay__frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,14,23,.1), rgba(4,14,23,.5)); transition: opacity var(--dur) var(--ease); }
.vplay__frame.playing::after { opacity: 0; }
.vplay__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease); }
.vplay__frame:hover .vplay__play { transform: translate(-50%,-50%) scale(1.08); }
.vplay__play svg.lucide { width: 30px; height: 30px; color: var(--imperial-blue); margin-left: 3px; }

/* ============ IMÓVEIS (grade estática, sem carrossel) ============ */
.inv-imoveis { background: var(--branco); border-top: 1px solid var(--border); }
.inv-imoveis__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.inv-imoveis__grid .imv-card { flex: initial; }

/* ============ CASA DE INVESTIMENTO (imagem + texto) — fundo gelo (imóveis acima é branco) ============ */
.casa { background: var(--branco-gelo); border-top: 1px solid var(--border); }
.casa__inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.casa__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; }
.casa__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.casa__copy h2 { font-size: var(--fs-h2); font-weight: var(--w-extrabold); color: var(--fg);
  letter-spacing: -.02em; line-height: var(--lh-snug); margin: 0; text-wrap: balance; }
.casa__copy h2 .light { font-weight: var(--w-light); }
.casa__copy p { font-size: 15.5px; color: var(--fg-muted); line-height: 1.6; margin: 16px 0 0; }
.casa__cta { margin-top: 28px; }
#agendaForm { display: flex; flex-direction: column; gap: 16px; }

/* form: linha de 2 colunas (data + hora) */
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-row input, .lf-row select {
  font-family: var(--font); font-size: 15px; color: var(--fg);
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--branco-gelo); transition: all var(--dur) var(--ease); width: 100%; }
.lf-row input:focus, .lf-row select:focus { outline: none; border-color: var(--imperial-blue);
  background: var(--branco); box-shadow: 0 0 0 4px rgba(1,23,70,.08); }
.lf-row select { cursor: pointer; }

/* form: formato do atendimento (segmentado) */
.lf-modo { border: 0; padding: 0; margin: 0; }
.lf-modo__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-modo__opt { position: relative; cursor: pointer; }
.lf-modo__opt input { position: absolute; opacity: 0; pointer-events: none; }
.lf-modo__pill { display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--branco-gelo); font-size: 14.5px; font-weight: var(--w-medium); color: var(--fg-muted);
  transition: all var(--dur) var(--ease); }
.lf-modo__pill svg.lucide { width: 18px; height: 18px; }
.lf-modo__opt input:checked + .lf-modo__pill { border-color: var(--imperial-blue); color: var(--imperial-blue);
  background: var(--branco); box-shadow: 0 0 0 4px rgba(1,23,70,.08); font-weight: var(--w-semibold); }
.lf-modo__opt input:focus-visible + .lf-modo__pill { border-color: var(--imperial-blue); }

/* ============ RESPONSIVO ============ */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .perfil__inner, .vplay__inner, .casa__inner { grid-template-columns: 1fr; gap: 40px; }
  .fatores__grid { grid-template-columns: repeat(2, 1fr); }
  .saida__grid { grid-template-columns: repeat(2, 1fr); }
  .inv-imoveis__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .fatores__grid, .saida__grid, .inv-imoveis__grid { grid-template-columns: 1fr; }
}
