/* Páginas internas da BioProx (serviços, produtos, cases e blog). Usa as cores e componentes de styles.css. */

/* Caminho no topo */
.pg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 0.86rem; color: var(--muted); }
.pg-crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pg-crumbs a:hover { color: var(--blue-600); }
.pg-crumbs [aria-current] { color: var(--text-2); font-weight: 500; }

/* Abertura só de texto (blog, listas, artigo) */
.pg-hero-text { padding-bottom: 72px; }
.pg-hero-copy { max-width: 820px; }
.pg-hero-copy .lead { max-width: 680px; margin-bottom: 0; }

/* Fluxo do case e telas do produto na abertura */
.pg-case-visual { border-radius: var(--r-xl); }
.pg-shots { border-radius: var(--r-xl); overflow: visible; min-height: 440px; }

/* O que a gente ouve */
.pg-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pg-pain { padding: 30px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.pg-pain .need-quote { margin-bottom: 16px; }
.pg-pain p:last-child { font-size: 0.96rem; color: var(--text-2); }

.pg-deliver { grid-template-columns: repeat(3, 1fr); }
.pg-deliver:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }

/* Case em destaque */
.pg-case-teaser { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center; }
.pg-case-teaser .lead { margin: 16px 0 32px; }
.pg-case-teaser .case-visual { border-radius: var(--r-xl); background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); }

/* História do case */
.pg-case { max-width: 900px; }

/* Listas (blog e cases) */
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pg-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bcd3ff; }
.pg-card .mono { font-size: 0.74rem; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.pg-card h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; }
.pg-card p { font-size: 0.95rem; color: var(--text-2); flex: 1; }
.pg-flow { font-size: 0.84rem; color: var(--muted); }

