/* ════════════════════════════════════════════════
   BLOG — Lucas Gomes Faria | Psicólogo
   Estilos compartilhados (listagem + artigo)
   Reaproveita os tokens e a linguagem visual do site
   ════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      oklch(97.2% 0.009 68);
  --cream-mid:  oklch(94%   0.014 65);
  --cream-dark: oklch(88%   0.022 60);
  --brown:      oklch(33%   0.072 50);
  --brown-mid:  oklch(48%   0.065 50);
  --brown-light:oklch(72%   0.042 55);
  --brown-pale: oklch(92%   0.020 58);
  --text:       oklch(22%   0.04  50);
  --text-soft:  oklch(48%   0.04  52);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream); color: var(--text);
  font-family: var(--sans); font-weight: 300;
  line-height: 1.7; overflow-x: hidden;
}

a { color: inherit; }

/* ─── NAV (igual ao site) ─── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 76px;
  background: oklch(97.2% 0.009 68 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(88% 0.022 60 / 0.5);
  transition: box-shadow 0.3s;
}
#main-nav.scrolled { box-shadow: 0 2px 24px oklch(33% 0.072 50 / 0.08); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: var(--serif); font-size: 13.5px; font-weight: 500;
  color: var(--brown); line-height: 1.2; white-space: nowrap;
}
.nav-logo-sub {
  font-size: 9.5px; font-weight: 300; letter-spacing: 0.14em;
  color: var(--brown-mid); text-transform: uppercase; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--text-soft);
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--brown);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brown); font-weight: 500; }

.btn-cta-nav {
  background: var(--brown); color: var(--cream) !important;
  padding: 9px 18px; border-radius: 2px;
  font-size: 12.5px !important; font-weight: 400 !important; letter-spacing: 0.05em !important;
  text-decoration: none; transition: background 0.2s !important; white-space: nowrap;
}
.btn-cta-nav::after { display: none !important; }
.btn-cta-nav:hover { background: var(--brown-mid) !important; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--brown); margin: 5px 0; transition: all 0.3s; }

/* ─── SECTION COMMON ─── */
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown-mid); font-weight: 400; margin-bottom: 18px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--brown-light); }

/* ─── BLOG HEADER ─── */
.blog-hero {
  padding: 140px 5% 56px; max-width: 1200px; margin: 0 auto;
}
.blog-hero .section-label { justify-content: flex-start; }
.blog-hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 4vw, 58px);
  font-weight: 300; line-height: 1.2; color: var(--brown);
  letter-spacing: -0.01em; margin-bottom: 36px; max-width: 26ch;
}
.blog-hero h1 em { font-style: italic; }
.blog-hero p {
  font-size: 16.5px; color: var(--text-soft); line-height: 1.75;
  max-width: 560px; font-weight: 300;
}

/* ─── CATEGORY FILTER ─── */
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 5% 40px; max-width: 1200px; margin: 0 auto;
}
.blog-cat {
  font-size: 12px; letter-spacing: 0.04em; color: var(--text-soft);
  background: none; border: 1px solid var(--cream-dark); border-radius: 100px;
  padding: 8px 18px; cursor: pointer; transition: all 0.2s; font-family: var(--sans);
  text-decoration: none;
}
.blog-cat:hover { border-color: var(--brown-light); color: var(--brown); }
.blog-cat.active { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* ─── POSTS GRID ─── */
.blog-grid-section { padding: 0 5% 110px; max-width: 1200px; margin: 0 auto; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px;
}

.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--cream-mid); border-radius: 4px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px oklch(33% 0.072 50 / 0.10); border-color: var(--cream-dark); }
.post-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-dark); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; filter: sepia(12%) contrast(1.02); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: oklch(97.2% 0.009 68 / 0.92); color: var(--brown);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; font-weight: 400;
}
.post-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-light); margin-bottom: 12px; }
.post-card-title {
  font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--brown);
  line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em;
}
.post-card-excerpt { font-size: 14px; color: var(--text-soft); line-height: 1.7; font-weight: 300; margin-bottom: 20px; flex: 1; }
.post-card-more {
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--brown);
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  border-bottom: 1px solid var(--brown-light); padding-bottom: 2px; align-self: flex-start;
  transition: gap 0.2s;
}
.post-card:hover .post-card-more { gap: 11px; }
.post-card-more svg { width: 13px; height: 13px; }

/* Destaque (primeiro post, largura total) */
.post-card.featured {
  grid-column: 1 / -1; flex-direction: row; min-height: 340px;
}
.post-card.featured .post-card-thumb { flex: 0 0 50%; aspect-ratio: auto; }
.post-card.featured .post-card-body {
  padding: 48px 56px; justify-content: flex-start;
  display: flex; flex-direction: column; gap: 0;
}
.post-card.featured .post-card-meta { margin-bottom: 14px; }
.post-card.featured .post-card-title {
  font-size: clamp(26px, 2.8vw, 36px);
  margin-bottom: 16px; flex-shrink: 0;
}
.post-card.featured .post-card-excerpt {
  font-size: 15px; max-width: 48ch; margin-bottom: 24px; flex: 1;
}
.post-card.featured .post-card-more { margin-top: auto; }

/* ─── EMPTY STATE ─── */
.blog-empty {
  border: 1px dashed var(--cream-dark); border-radius: 6px;
  padding: 80px 40px; text-align: center; background: var(--cream-mid);
}
.blog-empty-mark { font-family: var(--serif); font-size: 72px; line-height: 0.5; color: var(--brown-light); display: block; margin-bottom: 30px; }
.blog-empty h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--brown); margin-bottom: 14px; }
.blog-empty p { font-size: 15px; color: var(--text-soft); font-weight: 300; max-width: 460px; margin: 0 auto 28px; line-height: 1.7; }
.blog-empty .btn-primary { display: inline-flex; }

.btn-primary {
  background: var(--brown); color: var(--cream);
  padding: 14px 30px; border-radius: 2px;
  font-size: 13.5px; font-weight: 400; letter-spacing: 0.07em;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--brown-mid); transform: translateY(-2px); }

/* ════════════════════════════════════════════════
   ARTIGO (post individual)
   ════════════════════════════════════════════════ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 130px 5% 40px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-soft); margin-bottom: 32px; letter-spacing: 0.02em; }
.breadcrumb a { text-decoration: none; color: var(--brown-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb span { color: var(--brown-light); }

.article-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown-mid); margin-bottom: 18px;
}
.article-title {
  font-family: var(--serif); font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 300; line-height: 1.15; color: var(--brown);
  letter-spacing: -0.01em; margin-bottom: 24px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding-bottom: 32px; margin-bottom: 0; border-bottom: 1px solid var(--cream-dark);
  font-size: 13px; color: var(--text-soft);
}
.article-author { display: flex; align-items: center; gap: 11px; }
.article-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--cream-dark); }
.article-author-name { color: var(--brown); font-weight: 400; }
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brown-light); }

.article-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px;
  margin: 36px 0 8px; background: var(--cream-dark); filter: sepia(10%) contrast(1.02);
}
.article-hero-cap { font-size: 12px; color: var(--brown-light); text-align: center; margin-bottom: 8px; font-style: italic; }

/* Corpo do artigo — tipografia de leitura */
.article-body { font-size: 17.5px; line-height: 1.85; color: var(--text); font-weight: 300; }
.article-body > * + * { margin-top: 1.5em; }
.article-body p { text-wrap: pretty; }
.article-body h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--brown);
  line-height: 1.25; margin-top: 2em; letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--brown);
  margin-top: 1.7em;
}
.article-body strong { color: var(--brown); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brown-light); }
.article-body a:hover { text-decoration-color: var(--brown); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-top: 0.6em; }
.article-body li::marker { color: var(--brown-light); }
.article-body blockquote {
  border-left: 2px solid var(--brown); background: var(--brown-pale);
  padding: 22px 28px; border-radius: 2px; margin: 2em 0;
  font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--brown); line-height: 1.5;
}
.article-body figure img { width: 100%; border-radius: 4px; display: block; }
.article-body figcaption { font-size: 12.5px; color: var(--brown-light); text-align: center; margin-top: 10px; font-style: italic; }

/* CTA ao final do artigo */
.article-cta {
  margin: 64px auto 0; max-width: 760px; padding: 0 5%;
}
.article-cta-inner {
  background: var(--brown); border-radius: 4px; padding: 48px 48px;
  text-align: center; color: var(--cream);
}
.article-cta-inner h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--cream); margin-bottom: 12px; }
.article-cta-inner p { font-size: 15px; color: oklch(82% 0.025 60); font-weight: 300; line-height: 1.7; max-width: 44ch; margin: 0 auto 26px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; padding: 15px 30px; border-radius: 2px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.06em;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1eb856; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; }

/* Voltar ao blog */
.article-back { max-width: 760px; margin: 48px auto 0; padding: 0 5%; }
.article-back a { font-size: 13px; color: var(--brown-mid); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.2s; }
.article-back a:hover { gap: 12px; color: var(--brown); }
.article-back svg { width: 14px; height: 14px; }

/* ─── FOOTER (igual ao site) ─── */
footer {
  background: var(--text); padding: 48px 5%; margin-top: 90px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo img { height: 32px; filter: invert(1) sepia(1) saturate(0) brightness(0.85); }
.footer-nav { display: flex; gap: 28px; list-style: none; }
.footer-nav a { font-size: 12.5px; color: oklch(65% 0.02 60); text-decoration: none; font-weight: 300; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cream); }
.footer-copy { font-size: 11.5px; color: oklch(50% 0.02 60); font-weight: 300; }

/* Floating WhatsApp */
#wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45); text-decoration: none;
  transition: transform 0.2s;
}
#wa-float:hover { transform: scale(1.1); }
#wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ─── ESTILOS COMPARTILHADOS DE ARTIGO ─── */

/* Lista de itens de sessão (seções com título em bold + texto) */
.session-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 2em 0;
}
.session-list li {
  padding: 22px 28px;
  background: var(--cream-mid);
  border-left: 2px solid var(--brown);
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 0;
  color: var(--text-soft);
}
.session-list li strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 6px;
}

/* Referências bibliográficas */
.article-refs {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}
.article-refs h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
  font-weight: 400;
  margin-bottom: 18px;
}
.article-refs ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-refs li {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
  margin-top: 0;
}
.article-refs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brown-light);
}

/* ─── ANIM ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { flex-direction: column; min-height: auto; }
  .post-card.featured .post-card-thumb { flex: none; aspect-ratio: 16/10; width: 100%; }
  .post-card.featured .post-card-body { padding: 32px 30px; justify-content: flex-start; }
  #main-nav .nav-links { display: none; }
  #main-nav .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--cream); padding: 24px 5%;
    border-bottom: 1px solid var(--cream-dark); gap: 20px; z-index: 99;
  }
  #main-nav .nav-hamburger { display: block; }
  footer { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .article-body { font-size: 16.5px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 120px; }
}
