/* ============================================================
   Karppa — Blog
   Reusa o design system de styles.css (tokens, fonte, cores).
   Tema escuro: o body já é navy #0C1322. Laranja = só destaque.
   Carregar DEPOIS de styles.css.
   ============================================================ */

/* ---------- Base ---------- */
.blog-main { padding-top: 96px; }
@media (max-width: 768px) { .blog-main { padding-top: 80px; } }

.wrap-read { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .wrap-read { padding: 0 20px; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-family: var(--font-body); letter-spacing: 0.01em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.62); border: 0; }
.breadcrumb a:hover { color: var(--orange-300); }
.breadcrumb span.sep { opacity: 0.4; }
.breadcrumb [aria-current] { color: rgba(255,255,255,0.85); }

/* ============================================================
   ÍNDICE DO BLOG  (/blog/)
   ============================================================ */
.blog-hero { padding: 132px 0 40px; text-align: center; position: relative; overflow: hidden; }
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
  color: #fff; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; line-height: 1.05;
  margin: 16px 0 14px;
}
.blog-hero p {
  color: rgba(255,255,255,0.8); font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6; max-width: 600px; margin: 0 auto;
}
.blog-hero .eyebrow { justify-content: center; }
/* glow de fundo sutil */
.blog-hero::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 680px; height: 480px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20,24,94,0.55), transparent 70%);
}

/* Filtros de categoria (chips) */
.blog-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 30px 0 6px;
}
.chip {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.72);
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  transition: color 160ms, border-color 160ms, background 160ms;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.chip--active { color: #fff; background: rgba(230,57,5,0.12); border-color: rgba(230,57,5,0.4); }

/* Grade de artigos */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding: 48px 0 40px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; gap: 22px; } }