/* Artigo */
.pg-article-wrap { padding-top: 64px; }
.pg-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.pg-prose { max-width: 720px; font-size: 1.08rem; line-height: 1.75; color: var(--text-2); }
.pg-prose > * + * { margin-top: 18px; }
.pg-prose h2 { margin-top: 44px; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose ul, .pg-prose ol { padding-left: 22px; display: grid; gap: 10px; }
.pg-prose ul { list-style: disc; }
.pg-prose ol { list-style: decimal; }
.pg-prose strong { color: var(--text); }
.pg-prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.pg-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.pg-aside-card { padding: 28px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.pg-aside-card h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.pg-aside-card p { font-size: 0.93rem; }
.pg-aside-list { display: grid; gap: 4px; padding: 0 4px; }
.pg-aside-list h2 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.pg-aside-list a { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 0.95rem; }
.pg-aside-list a:hover { color: var(--blue-600); }

/* Veja também */
.pg-more-wrap { border-top: 1px solid var(--line); }
.pg-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.pg-more h2 { font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.pg-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-links a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white);
  color: var(--text); font-weight: 500; font-size: 0.93rem; transition: border-color .2s, color .2s; }
.pg-links a:hover { border-color: #bcd3ff; color: var(--blue-600); }
.pg-links svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }
.pg-links.is-posts { flex-direction: column; align-items: flex-start; }
.pg-links.is-posts a { border-radius: var(--r); }

.pg-404 .pg-links { margin-top: 48px; }

@media (max-width: 1080px) {
  .pg-deliver, .pg-deliver:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
  .pg-cards { grid-template-columns: repeat(2, 1fr); }
  .pg-article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pg-aside { position: static; }
  .pg-case-teaser { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 940px) {
  .pg-pains { grid-template-columns: 1fr; }
  .pg-shots { min-height: 360px; }
}
@media (max-width: 680px) {
  .pg-crumbs { margin-bottom: 20px; font-size: 0.82rem; }
  .pg-deliver, .pg-deliver:has(> :nth-child(4):last-child), .pg-cards { grid-template-columns: 1fr; }
  .pg-pain, .pg-card { padding: 24px 20px; }
  .pg-prose { font-size: 1.02rem; }
  .pg-hero-text { padding-bottom: 48px; }
  .pg-article-wrap { padding-top: 40px; }
  .pg-links a { width: 100%; }
  .pg-shots { min-height: 300px; }
}

/* Celular: nada passa da largura da tela (os botões quebram linha em vez de alargar a coluna). */
.page-hero-grid > * { min-width: 0; }
@media (max-width: 680px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero .hero-actions .btn { white-space: normal; text-align: center; justify-content: center; }
  .spec-wrap { max-width: none; margin-left: 0; }
  /* O destaque sublinhado não pode impedir o título de quebrar linha. */
  .page-hero h1 { font-size: clamp(2.05rem, 9.4vw, 2.5rem); }
  .page-hero .scribble { white-space: normal; }
  .page-hero .scribble::after { display: none; }
}

/* Inicial: cases em cartões */
.home-cases .pg-card h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.home-cases .pg-card p { color: var(--text); font-size: 1rem; }
.home-cases-foot { margin-top: 28px; }
@media (max-width: 680px) { .home-cases-foot .btn { width: 100%; justify-content: center; } }

/* Paginação do blog */
.pg-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 48px; }
.pg-pager-nums { display: flex; gap: 8px; }
.pg-pager-nums a, .pg-pager-nums span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--white); color: var(--text); font-weight: 600; }
.pg-pager-nums a:hover { border-color: #bcd3ff; color: var(--blue-600); }
.pg-pager-nums [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg-pager-step { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--white); color: var(--text); font-weight: 600; }
.pg-pager-step:hover { border-color: #bcd3ff; color: var(--blue-600); }
@media (max-width: 680px) { .pg-pager-step { flex: 1 1 100%; justify-content: center; } .pg-pager-nums { order: -1; } }

/* ===================================================== BLOG (cartões com capa, temas, artigo) */
.topic-integracao { --tp-bg: #e6f8f1; --tp-ink: #0b7a59; }
.topic-sistemas   { --tp-bg: #eaf1ff; --tp-ink: #1a63e6; }
.topic-ia         { --tp-bg: #eeecfb; --tp-ink: #5246c4; }
.topic-sites      { --tp-bg: #fcf0dc; --tp-ink: #9a5c07; }
.topic-ponto      { --tp-bg: #e5f5f5; --tp-ink: #12807f; }

.bp-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.bp-topics a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white);
  color: var(--text-2); font-weight: 600; font-size: 0.92rem; transition: border-color .2s, background .2s, color .2s; }
.bp-topics a svg { width: 16px; height: 16px; color: var(--tp-ink, var(--blue)); }
.bp-topics a b { font-weight: 600; font-size: 0.78rem; color: var(--muted); padding: 1px 8px; border-radius: var(--pill); background: var(--paper); }
.bp-topics a:hover { border-color: #bcd3ff; color: var(--text); }
.bp-topics a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bp-topics a.is-on svg { color: #fff; }
.bp-topics a.is-on b { background: rgba(255,255,255,.16); color: #fff; }

.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bp-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line);
  overflow: hidden; color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.bp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 26, 58, .1); border-color: #d6dbe4; }
.bp-card:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }

.bp-cover { position: relative; height: 168px; background-color: var(--tp-bg, var(--paper));
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.55) 14px 15px);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px; }
.bp-cover-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--white); color: var(--tp-ink, var(--blue)); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(10, 26, 58, .08); transition: transform .35s var(--ease); }
.bp-cover-ico svg { width: 30px; height: 30px; }
.bp-card:hover .bp-cover-ico { transform: rotate(-6deg) scale(1.05); }
.bp-cover-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-ink, var(--blue)); background: rgba(255,255,255,.85);
  padding: 6px 11px; border-radius: var(--pill); }

.bp-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.bp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.bp-meta i, .bp-hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.bp-body h2 { font-size: 1.22rem; line-height: 1.28; letter-spacing: -0.02em; }
.bp-body p { font-size: 0.94rem; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; font-size: 0.92rem; color: var(--tp-ink, var(--blue)); }
.bp-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.bp-card:hover .bp-more svg { transform: translateX(3px); }

/* Destaque: o artigo mais recente, em linha */
.bp-card.is-featured { flex-direction: row; margin-bottom: 22px; }
.bp-card.is-featured .bp-cover { width: 42%; height: auto; min-height: 300px; flex-shrink: 0; align-items: center; justify-content: center; flex-direction: column; gap: 18px; }
.bp-card.is-featured .bp-cover-ico { width: 96px; height: 96px; border-radius: 26px; }
.bp-card.is-featured .bp-cover-ico svg { width: 44px; height: 44px; }
.bp-card.is-featured .bp-body { padding: 40px 44px; justify-content: center; gap: 14px; }
.bp-card.is-featured .bp-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.bp-card.is-featured .bp-body p { font-size: 1.02rem; -webkit-line-clamp: 4; flex: none; }
.bp-card.is-featured { position: relative; }
.bp-card.is-featured::before { content: 'Mais recente'; position: absolute; top: 18px; left: 18px; z-index: 1; font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 6px 11px; border-radius: var(--pill); }

/* Abertura do artigo */
.bp-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 14px; border-radius: var(--pill);
  background: var(--tp-bg, var(--paper)); color: var(--tp-ink, var(--blue)); font-weight: 700; font-size: 0.82rem; letter-spacing: .02em; }
