/* =========================================================
   Dr. Boechat — Blog & páginas de tratamento
   Estende css/boechat.css. Compartilhado por Blog, Artigo e
   páginas de tratamento individuais.
   ========================================================= */

:root { --container: 1240px; --gutter: 80px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
section { padding: var(--s-8) 0; }

.eyebrow-purple { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple-700); }
.eyebrow-light { color: var(--purple-200); }
.ic-inline { width: 16px; height: 16px; stroke-width: 1.75; }

/* ── Nav (idêntica à landing) ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a.active { color: var(--purple-700); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -2px; width: 14px; height: 4px; background: var(--purple-700); border-radius: 2px; }
.nav-cta { padding: 12px 22px; font-size: 13px; }

/* ── Blog hero ── */
.blog-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.blog-hero h1 { font-size: 60px; line-height: 66px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; }
.blog-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--purple-700); }
.blog-hero p { font-size: 18px; line-height: 29px; color: var(--ink-2); max-width: 560px; }

/* ── Category filter pills ── */
.cat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-5); }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--purple-200); background: var(--paper); color: var(--ink-2); font-family: var(--font-sans); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.cat-pill:hover { border-color: var(--purple-500); color: var(--purple-700); }
.cat-pill.active { background: var(--purple-700); border-color: var(--purple-700); color: white; }
.cat-pill .cnt { font-family: var(--font-mono); font-size: 11px; opacity: 0.65; }

/* ── Featured article ── */
.feat-article { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 24px; overflow: hidden; background: var(--purple-700); border: 1.5px solid var(--purple-700); text-decoration: none; transition: background var(--dur-base) var(--ease-out); }
.feat-article:hover { opacity: 1; background: var(--purple-800); }
.feat-article .txt { padding: 48px; display: flex; flex-direction: column; }
.feat-article .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-4); }
.feat-article .tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.28); color: white; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.feat-article .meta-dim { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--purple-200); }
.feat-article h2 { font-size: 38px; line-height: 46px; font-weight: 700; letter-spacing: -0.015em; color: white; margin-bottom: 14px; }
.feat-article h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--purple-200); }
.feat-article p { font-size: 16px; line-height: 26px; color: rgba(255,255,255,0.78); flex: 1; }
.feat-article .read { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-5); color: white; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.feat-article .visual { position: relative; background: var(--purple-800); border-left: 1.5px solid rgba(255,255,255,0.1); min-height: 320px; overflow: hidden; }
.feat-article .visual .grid-deco { position: absolute; inset: 32px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; }
.feat-article .visual .gsq { border: 1.5px solid rgba(255,255,255,0.12); border-radius: 12px; }
.feat-article .visual .gsq.on { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }

/* ── Article grid ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--s-6); }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--purple-200); border-radius: 20px; padding: 28px; min-height: 300px; text-decoration: none; transition: border-color var(--dur-base) var(--ease-out); position: relative; }
.post-card:hover { border-color: var(--purple-500); opacity: 1; }
.post-card .top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.post-card .tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--purple-050); border: 1px solid var(--purple-100); color: var(--purple-700); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.post-card h3 { font-size: 21px; line-height: 28px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.005em; }
.post-card p { font-size: 14.5px; line-height: 23px; color: var(--ink-2); flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 8px; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.post-card .meta .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--purple-300); }
.post-card .meta .read-lab { margin-left: auto; color: var(--purple-700); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.post-card[hidden] { display: none; }

/* Card ligado a tratamento: rodapé com link cruzado */
.post-card .treat-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--purple-500); }

/* ── Empty state ── */
.empty-cat { display: none; text-align: center; padding: var(--s-7) 0; color: var(--ink-3); font-size: 15px; }

/* ── Artigo (leitura) ── */
.article-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.article-head .crumbs { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: var(--s-5); }
.article-head .crumbs a { color: var(--purple-700); }
.article-head .crumbs .sep { color: var(--purple-300); }
.article-head h1 { font-size: 52px; line-height: 60px; font-weight: 800; letter-spacing: -0.02em; max-width: 860px; margin: 14px 0 18px; }
.article-head h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--purple-700); }
.article-head .standfirst { font-size: 20px; line-height: 32px; color: var(--ink-2); max-width: 720px; }
.article-head .byline { display: flex; align-items: center; gap: 14px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); max-width: 720px; }
.article-head .byline .avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--purple-100); border: 1.5px solid var(--purple-300); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--purple-700); font-size: 14px; }
.article-head .byline .who { font-size: 14px; font-weight: 700; color: var(--ink); }
.article-head .byline .role { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.article-head .byline .when { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--ink-3); line-height: 19px; }

.article-body { max-width: 720px; margin: 0 auto; padding: var(--s-7) var(--gutter); box-sizing: content-box; }
.article-body h2 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; margin: var(--s-6) 0 var(--s-3); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 17.5px; line-height: 30px; color: var(--ink-2); margin-bottom: var(--s-3); }
.article-body p strong { color: var(--ink); }
.article-body ul { margin: 0 0 var(--s-3); padding-left: 22px; color: var(--ink-2); font-size: 17px; line-height: 29px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--purple-500); }
.pull-quote { border-left: 3px solid var(--purple-700); padding: 8px 0 8px 28px; margin: var(--s-5) 0; font-family: var(--font-serif); font-style: italic; font-size: 27px; line-height: 38px; color: var(--purple-700); }

/* Caixa de conexão com tratamento (dentro do artigo) */
.treat-connect { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; background: var(--purple-050); border: 1.5px solid var(--purple-200); border-radius: 20px; padding: 28px 32px; margin: var(--s-6) 0; }
.treat-connect .eb { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple-500); margin-bottom: 6px; }
.treat-connect h4 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.treat-connect p { font-size: 14px; line-height: 22px; color: var(--ink-2); margin: 0; }
.treat-connect .actions { display: flex; flex-direction: column; gap: 10px; }
.treat-connect .btn { font-size: 13px; padding: 11px 22px; }

/* CTA final do artigo */
.article-cta { background: var(--purple-700); border-radius: 24px; padding: 48px; margin: var(--s-7) auto 0; max-width: 720px; text-align: center; color: white; }
.article-cta h3 { color: white; font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.article-cta h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--purple-200); }
.article-cta p { font-size: 15.5px; line-height: 25px; color: rgba(255,255,255,0.78); max-width: 460px; margin: 0 auto var(--s-5); }
.article-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Relacionados */
.related-band { background: var(--cream); border-top: 1px solid var(--line); }
.related-band .head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--s-5); }
.related-band h2 { font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -0.015em; }
.related-band .all-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-700); }

/* ── Footer (idêntico à landing) ── */
.footer { background: var(--purple-900); color: rgba(255,255,255,0.7); padding: var(--s-6) 0 var(--s-5); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer h5 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--purple-200); margin-bottom: var(--s-3); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: white; }
.footer-logo { height: 34px; margin-bottom: var(--s-4); }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 20px; margin-top: var(--s-3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── Responsivo ── */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-article { grid-template-columns: 1fr; }
  .feat-article .visual { min-height: 200px; border-left: 0; border-top: 1.5px solid rgba(255,255,255,0.1); }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; }
  section { padding: var(--s-7) 0; }
  .nav-links { display: none; }
  .nav-inner { padding-top: 14px; padding-bottom: 14px; }
  .nav-logo { height: 26px; }
  .blog-hero h1 { font-size: 38px; line-height: 44px; }
  .post-grid { grid-template-columns: 1fr; }
  .feat-article .txt { padding: 28px; }
  .feat-article h2 { font-size: 27px; line-height: 34px; }
  .article-head h1 { font-size: 34px; line-height: 41px; }
  .article-head .standfirst { font-size: 17px; line-height: 27px; }
  .article-head .byline .when { display: none; }
  .article-body { padding: var(--s-6) var(--gutter); }
  .article-body p { font-size: 16px; line-height: 27px; }
  .pull-quote { font-size: 22px; line-height: 32px; }
  .treat-connect { grid-template-columns: 1fr; }
  .treat-connect .actions { flex-direction: row; flex-wrap: wrap; }
  .article-cta { padding: 32px 24px; }
  .article-cta h3 { font-size: 24px; line-height: 31px; }
  .article-cta .row .btn { width: 100%; justify-content: center; }
  .related-band .head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
