/* ============================================================
   Blog — índice e artigo (mesma identidade da Consulte)
   ============================================================ */

/* ---------- Cabeçalho do blog (banda compacta) ---------- */
.blog-top { position: relative; background: var(--primary-900); color: #fff; overflow: hidden;
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.blog-top::after { content:""; position:absolute; inset:0;
  background: radial-gradient(70% 120% at 100% 0%, rgba(48,181,173,.22), transparent 55%),
              radial-gradient(60% 90% at 0% 100%, rgba(23,130,140,.28), transparent 55%); }
.blog-top .container { position: relative; z-index: 1; }
.blog-top .section__eyebrow { color: var(--accent-300); }
.blog-top .section__eyebrow::before { background: var(--accent); }
.blog-top h1 { font-family: var(--font-display); font-size: var(--step-3); text-wrap: balance; max-width: 20ch; }
.blog-top h1 em { font-style: italic; color: var(--accent-300); }
.blog-top p { font-size: var(--step-1); color: rgba(255,255,255,.82); max-width: 54ch; margin-top: 1rem; }

/* categorias / filtros */
.cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.cats a { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .45rem 1rem; transition: background .25s, color .25s; }
.cats a:hover, .cats a[aria-current="true"] { background: var(--accent); color: #06282a; border-color: transparent; }

/* ---------- Destaque ---------- */
.blog-wrap { background: var(--bg); }
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); }
.featured__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.05); }
.featured__body { padding: clamp(1.6rem,3vw,2.6rem) clamp(1.6rem,3vw,2.6rem) clamp(1.6rem,3vw,2.6rem) 0; }
.featured__body .tag { margin-bottom: .8rem; }
.featured__body h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--text-dark); text-wrap: balance; }
.featured__body p { color: var(--text-med); margin: .8rem 0 1.2rem; }

/* ---------- Grid de posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__body h3 { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-dark); text-wrap: balance; }
.post-card__body p { color: var(--text-med); font-size: var(--step-0); margin: 0; }
.post-meta { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--text-med); margin-top: auto; padding-top: .4rem; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-med); }

/* tag/badge */
.tag--cat { display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: .1em;
  font-size: .68rem; font-weight: 700; color: var(--secondary); background: var(--light-teal);
  border-radius: 999px; padding: .3rem .7rem; align-self: flex-start; }

/* CTA newsletter/whatsapp */
.blog-cta { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(2.4rem,5vw,3.6rem); box-shadow: var(--shadow); }
.blog-cta h2 { font-family: var(--font-display); font-size: var(--step-2); color:#fff; }
.blog-cta p { color: rgba(255,255,255,.9); max-width: 48ch; margin: .8rem auto 1.5rem; }

/* ============================================================
   Artigo (single post)
   ============================================================ */
.article-top { background: var(--primary-900); color: #fff; padding: clamp(7rem,14vh,10rem) 0 clamp(2.5rem,5vw,3.5rem);
  position: relative; overflow: hidden; }
.article-top::after { content:""; position:absolute; inset:0;
  background: radial-gradient(65% 110% at 90% 0%, rgba(48,181,173,.20), transparent 55%); }
.article-top .container { position: relative; z-index: 1; max-width: 820px; }
.article-top .backlink { color: var(--accent-300); }
.article-top h1 { font-family: var(--font-display); font-size: var(--step-3); text-wrap: balance; margin: 1rem 0; max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: var(--step--1); color: rgba(255,255,255,.8); }
.article-meta .who { display: flex; align-items: center; gap: .5rem; }
.article-meta .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color:#06282a;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }

.article-cover { max-width: 980px; margin: -3.5rem auto 0; position: relative; z-index: 2; padding: 0 clamp(1.1rem,4vw,2rem); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16/8; object-fit: cover; }

/* corpo do artigo — largura de leitura confortável e tipografia editorial */
.article-body { max-width: 720px; margin: clamp(2.5rem,5vw,3.5rem) auto; padding: 0 clamp(1.1rem,4vw,2rem);
  font-size: 1.12rem; line-height: 1.75; color: var(--text-dark); }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-family: var(--font-display); font-size: var(--step-2); color: var(--primary); margin-top: 2.2em; line-height: 1.15; }
.article-body h3 { font-family: var(--font-display); font-size: var(--step-1); color: var(--text-dark); margin-top: 1.8em; }
.article-body p { color: #2a3d40; }
.article-body a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-300); }
.article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: .5em; }
.article-body li { padding-left: .2em; }
.article-body img { width: 100%; border-radius: var(--radius); margin: 1.8em 0; }
.article-body blockquote { border-left: 3px solid var(--accent); background: var(--light-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1em 1.3em; font-family: var(--font-display); font-size: var(--step-1); color: var(--primary); font-style: italic; }
.article-body figure figcaption { font-size: .82rem; color: var(--text-med); text-align: center; margin-top: -1em; }
.article-body strong { color: var(--text-dark); }

.article-share { max-width: 720px; margin: 0 auto; padding: 1.4rem clamp(1.1rem,4vw,2rem); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.article-share .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-share .tags span { font-size: .74rem; font-weight: 600; color: var(--secondary); background: var(--light-teal); border-radius: 999px; padding: .3rem .75rem; }
.share-btns { display: flex; gap: .5rem; }
.share-btns a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--light-teal); color: var(--primary); transition: background .2s, color .2s; }
.share-btns a:hover { background: var(--accent); color: #06282a; }
.share-btns svg { width: 18px; height: 18px; }

/* relacionados = grid de posts reutilizado, dentro de .blog-wrap */

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured__media { aspect-ratio: 16/9; }
  .featured__body { padding: 0 clamp(1.4rem,4vw,2rem) clamp(1.6rem,4vw,2rem); }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }
