/*
 * MPV Advocacia — Blog Factory
 * Estilos do blog jurídico. Herda as variáveis e o chrome de /css/styles.css
 * (mesma paleta Playfair/Raleway + tons terrosos). Deploy: /blog/assets/blog.css
 */

/* ===== Layout base do artigo ===== */
/* offset p/ limpar o .site-header (position: fixed, ~82px) do styles.css */
.blog-main { padding-top: 120px; padding-bottom: var(--spacing-lg); }

.blog-breadcrumb {
  max-width: 820px;
  margin: 0 auto var(--spacing-md);
  padding: 0 var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--dark-gray);
}
.blog-breadcrumb a { color: var(--accent-color); }
.blog-breadcrumb span[aria-current] { color: var(--text-color); }

.blog-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== Cabeçalho do post ===== */
.post-category {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #9e8a78;
}
.post-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1.15;
  color: #141414;
  margin: 0.6rem 0 1rem;
}
@media (max-width: 640px) { .post-title { font-size: 1.9rem; } }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-gray);
  border-bottom: 1px solid #e7ddd4;
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
}
.post-meta .oab { color: var(--accent-color); font-weight: 600; }

/* ===== Tabela-resumo (no topo) ===== */
.post-summary {
  background: #faf7f4;
  border: 1px solid #e7ddd4;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
}
.post-summary h2 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: #141414;
}
.post-summary table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.post-summary td { padding: 0.5rem 0; border-bottom: 1px solid #efe6dc; vertical-align: top; font-size: 0.96rem; }
.post-summary tr:last-child td { border-bottom: none; }
.post-summary td:first-child { color: var(--dark-gray); width: 42%; padding-right: 1rem; }
.post-summary td:last-child { color: #141414; font-weight: 600; }

/* ===== Sumário (TOC) ===== */
.post-toc {
  border: 1px solid #e7ddd4;
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  margin: 0 0 2.4rem;
}
.post-toc strong { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: #9e8a78; }
.post-toc ol { list-style: decimal; padding-left: 1.2rem; margin-top: 0.7rem; }
.post-toc li { margin: 0.35rem 0; font-family: var(--font-body); }
.post-toc a { color: #5f564e; }
.post-toc a:hover { color: var(--accent-color); }

/* ===== Corpo do artigo ===== */
.post-body { font-family: var(--font-body); color: #3b3630; font-size: 1.06rem; line-height: 1.75; }
.post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: #141414;
  margin: 2.6rem 0 1rem;
  scroll-margin-top: 90px;
}
.post-body h3 { font-family: var(--font-heading); font-size: 1.3rem; color: #141414; margin: 1.8rem 0 0.7rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin: 0.4rem 0; }
.post-body a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 2px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.96rem; }
.post-body th, .post-body td { border: 1px solid #e7ddd4; padding: 0.6rem 0.8rem; text-align: left; }
.post-body th { background: #f4ece7; font-family: var(--font-body); }

/* ===== Boxes de destaque ===== */
.callout {
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
}
.callout--tip  { background: #f1f6f1; border-left: 4px solid #4a8a5c; }
.callout--warn { background: #fbf3ee; border-left: 4px solid #c98a5a; }
.callout strong { display: inline-block; margin-bottom: 0.2rem; }

/* ===== FAQ (accordion nativo) ===== */
.post-faq { margin: 2.8rem 0; }
.post-faq > h2 { font-family: var(--font-heading); font-size: 1.7rem; color: #141414; margin-bottom: 1rem; }
.post-faq details {
  border: 1px solid #e7ddd4;
  border-radius: 12px;
  padding: 0 1.2rem;
  margin-bottom: 0.8rem;
  background: #fff;
}
.post-faq summary {
  font-family: var(--font-body);
  font-weight: 600;
  color: #141414;
  cursor: pointer;
  padding: 1rem 0;
  list-style: none;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; float: right; color: var(--accent-color); font-size: 1.2rem; }
.post-faq details[open] summary::after { content: "\2013"; }
.post-faq details[open] summary { border-bottom: 1px solid #efe6dc; }
.post-faq .faq-answer { font-family: var(--font-body); color: #5f564e; line-height: 1.7; padding: 0.9rem 0 1.1rem; }

/* ===== CTA ===== */
.post-cta {
  background: #141414;
  color: #fff;
  border-radius: 16px;
  padding: 2.2rem 2rem;
  margin: 3rem 0;
  text-align: center;
}
.post-cta h2 { font-family: var(--font-heading); color: #fff; font-size: 1.7rem; margin-bottom: 0.6rem; }
.post-cta p { font-family: var(--font-body); color: #d8cfc6; margin-bottom: 1.4rem; }
.post-cta .cta-buttons { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #06331b; font-weight: 700;
  padding: 0.8rem 1.6rem; border-radius: 6px; font-family: var(--font-body);
}
.btn-whatsapp:hover { background: #1fbb59; color: #06331b; }
.btn-lp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #141414; font-weight: 700;
  padding: 0.8rem 1.6rem; border-radius: 6px; font-family: var(--font-body);
}
.btn-lp:hover { background: #f0e9e2; color: #141414; }

/* ===== Compartilhar =====
   Fica logo abaixo do .post-cta (caixa preta). Por isso é deliberadamente discreto — fundo claro
   com borda, não um segundo bloco de destaque: dois CTAs fortes seguidos anulam um ao outro. */
.post-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem;
  background: #faf7f4; border: 1px solid #e7ddd4; border-radius: 14px;
  padding: 1.3rem 1.6rem; margin: 2.4rem 0;
}
.post-share h2 {
  font-family: var(--font-heading); font-size: 1.15rem; color: #141414;
  margin: 0; width: 100%;
}
.post-share p { font-family: var(--font-body); font-size: 0.9rem; color: #5f564e; margin: 0; flex: 1 1 auto; }
.post-share .share-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.55rem 1.1rem; border-radius: 6px; color: #fff;
  transition: background .2s ease;
}
.share-btn i { font-size: 1rem; }
.share-btn--whatsapp { background: #25D366; color: #06331b; }
.share-btn--whatsapp:hover { background: #1fbb59; color: #06331b; }
.share-btn--facebook { background: #1877F2; color: #fff; }
.share-btn--facebook:hover { background: #1360c9; color: #fff; }

@media (max-width: 520px) {
  .post-share { flex-direction: column; align-items: stretch; }
  .post-share .share-buttons { width: 100%; }
  .share-btn { flex: 1 1 0; justify-content: center; }
}

/* ===== Fontes / autor / disclaimer ===== */
.post-sources { margin: 2.4rem 0; font-family: var(--font-body); font-size: 0.9rem; color: var(--dark-gray); }
.post-sources h2 { font-size: 1.15rem; color: #141414; margin-bottom: 0.6rem; }
.post-sources li { margin: 0.3rem 0; }

.author-box {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #faf7f4; border: 1px solid #e7ddd4; border-radius: 14px;
  padding: 1.4rem 1.6rem; margin: 2.4rem 0; font-family: var(--font-body);
}
/* object-position: a foto-fonte é retrato 1365x2048 e o avatar é um círculo. Com `cover` e o
   default `center`, o recorte quadrado cai no MEIO da imagem — o notebook — e corta a cabeça no
   topo. `top` ancora o recorte no alto, que é onde está o rosto. */
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.author-box h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #141414; margin-bottom: 0.1rem; }
.author-box .oab { color: var(--accent-color); font-weight: 600; font-size: 0.85rem; }
.author-box p { color: #5f564e; font-size: 0.94rem; margin: 0.4rem 0 0; }

.post-disclaimer {
  border-top: 1px solid #e7ddd4;
  margin-top: 2.4rem; padding-top: 1.4rem;
  font-family: var(--font-body); font-size: 0.82rem; color: #8a8077;
  line-height: 1.6;
}

/* ===== Índice do blog (listagem) ===== */
.blog-hero { text-align: center; max-width: 720px; margin: 0 auto var(--spacing-lg); padding: 0 var(--spacing-sm); }
.blog-hero h1 { font-family: var(--font-heading); font-size: 2.6rem; color: #141414; }
.blog-hero p { font-family: var(--font-body); color: #5f564e; margin-top: 0.6rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; max-width: 1100px; margin: 0 auto; padding: 0 var(--spacing-sm); }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid #e7ddd4; border-radius: 16px; overflow: hidden;
  background: #fff; transition: transform .25s ease, box-shadow .25s ease; color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(60,45,35,.14); }
.post-card__img { aspect-ratio: 16/9; background: #f4ece7; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card__tag { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.68rem; color: #9e8a78; }
.post-card__body h2 { font-family: var(--font-heading); font-size: 1.3rem; color: #141414; line-height: 1.2; }
.post-card__body p { font-family: var(--font-body); color: #5f564e; font-size: 0.94rem; }
.post-card__meta { font-family: var(--font-body); font-size: 0.8rem; color: var(--dark-gray); margin-top: auto; }
