/* ═══════════════════════════════════════════
   BLOG — Estilos específicos
   Depende de /styles.css (tokens e base)
═══════════════════════════════════════════ */

/* ── Nav active ── */
.nav-active { color: var(--accent) !important; }

/* ── Hero do Blog ── */
.blog-hero {
  background: var(--dark2);
  padding: 140px 0 80px;
  text-align: center;
}
.blog-hero .section-label { margin-bottom: 20px; }
.blog-hero h1 {
  font-family: var(--font-head);
  font-size: 52px; font-weight: 900;
  color: var(--white); line-height: 1.15;
  margin-bottom: 18px;
}
.blog-hero p {
  font-size: 17px; color: rgba(255,255,255,.65);
  max-width: 600px; margin: 0 auto; line-height: 1.75;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-bottom: 28px; justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ── Filtros de categoria ── */
.blog-filters-section { background: var(--white); padding: 32px 0; border-bottom: 1px solid #edf0f7; }
.blog-filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.filter-btn {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 9px 20px; border-radius: 30px;
  border: 2px solid #e0e5f0; color: var(--body-text);
  transition: all .2s;
}
.filter-btn:hover, .filter-active {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}

/* ── Grid de artigos (índice) ── */
.blog-index-section { background: var(--light); padding: 80px 0; }
.blog-index-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}

/* ── Estado vazio ── */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.blog-empty svg { color: #c5ccdb; }
.blog-empty h3 { font-family: var(--font-head); color: var(--navy); font-size: 22px; }
.blog-empty p { color: var(--body-text); font-size: 15px; max-width: 420px; }

/* ── Card de artigo (índice) ── */
.article-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(27,42,74,.08);
  transition: box-shadow .3s, transform .3s;
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: 0 12px 40px rgba(27,42,74,.14); transform: translateY(-4px); }
.article-card-img { position: relative; height: 200px; overflow: hidden; }
.article-card-img img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-head); font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--accent); color: var(--white);
  padding: 5px 12px; border-radius: 20px;
}
.article-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta {
  font-size: 12px; color: #a0abc0; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.article-card-body h3 {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--navy); line-height: 1.35; margin-bottom: 10px;
}
.article-card-body p { font-size: 13.5px; color: var(--body-text); line-height: 1.65; flex: 1; }
.article-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--accent); margin-top: 16px; transition: gap .2s;
}
.article-card-link:hover { gap: 10px; }

/* ── CTA Banner ── */
.blog-cta-banner { background: var(--dark2); padding: 72px 0; }
.blog-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.blog-cta-inner h2 { font-size: 30px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.blog-cta-inner p { color: rgba(255,255,255,.6); font-size: 15px; }
.blog-cta-inner .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════
   PÁGINA DE ARTIGO
═══════════════════════════════════════════ */

/* ── Hero do artigo ── */
.article-hero {
  background-color: var(--dark2);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 140px 0 60px;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19,32,57,.82);
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero-inner { max-width: 800px; margin: 0 auto; }
.article-cat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(249,76,48,.15); color: var(--accent);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.article-hero h1 {
  font-family: var(--font-head);
  font-size: 46px; font-weight: 900;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta svg { color: var(--accent); }

/* ── Imagem destaque ── */
.article-featured-img {
  width: 100%; max-height: 480px; object-fit: cover;
  display: block; border-radius: 0;
}

/* ── Layout do artigo ── */
.article-layout {
  background: var(--white); padding: 40px 0;
}
.article-layout-inner {
  display: grid; grid-template-columns: 1fr 320px; gap: 60px;
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  align-items: start;
}

/* ── Conteúdo do artigo ── */
.article-content { min-width: 0; }
.article-content h2 {
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  color: var(--navy); margin: 40px 0 16px; line-height: 1.25;
}
.article-content h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--navy); margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px; color: #4a5568; line-height: 1.85; margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  padding-left: 24px; margin-bottom: 20px;
}
.article-content li {
  font-size: 16px; color: #4a5568; line-height: 1.8; margin-bottom: 8px;
}
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content .btn { color: var(--white); text-decoration: none; }
.article-content .btn-primary { color: var(--white); }
.article-content .btn-primary:hover { color: var(--white); }
.article-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 28px;
  font-size: 14px; border-radius: 8px; overflow: hidden;
}
.article-content th {
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 12px 16px; text-align: left;
}
.article-content td {
  padding: 12px 16px; border-bottom: 1px solid #edf0f7; color: #4a5568;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--light); }

/* Resposta direta (bloco AEO) */
.article-direct-answer {
  background: var(--light); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 22px 28px; margin: 0 0 32px;
}
.article-direct-answer p {
  font-size: 17px; line-height: 1.7; color: var(--navy); margin: 0;
}
.article-direct-answer strong { color: var(--accent); }

/* Sumário / índice inline do artigo */
.article-toc {
  background: var(--light); border-radius: 12px;
  padding: 24px 28px; margin: 0 0 40px;
}
.article-toc .article-toc-title {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.article-toc ul, .article-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 9px;
}
.article-toc a {
  font-size: 14.5px; color: var(--body-text); line-height: 1.4;
  display: flex; align-items: flex-start; gap: 8px; transition: color .2s;
}
.article-toc a::before { content: '›'; color: var(--accent); flex-shrink: 0; }
.article-toc a:hover { color: var(--accent); }

/* CTA inline */
.article-cta-inline {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark2) 100%);
  border-radius: 12px; padding: 32px; margin: 40px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.article-cta-inline h4 {
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
}
.article-cta-inline p { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }
.article-cta-inline .btn { flex-shrink: 0; font-size: 12px; padding: 12px 24px; }