.bp-pill svg { width: 16px; height: 16px; }
.bp-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; font-size: 0.92rem; color: var(--text-2); font-weight: 500; }
.bp-author-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.86rem; flex-shrink: 0; }
.bp-author-mark.is-sm { width: 30px; height: 30px; font-size: 0.7rem; }

/* Dentro do artigo */
.pg-prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.bp-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.bp-author b { display: block; color: var(--text); margin-bottom: 4px; }
.bp-author p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.bp-share > span { font-weight: 600; color: var(--text); margin-right: 4px; font-size: 0.95rem; }
.bp-share a, .bp-share button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--white);
  color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.bp-share a:hover, .bp-share button:hover { border-color: #bcd3ff; color: var(--blue-600); }
.bp-share svg { width: 16px; height: 16px; }
.bp-toc { display: grid; gap: 2px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.bp-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.bp-toc a { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--text-2); font-size: 0.93rem; line-height: 1.4; }
.bp-toc a:hover { color: var(--blue-600); border-left-color: var(--blue); }
.bp-related .section-head { align-items: end; }
.bp-related .section-head .link-arrow { justify-self: end; }

@media (max-width: 1080px) {
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-card.is-featured .bp-body { padding: 32px; }
}
@media (max-width: 760px) {
  .bp-card.is-featured { flex-direction: column; }
  .bp-card.is-featured .bp-cover { width: 100%; min-height: 200px; }
  .bp-related .section-head .link-arrow { justify-self: start; }
}
@media (max-width: 680px) {
  .bp-grid { grid-template-columns: 1fr; gap: 16px; }
  .bp-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 28px; padding: 0 18px 4px; scrollbar-width: none; }
  .bp-topics::-webkit-scrollbar { display: none; }
  .bp-topics a { flex-shrink: 0; }
  .bp-cover { height: 136px; }
  .bp-body { padding: 20px; }
  .bp-card.is-featured .bp-body { padding: 24px 20px; }
  .bp-author { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bp-card, .bp-card:hover, .bp-cover-ico, .bp-card:hover .bp-cover-ico { transition: none; transform: none; } }

/* Blog: chamada curta no lugar do formulário */
.bp-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: var(--ink); }
.bp-cta h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.bp-cta p { margin: 0; }
.bp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-cta-actions .btn svg { width: 18px; height: 18px; }
@media (max-width: 680px) { .bp-cta-actions, .bp-cta-actions .btn { width: 100%; justify-content: center; } }

/* Capas ilustradas dos artigos */
.bp-cover.has-img { padding: 0; background-image: none; background-color: var(--paper); aspect-ratio: 1376 / 768; height: auto; }
.bp-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bp-card:hover .bp-cover.has-img img { transform: scale(1.03); }
.bp-cover.has-img .bp-cover-tag { position: absolute; left: 16px; bottom: 14px; }
.bp-card.is-featured .bp-cover.has-img { min-height: 0; align-self: stretch; aspect-ratio: auto; }
.bp-hero-cover { margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.bp-hero-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .bp-card.is-featured .bp-cover.has-img { aspect-ratio: 1376 / 768; } }
/* Mesma proporção para capa ilustrada e capa de ícone; topo do artigo mais baixo */
.bp-grid .bp-cover { height: auto; aspect-ratio: 1376 / 768; }
.bp-hero-cover { aspect-ratio: 12 / 5; }
.bp-hero-cover img { height: 100%; object-fit: cover; }
@media (max-width: 760px) { .bp-hero-cover { aspect-ratio: 1376 / 768; } }

/* Topo do artigo: texto e capa lado a lado no computador, empilhados no celular */
.bp-post-hero .pg-hero-copy { max-width: 760px; }
.bp-post-hero h1 { font-size: clamp(2.1rem, 3.5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.bp-post-hero .lead { font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.65; text-wrap: pretty; }
.bp-post-hero .bp-hero-meta { margin-top: 22px; }
.bp-post-hero .bp-hero-cover { margin: 28px 0 0; aspect-ratio: 1376 / 768; box-shadow: 0 24px 50px -28px rgba(10, 26, 58, .28); }
@media (min-width: 980px) {
  .bp-post-hero.has-cover { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
  .bp-post-hero.has-cover .bp-hero-cover { margin: 0; aspect-ratio: 16 / 10; }
}

/* Listas em sequência nas páginas de soluções: cartão com ícone dentro do carrossel de etapas */
.pg-steps .icon-tile { margin-bottom: 14px; }
.pg-steps h3 { margin-top: 0; }
