/* ==========================================================================
   Página de Carreira — Sicredi (Rede Colaborativa)
   Tokens e estilos extraídos do Figma: OnePage Carreira — Desktop (1440)
   ========================================================================== */

:root {
  /* Cores de marca */
  --verde-vivo: #63C333;
  --verde-vivo-2: #63C733;
  --verde-escuro: #006837;
  --verde-botao: #016937;
  --verde-stat: #005C29;
  --verde-tag: #007A3D;
  --verde-borda: #146E37;

  /* Neutros */
  --titulo: #5A645A;
  --texto: #666666;
  --card: #F7F7F7;
  --card-jornada: #F5F5F5;
  --borda-suave: rgba(102, 102, 102, 0.2);

  /* Públicos */
  --ciano: #48D5FA;
  --laranja: #FF6400;
  --laranja-link: #F26A1B;
  --rosa: #E2004F;

  /* Destaques */
  --dourado: #E6A500;
  --verde-stat-num: #63C733;
  --verde-stat-label: #E0F5E5;

  --largura-max: 1440px;
  --conteudo: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background: #fff;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--conteudo);
  margin: 0 auto;
  padding: 0 40px;
}

/* Títulos de seção — padrão do design: metade itálica neutra + metade bold verde */
.titulo-secao {
  font-size: clamp(32px, 4vw, 48px);
  font-style: italic;
  font-weight: 400;
  color: var(--titulo);
  text-align: center;
  line-height: normal;
}
.titulo-secao strong {
  font-weight: 700;
  color: var(--verde-vivo);
}
.subtitulo-secao {
  font-size: 16px;
  color: var(--texto);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   Navegação
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ccc;
  height: 72px;
}
.nav__inner {
  max-width: var(--largura-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 52px 0 80px;
  display: flex;
  align-items: center;
  gap: 70px;
}
.nav__logo { width: 32px; height: 34px; flex-shrink: 0; }
.nav__links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav__links a {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--texto);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--verde-escuro); }
.nav__cta {
  margin-left: auto;
  background: var(--verde-botao);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 4px;
  transition: background .15s ease;
}
.nav__cta:hover { background: var(--verde-escuro); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 73px 0 60px 67px;
  min-height: 543px;
  overflow: visible;
}
.hero__titulo {
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-vivo);
  line-height: normal;
  white-space: nowrap;
}
.hero__subtitulo {
  font-size: 21px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-escuro);
  margin-top: 8px;
  max-width: 380px;
}
.hero__texto {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 22px;
  max-width: 496px;
}

/* Card GPS de Carreira */
.hero__gps {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 21px;
  width: 336px;
  padding: 18px 19px;
  border: 1px solid var(--verde-borda);
  border-radius: 4px;
  background: rgba(217, 217, 217, 0.16);
  transition: background .15s ease;
}
.hero__gps:hover { background: rgba(99, 195, 51, 0.08); }
.hero__gps img { width: 40px; height: 41px; flex-shrink: 0; }
.hero__gps-titulo {
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-vivo);
  display: block;
}
.hero__gps-sub {
  font-size: 16px;
  font-style: italic;
  color: var(--texto);
}

/* Visual da jornada — SVG único do Figma (infográfico faded + swoosh já alinhados).
   O sistema de coordenadas interno do SVG usa o Y do Figma (mask da fita: SVG y=210 = Figma y=210),
   então o SVG y=0 = topo da página. Como a .hero começa em y=72, topo relativo = -72px.
   Esquerda: Figma x=318.297 (SVG x=0). Largura natural ≈ 1113px. */