/* FAQ */
.article-faq { margin: 48px 0; }
.article-faq h2 { margin-bottom: 24px; }
.faq-item {
  border: 1px solid #e8ecf4; border-radius: 10px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 18px 20px; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--navy);
}
.faq-question svg { flex-shrink: 0; transition: transform .3s; color: var(--accent); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 20px 18px;
  font-size: 15px; color: var(--body-text); line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--light); border-radius: 12px;
  padding: 28px; margin-bottom: 24px;
}
.sidebar-widget h5 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark2) 100%);
  color: var(--white); text-align: center;
}
.sidebar-cta h5 { color: var(--white); border-color: var(--accent); }
.sidebar-cta p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 20px; line-height: 1.65; }
.sidebar-cta .btn { width: 100%; justify-content: center; font-size: 12px; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a {
  font-size: 14px; color: var(--body-text); transition: color .2s;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.toc-list a::before { content: '›'; color: var(--accent); flex-shrink: 0; }
.toc-list a:hover { color: var(--accent); }
.related-list { list-style: none; padding: 0; }
.related-list li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #e0e6f0; }
.related-list li:last-child { margin: 0; padding: 0; border: none; }
.related-list a { font-size: 14px; font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.4; transition: color .2s; }
.related-list a:hover { color: var(--accent); }
.related-list span { font-size: 11px; color: #a0abc0; display: block; margin-top: 3px; }

/* ── Tags ── */
.article-tags { margin-top: 48px; padding-top: 32px; border-top: 1px solid #edf0f7; }
.article-tags h5 {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  border: 1.5px solid #d0d8e8; color: var(--body-text);
  padding: 5px 14px; border-radius: 20px; transition: all .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Autor ── */
.article-author {
  background: var(--light); border-radius: 12px;
  padding: 28px; margin-top: 48px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.author-info h5 {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}
.author-info span { font-size: 12px; color: var(--accent); font-weight: 600; display: block; margin-bottom: 8px; }
.author-info p { font-size: 14px; color: var(--body-text); line-height: 1.65; margin: 0; }

/* ── Share Bar ── */
.article-share {
  margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--border);
}
.article-share h5 {
  font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 14px;
}
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-btn.share-whatsapp { background: #25D366; color: #fff; }
.share-btn.share-facebook { background: #1877F2; color: #fff; }
.share-btn.share-instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width:1100px) {
  .article-layout-inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .blog-index-grid { grid-template-columns: 1fr 1fr; }
  .blog-cta-inner { flex-direction: column; text-align: center; }
}
@media(max-width:768px) {
  .blog-hero h1 { font-size: 36px; }
  .article-hero h1 { font-size: 30px; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .article-cta-inline { flex-direction: column; }
}
