/* ============================================================
   NEXUM CONSÓRCIOS — redesign.css
   Redesign premium: hero v3, faixa de administradoras,
   modalidades v3, formulário multi-step e botão WhatsApp.
   Carregado APÓS styles.css. Para rollback: remova o <link>
   deste arquivo no index.html e restaure .nexum_backups/.
   ============================================================ */

:root {
  --nx-navy: #0D1F2D;
  --nx-teal: #1DD4C8;
  --nx-cream: #EDE5CF;
  --nx-wa: #25D366;
  --nx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== HERO V3 ===================== */
.hero-v3 .badge-dot { flex-shrink: 0; }
.hero-v3 {
  min-height: 92vh;
  padding: 170px 0 96px;
  background:
    radial-gradient(1100px 620px at 78% 22%, rgba(29,212,200,.10) 0%, transparent 60%),
    radial-gradient(900px 700px at 8% 90%, rgba(29,212,200,.05) 0%, transparent 55%),
    linear-gradient(168deg, #0D1F2D 0%, #0B1220 58%, #0A1422 100%);
}
.hero-overlay-v3 {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(7,12,21,.55) 100%);
}
.hv3-radial {
  position: absolute; z-index: 2;
  top: 50%; right: 6%;
  width: 640px; height: 640px;
  transform: translateY(-50%);
  background: radial-gradient(circle at center, rgba(29,212,200,.13) 0%, rgba(29,212,200,.04) 42%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hv3-layout {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(340px, 416px);
  gap: clamp(26px, 3.2vw, 48px);
  align-items: center;
}

.hv3-copy { max-width: 600px; }
.hv3-actions {
  display: flex; align-items: center; gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}
.hv3-cta-main {
  padding: 15px 30px;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(29,212,200,.22);
}
.hv3-cta-wa {
  padding: 14px 24px;
  border-color: rgba(255,255,255,.16);
  color: var(--text-200);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.03);
}
.hv3-cta-wa svg { color: var(--nx-wa); flex-shrink: 0; }
.hv3-cta-wa:hover {
  border-color: rgba(37,211,102,.45);
  color: #fff;
  background: rgba(37,211,102,.07);
}

/* Métricas dinâmicas — linha completa abaixo de copy/divisor/formulário */
.hv3-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.hv3-metric {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  transition: transform .28s var(--nx-ease), border-color .28s var(--nx-ease),
              box-shadow .28s var(--nx-ease), background .28s var(--nx-ease);
}
.hv3-metric:hover {
  transform: translateY(-3px);
  border-color: rgba(29,212,200,.35);
  background: rgba(29,212,200,.05);
  box-shadow: 0 14px 34px rgba(0,0,0,.3), 0 0 0 1px rgba(29,212,200,.08);
}
.hv3-metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: var(--nx-teal);
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: text-shadow .28s var(--nx-ease);
}
.hv3-metric:hover .hv3-metric-value { text-shadow: 0 0 22px rgba(29,212,200,.45); }
.hv3-metric-label {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-400);
}

/* Badge Nexum — divisor vertical entre informações e formulário */
.hv3-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  align-self: stretch;
  padding: 12px 0;
  animation: hv3-float 7s ease-in-out infinite;
}
@keyframes hv3-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.hv3-divider-line {
  flex: 1;
  width: 1px;
  min-height: 36px;
  background: linear-gradient(180deg, transparent, rgba(29,212,200,.32), transparent);
}

.hv3-logo-card {
  position: relative;
  width: 148px; height: 148px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(140% 140% at 30% 20%, rgba(29,212,200,.10) 0%, transparent 55%),
    linear-gradient(155deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 30px 70px rgba(0,0,0,.5),
    0 0 60px rgba(29,212,200,.10),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease);
}
.hv3-logo-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 38px 84px rgba(0,0,0,.55),
    0 0 80px rgba(29,212,200,.16),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.hv3-logo { width: 72px; height: auto; overflow: visible; }