.post-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms, box-shadow 220ms;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,57,5,0.32);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.post-card__thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(140deg, #232A86, #14185E 55%, #0E1240);
  display: flex; align-items: flex-end; padding: 16px;
}
.post-card__thumb::after {
  content: ""; position: absolute; right: -28px; top: -26px;
  width: 150px; height: 150px;
  background: url("../img/karppa-symbol.svg") no-repeat center / contain;
  opacity: 0.13; transform: rotate(-8deg);
}
.post-card--flow .post-card__thumb { background: linear-gradient(140deg, #2738BF, #1C229C 55%, #14185E); }
.post-card--pratica .post-card__thumb { background: linear-gradient(140deg, #1C229C, #131A40 60%, #0C1322); }
.post-card__cat {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
  color: #fff; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}
/* foto no card (mesma capa do artigo); some o koi quando há foto */
.post-card__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.post-card__thumb:has(> .post-card__img) { background: #0C1322; }
.post-card__thumb:has(> .post-card__img)::after { display: none; }
.post-card__thumb:has(> .post-card__img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,19,34,0) 45%, rgba(12,19,34,0.5) 100%); }
.post-card__thumb .post-card__cat { z-index: 2; }

.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 10px;
  transition: color 160ms;
}
.post-card:hover .post-card__title { color: var(--orange-300); }
.post-card__excerpt {
  color: rgba(255,255,255,0.74); font-size: 14.5px; line-height: 1.6;
  margin: 0 0 18px; flex: 1;
}
.post-card__meta {
  font-size: 12.5px; color: rgba(255,255,255,0.45);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
/* card "em breve" (placeholder de artigos que ainda vamos publicar) */
.post-card--soon { opacity: 0.6; }
.post-card--soon:hover { transform: none; border-color: rgba(255,255,255,0.08); box-shadow: none; }
.post-card--soon .post-card__thumb { background: linear-gradient(140deg, #2a3147, #1a2034 60%, #0C1322); }
.post-card--soon .post-card__cat { background: rgba(0,0,0,0.3); }

/* card "destaque" ocupando a largura toda */
.post-card--feature { grid-column: 1 / -1; flex-direction: row; }
.post-card--feature .post-card__thumb { aspect-ratio: auto; width: 46%; min-height: 280px; }
.post-card--feature .post-card__body { width: 54%; justify-content: center; padding: 40px; }
.post-card--feature .post-card__title { font-size: clamp(24px, 3vw, 32px); }
.post-card--feature .post-card__excerpt { font-size: 16px; }
@media (max-width: 760px) {
  .post-card--feature { flex-direction: column; }
  .post-card--feature .post-card__thumb,
  .post-card--feature .post-card__body { width: 100%; }
  .post-card--feature .post-card__thumb { min-height: 0; aspect-ratio: 16/10; }
  .post-card--feature .post-card__body { padding: 22px; }
}

/* ============================================================
   ARTIGO  (/blog/<slug>/)
   ============================================================ */
.article { padding: 120px 0 40px; }
@media (max-width: 768px) { .article { padding: 96px 0 32px; } }

.article-head { margin-bottom: 36px; }
.article-head .breadcrumb { margin-bottom: 26px; }
.article-head .eyebrow { margin-bottom: 16px; }
.article-title {
  color: #fff; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.03em; line-height: 1.08;
  margin: 0 0 22px;
}
.article-dek {
  color: rgba(255,255,255,0.86); font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.55; margin: 0 0 28px; font-weight: 500;
}

/* meta: autor + data + tempo (empilhados ao lado do avatar) */
.article-meta { display: flex; align-items: center; gap: 14px; }
.article-meta__avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.22);
  /* foto enquadrada no rosto (mais rosto, menos corpo) — só no blog */
  background: #0A0A12 url("../img/nicolas.webp") no-repeat 50% 10% / 230%;
}
.article-meta__who { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.article-meta__name { color: #fff; font-weight: 800; font-size: 15px; }
.article-meta__sub { color: rgba(255,255,255,0.62); font-size: 13px; }
.article-meta__time {
  font-size: 12.5px; color: rgba(255,255,255,0.58);
  font-family: var(--font-mono); letter-spacing: 0.01em;
}

/* divisória sob o cabeçalho */
.article-rule { height: 1px; background: rgba(255,255,255,0.1); margin: 0 0 40px; }

/* capa do artigo: FOTO REAL + tratamento de marca por cima */
.article-cover {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 6; min-height: 200px;
  border-radius: 20px; margin: 6px 0 44px;
  background: #0C1322;
  display: flex; align-items: flex-end; padding: 26px 30px;
  border: 1px solid rgba(255,255,255,0.08);
}
.article-cover__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
}
/* tratamento de marca: escurece embaixo (legibilidade do chip) + tinge de azul Karppa */
.article-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,19,34,0.05) 35%, rgba(12,19,34,0.55) 80%, rgba(12,19,34,0.9) 100%),
    linear-gradient(105deg, rgba(20,24,94,0.5) 0%, rgba(12,19,34,0) 58%);
}
.article-cover__cat {
  position: relative; z-index: 2;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
  color: #fff; padding: 8px 16px; border-radius: 999px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
@media (max-width: 680px) { .article-cover { aspect-ratio: 16 / 9; padding: 20px 22px; } }

/* ---------- Corpo do artigo (tipografia) ---------- */
.article-body { color: rgba(255,255,255,0.95); font-size: 18px; line-height: 1.8; }
/* força o branco: o styles.css global define p/li com cor escura (p/ fundo claro) */
.article-body p, .article-body li { color: rgba(255,255,255,0.95); }
.article-body > p { margin: 0 0 26px; }
.article-body > p:first-of-type { font-size: 19px; }
.article-body h2 {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3.2vw, 31px); letter-spacing: -0.02em; line-height: 1.2;
  margin: 52px 0 18px; scroll-margin-top: 90px;
}
.article-body h3 {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 23px); letter-spacing: -0.01em; line-height: 1.3;
  margin: 38px 0 14px; scroll-margin-top: 90px;
}
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 4px; list-style: none; }
.article-body ul > li, .article-body ol > li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
}
.article-body ul > li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500);
}
.article-body ol { counter-reset: li; }
.article-body ol > li { counter-increment: li; }
.article-body ol > li::before {
  content: counter(li); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(230,57,5,0.14); border: 1px solid rgba(230,57,5,0.4);
  color: var(--orange-300); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.article-body a {
  color: var(--orange-300); border-bottom: 1px solid rgba(230,57,5,0.32);
  transition: border-color 160ms;
}
.article-body a:hover { border-bottom-color: var(--orange-300); }
/* botões NÃO herdam o estilo de link (laranja + sublinhado): texto branco puro */
.article-body a.btn { color: #fff; border-bottom: 0; }
.article-body a.btn:hover { color: #fff; border-bottom: 0; }
.article-body strong { color: #fff; font-weight: 700; }
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 32px 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--orange-500);
  color: #fff; font-size: 21px; line-height: 1.5; font-weight: 500; font-style: italic;
}
.article-body figure { margin: 36px 0; }
.article-body figure img { width: 100%; border-radius: 14px; display: block; border: 1px solid rgba(255,255,255,0.08); }
.article-body figcaption { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; margin-top: 10px; font-family: var(--font-mono); }
.article-body hr { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 44px 0; }

/* Callout "ponto-chave" */
.callout {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--orange-500);
  border-radius: 14px; padding: 22px 26px; margin: 34px 0;
}
.callout__label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--orange-300); display: block; margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.92); }

