/* ==========================================================================
   BnP Estratégia Empresarial — folha de estilo da marca
   v3.0.0 · 2026-08-29 · CLARA

   Mudança de fundo: o site era escuro por padrão e ficou pesado e vazio.
   Agora a base é clara, com blocos escuros pontuais para respiro — a mesma
   estrutura que funciona na referência do setor, com a nossa cor.

   Todo par de cor aqui foi medido em WCAG antes de entrar. O laranja da marca
   REPROVA sobre fundo claro (2,80:1); por isso existe um laranja escuro só
   para texto e botão. Ver seção "Cor" do BRANDBOOK.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* --- Superfícies claras ------------------------------------------------ */
  --bnp-bg:        #FBFAF8;  /* base do site                                 */
  --bnp-surface:   #F0EEE9;  /* seção alternada — o off-white do logo        */
  --bnp-card:      #FFFFFF;  /* cartão sobre a base                          */
  --bnp-linha:     #E4E0D8;  /* divisória discreta                           */

  /* --- Bloco escuro (respiro) -------------------------------------------- */
  --bnp-ink:       #1B1B29;  /* o "azul" do logo — fundo de seção escura     */
  --bnp-ink-2:     #24243444; /* variação para cartão dentro do bloco escuro */

  /* --- Texto ------------------------------------------------------------- */
  --bnp-texto:     #1B1B29;  /* 16,3:1 sobre a base                          */
  --bnp-texto-2:   #4A4A5A;  /*  8,3:1 — apoio                               */
  --bnp-texto-3:   #6B6B7B;  /*  5,0:1 — legenda                             */
  --bnp-texto-claro:#F0EEE9; /* dentro dos blocos escuros                    */

  /* --- Laranja ----------------------------------------------------------- */
  --bnp-orange:      #DD5308; /* institucional: logo, filete, gráfico, ícone */
  --bnp-orange-texto:#B03F05; /* 5,66:1 — texto e link sobre claro           */
  --bnp-orange-btn:  #B03F05; /* fundo de botão; branco em cima dá 5,90:1    */
  --bnp-orange-btn-h:#8F3304; /* hover do botão                              */
  --bnp-orange-luz:  #E8691B; /* só DENTRO de bloco escuro (5,24:1)          */
  --bnp-orange-claro:#F5983A; /* só DENTRO de bloco escuro (7,64:1)          */
  --bnp-orange-veu:  rgba(221,83,8,0.08); /* fundo de realce                 */

  /* --- Semântico --------------------------------------------------------- */
  --bnp-ok:    #1B7F4B;
  --bnp-atencao:#B45309;
  --bnp-erro:  #B42318;

  /* --- Tipografia -------------------------------------------------------- */
  --bnp-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --bnp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bnp-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, ui-monospace, monospace;

  /* --- Layout ------------------------------------------------------------ */
  --bnp-container:        1200px;
  --bnp-container-narrow:  900px;
  --bnp-container-text:    720px;
  --bnp-section-pad: clamp(72px, 10vw, 132px);

  /* --- Raio e sombra ----------------------------------------------------- */
  --bnp-r-card:   14px;
  --bnp-r-button: 10px;
  --bnp-r-badge: 100px;
  --bnp-r-small:   6px;
  --bnp-sombra:    0 1px 2px rgba(27,27,41,.05), 0 8px 24px rgba(27,27,41,.06);
  --bnp-sombra-f:  0 2px 4px rgba(27,27,41,.06), 0 18px 44px rgba(27,27,41,.10);
  --bnp-sombra-tela: 0 24px 70px rgba(27,27,41,.18), 0 2px 8px rgba(27,27,41,.08);

  /* --- Movimento --------------------------------------------------------- */
  --bnp-t:      .25s cubic-bezier(.4,0,.2,1);
  --bnp-t-slow: .5s  cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bnp-bg);
  color: var(--bnp-texto);
  font-family: var(--bnp-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--bnp-orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--bnp-orange-texto);
  outline-offset: 3px;
  border-radius: var(--bnp-r-small);
}

/* ==========================================================================
   Tipografia
   ========================================================================== */

