/* ===========================================================
   AvetDigital — Blog (usa os tokens de styles.css)
   =========================================================== */

/* ---------- header do blog ---------- */
.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-line-soft);
}
.blog-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.blog-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.blog-brand img { width: 34px; height: 34px; border-radius: 8px; }
.blog-brand .dot { color: var(--c-brand-3); }
.blog-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; color: var(--c-text-soft); }
.blog-nav a:hover { color: var(--c-brand-3); }

/* ---------- hero do índice ---------- */
.blog-hero {
  background: linear-gradient(160deg, var(--c-dark-2), var(--c-dark-3));
  color: #fff; padding: 72px 0 84px; text-align: center;
}
.blog-hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-brand-lite); margin-bottom: 14px;
}
.blog-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.blog-hero p { font-size: 18px; color: #c8cdf0; max-width: 680px; margin: 0 auto; }

/* ---------- grade de posts ---------- */
.post-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  margin: -56px auto 0; position: relative; z-index: 2;
}
.post-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.14); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-pur)); display: flex; align-items: center; justify-content: center; }
.post-card .thumb svg { width: 56px; height: 56px; color: #fff; opacity: .92; }
.post-card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-3); margin-bottom: 10px; }
.post-card h2 { font-size: 21px; line-height: 1.25; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.post-card p { font-size: 15px; color: var(--c-text-soft); margin: 0 0 18px; flex: 1; }
.post-card .read { font-size: 15px; font-weight: 700; color: var(--c-brand-3); display: inline-flex; align-items: center; gap: 6px; }
.post-card .read svg { width: 16px; height: 16px; }

/* ---------- artigo ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.article .kicker { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-brand-3); }
.article h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 16px; }
.article .meta { color: var(--c-text-mute); font-size: 15px; margin-bottom: 30px; display: flex; gap: 14px; align-items: center; }
.article .meta .pill { background: var(--c-bg-lav); color: var(--c-brand-pur); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill); }
.article .lead { font-size: 20px; line-height: 1.55; color: var(--c-text); font-weight: 500; margin: 0 0 32px; }
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--c-text); }
.article-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 44px 0 14px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--c-brand);
  background: var(--c-bg-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 18px; color: var(--c-text-soft); font-style: italic;
}
.article-body .callout {
  margin: 28px 0; padding: 22px 24px; background: var(--c-bg-lav);
  border-radius: var(--radius-md); font-size: 16.5px;
}
.article-body .callout strong { color: var(--c-brand-pur); }

/* ---------- CTA ---------- */
.cta-box {
  margin: 52px auto 0; max-width: 760px;
  background: linear-gradient(150deg, var(--c-dark-2), var(--c-dark-3));
  color: #fff; border-radius: var(--radius-lg); padding: 40px 36px; text-align: center;
}
.cta-box h3 { font-size: 25px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.cta-box p { color: #c8cdf0; font-size: 16px; margin: 0 0 24px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}
.cta-btn svg { width: 20px; height: 20px; }
.cta-btn:hover { filter: brightness(1.05); }

/* ---------- navegação entre posts ---------- */
.post-more { max-width: 760px; margin: 56px auto 0; }
.post-more h4 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-mute); margin: 0 0 16px; }
.post-more .links { display: grid; gap: 12px; }
.post-more a { display: block; padding: 16px 20px; border: 1px solid var(--c-border); border-radius: var(--radius-md); font-weight: 600; transition: border-color .15s, background .15s; }
.post-more a:hover { border-color: var(--c-brand); background: var(--c-bg-soft); }

/* ---------- footer ---------- */
.blog-footer { margin-top: 72px; padding: 36px 0; border-top: 1px solid var(--c-line-soft); color: var(--c-text-mute); font-size: 14px; text-align: center; }

/* ---------- aviso de rascunho (review) ---------- */
.draft-banner {
  background: #fef3c7; color: #92400e; text-align: center;
  font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-bottom: 1px solid #fde68a;
}

@media (max-width: 560px) {
  .blog-nav { display: none; }
  .article { padding-top: 36px; }
}