.hero__visual {
  position: absolute;
  left: 318px;
  top: -72px; /* Figma page y=0 (SVG y=0 = topo da página); hero começa em y=72 */
  width: 1113px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
/* Swoosh: mesma origem do infográfico, descido 10px (top -72 + 10 = -62). */
.hero__swoosh {
  position: absolute;
  left: 318px;
  top: -62px;
  width: 1113px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Camadas vívidas sobre o infográfico faded, nas coordenadas do Figma (página, menos 72 do topo).
   Triângulo 66:566 (x1050.95 y233.97 w194.76) · Moeda 66:671 (x1252.88 y301.51 w78.86)
   Label 66:681 (x1237.84 y263.52 w109) */
.hero__triangulo {
  position: absolute;
  left: 1051px;
  top: 162px;
  width: 195px;
  z-index: 2;
  pointer-events: none;
}
.hero__moeda {
  position: absolute;
  left: 1253px;
  top: 230px;
  width: 79px;
  z-index: 2;
  pointer-events: none;
}
.hero__moeda-label {
  position: absolute;
  left: 1238px;
  top: 191px;
  width: 109px;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  color: var(--dourado);
  text-align: center;
  line-height: normal;
  z-index: 2;
}

.hero__conteudo { position: relative; z-index: 3; max-width: 496px; }

/* ==========================================================================
   Quem faz a carreira acontecer
   ========================================================================== */
.quem-faz { padding: 90px 0 40px; }
.quem-faz .subtitulo-secao { max-width: 1109px; margin-left: auto; margin-right: auto; }

.quem-faz__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 43px;
  margin-top: 40px;
}
.persona-card {
  background: var(--card);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.persona-card__foto {
  width: 100%;
  aspect-ratio: 381 / 218;
  object-fit: cover;
}
.persona-card__corpo { padding: 14px 12px 24px; text-align: center; }
.persona-card__texto {
  font-size: 15px;
  line-height: 1.45;
  max-width: 350px;
  margin: 0 auto;
}
.persona-card__link {
  display: inline-block;
  font-size: 14px;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: opacity .15s ease;
}
.persona-card__link:hover { opacity: .75; }
.persona-card__link--lideranca { color: var(--laranja-link); }
.persona-card__link--pc { color: var(--rosa); }

/* ==========================================================================
   Como a carreira acontece na prática
   ========================================================================== */
.como-acontece { padding: 90px 0 60px; }


/* Componente real (React + GSAP) embarcado via iframe (build em jornada/).
   Altura ajustada automaticamente por js/main.js medindo o conteúdo (mesma origem). */
.como-acontece__app {
  display: block;
  width: 100%;
  height: 900px; /* fallback até o auto-ajuste rodar */
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

/* ==========================================================================
   Explore possibilidades de carreira
   ========================================================================== */
.explore { padding: 60px 0 40px; }
.explore__inner {
  display: grid;
  grid-template-columns: 1fr 527px;
  gap: 40px;
  align-items: center;
}
.explore__tag {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-tag);
}
.explore__titulo {
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-vivo-2);
  margin-top: 6px;
}
.explore__texto {
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 483px;
}
.explore__foto {
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 527 / 220;
  object-fit: cover;
}

/* Botão padrão verde */
.btn-verde {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--verde-botao);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  border-radius: 4px;
  padding: 13px 16px;
  margin-top: 34px;
  transition: background .15s ease;
}
.btn-verde:hover { background: var(--verde-escuro); }
.btn-verde::after {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Os artefatos
   ========================================================================== */
.artefatos { padding: 80px 0 40px; }
.artefatos .subtitulo-secao { max-width: 995px; margin-left: auto; margin-right: auto; }

.artefatos__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 51px;
  margin-top: 48px;
}
.artefato-card {
  position: relative;
  background: var(--card);
  border-radius: 15px;
  overflow: hidden;
}
.artefato-card__foto {
  width: 100%;
  aspect-ratio: 381 / 155;
  object-fit: cover;
}
.artefato-card__pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 33px;
  letter-spacing: .02em;
}
.artefato-card__corpo { padding: 18px 16px 24px; }
.artefato-card__titulo {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--texto);
}
.artefato-card__texto {
  font-size: 15px;
  line-height: 21px;
  margin-top: 12px;
  max-width: 350px;
}

/* ==========================================================================
   Checklist de carreira
   ========================================================================== */
.checklist { padding: 80px 0 60px; }
.checklist__lista {
  max-width: 1161px;
  margin: 56px auto 0;
  list-style: none;
}
.checklist__item + .checklist__item { margin-top: 24px; }
.checklist__pergunta {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-escuro);
}
.checklist__pergunta::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 7px solid var(--verde-escuro);
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.checklist__item.aberto .checklist__pergunta::before { transform: rotate(90deg); }
.checklist__resposta {
  display: none;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  color: var(--texto);
  padding: 17px 0 0 32px;
  max-width: 1106px;
}
.checklist__item.aberto .checklist__resposta { display: block; }

/* ==========================================================================
   Assistente de Carreira — chamada (banner CTA) + modal
   Componente real na Vercel (app-three-nu-41.vercel.app); o iframe do modal
   só carrega no primeiro clique.
   ========================================================================== */
.assistente { padding: 40px 0 80px; }
.assistente__chamada {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: radial-gradient(120% 160% at 15% 0%, #0c5233 0%, #063d22 55%, #052e1a 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .12);
}
.assistente__icone {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  padding: 16px;
}
.assistente__corpo { flex: 1; }
.assistente__titulo {
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
}
.assistente__texto {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  max-width: 44em;
}
.assistente__btn {
  flex: 0 0 auto;
  background: var(--verde-vivo);
  color: #04331c;
  font-weight: 800;
  font-size: 17px;
  border-radius: 999px;
  padding: 18px 36px;
  transition: transform .2s ease, filter .2s ease;
}
.assistente__btn:hover { transform: translateY(-2px); filter: brightness(1.07); }

/* Modal do assistente */
.modal-assistente {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 27, 15, .65);
  backdrop-filter: blur(4px);
  padding: 3vh 3vw;
}
.modal-assistente.aberto { display: flex; }
.modal-assistente__janela {
  position: relative;
  width: min(1200px, 100%);
  height: 92vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  animation: modal-assistente-in .3s ease;
}
@keyframes modal-assistente-in {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-assistente__frame { width: 100%; height: 100%; border: none; }
/* Ações (fechar / abrir em nova guia) — coluna fora da janela, alinhada ao topo */
.modal-assistente__acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 92vh; /* mesma altura da janela: botões alinham com o topo dela */
  margin-left: 12px;
}
.modal-assistente__acao {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.modal-assistente__acao:hover { background: rgba(0, 0, 0, .8); }
.modal-assistente__carregando {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--texto);
  background: #fff;
  pointer-events: none;
  transition: opacity .4s ease;
}
.modal-assistente__carregando.oculto { opacity: 0; }

