/* ============================================================
   BLOG D-MAX - folha propria do blog
   Depende de ../styles.css (tokens, fontes, header, footer, botoes).
   Direcao: editorial tecnico contido. Fundo claro, tipografia
   D-DIN + Hanken, numeros em D-DIN Condensed. Vermelho so como
   detalhe fino (label, fio); nunca como fundo de area grande.
   Cor de apoio do blog: verde militar #47543F (escala ate
   #3E4A3A no hover), sobrio, contraste 7:1 com texto branco.
   ============================================================ */

:root {
  --verde-militar: #47543F;
  --verde-militar-escuro: #3E4A3A;
}

/* ------------------------------------------------------------
   INDICE: hero (grafite contido, sem linha grossa embaixo)
   ------------------------------------------------------------ */
.blog-hero {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: clamp(104px, 13vw, 148px) 0 clamp(40px, 5vw, 56px);
}
.blog-hero__label {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vermelho-liqui);
  margin-bottom: 14px;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.blog-hero__sub {
  margin-top: 16px;
  font-size: clamp(16px, 1.8vw, 18px);
  color: oklch(1 0 0 / 0.55);
  line-height: 1.65;
  max-width: 560px;
}

/* ------------------------------------------------------------
   INDICE: post em destaque (card heroi horizontal)
   ------------------------------------------------------------ */
.blog-list {
  background: var(--light-bg);
  padding: clamp(44px, 6vw, 64px) 0 clamp(32px, 4vw, 48px);
}
.post-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 8px 32px oklch(0 0 0 / 0.06),
    0 2px 8px oklch(0 0 0 / 0.04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--vermelho-liqui);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
  z-index: 2;
}
.post-feature:hover::before,
.post-feature:focus-visible::before { transform: scaleX(1); }
.post-feature:hover,
.post-feature:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px oklch(0 0 0 / 0.12),
    0 8px 16px oklch(0 0 0 / 0.06);
}
.post-feature__media {
  /* packshot com fundo branco de estudio: painel claro, fio separando do corpo */
  background: oklch(1 0 0);
  border-right: 1px solid oklch(0 0 0 / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 40px);
  min-height: 280px;
}
.post-feature__media img {
  width: min(280px, 74%);
  height: auto;
  transition: transform .6s var(--ease);
}
.post-feature:hover .post-feature__media img { transform: translateY(-4px); }
.post-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: clamp(26px, 3.5vw, 48px);
}
.post-feature__meta {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azul-liqui);
}
.post-feature__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text-dark);
  max-width: 20ch;
  text-wrap: balance;
}
.post-feature__excerpt {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 48ch;
}
.post-feature__foot {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.post-feature__more {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--vermelho-liqui);
}
.post-feature__date {
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 820px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__media {
    min-height: 0;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid oklch(0 0 0 / 0.08);
  }
  .post-feature__media img { width: min(180px, 50%); }
}

/* ------------------------------------------------------------
   INDICE: grid de todos os artigos (cards de texto, sem imagem)
   Hover: fio vermelho no topo, mesmo gesto do post em destaque.
   ------------------------------------------------------------ */
.blog-grid-section {
  background: var(--light-bg);
  padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 88px);
}
.blog-grid__head {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}
.blog-grid__label {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vermelho-liqui);
  margin: 0;
}
.blog-grid__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-top: 8px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--light-surface);
  border: 1px solid oklch(0 0 0 / 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--vermelho-liqui);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.post-card:hover::before,
.post-card:focus-visible::before { transform: scaleX(1); }
.post-card:hover,
.post-card:focus-visible { border-color: oklch(0 0 0 / 0.16); }
.post-card__meta {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--azul-liqui);
}
.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0;
  text-wrap: balance;
}
.post-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.post-card__date {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   BREADCRUMB (padrao: fundo escuro; --light para pagina clara)
   ------------------------------------------------------------ */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  color: oklch(1 0 0 / 0.45);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: oklch(1 0 0 / 0.25);
}
.breadcrumb a {
  color: oklch(1 0 0 / 0.6);
  transition: color .3s var(--ease);
}
.breadcrumb a:hover { color: var(--text-light); }
.breadcrumb [aria-current] { color: oklch(1 0 0 / 0.45); }

.breadcrumb--light { color: oklch(0 0 0 / 0.42); }
.breadcrumb--light li + li::before { color: oklch(0 0 0 / 0.22); }
.breadcrumb--light a { color: oklch(0 0 0 / 0.55); }
.breadcrumb--light a:hover { color: var(--text-dark); }
.breadcrumb--light [aria-current] { color: oklch(0 0 0 / 0.42); }

/* ------------------------------------------------------------
   POST: cabecalho editorial claro (kicker, H1, meta, fio)
   ------------------------------------------------------------ */
.post-col {
  max-width: 720px;
  margin-inline: auto;
}
.post-head {
  background: var(--light-bg);
  padding: clamp(100px, 12vw, 140px) 0 0;
}
.post-head .post-col {
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid oklch(0 0 0 / 0.12);
}
.post-head__kicker {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vermelho-liqui);
  margin: 0 0 14px;
}
.post-head__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.post-head__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.post-head__meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: oklch(0 0 0 / 0.3);
}

/* ------------------------------------------------------------
   POST: corpo em coluna unica, escala de respiro contida
   ------------------------------------------------------------ */