/* ============================================================
   CARD DE PRODUTO (divulgação cruzada)
   ============================================================ */
.promo {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: 20px; overflow: hidden; margin: 40px 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(140deg, #232A86, #14185E 60%, #0E1240);
  position: relative;
}
.promo--media { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 680px) { .promo--media { grid-template-columns: 1fr; } }
.promo__inner { padding: 32px 34px; position: relative; z-index: 1; }
.promo__kicker {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--orange-300); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.promo__title {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px;
}
.promo__text { color: rgba(255,255,255,0.88); font-size: 15.5px; line-height: 1.65; margin: 0 0 22px; }
.promo__media { position: relative; min-height: 200px; background: #0A0A12; overflow: hidden; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* koi watermark no card só-texto */
.promo:not(.promo--media) .promo__inner::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 180px; height: 180px; opacity: 0.1; transform: rotate(-10deg); pointer-events: none;
  background: url("../img/karppa-symbol.svg") no-repeat center / contain;
}
.promo--formacao { background: linear-gradient(140deg, #1C229C, #131A40 60%, #0C1322); }
.promo--evento { background: linear-gradient(140deg, #2738BF, #1C229C 55%, #14185E); }

/* ============================================================
   AUTHOR BOX (E-E-A-T)
   ============================================================ */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 26px 28px; margin: 48px 0 8px;
}
.author-box__avatar {
  width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  /* foto enquadrada no rosto — só no blog */
  background: #0A0A12 url("../img/nicolas.webp") no-repeat 50% 10% / 230%;
}
.author-box__name { color: #fff; font-weight: 800; font-size: 17px; margin: 0 0 2px; }
.author-box__role { color: var(--orange-300); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.author-box__bio { color: rgba(255,255,255,0.66); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ============================================================
   CTA DE FECHAMENTO  →  Sessão Estratégica
   ============================================================ */
.article-cta {
  text-align: center; border-radius: 24px; padding: 52px 40px; margin: 40px 0;
  background: radial-gradient(120% 140% at 50% 0%, #1C229C 0%, #14185E 45%, #0C1322 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.article-cta h2 {
  color: #fff; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px;
}
.article-cta p { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0 auto 28px; }

/* ============================================================
   ARTIGOS RELACIONADOS
   ============================================================ */
.related { padding: 56px 0 20px; }
.related h2 {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 24px; letter-spacing: -0.015em; margin: 0 0 26px; text-align: center;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
