/* =========================================================
   GMVetor — Blog
   Índice + artigos. Depende dos tokens e componentes de styles.css
   ========================================================= */

/* ---------- Base das páginas do blog ---------- */
.page-blog { background: var(--cream); }
.page-blog .nav__menu a.is-active { font-weight: 600; }
.page-blog .nav__menu a.is-active::after { width: 100%; }

/* ---------- Índice: cabeçalho ---------- */
.bloghead {
  padding: calc(120px + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.bloghead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.bloghead .display { font-size: clamp(44px, 7vw, 96px); }
.bloghead__lead {
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(20, 17, 14, 0.72);
  max-width: 46ch;
}
.bloghead__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Índice: destaque ---------- */
.blogindex { padding: clamp(56px, 7vw, 96px) 0 var(--section-y); }
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: var(--green-deep);
  color: var(--cream);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.post-feature:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -28px rgba(10, 37, 34, 0.55); }
.post-feature__media { position: relative; overflow: hidden; min-height: 380px; }
.post-feature__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.post-feature:hover .post-feature__media img { transform: scale(1.03); }
.post-feature__body {
  padding: clamp(32px, 4.4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.post-feature__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 6px 0 20px;
  text-wrap: balance;
}
.post-feature__body p { color: rgba(245, 241, 234, 0.76); font-size: 15.5px; line-height: 1.7; max-width: 44ch; }
.post-feature .post-meta { color: var(--gold-light); }
.post-feature__cta {
  margin-top: 32px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex; gap: 10px; align-items: center;
}
.post-feature__cta span { transition: transform var(--t-fast); }
.post-feature:hover .post-feature__cta span { transform: translateX(4px); }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.post-meta span + span::before { content: "·"; margin-right: 16px; opacity: .6; }

/* Grade (reaproveita .blog-card de styles.css) */
.blogindex .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.blog-card__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transition: transform var(--t-slow);
}
.blog-card:hover .blog-card__cover img { transform: scale(1.03); }
.blog-card__body .post-meta { margin-bottom: 14px; }
.blog-card__more {
  margin-top: auto; padding-top: 22px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep);
}

.blogindex__series {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.blogindex__series p { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--green-deep); }

/* ---------- Artigo: cabeçalho ---------- */
.article { padding-top: calc(120px + clamp(32px, 5vw, 72px)); }
.article__back {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 40px;
}
.article__back span { transition: transform var(--t-fast); }
.article__back:hover span { transform: translateX(-4px); }
.article__head { max-width: 900px; }
.article__head .eyebrow { margin-bottom: 22px; }
.article__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  text-wrap: balance;
}
.article__title em { font-style: italic; color: var(--gold-dark); }
.article__dek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.4;
  color: rgba(16, 56, 52, 0.82);
  margin-top: 28px;
  max-width: 40ch;
}
.article__meta { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

.article__hero { margin: clamp(40px, 5vw, 72px) 0 0; }
.article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--green-deep); }
.article__hero figcaption, .prose figcaption {
  margin-top: 12px; font-size: 12px; line-height: 1.5; color: rgba(20, 17, 14, 0.55); letter-spacing: 0.02em;
}

/* ---------- Artigo: corpo ---------- */
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr);
  gap: 0 40px;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
}
.article__aside {
  grid-column: 1; align-self: start;
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark);
}
.article__aside a, .article__aside button {
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.16em; color: var(--green-deep); font-weight: 700; font-size: 11px; text-transform: uppercase;
}
.article__aside a:hover, .article__aside button:hover { color: var(--gold-dark); }
.prose { grid-column: 2; min-width: 0; }

.prose > * + * { margin-top: 1.25em; }
.prose p, .prose li {
  font-size: 17.5px;
  line-height: 1.8;
  color: rgba(20, 17, 14, 0.86);
}
.prose strong { font-weight: 700; color: var(--green-deep); }
.prose a { color: var(--green-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--green-deep); }
.prose .lede { font-size: 19.5px; line-height: 1.75; color: var(--ink); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--green-deep);
  margin-top: 2.2em;
  text-wrap: balance;
}
.prose h2 + p { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }

/* Bloco numerado (perguntas, etapas) */
.step { margin-top: 3.2em; padding-top: 2.4em; border-top: 1px solid var(--line); }
.step:first-of-type { margin-top: 2.4em; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
}
.step h2 { margin-top: .25em; }
.step > p { margin-top: 1em; }

/* Linha do tempo (artigo de história) */
.year {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-top: 3.2em; padding-top: 2.4em; border-top: 1px solid var(--line);
}
.year__num {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 64px; line-height: 1; color: var(--gold);
}
.year__label { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); }
.year + h2 { margin-top: .35em; }

