/* =====================================================
   BLOG — LEONI & MARQUES
   Estilos específicos do blog (somam ao style.css)
===================================================== */

/* =============== FALLBACK AOS =============== */
/* Garante que cards de blog/hubs sejam SEMPRE visíveis,
   mesmo se a biblioteca AOS de animação não carregar. */
.post-card[data-aos],
.hub-card[data-aos],
section[data-aos],
div[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
.post-card, .hub-card { opacity: 1 !important; }

/* =============== BLOG HERO =============== */
.blog-hero {
  background: linear-gradient(135deg, var(--cor-destaque-dark) 0%, var(--cor-primaria) 100%);
  color: var(--cor-branco);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cor-branco);
  margin-bottom: 16px;
}
.blog-hero p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  opacity: .9;
}

/* Versão menor (hubs e artigos) */
.blog-hero--compact { padding: 130px 0 50px; }
.blog-hero--compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* =============== BREADCRUMB =============== */
.breadcrumb {
  background: var(--cor-fundo-claro);
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--cor-texto-suave);
  border-bottom: 1px solid var(--cor-borda);
}
.breadcrumb a {
  color: var(--cor-destaque);
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep {
  margin: 0 10px;
  color: var(--cor-borda);
}

/* =============== HUBS (cards grandes) =============== */
.hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 30px;
}
.hub-card {
  position: relative;
  background: var(--cor-branco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border-top: 4px solid var(--cor-destaque);
}
.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.hub-card-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hub-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.1) 0%, rgba(28,28,28,0.55) 100%);
}
.hub-saude .hub-card-cover {
  background-image: url('https://images.pexels.com/photos/4225920/pexels-photo-4225920.jpeg?auto=compress&w=1200');
}
.hub-imobiliario .hub-card-cover {
  background-image: url('https://images.pexels.com/photos/8730049/pexels-photo-8730049.jpeg?auto=compress&w=1200');
}
.hub-card-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: var(--cor-destaque);
  color: var(--cor-branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(139,26,26,0.4);
}
.hub-card-body { padding: 30px 32px 32px; }
.hub-card-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--cor-texto);
  margin-bottom: 12px;
}
.hub-card-body p {
  font-family: var(--font-body);
  color: var(--cor-texto-suave);
  font-size: .98rem;
  margin-bottom: 20px;
}
.hub-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--cor-destaque);
  transition: gap .3s ease;
}
.hub-card:hover .hub-card-arrow { gap: 14px; }

/* =============== POSTS GRID =============== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.post-card {
  background: var(--cor-branco);
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cor-destaque);
}
.post-card-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--cor-fundo-claro);
}
.post-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tag {
  display: inline-block;
  background: var(--cor-destaque);
  color: var(--cor-branco);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.post-card-tag.tag-saude { background: #1a5f1a; }
.post-card-tag.tag-imobiliario { background: #8B1A1A; }

.post-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cor-texto);
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card-excerpt {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--cor-texto-suave);
  margin-bottom: 16px;
  flex: 1;
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--cor-texto-suave);
  border-top: 1px solid var(--cor-borda);
  padding-top: 14px;
  margin-top: auto;
}
.post-card-meta i {
  color: var(--cor-destaque);
  margin-right: 4px;
}

/* =============== ARTIGO INDIVIDUAL =============== */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--cor-texto-suave);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cor-borda);
}
.article-meta i {
  color: var(--cor-destaque);
  margin-right: 6px;
}
.article-meta-tag {
  display: inline-block;
  background: var(--cor-destaque);
  color: var(--cor-branco);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

.article-cover {
  width: 100%;
  height: clamp(260px, 40vh, 420px);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.article-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cor-texto);
}
.article-body h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--cor-texto);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--cor-texto);
  margin: 50px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--cor-destaque);
}
.article-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cor-texto);
  margin: 36px 0 14px;
}
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  padding-left: 8px;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 10px;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.article-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cor-destaque);
  font-weight: bold;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li::before {
  counter-increment: ol-counter;
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--cor-destaque);
  font-weight: 700;
}
.article-body a {
  color: var(--cor-destaque);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--cor-destaque-dark);
}
.article-body strong { color: var(--cor-texto); font-weight: 600; }

