/* =====================================================================
   Blue Senior Living — Blog / Conteúdos
   Usa os tokens e componentes de styles.css; só adiciona o necessário.
   ===================================================================== */

.blog-page { background: var(--bg-page); }

/* Navbar do blog: sempre no estado claro (.nav.is-scrolled já cobre o visual) */
.blog-nav { position: fixed; }
.brand__emblem-img { width: 30px; height: 46px; flex: none; display: block; }
.blog { padding-top: 72px; }

/* ---------- Hero da listagem ---------- */
.blog-hero { padding: clamp(40px, 7vw, 72px) 0 clamp(20px, 3vw, 28px); }
.blog-hero__title {
  font-family: var(--font-display); font-weight: 450; line-height: 1.12; letter-spacing: -0.012em;
  font-size: clamp(29px, 3.8vw, 44px); color: var(--ink); margin-top: var(--s-8); max-width: 18ch;
}
.blog-hero__lead { margin-top: var(--s-16); font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Filtro de categorias ---------- */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(24px, 3vw, 36px); }
.blog-filter__btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--cloud); color: var(--ink-soft); border: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.blog-filter__btn:hover { border-color: var(--celeste); color: var(--navy-600); }
.blog-filter__btn.is-active { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }

/* ---------- Grade de posts ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.post-card {
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(17, 37, 56, .4); border-color: rgba(92, 191, 229, .5); }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.post-card__cat {
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px;
  color: var(--navy-600); background: rgba(92, 191, 229, .14); padding: 3px 10px; border-radius: var(--r-pill);
}
.post-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.15; color: var(--ink); }
.post-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.post-card__more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--navy-600); }

/* ---------- Estado vazio ---------- */
.blog-empty {
  text-align: center; max-width: 48ch; margin: clamp(20px, 5vw, 48px) auto clamp(60px, 9vw, 120px);
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(32px, 5vw, 56px);
}
.blog-empty__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.blog-empty p { color: var(--ink-soft); }
.blog-empty .btn { margin-top: var(--s-24); }

/* ---------- Página de post ---------- */
.post { padding-bottom: clamp(48px, 7vw, 88px); }
.post__wrap { width: min(100% - 40px, 720px); margin-inline: auto; }
.post__back { display: inline-block; margin: clamp(24px, 4vw, 40px) 0 clamp(20px, 3vw, 28px); font-weight: 600; font-size: 15px; color: var(--navy-600); }
.post__back:hover { color: var(--celeste-600); text-decoration: underline; text-underline-offset: 4px; }
.post__cat {
  display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
  color: var(--navy-600); background: rgba(92, 191, 229, .14); padding: 4px 12px; border-radius: var(--r-pill);
}
.post__title {
  font-family: var(--font-display); font-weight: 450; line-height: 1.16; letter-spacing: -0.012em;
  font-size: clamp(28px, 3.6vw, 42px); color: var(--ink); margin: var(--s-16) 0 var(--s-12);
}
.post__meta { font-size: 14.5px; color: var(--ink-soft); }
.post__cover {
  width: min(100% - 40px, 960px); margin: clamp(28px, 4vw, 44px) auto;
  border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line);
}
.post__cover img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.post__body { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.8; color: var(--ink); }
.post__body p { margin: 0 0 1.35em; }
.post__body h2 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.2;
  font-size: clamp(23px, 2.6vw, 30px); color: var(--ink); margin: 1.8em 0 .5em;
}
.post__body em { font-style: italic; color: var(--navy-600); }

/* Compartilhar */
.post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(36px, 5vw, 48px); padding-top: var(--s-24); border-top: 1px solid var(--line); }
.post__share > span { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-right: 4px; }
.post__share-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--cloud); color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.post__share-btn:hover { border-color: var(--celeste); color: var(--navy-600); }
.post__share-btn svg { width: 18px; height: 18px; }

/* CTA de conversão no fim do post */
.post__cta {
  margin-top: clamp(40px, 6vw, 64px); text-align: center;
  background: var(--navy-900);
  color: #fff; border-radius: var(--r-card); padding: clamp(28px, 5vw, 48px);
}
.post__cta h2 { font-family: var(--font-display); font-weight: 450; font-size: clamp(23px, 3vw, 30px); margin-bottom: 10px; }
.post__cta p { color: rgba(238, 245, 250, .88); max-width: 48ch; margin: 0 auto var(--s-24); }

/* Rodapé do blog (logo em <img>) */
.blog-footer .footer__logo img { width: 176px; height: auto; display: block; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .blog { padding-top: 64px; } }
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post__cta .btn { width: 100%; }
}