h1, h2, h3, h4 { font-family: var(--bnp-font-head); font-weight: 600; text-wrap: balance; }
p, li, .bnp-subtitle { text-wrap: pretty; }

.bnp-hero-title {
  font-family: var(--bnp-font-head);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bnp-section-title {
  font-family: var(--bnp-font-head);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bnp-card-title { font-family: var(--bnp-font-head); font-size: 22px; font-weight: 600; line-height: 1.25; }

.bnp-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--bnp-texto-2);
  max-width: 62ch;
}

.bnp-small   { font-size: 15px; line-height: 1.6; color: var(--bnp-texto-2); }
.bnp-caption { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--bnp-texto-3); }
.bnp-mono    { font-family: var(--bnp-font-mono); }
.bnp-accent  { color: var(--bnp-orange-texto); }

/* Etiqueta de seção — o "olho" da marca */
.bnp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--bnp-orange-texto);
}
.bnp-label::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--bnp-orange);
  border-radius: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.bnp-container        { width: 100%; max-width: var(--bnp-container);        margin-inline: auto; padding-inline: 24px; }
.bnp-container-narrow { width: 100%; max-width: var(--bnp-container-narrow); margin-inline: auto; padding-inline: 24px; }
.bnp-container-text   { width: 100%; max-width: var(--bnp-container-text);   margin-inline: auto; padding-inline: 24px; }

.bnp-section { padding-block: var(--bnp-section-pad); }
.bnp-section-header { margin-bottom: 56px; max-width: 760px; }
.bnp-section-header .bnp-section-title { margin-block: 18px 16px; }

/* Seção sobre a superfície alternada */
.bnp-section--surface { background: var(--bnp-surface); }

/* Bloco escuro de respiro — usar com parcimônia, 2 ou 3 por página */
.bnp-section--ink {
  background: var(--bnp-ink);
  color: var(--bnp-texto-claro);
}
.bnp-section--ink .bnp-subtitle,
.bnp-section--ink .bnp-small { color: #B9B9C6; }
.bnp-section--ink .bnp-caption { color: #8A8A9B; }
.bnp-section--ink .bnp-label { color: var(--bnp-orange-claro); }
.bnp-section--ink .bnp-label::before { background: var(--bnp-orange-claro); }
.bnp-section--ink .bnp-accent { color: var(--bnp-orange-claro); }

.bnp-grid   { display: grid; gap: 24px; }
.bnp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bnp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bnp-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .bnp-grid-4 { grid-template-columns: repeat(2, 1fr); } .bnp-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bnp-grid-2, .bnp-grid-3, .bnp-grid-4 { grid-template-columns: 1fr; } }

/* Split: texto de um lado, produto do outro */
.bnp-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.bnp-split--inv { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 940px) {
  .bnp-split, .bnp-split--inv { grid-template-columns: 1fr; }
  .bnp-split--inv > *:first-child { order: 2; }
  .bnp-split--inv > *:last-child  { order: 1; }
}

/* ==========================================================================
   Componentes
   ========================================================================== */

.bnp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--bnp-font-body);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--bnp-r-button);
  cursor: pointer;
  transition: var(--bnp-t);
}

/* Branco sobre #B03F05 = 5,90:1. Sobre #DD5308 daria 3,95:1 e reprovaria. */
.bnp-btn-primary { background: var(--bnp-orange-btn); color: #fff; box-shadow: var(--bnp-sombra); }
.bnp-btn-primary:hover { background: var(--bnp-orange-btn-h); transform: translateY(-2px); box-shadow: var(--bnp-sombra-f); }

.bnp-btn-secondary { background: transparent; color: var(--bnp-texto); border-color: var(--bnp-linha); }
.bnp-btn-secondary:hover { border-color: var(--bnp-orange); color: var(--bnp-orange-texto); }

.bnp-section--ink .bnp-btn-secondary { color: var(--bnp-texto-claro); border-color: rgba(240,238,233,.28); }
.bnp-section--ink .bnp-btn-secondary:hover { border-color: var(--bnp-orange-claro); color: var(--bnp-orange-claro); }

.bnp-card {
  background: var(--bnp-card);
  border: 1px solid var(--bnp-linha);
  border-radius: var(--bnp-r-card);
  padding: 30px;
  transition: var(--bnp-t);
}
.bnp-card:hover { border-color: #D2CCC0; box-shadow: var(--bnp-sombra-f); transform: translateY(-3px); }

.bnp-section--ink .bnp-card {
  background: rgba(240,238,233,.05);
  border-color: rgba(240,238,233,.12);
}
.bnp-section--ink .bnp-card:hover { border-color: var(--bnp-orange-claro); background: rgba(240,238,233,.08); }

.bnp-quote {
  border-left: 3px solid var(--bnp-orange);
  background: var(--bnp-orange-veu);
  padding: 28px 32px;
  border-radius: 0 var(--bnp-r-small) var(--bnp-r-small) 0;
}

.bnp-stat { font-family: var(--bnp-font-head); font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; color: var(--bnp-orange-texto); line-height: 1; letter-spacing: -0.02em; }
.bnp-stat-label { font-size: 14px; color: var(--bnp-texto-2); margin-top: 8px; }
.bnp-section--ink .bnp-stat { color: var(--bnp-orange-claro); }
.bnp-section--ink .bnp-stat-label { color: #B9B9C6; }

/* --- Navegação ----------------------------------------------------------- */
.bnp-navbar {
  position: sticky; top: 0; z-index: 100;
  height: 74px;
  display: flex; align-items: center;
  background: rgba(251,250,248,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--bnp-t);
}
.bnp-navbar.is-scrolled { border-bottom-color: var(--bnp-linha); box-shadow: 0 1px 12px rgba(27,27,41,.05); }
.bnp-navbar img { height: 34px; width: auto; }

.bnp-footer { background: var(--bnp-ink); color: #B9B9C6; padding-block: 64px 40px; font-size: 15px; }
.bnp-footer a:hover { color: var(--bnp-orange-claro); }
.bnp-footer img { height: 32px; width: auto; }

/* --- Tela de produto ----------------------------------------------------- */
/* A captura real do CEO ON LINE. Moldura leve para parecer aplicação, não foto. */
.bnp-tela {
  border-radius: var(--bnp-r-card);
  overflow: hidden;
  border: 1px solid var(--bnp-linha);
  box-shadow: var(--bnp-sombra-tela);
  background: var(--bnp-card);
  transition: var(--bnp-t-slow);
}
.bnp-tela img { width: 100%; height: auto; display: block; }
.bnp-tela--recorte img { object-fit: cover; object-position: top left; }

/* Barra de janela, para dar contexto de "isto é um sistema" */
.bnp-tela-barra {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #F4F2EE;
  border-bottom: 1px solid var(--bnp-linha);
}
.bnp-tela-barra i { width: 10px; height: 10px; border-radius: 50%; background: #D8D3C9; display: block; }
.bnp-tela-barra span { margin-left: 8px; font-size: 12px; color: var(--bnp-texto-3); font-family: var(--bnp-font-mono); }

/* ==========================================================================
   Revelação ao rolar — nasce visível, o script só assume se puder animar
   ========================================================================== */

.bnp-reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
html.js-reveal .bnp-reveal { opacity: 0; transform: translateY(24px); }
html.js-reveal .bnp-reveal.is-visible { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js-reveal .bnp-reveal { opacity: 1; transform: none; }
    .bnp-reveal {
      animation: bnp-entrada linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 24%;
    }
    /* Acima da dobra nasce pronto: a linha do tempo prenderia o hero
       no meio da transição e ele apareceria esmaecido. */
    .hero .bnp-reveal, .bnp-navbar .bnp-reveal {
      animation: none !important; opacity: 1 !important; transform: none !important;
    }
  }
}
@keyframes bnp-entrada { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html.js-reveal .hero .bnp-reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Transição entre páginas
   ========================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bnp-sai .2s ease both; }
::view-transition-new(root) { animation: bnp-entra .3s ease both; }
@keyframes bnp-sai   { to   { opacity: 0; } }
@keyframes bnp-entra { from { opacity: 0; } }
.bnp-navbar { view-transition-name: bnp-nav; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .bnp-reveal, html.js-reveal .bnp-reveal { opacity: 1 !important; transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
