/* RExNext — home "em construção": prédio de ferramentas, guindaste, fita de obra e movimento.
   Complementa o rexnext.css (tokens e componentes do Design System RExSoft v2). */

/* ─── Hero com planta baixa (blueprint) ─────────────────────────── */
.hero-predio {
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(1,126,116,0.35), rgba(1,126,116,0) 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(93,202,165,0.12), rgba(93,202,165,0) 70%),
    var(--dark-900);
}
.hero-predio::after { display: none; }
.hero-grade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image:
    linear-gradient(rgba(93,202,165,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,202,165,0.10) 1px, transparent 1px),
    linear-gradient(rgba(93,202,165,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,202,165,0.05) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 60% 40%, #000 30%, transparent 100%);
}
.hero-predio .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; padding-top: 64px; padding-bottom: 56px; align-items: center;
}
.hero-predio h1 { font-size: 46px; }
.hero-predio h1 .palavra { display: inline-block; will-change: transform; }
.hero-predio h1 span.ac { color: var(--teal-400); font-weight: 600; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-chips span {
  font-size: 12px; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px;
}

/* ─── Fita de obra (listras amarelo/escuro) ─────────────────────── */
.fita {
  position: relative; overflow: hidden; background: var(--yellow-400); color: var(--dark-900);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--dark-900) 0 14px, var(--yellow-400) 14px 28px) 6;
}
.fita-trilho { display: flex; width: max-content; animation: fita-rolar 60s linear infinite; }
.fita-trilho span { padding: 9px 48px; white-space: nowrap; }
@keyframes fita-rolar { to { transform: translateX(-50%); } }
.fita:hover .fita-trilho { animation-play-state: paused; }

/* ─── O prédio em CSS 3D: arraste para girar; cada andar é um link ─── */
.predio-wrap { position: relative; --pw: 250px; --pd: 170px; --ph: 54px; --esc: 1; }
.cena {
  position: relative; height: 560px; perspective: 1500px; perspective-origin: 50% 42%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.cena.arrastando { cursor: grabbing; }
.orbita {
  position: absolute; left: 50%; top: 78%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: scale(var(--esc)) rotateX(var(--rx, -22deg)) rotateY(var(--ry, -34deg));
}
.chao {
  position: absolute; width: 640px; height: 640px; left: -320px; top: -320px;
  transform: rotateX(90deg) translateZ(-1px);
  background:
    radial-gradient(ellipse at center, rgba(1,126,116,0.45), rgba(1,126,116,0.12) 38%, transparent 62%),
    linear-gradient(rgba(159,225,203,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,225,203,0.14) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}
.guindaste-painel {
  position: absolute; width: 220px; height: 470px; left: 0; top: 0;
  transform: translate3d(calc(var(--pw) * -0.5 - 190px), -470px, calc(var(--pd) * -0.25)) rotateY(30deg);
  transform-style: preserve-3d; backface-visibility: visible; opacity: 0.9; pointer-events: none;
}
.guindaste-painel svg { width: 100%; height: 100%; display: block; }
.guindaste-painel .lanca { transform-origin: 46px 40px; }
.nivel {
  position: absolute; left: calc(var(--pw) * -0.5); top: calc(var(--ph) * -1);
  width: var(--pw); height: var(--ph);
  transform: translateY(calc(var(--i) * var(--ph) * -1)); transform-style: preserve-3d;
}
.bloco { position: absolute; inset: 0; display: block; transform-style: preserve-3d; text-decoration: none; color: inherit; }
.bloco .f {
  position: absolute; left: 0; top: 0; width: var(--pw); height: var(--ph);
  backface-visibility: hidden; overflow: hidden;
  background-color: #1e3635;
  background-image:
    linear-gradient(180deg, rgba(159,225,203,0.55) 0%, rgba(93,202,165,0.28) 45%, rgba(1,126,116,0.45) 100%),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--pw) / 5 - 3px), rgba(25,44,43,0.95) calc(var(--pw) / 5 - 3px) calc(var(--pw) / 5));
  box-shadow: inset 0 -9px 0 rgba(25,44,43,0.85), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}
