/* ===========================================================
   home-v2.css — teste v2 da home (hero novo + 3 seções)
   Carregado DEPOIS de style.css, apenas em index-v2.html.
   Reusa as variáveis do style.css (--navy, --orange, --nav-h,
   --container, --font-heading, --font-body) e acrescenta
   algumas cores de apoio.
   =========================================================== */

:root {
  --v2-orange-dark:  #C93A17; /* laranja escuro p/ textos pequenos sobre claro (AA) */
  --v2-orange-light: #FF8A6A; /* laranja claro p/ rótulos sobre azul */
  --v2-light:        #C9CEDC; /* texto claro sobre azul */
  --v2-muted:        #4A5470; /* texto secundário */
  --v2-body:         #2B3553; /* texto de corpo */
}

/* ===========================
   HERO v2
   =========================== */
.v2-hero {
  background: var(--navy);
  color: #fff;
  min-height: max(100vh, 720px); /* altura minima: cresce se o conteudo nao couber, nunca recorta texto/botoes */
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
}
.v2-hero-main {
  flex: 1 1 auto;
  position: relative;        /* ancora os cartoes decorativos (absolutos) */
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* espaco a direita reservado para a coluna de cartoes (410 + folga) */
  padding: 40px calc(28px + 410px + 48px) 0 28px;
  display: flex;
  gap: 48px;
  align-items: stretch;
  min-height: 0;
}

/* Coluna esquerda */
.v2-hero-left {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 24px 0;
}
.v2-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--v2-orange-light);
}
.v2-hero-h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.02; letter-spacing: -0.035em;
  color: #fff;
}
.v2-hero-h1 .accent { color: var(--orange); }
/* No desktop, cada trecho vira uma linha (hero em 4 linhas, mantendo
   "pessoas e negócios" e "mão na massa." cada um na sua linha).
   No mobile os trechos fluem normalmente (inline). */
