/* TEAM BRASA · Blog — herda variáveis de home.css */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 120px clamp(16px, 5vw, 40px) 60px; }
.blog-hero { text-align: center; padding: 120px clamp(16px, 5vw, 40px) 20px; max-width: 760px; margin: 0 auto; }
.blog-hero .eyebrow { justify-content: center; }
.blog-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; }
.blog-hero p { color: var(--text-dim); margin-top: 14px; }

.post-list { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding: 20px clamp(16px, 5vw, 40px) 80px; }
.post-card {
  display: block; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px; transition: transform 0.2s, border-color 0.2s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(255, 138, 0, 0.5); }
.post-card .cat { color: var(--ember-2); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.post-card h2 { font-size: 1.35rem; margin: 8px 0; line-height: 1.25; }
.post-card p { color: var(--text-dim); font-size: 0.95rem; }
.post-card .read { color: var(--ember-3); font-weight: 600; font-size: 0.9rem; margin-top: 12px; display: inline-block; }

/* artigo */
.article { max-width: 720px; margin: 0 auto; padding: 110px clamp(16px, 5vw, 40px) 70px; }
.article .back { color: var(--text-dim); font-size: 0.9rem; }
.article .back:hover { color: var(--ember-3); }
.article .cat { color: var(--ember-2); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 22px; display: block; }
.article h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.12; margin: 8px 0 10px; }
.article .meta { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 30px; }
.article .lead { font-size: 1.15rem; color: var(--text); margin-bottom: 24px; line-height: 1.7; }
.article h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 34px 0 12px; color: var(--ember-3); }
.article h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.article p { color: rgba(245, 246, 248, 0.82); margin-bottom: 16px; line-height: 1.75; }
.article ul { margin: 0 0 18px 22px; color: rgba(245, 246, 248, 0.82); }
.article li { margin-bottom: 8px; line-height: 1.6; }
.article strong { color: var(--text); }
.article .cta-box {
  margin-top: 40px; background: linear-gradient(160deg, rgba(255,84,0,0.12), var(--card));
  border: 1px solid rgba(255,84,0,0.35); border-radius: var(--radius); padding: 30px; text-align: center;
}
.article .cta-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.article .cta-box p { margin-bottom: 18px; }

/* imagens no artigo */
.article .post-hero { margin: 0 0 30px; }
.article figure { margin: 30px 0; }
.article figure img,
.article .post-hero img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.07);
}
.article figcaption {
  color: var(--text-dim); font-size: 0.84rem; line-height: 1.5;
  margin-top: 9px; padding-left: 12px; border-left: 2px solid var(--ember-2);
}
/* miniatura nos cartoes do indice */
.post-card .post-thumb { display: block; margin: -4px 0 16px; }
.post-card .post-thumb img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  border-radius: calc(var(--radius) - 4px); border: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   MOVIMENTO — páginas internas (ronda de melhorias)
   Princípio: pouco e coerente com a home. Nada se mexe sozinho
   em ciclo; o movimento só responde ao rolar e ao rato.
   ============================================================ */

/* miniaturas do blog: a foto aproxima-se devagar quando o cartão é focado.
   Espelha o comportamento que a home já tem nas fotos de momentos. */
.post-card .post-thumb { overflow: hidden; border-radius: calc(var(--radius) - 4px); }
.post-card .post-thumb img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.post-card:hover .post-thumb img,
.post-card:focus-visible .post-thumb img { transform: scale(1.045); }

/* figuras do artigo: a moldura aquece ao passar, sem saltar */
.article figure img { transition: border-color 0.3s ease; }
.article figure:hover img { border-color: rgba(255, 138, 0, 0.38); }

/* assinatura da marca: um traço de brasa que se acende sob cada título
   de secção quando ele entra no ecrã. É o único gesto decorativo novo. */
.article h2 { position: relative; padding-bottom: 10px; }
.article h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-2), transparent);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.article h2.in::after,
.reveal.in .article h2::after,
.article .reveal.in h2::after { width: 68px; }

/* caixa de convite: acende ligeiramente ao aproximar */
.article .cta-box { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.article .cta-box:hover {
  border-color: rgba(255, 84, 0, 0.55);
  box-shadow: 0 10px 40px -18px rgba(255, 84, 0, 0.5);
}

/* ---- quem pediu menos animação, recebe menos animação ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .post-card .post-thumb img,
  .article figure img,
  .article h2::after,
  .article .cta-box,
  .post-card { transition: none !important; }
  .post-card:hover .post-thumb img { transform: none; }
  .article h2::after { width: 68px; }
}