.bloco .f.frente { transform: translateZ(calc(var(--pd) / 2)); }
.bloco .f.tras { transform: rotateY(180deg) translateZ(calc(var(--pd) / 2)); filter: brightness(0.7); }
.bloco .f.dir, .bloco .f.esq { width: var(--pd); left: calc((var(--pw) - var(--pd)) / 2); background-image: linear-gradient(180deg, rgba(159,225,203,0.5) 0%, rgba(93,202,165,0.25) 45%, rgba(1,126,116,0.45) 100%), repeating-linear-gradient(90deg, transparent 0 calc(var(--pd) / 3 - 3px), rgba(25,44,43,0.95) calc(var(--pd) / 3 - 3px) calc(var(--pd) / 3)); }
.bloco .f.dir { transform: rotateY(90deg) translateZ(calc(var(--pw) / 2)); filter: brightness(0.82); }
.bloco .f.esq { transform: rotateY(-90deg) translateZ(calc(var(--pw) / 2)); filter: brightness(0.9); }
.bloco .f.topo {
  width: calc(var(--pw) + 18px); height: calc(var(--pd) + 18px); left: -9px; top: calc((var(--ph) - var(--pd)) / 2 - 9px);
  transform: rotateX(90deg) translateZ(calc(var(--ph) / 2)); backface-visibility: visible;
  background: linear-gradient(135deg, #c8f0e6, #9FE1CB); box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 6px 0 rgba(8,80,65,0.55);
}
.bloco .f b, .bloco .f i { position: absolute; left: 12px; font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); pointer-events: none; }
.bloco .f b { top: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--teal-300); letter-spacing: 0.08em; background: rgba(25,44,43,0.75); padding: 1px 6px; border-radius: 4px; }
.bloco .f i { bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: -0.01em; background: rgba(25,44,43,0.75); padding: 2px 7px; border-radius: 4px; }
.bloco.cobertura .f.topo { background: linear-gradient(135deg, #E1F5EE, #c8f0e6); }
.bloco.cobertura .jardim { position: absolute; left: 16px; top: 16px; width: 42%; height: calc(100% - 32px); border-radius: 8px; background: radial-gradient(circle at 30% 30%, #5DCAA5, #1D9E75 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); }
.bloco.cobertura .piscina { position: absolute; right: 18px; top: 24px; width: 34%; height: calc(100% - 48px); border-radius: 6px; background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: inset 0 0 0 2px #eff6ff, 0 0 18px rgba(37,99,235,0.6); }
.bloco:hover .f, .bloco.ativo .f, .bloco:focus-visible .f { filter: brightness(1.3) saturate(1.25); box-shadow: inset 0 -9px 0 rgba(25,44,43,0.85), inset 0 1px 0 rgba(255,255,255,0.25), 0 0 28px rgba(93,202,165,0.55); }
.bloco:hover .f.topo, .bloco.ativo .f.topo { filter: none; }
.bloco:focus-visible { outline: none; }
/* andares em obra: só estrutura */
.bloco.obra { cursor: default; }
.bloco.obra .f {
  background-color: transparent; background-image: none; box-shadow: none;
  border: 1.5px dashed rgba(159,225,203,0.55);
  background: linear-gradient(90deg, #9FE1CB 0 3px, transparent 3px) left/50% 100% no-repeat, linear-gradient(90deg, transparent calc(100% - 3px), #9FE1CB calc(100% - 3px)) right/50% 100% no-repeat, linear-gradient(90deg, transparent calc(50% - 1.5px), #9FE1CB calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  filter: none;
}
.bloco.obra .f.frente::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 7px; background: repeating-linear-gradient(135deg, #f5a623 0 8px, #192c2b 8px 16px); }
.bloco.obra .f.topo { background: rgba(159,225,203,0.12); border: 1.5px dashed rgba(159,225,203,0.6); box-shadow: none; }
.bloco.obra .f b { color: var(--yellow-400); }
.bloco.obra .f i { background: var(--yellow-400); color: var(--dark-900); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: none; }
.bloco.obra:hover .f { filter: none; box-shadow: none; }
.cena-dica { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); background: rgba(25,44,43,0.6); border: 1px solid rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 100px; pointer-events: none; white-space: nowrap; }
.cena-botoes { position: absolute; right: 0; bottom: 10px; display: flex; gap: 4px; }
.cena-botoes button { font: inherit; font-size: 12px; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 100px; padding: 5px 11px; cursor: pointer; transition: background 0.15s; }
.cena-botoes button:hover { background: rgba(1,126,116,0.45); color: #fff; }

/* cartões das ferramentas (grandes, claramente clicáveis) */
.andares-cab { margin-top: 24px; }
.andares-cab h2 { color: #fff; }
.andares-cab h2 span { color: var(--teal-400); }
.andares-cab .section-lead { color: rgba(255,255,255,0.65); }
.andares-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.andar-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 14px; align-items: start;
  padding: 20px 20px 18px; border-radius: var(--radius-xl); text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; overflow: hidden;
}
.andar-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(29,158,117,0.25), transparent 60%); pointer-events: none; }
.andar-card:hover::before { opacity: 1; }
.andar-card:hover, .andar-card:focus-visible, .andar-card.ativo { transform: translateY(-4px); border-color: var(--teal-400); background: linear-gradient(180deg, rgba(1,126,116,0.35), rgba(1,126,116,0.12)); box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(93,202,165,0.3); outline: none; }
.andar-card .ac-num { grid-column: 1; grid-row: 1; font-family: var(--mono); font-size: 12px; color: var(--teal-300); letter-spacing: 0.1em; align-self: center; background: rgba(1,126,116,0.25); border-radius: 6px; padding: 3px 8px; }
.andar-card .ac-ico { grid-column: 2; grid-row: 1; justify-self: end; width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.andar-card .ac-txt { grid-column: 1 / -1; grid-row: 2; }
.andar-card .ac-txt strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.andar-card .ac-txt small { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; line-height: 1.5; }
.ac-abrir { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 600; color: #fff; background: var(--teal-600); border-radius: 100px; padding: 8px 16px; transition: background 0.2s ease, gap 0.2s ease; }
.andar-card:hover .ac-abrir, .andares-obra:hover .ac-abrir { background: var(--teal-500); gap: 10px; }
.andar-card.cobertura { border-color: rgba(245,166,35,0.35); }
.andar-card.cobertura .ac-num { background: rgba(245,166,35,0.2); color: var(--yellow-400); }
.andares-obra {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 20px;
  border-radius: var(--radius-xl); text-decoration: none; color: #fff; border: 1px dashed rgba(245,166,35,0.5);
  background: repeating-linear-gradient(135deg, rgba(245,166,35,0.06) 0 10px, transparent 10px 20px); transition: background 0.25s ease, border-color 0.25s ease;
}
.andares-obra:hover { border-color: var(--yellow-400); background: rgba(245,166,35,0.12); }
.andares-obra .ao-placa { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow-400); color: var(--dark-900); padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.andares-obra .ao-txt { font-size: 14px; color: rgba(255,255,255,0.8); }
.andares-obra .ao-txt strong { color: #fff; }
.andares-obra .ac-abrir { margin: 0; }
.hero-predio .hero-inner { padding-bottom: 8px; }
.hero-predio > .site-wrap:last-of-type { padding-bottom: 56px; }

/* RExSoft na home */
.rs-notebook-link { position: relative; display: block; text-decoration: none; }
.rs-notebook-link img { width: 100%; height: auto; transition: transform 0.4s ease; }
.rs-notebook-link:hover img { transform: translateY(-4px); }
.rs-notebook-selo { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.65); }
.rs-porque { margin-top: 56px; }
.rs-porque h3 { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; margin-top: 8px; color: #fff; }
.rs-porque h3 span { color: var(--teal-400); font-weight: 600; }
.rs-porque .feature-card h3 { font-size: 15px; font-weight: 500; }
.rs-depos-escuro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.site-section.dark .rs-depo { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.site-section.dark .rs-depo blockquote { color: rgba(255,255,255,0.9); }
.site-section.dark .rs-depo figcaption { color: rgba(255,255,255,0.55); }
.site-section.dark .rs-depo figcaption strong { color: #fff; }
.rs-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding: 28px 32px; border-radius: var(--radius-xl); background: rgba(1,126,116,0.18); border: 1px solid rgba(93,202,165,0.25); }
.rs-final-cta h3 { font-size: 22px; font-weight: 300; }
.rs-final-cta h3 span { color: var(--teal-400); font-weight: 600; }
.rs-final-cta p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 6px; max-width: 560px; }
.rs-final-cta .hero-actions { margin-top: 0; }
.hero-selo { background: rgba(1,126,116,0.25); color: var(--teal-300); border: 1px solid rgba(93,202,165,0.25); }

/* ─── Números ───────────────────────────────────────────────────── */
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgba(1,126,116,0.10); }

/* ─── Cards com foco de luz que segue o mouse ───────────────────── */
.feature-card, .tool-card, .socio, .depo { position: relative; overflow: hidden; }
.foco::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(29,158,117,0.16), transparent 60%);
}
.foco:hover::before { opacity: 1; }
.feature-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-300); }
.feature-card .fc-icon { transition: transform 0.3s ease; }
.feature-card:hover .fc-icon { transform: rotate(-6deg) scale(1.08); }

/* ─── Quem somos sem foto: texto + card lateral ─────────────────── */
.quem-somos-lado { background: var(--gray-50); border: 1px solid var(--gray-150); border-radius: var(--radius-xl); padding: 24px; }
.quem-somos-lado .card-title { margin-top: 0; }
.quem-somos-lado .card-title + .card-title { margin-top: 20px; }

/* ─── Momentos (fotos que ficaram) ──────────────────────────────── */
.momentos { margin-top: 36px; }
.momentos-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.momentos-cab p { font-size: 13px; color: var(--gray-500); }

/* ─── RExSoft: logo como porta de entrada ───────────────────────── */
.rexsoft-porta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 300px; padding: 36px 28px; text-decoration: none; color: var(--white);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl);
  overflow: hidden; transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.rexsoft-porta::before {
  content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(93,202,165,0.25) 85%, transparent 100%);
  animation: girar 9s linear infinite; opacity: 0.8;
}
.rexsoft-porta::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; background: linear-gradient(180deg, rgba(30,54,53,0.96), rgba(25,44,43,0.98)); }
@keyframes girar { to { transform: rotate(360deg); } }
.rexsoft-porta > * { position: relative; z-index: 1; }
.rexsoft-porta img { width: min(78%, 360px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45)); transition: transform 0.4s ease; }
.rexsoft-porta:hover { border-color: rgba(93,202,165,0.6); transform: translateY(-3px); }
.rexsoft-porta:hover img { transform: scale(1.04); }
.rexsoft-porta .porta-selo {
  display: inline-flex; align-items: center; gap: 8px; background: var(--teal-600); color: var(--white);
  font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-md);
  transition: background 0.2s ease, gap 0.2s ease;
}
.rexsoft-porta:hover .porta-selo { background: var(--teal-500); gap: 12px; }
.rexsoft-porta .porta-nota { font-size: 12px; color: rgba(255,255,255,0.55); text-align: center; }
.rexsoft-previa-mini { margin-top: 18px; display: block; }
.rexsoft-previa-mini img { width: 100%; height: auto; border-radius: var(--radius-lg); opacity: 0.9; transition: opacity 0.3s ease, transform 0.3s ease; }
.rexsoft-previa-mini:hover img { opacity: 1; transform: translateY(-3px); }