@media (min-width: 1000px) {
  .v2-hero-h1 .hl { display: block; }
}
.v2-hero-sub { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--v2-light); }
.v2-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Botões do hero (pílula) */
.v2-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 28px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.v2-btn-primary { background: var(--orange); color: #fff; }
.v2-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,85,50,.3); }
.v2-btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; padding: 15px 28px; }
.v2-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Coluna direita: cartões em movimento vertical */
.v2-hero-cards {
  position: absolute;        /* nao empurra a altura do hero; so a coluna de texto define */
  top: 40px; right: 28px; bottom: 0;
  width: 410px;
  display: flex; gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.v2-cards-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* 12 cartões por coluna (3x os 4 de antes): duração 3x para manter a velocidade. */
.v2-col-up   { animation: v2-subir  90s linear infinite; }
.v2-col-down { animation: v2-descer 100s linear infinite; }
.v2-hero-cards:hover .v2-cards-col { animation-play-state: paused; }
@keyframes v2-subir  { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes v2-descer { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Cartão de resultado */
.v2-card { border-radius: 20px; padding: 24px; }
.v2-card .n { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.v2-card .d { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.v2-card .l { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* Cartões de tema/público: rótulo no topo e palavra destacada (até 2 linhas).
   Padding lateral menor dá largura extra para as palavras longas caberem
   sem corte dentro da coluna estreita do hero. */
.v2-card.tema { padding: 20px 18px; }
.v2-card.tema .l { margin-top: 0; margin-bottom: 12px; }
.v2-card.tema .n { font-size: 16px; line-height: 1.22; letter-spacing: -0.01em; overflow-wrap: break-word; }
.v2-card.tema .d { margin-top: 10px; }
.v2-card.white  { background: #fff; }
.v2-card.white  .n { color: var(--navy); }
.v2-card.white  .d { color: var(--v2-body); }
.v2-card.white  .l { color: var(--v2-orange-dark); }
.v2-card.orange { background: var(--orange); }
.v2-card.orange .n, .v2-card.orange .d, .v2-card.orange .l { color: var(--navy); }
.v2-card.glass  { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.v2-card.glass  .n { color: #fff; }
.v2-card.glass  .d { color: var(--v2-light); }
.v2-card.glass  .l { color: var(--v2-orange-light); }

/* Faixa horizontal (mobile) */
.v2-cards-strip { display: none; }

/* Faixa de números no rodapé do hero */
.v2-hero-numeros {
  flex: 0 0 auto;
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 28px 28px 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.v2-hero-numeros .num { font-family: var(--font-heading); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: #fff; }
.v2-hero-numeros .num.accent { color: var(--orange); }
.v2-hero-numeros .lbl { display: block; font-size: 14px; color: var(--v2-light); margin-top: 2px; }

/* ===========================
   O QUE FAZEMOS — lista de soluções
   =========================== */
.v2-sol-list { border-top: 2px solid var(--navy); margin-top: 8px; }
.v2-sol-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.3fr) 40px;
  gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid rgba(3,24,72,0.15);
  text-decoration: none; transition: padding-left .25s ease;
}
.v2-sol-row:hover { padding-left: 8px; }
.v2-sol-row .num   { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--orange); }
.v2-sol-row .title { font-family: var(--font-heading); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.v2-sol-row .desc  { color: var(--v2-muted); font-size: 16px; }
.v2-sol-row .arrow { font-size: 24px; text-align: right; color: var(--orange); }
.v2-sol-row:hover .title { color: var(--v2-orange-dark); }

/* ===========================
   POR QUE O CHOICE — colunas abertas
   =========================== */
.v2-porque-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.v2-porque-item { border-top: 2px solid var(--navy); padding-top: 22px; }
.v2-porque-item .num { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--orange); margin-bottom: 20px; }
.v2-porque-item h3 { margin: 0 0 10px; font-family: var(--font-heading); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--navy); }
.v2-porque-item p  { margin: 0; font-size: 15px; color: var(--v2-muted); }

/* ===========================
   PORTFÓLIO — cases
   =========================== */
.v2-cases-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.v2-cases-link { font-family: var(--font-heading); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: var(--navy); white-space: nowrap; }
.v2-cases-link:hover { color: var(--v2-orange-dark); }
.v2-cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.v2-case { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.v2-case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; display: block; transition: transform .3s ease; }
.v2-case:hover img { transform: scale(1.015); }
.v2-case .rotulo { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v2-orange-dark); }
.v2-case h3 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.v2-case p  { margin: 0; color: var(--v2-muted); }
.v2-case p strong { color: var(--navy); }
.v2-case:hover h3 { color: var(--v2-orange-dark); }

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 900px) {
  .v2-hero { min-height: 0; }
  .v2-hero-main { flex-direction: column; gap: 32px; padding: 32px 28px 0; overflow: visible; }
  .v2-hero-left { flex: 1 1 auto; padding: 8px 0 0; }
  .v2-hero-cards { display: none; }          /* esconde as colunas verticais */
  .v2-cards-strip {
    display: block; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .v2-strip-track { display: flex; gap: 12px; width: max-content; animation: v2-esq 95s linear infinite; }
  .v2-cards-strip:hover .v2-strip-track { animation-play-state: paused; }
  .v2-strip-track .v2-card { flex: 0 0 240px; }
  .v2-hero-numeros { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}
@keyframes v2-esq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .v2-hero-numeros .num { font-size: 28px; }
  .v2-sol-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num title" "desc desc";
    gap: 6px 16px;
  }
  .v2-sol-row .num   { grid-area: num; }
  .v2-sol-row .title { grid-area: title; font-size: 22px; }
  .v2-sol-row .desc  { grid-area: desc; }
  .v2-sol-row .arrow { display: none; }
  .v2-case h3 { font-size: 23px; }
  .v2-cases-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-col-up, .v2-col-down, .v2-strip-track { animation: none; }
  .v2-btn, .v2-case img, .v2-sol-row { transition: none; }
}