/* Barras da logo — entrada inspirada no loading do CRM */
.hv3-bar { transform-box: fill-box; }
.hv3-bar-l { transform-origin: center bottom; animation: hv3-rise .6s var(--nx-ease) .9s both; }
.hv3-bar-r { transform-origin: center top;    animation: hv3-rise .6s var(--nx-ease) 1.08s both; }
.hv3-bar-d { transform-origin: center top;    animation: hv3-rise .52s var(--nx-ease) 1.45s both; }
@keyframes hv3-rise {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

/* Brilho sutil que atravessa a logo */
.hv3-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.09) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: hv3-sheen 6.5s ease-in-out 2.4s infinite;
  pointer-events: none;
}
@keyframes hv3-sheen {
  0%       { transform: translateX(-130%); }
  18%, 100% { transform: translateX(130%); }
}

.hv3-wordmark {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--nx-cream);
  opacity: 0;
  animation: hv3-fade .8s var(--nx-ease) 1.7s both;
}
.hv3-wordmark-sub {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  color: var(--nx-teal);
}
@keyframes hv3-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== FAIXA DE ADMINISTRADORAS ===================== */
.adm-strip {
  background: var(--nx-cream);
  padding: 30px 0 34px;
  border-bottom: 1px solid rgba(13,31,45,.08);
}
.adm-strip-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.adm-strip-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(13,31,45,.45);
}
.adm-track {
  width: 100%;
  max-width: 1020px;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(22px, 3.2vw, 46px);
  flex-wrap: wrap;
}
.adm-item {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
}
.adm-logo {
  display: block; width: auto;
  object-fit: contain; object-position: center;
  filter: grayscale(100%);
  opacity: .58;
  transform: translate3d(0,0,0);
  transition:
    filter 240ms var(--nx-ease),
    opacity 240ms var(--nx-ease),
    transform 240ms var(--nx-ease);
}
/* Alturas calibradas por peso óptico — ajuste fino por marca */
.adm-logo--itau      { height: 37px; }
.adm-logo--santander { height: 30px; }
.adm-logo--bradesco  { height: 31px; }
.adm-logo--bb        { height: 38px; }
.adm-logo--ancora    { height: 32px; }
.adm-logo--rodobens  { height: 26px; }

.adm-item:hover .adm-logo,
.adm-item:focus-visible .adm-logo {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}
/* Suaviza as demais marcas quando uma está em foco */
.adm-track:hover .adm-item:not(:hover) .adm-logo { opacity: .38; }

/* ===================== MODALIDADES V3 — "QUAL É O SEU CASO?" ===================== */
.mc3-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.mc3-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 34px 30px;
  border-radius: 22px;
  background: linear-gradient(160deg, #10202F 0%, #0B1624 100%);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  transition: transform .32s var(--nx-ease), border-color .32s var(--nx-ease), box-shadow .32s var(--nx-ease);
}
.mc3-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 18% 0%, rgba(29,212,200,.09) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .32s var(--nx-ease);
  pointer-events: none;
}
.mc3-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(29,212,200,.5), rgba(29,212,200,.06) 55%, transparent);
  opacity: .45;
  transition: opacity .32s var(--nx-ease);
}
.mc3-card:hover, .mc3-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(29,212,200,.32);
  box-shadow: 0 22px 56px rgba(0,0,0,.42), 0 0 0 1px rgba(29,212,200,.08);
  outline: none;
}
.mc3-card:hover::before, .mc3-card:focus-visible::before { opacity: 1; }
.mc3-card:hover::after, .mc3-card:focus-visible::after { opacity: 1; }

.mc3-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.mc3-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(29,212,200,.09);
  border: 1px solid rgba(29,212,200,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--nx-teal);
  flex-shrink: 0;
  transition: transform .32s var(--nx-ease), background .32s var(--nx-ease);
}
.mc3-card:hover .mc3-icon { transform: translateY(-2px); background: rgba(29,212,200,.14); }
.mc3-num {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.055);
  letter-spacing: .02em;
  user-select: none;
  transition: color .32s var(--nx-ease);
}
.mc3-card:hover .mc3-num { color: rgba(29,212,200,.14); }
.mc3-badge {
  align-self: flex-start;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-900);
  background: var(--nx-teal);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: var(--space-sm);
}
.mc3-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}
.mc3-desc {
  font-size: .9rem;
  color: var(--text-300);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}