/* Placeholders de botões/links — componentes reais serão integrados depois.
   O clique abre o popup "Integração em breve". */
.ph { cursor: pointer; }
span.nav__cta.ph,
span.btn-verde.ph {
  background: transparent;
  border: 1.5px dashed var(--verde-botao);
  color: var(--verde-botao);
}
span.btn-verde.ph::after { border-color: var(--verde-botao); }
span.nav__cta.ph:hover,
span.btn-verde.ph:hover { background: rgba(99, 195, 51, 0.07); }
.persona-card__link.ph { border-bottom-style: dashed; }
.hero__gps.ph { border-style: dashed; }

/* Popup "Integração em breve" — mesmo estilo do assistente */
.popup-int {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 27, 15, .55);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.popup-int.aberto { display: flex; }
.popup-int__card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 40px 44px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  animation: popup-int-in .25s ease;
}
@keyframes popup-int-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.popup-int__badge {
  display: inline-block;
  background: #E8F4E3;
  color: var(--verde-escuro);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 18px;
}
.popup-int__titulo {
  margin-top: 18px;
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  color: #333;
  line-height: 1.15;
}
.popup-int__sub {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}
.popup-int__texto {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--texto);
}
.popup-int__frase {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 4px solid var(--verde-vivo);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--verde-escuro);
}
.popup-int__frase:empty { display: none; }
.popup-int__nota {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--texto);
}
.popup-int__btn {
  display: block;
  margin: 26px 0 0 auto;
  background: var(--verde-escuro);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 30px;
  transition: filter .2s ease;
}
.popup-int__btn:hover { filter: brightness(1.15); }

/* ==========================================================================
   Oportunidades de Carreira (rodapé)
   ========================================================================== */
.oportunidades {
  position: relative;
  background: var(--verde-vivo);
  border-top: 7px solid var(--verde-escuro);
  overflow: hidden;
}
.oportunidades__inner {
  position: relative;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 40px 93px 52px 80px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  z-index: 1;
}
.oportunidades__titulo {
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}
.oportunidades__texto {
  font-size: 15px;
  line-height: 1.2;
  color: var(--verde-escuro);
  margin-top: 8px;
  max-width: 497px;
}
.oportunidades .btn-verde { margin-top: 24px; }
.oportunidades__stats {
  display: flex;
  gap: 21px;
  flex-shrink: 0;
}
.stat {
  background: var(--verde-stat);
  border-radius: 10px;
  width: 140px;
  height: 136px;
  padding: 20px 23px;
}
.stat__numero {
  font-size: 42px;
  font-weight: 700;
  font-style: italic;
  color: var(--verde-stat-num);
  line-height: 1.1;
}
.stat__label {
  font-size: 14px;
  color: var(--verde-stat-label);
  margin-top: 10px;
  line-height: 1.2;
}
.oportunidades__deco {
  position: absolute;
  /* Alinha o x=0 do SVG com a borda esquerda do layout de 1440 (mesma origem do Figma). */
  left: calc(50% - 720px);
  bottom: 0;
  width: 966px;
  pointer-events: none;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  /* Abaixo do desktop 1440, o visual (posicionado em px absolutos) é ocultado. */
  .hero { padding: 50px 40px; min-height: 0; }
  .hero__visual, .hero__swoosh, .hero__triangulo, .hero__moeda, .hero__moeda-label { display: none; }
  .explore__inner { grid-template-columns: 1fr; }
  .oportunidades__inner { flex-direction: column; padding: 40px; }
  .nav__inner { padding: 0 24px; gap: 24px; }
}
@media (max-width: 820px) {
  .quem-faz__cards, .artefatos__cards { grid-template-columns: 1fr; gap: 28px; }
  /* O app da jornada é desktop-first: largura interna mínima + scroll horizontal */
  .como-acontece .container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .como-acontece__app { min-width: 900px; }
  .hero__titulo { white-space: normal; font-size: 40px; } /* nowrap só no desktop */
  .nav__links { display: none; }
  .assistente__chamada { flex-direction: column; text-align: center; padding: 40px 28px; }
  .assistente__titulo { font-size: 24px; }
  /* Mobile: ações viram barra no topo; a janela ocupa o restante da tela */
  .modal-assistente { padding: 0; flex-direction: column; }
  .modal-assistente__acoes {
    flex-direction: row-reverse;
    align-self: flex-end;
    height: auto;
    margin: 0;
    padding: 8px 10px;
  }
  .modal-assistente__janela {
    order: 1;
    width: 100%;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    border-radius: 0;
  }
  .oportunidades__stats { flex-wrap: wrap; }
  .container { padding: 0 20px; }
  .checklist__pergunta { font-size: 19px; }
  .checklist__resposta { font-size: 16px; }
}
