/* BaseInfra: estilos do tema filho. O visual de cada bloco está no próprio HTML (gerado do design); aqui ficam a base,
   as versões por largura de tela, os formulários dos plugins e o texto dos artigos. */

/* Base (a mesma do design) */
html { scroll-behavior: smooth; }
body.bi-design { margin: 0; background: #fff; color: #3C4543; font-family: 'IBM Plex Sans', sans-serif; -webkit-font-smoothing: antialiased; }
.bi-design *, .bi-design *::before, .bi-design *::after { box-sizing: border-box; }
.bi-design a { color: #194A83; }
.bi-design a:hover { color: #00396D; }
.bi-design img { max-width: 100%; }
.bi-design button, .bi-design input, .bi-design select, .bi-design textarea { font: inherit; }

/* Link "pular para o conteúdo" do Total: invisível até receber o foco do teclado */
.bi-design .skip-to-content { position: absolute; left: -9999px; top: 12px; z-index: 100000; padding: 10px 14px; background: #fff; color: #194A83; border-radius: 6px; box-shadow: 0 6px 20px rgba(16,42,79,.18); font-weight: 600; }
.bi-design .skip-to-content:focus { left: 12px; }

/* Versões por largura (o design trocava por JS; aqui é CSS) */
@media (max-width: 1179.98px) { .bi-w1180 { display: none !important; } }
@media (min-width: 1180px) { .bi-n1180 { display: none !important; } }
@media (max-width: 1359.98px) { .bi-w1360 { display: none !important; } }
@media (min-width: 1360px) { .bi-n1360 { display: none !important; } }
@media (max-width: 1099.98px) { .bi-w1100 { display: none !important; } }
@media (min-width: 1100px) { .bi-n1100 { display: none !important; } }
@media (min-width: 900px) { .bi-sticky { position: sticky !important; } }
@media (min-width: 960px) { .bi-lateral { position: sticky; top: 108px; } }

/* Menu do celular */
.bi-menu-painel, .bi-menu-aberto { display: none !important; }
[data-bi-header].is-open .bi-menu-painel, [data-bi-header].is-open .bi-menu-aberto { display: contents !important; }
[data-bi-header].is-open .bi-menu-fechado { display: none !important; }
@media (min-width: 1360px) { [data-bi-header].is-open .bi-menu-painel { display: none !important; } }

/* Barra fixa do artigo no celular */
.bi-barra-movel, .bi-barra-movel-espaco { display: none; }
@media (max-width: 759.98px) {
  .bi-barra-movel, .bi-barra-movel-espaco { display: block; }
  [data-bi-float-alto] { bottom: 88px !important; }
}

/* Selo do reCAPTCHA acima do botão do WhatsApp */
.bi-design .grecaptcha-badge { bottom: 100px !important; }

/* Hover dos elementos montados em PHP */
.bi-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,42,79,.12) !important; }
.bi-card-destaque:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(16,42,79,.14) !important; }
.bi-sobe:hover { transform: translateY(-2px); color: #194A83 !important; }
.bi-borda:hover { border-color: #194A83 !important; }

/* ------------------------------------------------------------------ formulários (os mesmos do site, com o visual novo) */
.bi-form { font-family: 'IBM Plex Sans', sans-serif; color: #3C4543; text-align: left; }
.bi-form input[type=text], .bi-form input[type=email], .bi-form input[type=tel], .bi-form input[type=number], .bi-form input[type=url], .bi-form select, .bi-form textarea {
  display: block; width: 100%; height: 50px; margin: 0; border: 1px solid #C5D3E2; border-radius: 6px; padding: 0 14px;
  font: inherit; font-size: 16px; font-weight: 400; color: #3C4543; background: #fff; box-shadow: none; appearance: auto;
}
.bi-form textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.bi-form input:focus, .bi-form select:focus, .bi-form textarea:focus { outline: 2px solid #194A83; outline-offset: 1px; border-color: #194A83; }
.bi-form ::placeholder { color: #8795A3; }
.bi-form .wpcf7-submit, .bi-form .vcex-contact-form__submit {
  display: block; width: 100%; height: 54px; border: 0; border-radius: 6px; background: #194A83; color: #fff;
  font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; transition: background .2s; text-transform: none; letter-spacing: 0;
}
.bi-form .wpcf7-submit:hover, .bi-form .vcex-contact-form__submit:hover { background: #00396D; color: #fff; }

/* Contact Form 7 */
.bi-form .wpcf7 form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.bi-form .wpcf7 form > p, .bi-form .wpcf7 label { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; color: #1C3C6B; }
.bi-form .wpcf7 br { display: none; }
.bi-form .wpcf7-form-control-wrap { display: block; }
.bi-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 400; color: #B42318; }
/* Campos lado a lado como no design: Nome | Telefone (CF7 710) e Nome | E-mail (CF7 831) */
@media (min-width: 560px) {
  .bi-form [id^="wpcf7-f710-"] form, .bi-form [id^="wpcf7-f831-"] form { display: grid; grid-template-columns: 1fr 1fr; }
  .bi-form [id^="wpcf7-f710-"] form > *, .bi-form [id^="wpcf7-f831-"] form > * { grid-column: 1 / -1; min-width: 0; }
  .bi-form [id^="wpcf7-f710-"] form > p:nth-of-type(1), .bi-form [id^="wpcf7-f710-"] form > p:nth-of-type(2),
  .bi-form [id^="wpcf7-f831-"] form > p:nth-of-type(3), .bi-form [id^="wpcf7-f831-"] form > p:nth-of-type(4) { grid-column: auto; }
}
.bi-form .wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 14px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.bi-form .wpcf7 form > p:has(.wpcf7-submit) { position: relative; }
.bi-form .wpcf7-spinner { position: absolute; right: 16px; top: 15px; margin: 0; }

/* Formulário do Total (Fale Conosco e Infraestrutura) */
.bi-form .vcex-contact-form { position: relative; }
.bi-form .vcex-contact-form__form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.bi-form .vcex-contact-form__fields { display: flex; flex-wrap: wrap; gap: 18px; }
.bi-form .vcex-contact-form__fields > div { flex: 1 1 220px; min-width: 0; }
.bi-form .vcex-contact-form__label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #1C3C6B; }
.bi-form .vcex-contact-form__required { color: #B42318; margin-left: 2px; }
.bi-form .vcex-contact-form__privacy { display: flex; align-items: center; gap: 12px; }
.bi-form .vcex-contact-form__privacy .vcex-contact-form__label { margin: 0; font-weight: 500; color: #3C4543; }
.bi-form .vcex-contact-form__checkbox { width: 20px; height: 20px; margin: 0; accent-color: #194A83; flex-shrink: 0; }
.bi-form .vcex-contact-form__notice { padding: 12px 14px; border-radius: 6px; font-size: 15px; background: #EEF3F9; color: #1C3C6B; }
.bi-form .vcex-contact-form__spinner { display: flex; justify-content: center; }
.bi-form .vcex-contact-form__overlay { position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.bi-form .wpex-hidden { display: none !important; }

/* ------------------------------------------------------------------ texto do artigo (mesma tipografia do design) */
.bi-post { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; color: #3C4543; overflow-wrap: break-word; }
.bi-post > * { margin: 0; }
.bi-post > p:empty { display: none; }
.bi-post > p:first-child { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.6; color: #1C3C6B; }
.bi-post h2 { margin: 24px 0 0; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.2; color: #1C3C6B; scroll-margin-top: 100px; }
.bi-post h3 { margin: 8px 0 0; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.3; color: #1C3C6B; scroll-margin-top: 100px; }
.bi-post h4 { margin: 4px 0 0; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.35; color: #1C3C6B; }
.bi-post strong, .bi-post b { color: #1C3C6B; }
.bi-post a { font-weight: 600; }
.bi-post ul:not(.pp-toc__lista) { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bi-post ul:not(.pp-toc__lista) > li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.65; }
.bi-post ul:not(.pp-toc__lista) > li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: #F5B800; border-radius: 2px; }
.bi-post ol:not(.pp-toc__lista) { padding-left: 1.4em; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.65; }
.bi-post ol:not(.pp-toc__lista) > li::marker { color: #194A83; font-weight: 700; }
.bi-post li > ul, .bi-post li > ol { margin-top: 10px; }
.bi-post blockquote { border-left: 4px solid #F5B800; background: #FFF9E5; border-radius: 0 10px 10px 0; padding: 20px 24px; color: #1C3C6B; }
.bi-post blockquote p { margin: 0; }
.bi-post img { height: auto; border-radius: 12px; }
.bi-post figure { margin: 0; }
.bi-post figcaption { font-size: 14px; color: #5B6766; margin-top: 10px; }
.bi-post hr { border: 0; border-top: 1px solid #DCE5EF; }
.bi-post iframe, .bi-post video { max-width: 100%; }

/* Tabelas (o plugin Próximo Passo SEO põe a caixa .pp-tabela; aqui as cores do design) */
.bi-post .wp-block-table, .bi-post .pp-tabela { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #DCE5EF; border-radius: 10px; margin: 0; }
.bi-post table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; border: 0; }
.bi-post .pp-tabela table { min-width: 620px; }
.bi-post th, .bi-post .pp-tabela th { background: #1C3C6B; color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; vertical-align: top; font-size: 15px; letter-spacing: 0; text-transform: none; border: 0; }
.bi-post td, .bi-post .pp-tabela td { padding: 14px 16px; vertical-align: top; border: 0; border-top: 1px solid #DCE5EF; color: #3C4543; }
.bi-post tbody tr:nth-child(even) td, .bi-post .pp-tabela tbody tr:nth-child(even) td { background: #F5F8FC; }
.bi-post td:first-child, .bi-post .pp-tabela td:first-child { font-weight: 600; color: #1C3C6B; }

/* Índice "Navegue neste artigo" do plugin, com o visual do design */
.bi-post .pp-toc { border: 1px solid #DCE5EF; border-radius: 12px; background: #F5F8FC; padding: 0; margin: 0; overflow: hidden; }
.bi-post .pp-toc__titulo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; margin: 0; cursor: pointer; list-style: none;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #1C3C6B; }
.bi-post .pp-toc__titulo::-webkit-details-marker { display: none; }
.bi-post .pp-toc__titulo::before { content: ""; width: 20px; height: 3px; background: #F5B800; border-radius: 2px; flex-shrink: 0; margin-right: -6px; }
.bi-post .pp-toc__titulo::after { content: "+"; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #194A83; display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; color: #194A83; transition: transform .2s; flex-shrink: 0; }
.bi-post .pp-toc[open] .pp-toc__titulo::after { content: "+"; transform: rotate(45deg); }
.bi-post .pp-toc__lista { margin: 0; padding: 0 22px 20px; list-style: none; counter-reset: bi-toc; display: flex; flex-direction: column; gap: 2px; }
.bi-post .pp-toc__lista li { margin: 0; counter-increment: bi-toc; }
.bi-post .pp-toc__lista a { display: flex; gap: 12px; padding: 7px 0; font-size: 16px; line-height: 1.45; font-weight: 500; text-decoration: none; color: #194A83; }
.bi-post .pp-toc__lista a::before { content: counter(bi-toc, decimal-leading-zero); font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #5B6766; min-width: 22px; padding-top: 2px; }
.bi-post .pp-toc__lista a:hover { text-decoration: underline; }