/* "Peça" — o que levar à conversa */
.ask {
  margin-top: 1.6em;
  padding: 18px 22px;
  background: var(--cream-warm);
  border-left: 2px solid var(--gold);
}
.ask__label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.ask p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--green-deep); }

/* Citação */
.prose blockquote {
  margin: 2.4em 0;
  padding-left: 28px;
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
  color: var(--green-deep);
}

/* Imagens no corpo (podem sangrar além da coluna) */
.prose figure { margin: 2.6em 0; }
.prose figure img { width: 100%; height: auto; background: var(--cream-warm); }
@media (min-width: 1100px) {
  .prose figure.wide { margin-left: -120px; margin-right: -120px; }
}

/* Lista de verificação no fim */
.checklist {
  margin-top: 3em;
  padding: clamp(28px, 4vw, 44px);
  background: var(--green-deep);
  color: var(--cream);
}
.checklist h2 { color: var(--cream); margin-top: 0; font-size: clamp(26px, 2.6vw, 32px); }
.checklist ol { list-style: none; padding: 0; margin-top: 1.2em; counter-reset: c; }
.checklist li {
  counter-increment: c;
  color: rgba(245, 241, 234, 0.86);
  font-size: 16px; line-height: 1.6;
  padding: 14px 0 14px 44px; position: relative;
  border-top: 1px solid var(--line-light);
}
.checklist li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--gold-light);
}
.checklist li + li { margin-top: 0; }

.note {
  margin-top: 2.4em !important;
  font-size: 13px !important; line-height: 1.6 !important;
  color: rgba(20, 17, 14, 0.55) !important;
}
.sources { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.sources h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dark); }
.sources p, .sources li { font-size: 14px !important; line-height: 1.65 !important; color: rgba(20, 17, 14, 0.65) !important; }
.sources ul { list-style: none; padding: 0; margin-top: .8em; }

.signoff {
  margin-top: 3em !important;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-style: italic; font-size: 20px !important; color: var(--green-deep) !important;
}
.signoff::before { content: ""; width: 40px; height: 1px; background: var(--gold); }

/* ---------- Continue lendo ---------- */
.related { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); background: var(--cream); }
.related .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Faixa newsletter ---------- */
.blogcta { background: var(--green-darker); color: var(--cream); padding: clamp(64px, 8vw, 112px) 0; }
.blogcta__inner { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.blogcta .display { font-size: clamp(32px, 4.2vw, 56px); }
.blogcta p { color: rgba(245, 241, 234, 0.72); max-width: 46ch; margin-top: 18px; line-height: 1.7; }

/* ---------- Home: artigo único do blog ---------- */
.blog__single { margin-top: 12px; }

/* ---------- Home: links da seção Acompanhe ---------- */
.contato__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

/* ---------- Tabelas no corpo do artigo ---------- */
.table-wrap { margin-top: 1.6em; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: rgba(20, 17, 14, 0.86); }
.data-table thead th { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); padding-top: 0; border-bottom: 1px solid var(--gold); }
.data-table tbody th { font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.data-table td:last-child { font-size: 13.5px; color: rgba(20, 17, 14, 0.62); }
.data-table--num td { font-variant-numeric: tabular-nums; }
.data-table--num td:last-child { font-size: 15px; color: rgba(20, 17, 14, 0.86); }
.prose .table-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: rgba(20, 17, 14, 0.6); }

/* ---------- Perguntas frequentes ---------- */
.faq { margin-top: 1.2em; }
.faq h3 { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--green-deep); padding-top: 1.1em; border-top: 1px solid var(--line); margin-top: 1.1em; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin-top: .4em; }

/* ---------- Grade de dois artigos (home e índice) ---------- */
.blog__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .article__layout { grid-template-columns: minmax(0, 1fr); }
  .prose { grid-column: 1; max-width: 680px; }
  .article__aside {
    grid-column: 1; grid-row: 2; position: static; flex-direction: row; flex-wrap: wrap; gap: 14px 24px;
    max-width: 680px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  }
}
@media (max-width: 860px) {
  .bloghead__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .blogindex .blog__grid, .related .blog__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .blog__grid--two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table--stack th, .data-table--stack td { display: block; border: 0; padding: 0; }
  .data-table--stack td { margin-top: 4px; }
  .data-table--stack td:last-child { margin-top: 6px; }
  .data-table--stack td:last-child::before { content: "Fonte: "; }
  .prose p, .prose li { font-size: 16.5px; }
  .prose .lede { font-size: 18px; }
  .step__num, .year__num { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-feature, .post-feature__media img, .blog-card__cover img { transition: none; }
}