/* ─── Botões "magnéticos" e ícone animado no CTA ────────────────── */
.btn-mag { will-change: transform; }
.btn-primary.btn-lg { box-shadow: 0 6px 20px rgba(1,126,116,0.28); }
.btn-primary.btn-lg:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(1,126,116,0.38); }

/* ─── Barra de progresso de rolagem ─────────────────────────────── */
.rolagem { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 300; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal-600), var(--teal-400)); }

/* ─── Responsivo ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-predio h1 { font-size: 40px; }
}
@media (max-width: 960px) {
  .hero-predio .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; }
  .andares-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-depos-escuro { grid-template-columns: minmax(0, 1fr); }
  .cena { height: 480px; }
}
@media (max-width: 720px) {
  .hero-predio h1 { font-size: 32px; }
  .andares-cards { grid-template-columns: minmax(0, 1fr); }
  .cena { height: 400px; }
  .cena-botoes { right: auto; left: 0; }
  .cena-dica { display: none; }
  .andares-obra { grid-template-columns: minmax(0, 1fr); }
  .rs-final-cta { padding: 20px; }
  .fita-trilho span { padding: 8px 20px; font-size: 11px; }
  .rexsoft-porta { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .fita-trilho, .rexsoft-porta::before { animation: none; }
  .feature-card, .rexsoft-porta, .rexsoft-porta img { transition: none; }
}