.mc3-points {
  display: flex; flex-direction: column;
  margin-bottom: var(--space-xl);
  flex: 1;
}
.mc3-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem;
  color: var(--text-200);
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.055);
}
.mc3-points li:first-child { border-top: none; }
.mc3-points svg { color: var(--nx-teal); flex-shrink: 0; }
.mc3-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--nx-teal);
  padding: 12px 22px;
  border: 1px solid rgba(29,212,200,.28);
  border-radius: 12px;
  align-self: flex-start;
  margin-top: auto;
  transition: background .26s var(--nx-ease), border-color .26s var(--nx-ease),
              color .26s var(--nx-ease), box-shadow .26s var(--nx-ease);
}
.mc3-cta svg { transition: transform .26s var(--nx-ease); }
.mc3-cta:hover {
  background: var(--nx-teal);
  border-color: var(--nx-teal);
  color: var(--brand-900);
  box-shadow: 0 8px 24px rgba(29,212,200,.28);
}
.mc3-cta:hover svg { transform: translateX(3px); }

/* ===================== FORMULÁRIO MULTI-STEP ===================== */
#form-analise { scroll-margin-top: 130px; }
.nf-multistep.nf-multistep--hero { padding: 24px 22px 22px; }
.nf-multistep {
  background: linear-gradient(165deg, #10202F 0%, #0C1826 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  padding: 30px 30px 28px;
  box-shadow: 0 26px 64px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}

/* Indicador de progresso */
.ms-progress { margin-bottom: 26px; }
.ms-progress-steps {
  display: flex; align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ms-pstep {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.ms-pdot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.16);
  color: var(--text-400);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--nx-ease);
}
.ms-plabel {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-400);
  transition: color .3s var(--nx-ease);
}
.ms-pline {
  flex: 1; height: 1px;
  background: rgba(255,255,255,.1);
  min-width: 14px;
}
.ms-pstep.is-active .ms-pdot {
  border-color: var(--nx-teal);
  background: rgba(29,212,200,.12);
  color: var(--nx-teal);
  box-shadow: 0 0 0 4px rgba(29,212,200,.08);
}
.ms-pstep.is-active .ms-plabel { color: var(--nx-teal); }
.ms-pstep.is-done .ms-pdot {
  border-color: var(--nx-teal);
  background: var(--nx-teal);
  color: var(--brand-900);
}
.ms-pstep.is-done .ms-plabel { color: var(--text-200); }
.ms-progress-track {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.ms-progress-fill {
  height: 100%;
  width: 33.34%;
  background: linear-gradient(90deg, var(--nx-teal), #3DDDD2);
  border-radius: 99px;
  transition: width .45s var(--nx-ease);
}

/* Etapas */
.ms-step { display: none; }
.ms-step.is-active { display: block; animation: ms-in .32s var(--nx-ease); }
@keyframes ms-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ms-step-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 4px;
}
.ms-step-sub {
  font-size: .82rem;
  color: var(--text-400);
  margin-bottom: var(--space-lg);
}

/* Revisão (etapa final) */
.ms-review {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  margin-bottom: var(--space-md);
}
.ms-review-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ms-review-row:first-child { border-top: none; }
.ms-review-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-400);
  flex-shrink: 0;
}
.ms-review-value {
  font-size: .86rem;
  color: var(--text-100);
  text-align: right;
  line-height: 1.45;
}

/* Navegação */
.ms-nav {
  display: flex; align-items: center; gap: var(--space-md);
  margin-top: var(--space-md);
}
.ms-prev {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-300);
  padding: 13px 18px;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  background: transparent;
  transition: border-color .24s var(--nx-ease), color .24s var(--nx-ease), background .24s var(--nx-ease);
}
.ms-prev:hover { border-color: rgba(29,212,200,.4); color: var(--nx-teal); background: rgba(29,212,200,.05); }
.ms-next, .nf-multistep .nf-submit {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  width: auto;
}
.ms-nav [hidden] { display: none !important; }

