/* ============================================================
   BLOG + POST, v2.0 (mesmo sistema de design de css/home.css)
   Carregar sempre depois de home.css.
   ============================================================ */

/* ---------- Page hero (blog listing e post) ---------- */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 130px 0 56px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-color: var(--ink);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,17,.7) 0%, rgba(14,15,17,.44) 40%, rgba(14,15,17,.92) 100%);
}
.page-hero-inner { position: relative; }
.page-hero-category {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.page-hero h1 {
  margin: 18px 0 0; color: var(--white); font-weight: 700; font-size: clamp(34px,8vw,60px);
  line-height: 1.04; max-width: 20ch; text-wrap: balance;
}
.page-hero-subtitle { margin: 16px 0 0; max-width: 56ch; color: rgba(255,255,255,.78); font-size: clamp(15px,4vw,18px); line-height: 1.6; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: rgba(255,255,255,.35); }

/* ---------- Blog listing ---------- */
/* Colunas fixas (não auto-fit): com poucos posts, o card fica do
   tamanho certo em vez de esticar pra ocupar a linha toda. */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.post-card {
  border-radius: 26px; overflow: hidden; background: var(--white); border: 1px solid rgba(18,19,22,.08);
  box-shadow: 0 18px 50px rgba(18,19,22,.07);
}
.post-card-thumb { position: relative; display: block; height: 280px; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.post-card-thumb-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,22,0) 55%, rgba(18,19,22,.5)); }
.post-card-category {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.post-card-body { padding: 24px 24px 26px; }
/* especificidade .post-card + .post-card-title precisa vencer .section h2 do home.css */
.post-card .post-card-title { font-size: 19px; line-height: 1.3; margin: 0; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--accent-text); }
.post-card-excerpt { margin-top: 10px; color: var(--body-text); font-size: 15px; line-height: 1.6; }
.post-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; }
.post-card-link span { color: var(--accent-text); }

/* ---------- Post detail: layout ---------- */
.article-layout { display: grid; grid-template-columns: 1fr min(320px,100%); gap: 48px; align-items: start; }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent-text); }
.back-link:hover { color: var(--accent-text); opacity: .8; }
.back-link-bottom { margin-top: 40px; }

.article-lead { margin-top: 24px; font-size: clamp(17px,4vw,19px); line-height: 1.7; color: var(--quote-text); font-weight: 600; }
.article-body { margin-top: 24px; }
.article-body > p { color: var(--body-text); font-size: 16px; line-height: 1.7; }

.article-tip { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(18,19,22,.08); }
.article-tip:first-of-type { margin-top: 18px; }
.tip-number {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-family: var(--font-heading); font-weight: 800; font-size: 17px;
}
.tip-content h2 { font-size: 19px; line-height: 1.3; }
.tip-content p { margin-top: 8px; color: var(--body-text); font-size: 15px; line-height: 1.65; }

.article-cta {
  margin-top: 40px; padding: clamp(28px,5vw,44px); border-radius: 28px; background: var(--ink); color: var(--white);
}
.article-cta h3 { color: var(--white); font-size: clamp(22px,5vw,28px); }
.article-cta p { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.7; }
.article-cta p a { color: var(--accent); }
.article-cta p a:hover { color: var(--accent); opacity: .8; }
.article-cta .btn { margin-top: 22px; }

/* ---------- Sidebar ---------- */
.article-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget { padding: 26px 24px; border-radius: 24px; background: var(--surface); border: 1px solid rgba(18,19,22,.06); }
.sidebar-title { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sidebar-widget img.sidebar-logo { display: block; width: 88px; height: 88px; margin: 16px auto; }
.sidebar-widget > p { margin-top: 6px; color: var(--body-text); font-size: 14px; line-height: 1.6; text-align: center; }
.sidebar-widget .btn { width: 100%; justify-content: center; margin-top: 16px; }

.sidebar-posts { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.sidebar-posts a { display: flex; align-items: center; gap: 12px; }
.sidebar-posts img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.sidebar-posts span { font-size: 14px; font-weight: 600; line-height: 1.35; }

.sidebar-contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--body-text); }
.sidebar-contact-list .label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