.post {
  background: var(--light-bg);
  padding: clamp(32px, 4vw, 44px) 0 clamp(56px, 7vw, 80px);
}
.post-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dark);
}
.post-body p { margin: 0 0 22px; }
.post-body > :last-child { margin-bottom: 0; }
.post-body .post-lead {
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-dark);
}
.post-body h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text-dark);
  margin: clamp(40px, 5vw, 54px) 0 16px;
  padding-top: 15px;
}
/* red line curta acima de cada entretitulo: unico uso da linha vermelha */
.post-body h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--vermelho-liqui);
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 10px;
}
.post-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}
.post-body li { margin-bottom: 8px; }
.post-body a:not(.btn):not(.post-spec__link) {
  color: var(--azul-liqui);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:not(.btn):not(.post-spec__link):hover { color: var(--vermelho-liqui); }

/* ------------------------------------------------------------
   POST: ficha tecnica (faixa horizontal, packshot dentro do card)
   ------------------------------------------------------------ */
.post-spec {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  background: var(--card-dark);
  color: var(--text-light);
  border-top: 3px solid var(--vermelho-liqui);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: clamp(28px, 4vw, 40px) 0 clamp(8px, 1vw, 12px);
  box-shadow:
    0 12px 32px oklch(0 0 0 / 0.14),
    0 4px 10px oklch(0 0 0 / 0.08);
}
.post-spec__media {
  /* o packshot de fundo branco vive num painel branco: sem placa solta */
  background: oklch(1 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.post-spec__media img {
  width: min(150px, 100%);
  height: auto;
}
.post-spec__body { padding: 22px 26px 20px; }
.post-spec__label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vermelho-liqui);
  margin: 0 0 2px;
}
.post-spec__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.post-spec__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 0;
  border-top: 1px solid oklch(1 0 0 / 0.1);
}
.post-spec__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 10px 0;
}
.post-spec__row dt {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(1 0 0 / 0.5);
  order: 2;
}
.post-spec__row dd {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-light);
  order: 1;
}
.post-spec__row dd span {
  font-size: 16px;
  color: oklch(1 0 0 / 0.65);
}
.post-spec__row dd.is-text { font-size: 19px; line-height: 1.15; }
.post-spec__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  border-bottom: 2px solid var(--vermelho-liqui);
  padding-bottom: 2px;
  transition: color .3s var(--ease);
}
.post-spec__link:hover { color: var(--vermelho-liqui); }
@media (max-width: 640px) {
  .post-spec { grid-template-columns: 1fr; }
  .post-spec__media { padding: 20px; }
  .post-spec__media img { width: min(120px, 40%); }
  .post-spec__body { padding: 20px 20px 18px; }
  .post-spec__row { padding-right: 0; }
}

/* ------------------------------------------------------------
   POST: pull-quote e bloco de atencao
   ------------------------------------------------------------ */
.post-quote {
  margin: clamp(26px, 3.5vw, 36px) 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--vermelho-liqui);
}
.post-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  text-wrap: balance;
}
.post-quote footer {
  margin-top: 10px;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Bloco de atencao: aviso tecnico, nao erro de sistema */
.post-alert {
  background: var(--card-dark);
  color: var(--text-light);
  border-left: 3px solid var(--vermelho-liqui);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 0 22px;
}
.post-alert__label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vermelho-liqui);
  margin: 0 0 8px;
}
.post-alert p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: oklch(1 0 0 / 0.85);
}
.post-alert strong { color: var(--text-light); }

/* ------------------------------------------------------------
   POST: blocos de CTA
   CTA do meio: neutro claro, botao verde do WhatsApp.
   CTA final: verde militar #47543F, sobrio, sem vermelho.
   ------------------------------------------------------------ */
.post-cta {
  background: var(--light-surface);
  border: 1px solid oklch(0 0 0 / 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  margin: clamp(36px, 5vw, 48px) 0;
}
.post-cta__kicker {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--azul-liqui);
  margin: 0 0 10px;
}
.post-cta__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.post-cta__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 52ch;
}
.post-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* CTA final em verde militar */
.post-cta--final {
  background: var(--verde-militar);
  border: 0;
  color: var(--text-light);
}
.post-cta--final .post-cta__kicker { color: oklch(1 0 0 / 0.75); }
.post-cta--final .post-cta__title { color: var(--text-light); }
.post-cta--final .post-cta__text { color: oklch(1 0 0 / 0.8); }

/* Botoes proprios do CTA final (base .btn vem do styles.css) */
.btn--light {
  background: var(--light-surface);
  color: var(--text-dark);
}
.btn--light:hover {
  background: oklch(1 0 0);
  color: var(--text-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--text-light);
  box-shadow: inset 0 0 0 2px oklch(1 0 0 / 0.55);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px oklch(1 0 0 / 0.9); }

/* ------------------------------------------------------------
   POST: FAQ em details/summary com fio
   ------------------------------------------------------------ */
.post-faq {
  border-top: 1px solid oklch(0 0 0 / 0.14);
  margin-top: 22px;
}
.post-faq__item {
  border-bottom: 1px solid oklch(0 0 0 / 0.14);
}
.post-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  transition: color .3s var(--ease);
}
.post-faq__item summary:hover h3 { color: var(--azul-liqui); }
.post-faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--vermelho-liqui);
  transition: transform .3s var(--ease);
}
.post-faq__item[open] summary::after { transform: rotate(45deg); }
.post-faq__item > p {
  margin: 0;
  padding: 0 36px 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Mobile fino + acessibilidade de movimento
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .post-cta__actions .btn { width: 100%; justify-content: center; }
  .post-body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-feature,
  .post-feature::before,
  .post-feature__media img,
  .post-card,
  .post-card::before,
  .post-faq__item summary::after {
    transition: none;
  }
  .post-feature:hover { transform: none; }
}