/* ===================== BOTÃO WHATSAPP FLUTUANTE ===================== */
.wa-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 200;
  display: flex; align-items: center; gap: 0;
  height: 58px;
  padding: 0 16px;
  border-radius: 100px;
  background: linear-gradient(145deg, #27d567 0%, #1eb558 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(13,31,45,.35), 0 4px 14px rgba(37,211,102,.3);
  transition: transform .28s var(--nx-ease), box-shadow .28s var(--nx-ease);
  overflow: hidden;
}
.wa-fab svg { flex-shrink: 0; }
.wa-fab-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 600;
  overflow: hidden;
  transition: max-width .38s var(--nx-ease), opacity .3s var(--nx-ease), margin-left .38s var(--nx-ease);
}
.wa-fab:hover, .wa-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13,31,45,.4), 0 6px 18px rgba(37,211,102,.38);
}
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label {
  max-width: 200px;
  opacity: 1;
  margin-left: 10px;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1100px) {
  .hero-v3 { min-height: auto; padding: 150px 0 70px; }
  .hv3-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hv3-copy { max-width: 640px; }
  /* Divisor vira horizontal entre copy e formulário */
  .hv3-divider {
    flex-direction: row;
    align-self: auto;
    width: 100%;
    max-width: 560px;
    gap: 20px;
    padding: 6px 0;
  }
  .hv3-divider-line {
    width: auto; min-height: 0;
    height: 1px; min-width: 36px;
    background: linear-gradient(90deg, transparent, rgba(29,212,200,.32), transparent);
  }
  .hv3-logo-card { width: 104px; height: 104px; border-radius: 18px; flex-shrink: 0; }
  .hv3-logo { width: 52px; }
  .hv3-form { width: 100%; max-width: 560px; }
  .hv3-radial { right: -16%; top: 30%; width: 480px; height: 480px; }
  .hv3-metrics { margin-top: var(--space-lg); max-width: 560px; }
  .mc3-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .hero-v3 { padding: 138px 0 56px; }
  .hv3-actions { gap: 10px; }
  .hv3-cta-main, .hv3-cta-wa { width: 100%; justify-content: center; }
  .hv3-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hv3-metric:first-child { grid-column: 1 / -1; }
  .hv3-metric { padding: 14px 16px 13px; }
  .adm-strip { padding: 24px 0 26px; }
  .adm-track { gap: 18px 26px; }
  .adm-logo--itau      { height: 27px; }
  .adm-logo--santander { height: 24px; }
  .adm-logo--bradesco  { height: 25px; }
  .adm-logo--bb        { height: 31px; }
  .adm-logo--ancora    { height: 26px; }
  .adm-logo--rodobens  { height: 21px; }
  .mc3-card { padding: 26px 22px 24px; }
  .mc3-cta { align-self: stretch; }
  .nf-multistep { padding: 22px 18px 20px; }
  .ms-plabel { display: none; }
  .ms-pstep.is-active .ms-plabel { display: inline; }
  .ms-nav { flex-wrap: nowrap; }
  /* FAB acima da barra fixa de CTA mobile */
  .wa-fab { bottom: 84px; right: 16px; height: 54px; padding: 0 14px; }
  .wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { max-width: 0; opacity: 0; margin-left: 0; }
}

@media (max-width: 480px) {
  .hv3-logo-card { width: 92px; height: 92px; }
  .hv3-logo { width: 46px; }
  .hv3-wordmark { font-size: .88rem; }
}

/* ===================== ACESSIBILIDADE — MOVIMENTO REDUZIDO ===================== */
@media (prefers-reduced-motion: reduce) {
  .hv3-divider { animation: none; }
  .hv3-bar { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hv3-sheen { animation: none; display: none; }
  .hv3-wordmark { animation: none; opacity: 1; }
  .hv3-metric, .mc3-card, .mc3-icon, .mc3-cta svg, .adm-logo, .wa-fab, .hv3-logo-card { transition: none; }
  .adm-item:hover .adm-logo, .adm-item:focus-visible .adm-logo { transform: none; }
  .ms-step.is-active { animation: none; }
  .ms-progress-fill { transition: none; }
}