.article-body blockquote {
  border-left: 4px solid var(--cor-destaque);
  padding: 16px 24px;
  margin: 30px 0;
  background: var(--cor-fundo-claro);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cor-texto);
  border-radius: 0 6px 6px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .95rem;
}
.article-body table th,
.article-body table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cor-borda);
}
.article-body table th {
  background: var(--cor-fundo-claro);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cor-texto);
}

/* Caixa de destaque legal (para citar leis, súmulas, julgados) */
.legal-box {
  background: var(--cor-fundo-claro);
  border-left: 4px solid var(--cor-destaque);
  padding: 22px 26px;
  margin: 30px 0;
  border-radius: 0 6px 6px 0;
  font-size: .98rem;
}
.legal-box-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cor-destaque);
  margin-bottom: 10px;
  display: block;
}
.legal-box p:last-child { margin-bottom: 0; }

/* FAQ — fica destacado pra Schema FAQPage */
.faq-section {
  background: var(--cor-fundo-claro);
  padding: 50px 0;
  margin: 60px 0 0;
  border-radius: 8px;
}
.faq-section .container { max-width: 820px; }
.faq-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--cor-texto);
  text-align: center;
  margin-bottom: 32px;
  padding: 0;
  border: none;
}
.faq-item {
  background: var(--cor-branco);
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 18px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cor-texto);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s ease;
}
.faq-question:hover { background: var(--cor-fundo-claro); }
.faq-question::after {
  content: '+';
  color: var(--cor-destaque);
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 22px;
  font-family: var(--font-body);
  font-size: .98rem;
  line-height: 1.7;
  color: var(--cor-texto-suave);
}
.faq-answer p { margin-bottom: 14px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Caixa do autor */
.author-box {
  background: var(--cor-primaria);
  color: var(--cor-branco);
  padding: 32px;
  border-radius: 8px;
  margin: 60px 0 30px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.author-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--cor-destaque);
  overflow: hidden;
  flex-shrink: 0;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cor-branco);
  margin-bottom: 4px;
}
.author-info span {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--cor-destaque);
  margin-bottom: 8px;
}
.author-info p {
  font-family: var(--font-body);
  font-size: .92rem;
  color: #BBBBBB;
  line-height: 1.55;
  margin: 0;
}

/* Disclaimer OAB */
.oab-disclaimer {
  background: #FFF8E1;
  border: 1px solid #E6D58A;
  border-left: 4px solid #B8860B;
  padding: 18px 24px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-body);
  font-size: .88rem;
  color: #5C4A1A;
  margin: 40px 0;
  line-height: 1.6;
}
.oab-disclaimer strong { color: #8B6914; }

/* CTA final do artigo */
.article-cta {
  background: linear-gradient(135deg, var(--cor-destaque-dark) 0%, var(--cor-destaque-mid) 100%);
  color: var(--cor-branco);
  text-align: center;
  padding: 50px 36px;
  border-radius: 10px;
  margin: 50px 0 30px;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--cor-branco);
  margin-bottom: 14px;
}
.article-cta p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin: 0 auto 26px;
}

/* Artigos relacionados */
.related-section {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 2px solid var(--cor-borda);
}
.related-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--cor-texto);
  margin-bottom: 30px;
  padding-left: 16px;
  border-left: 4px solid var(--cor-destaque);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 960px) {
  .hubs-grid,
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .blog-hero { padding: 130px 0 60px; }
  .hubs-grid,
  .posts-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-wrap { padding: 40px 16px 60px; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.4rem; margin: 36px 0 14px; }
  .article-body h3 { font-size: 1.1rem; }
  .author-box { flex-direction: column; text-align: center; padding: 26px 22px; }
  .article-cta { padding: 38px 24px; }
  .article-cta h3 { font-size: 1.4rem; }
  .faq-question { font-size: .96rem; padding: 16px 18px; }
  .faq-answer { padding: 0 18px 18px; }
}
