/* ==========================================================================
   Getsêmani — Estilos do Blog
   Reaproveita a identidade do site (cinza chumbo + dourado, Georgia + sans).
   Arquivo único de estilos para todas as páginas do blog: listagem e artigos.
   Sem build, sem backend — basta abrir o HTML.
   ========================================================================== */

:root {
  --radius: 10px;
  --maxw: 1160px;
  --maxw-read: 760px;
  /* Duração do fade do reveal. Fica em variável porque os cards precisam
     repetir essa transição na declaração deles (ver "Reveal no scroll"). */
  --reveal-t: .7s;

  --bg: #1b1c20;
  --bg-alt: #232429;
  --bg-card: #26272c;
  --text: #e9e8e4;
  --text-muted: #9d9da2;
  --gold: #c6a054;
  --gold-soft: #ddbc72;
  --border: rgba(198, 160, 84, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4, .brand-word { font-family: 'Georgia', 'Times New Roman', serif; }

p, a, span, li, button, input, textarea, time, small, figcaption, blockquote {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal no scroll (fade + subida) ----------
   A subida usa a propriedade independente `translate`, não `transform`.
   Motivo: `transform` já é do hover e do tilt 3D; quando o reveal disputava
   essa mesma propriedade, quem declarasse `transition` por último apagava a do
   outro. Separadas, as duas animações convivem. O bloco fica ANTES dos cards
   porque cada card repete `opacity`/`translate` na transition dele — a
   shorthand não soma, substitui, e a última declaração é a que vale. */
.reveal { opacity: 0; translate: 0 22px; transition: opacity var(--reveal-t) ease, translate var(--reveal-t) ease; will-change: opacity, translate; }
.reveal.in { opacity: 1; translate: none; }
/* No celular os grids viram 1 coluna e cada item entra sozinho, com o dedo
   rolando rápido: fade mais curto e percurso menor para o conteúdo não
   terminar de aparecer telas depois de já ter passado. */
@media (max-width: 768px) {
  :root { --reveal-t: .45s; }
  .reveal { translate: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; translate: none !important; transition: none !important; }
}

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  font-size: 12.5px;
}
.topbar-contact { display: flex; gap: 26px; }
.topbar-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-muted); transition: color .2s;
}
.topbar-contact a:hover { color: var(--gold); }
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a {
  width: 24px; height: 24px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--text-muted); transition: all .2s;
}
.topbar-socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
header::after {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.55;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon img { display: block; }
.brand-word {
  font-size: 22px; letter-spacing: 0.5px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tagline {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-top: 2px;
}
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav ul a {
  position: relative; font-size: 14px; color: var(--text-muted);
  padding-bottom: 5px; transition: color .2s;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width .25s ease;
}
.nav ul a:hover, .nav ul a.active { color: var(--gold); }
.nav ul a:hover::after, .nav ul a.active::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold) !important; font-size: 13px; white-space: nowrap;
  transition: all .2s;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--bg) !important; box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- Blog hero (compacto) ---------- */
.blog-hero {
  padding: 74px 24px 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--gold) 0%, transparent 55%);
  opacity: 0.07; pointer-events: none;
}
.blog-hero .section-tag {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.blog-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2; max-width: 760px; margin: 0 auto 16px;
}
.blog-hero h1 span {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p {
  max-width: 600px; margin: 0 auto; color: var(--text-muted);
  font-size: 16px; line-height: 1.6;
}

/* ---------- Listagem de artigos ---------- */
.posts { padding: 20px 0 80px; }

.post-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
  /* opacity/translate repetidos aqui para não apagar o reveal (ver .reveal). */
  transition: transform .18s ease, border-color .25s, box-shadow .25s, opacity var(--reveal-t) ease, translate var(--reveal-t) ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Brilho dourado radial que segue o cursor (setado via --mx/--my no JS). */
.post-featured::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: var(--radius);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(198,160,84,0.14), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.post-featured:hover { border-color: var(--gold); box-shadow: 0 22px 44px rgba(0,0,0,0.4); }
.post-featured:hover::before { opacity: 1; }
.post-featured-media {
  background: linear-gradient(135deg, #202127, #2c2d33);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; min-height: 260px;
  position: relative;
}
.post-featured-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--gold) 0%, transparent 60%);
  opacity: 0.10;
}
.post-featured-media img { width: 100%; max-width: 230px; height: auto; opacity: 0.95; position: relative; z-index: 1; }
.post-featured-body { padding: 44px 40px; display: flex; flex-direction: column; }
.post-eyebrow {
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.post-eyebrow .dot { color: var(--border); }
.post-featured-body h2 { font-size: 27px; line-height: 1.3; margin-bottom: 14px; }
.post-featured-body p { color: var(--text-muted); line-height: 1.7; font-size: 15px; margin-bottom: 24px; }
.post-readmore {
  color: var(--gold); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
}
.post-readmore svg { transition: transform .2s; }
.post-featured:hover .post-readmore svg { transform: translateX(4px); }

/* Grade de cards padrão (para novos artigos) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1100px;
}
.post-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  /* opacity/translate repetidos aqui para não apagar o reveal (ver .reveal). */
  transition: transform .18s ease, border-color .25s, box-shadow .25s, opacity var(--reveal-t) ease, translate var(--reveal-t) ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Brilho dourado radial que segue o cursor (setado via --mx/--my no JS). */
.post-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(198,160,84,0.16), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.post-card > * { position: relative; z-index: 1; }
.post-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 22px 44px rgba(0,0,0,0.4); }
.post-card:hover::after { opacity: 1; }
.post-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 12px; }
.post-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.post-card .post-readmore { font-size: 13.5px; }

/* ---------- Próximos temas ---------- */
.next-topics { padding: 62px 0 90px; background: var(--bg-alt); }
.next-topics .section-tag {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px; text-align: center;
}
.next-topics h2 { font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 12px; }
.next-topics .lead {
  text-align: center; color: var(--text-muted); font-size: 15px;
  max-width: 560px; margin: 0 auto 46px; line-height: 1.7;
}
.topics-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; perspective: 1100px; }
.topic-item {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
  /* opacity/translate repetidos aqui para não apagar o reveal (ver .reveal). */
  transition: transform .18s ease, border-color .25s, box-shadow .25s, opacity var(--reveal-t) ease, translate var(--reveal-t) ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Brilho dourado radial que segue o cursor (setado via --mx/--my no JS). */
.topic-item::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(198,160,84,0.15), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.topic-item > * { position: relative; z-index: 1; }
.topic-item:hover { border-color: var(--gold); box-shadow: 0 16px 32px rgba(0,0,0,0.34); }
.topic-item:hover::after { opacity: 1; }
.topic-item .idx { color: var(--gold); font-family: 'Georgia', serif; font-size: 20px; line-height: 1; flex-shrink: 0; }
.topic-item h4 { font-size: 15.5px; margin-bottom: 5px; line-height: 1.4; }
.topic-item p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Artigo ---------- */
/* Gutter lateral (24px) para o texto não encostar nas bordas no celular.
   No desktop não muda nada: a coluna de leitura tem max-width e fica centrada. */
.article-wrap { padding: 40px 24px 80px; }
.breadcrumb {
  max-width: var(--maxw-read); margin: 0 auto 28px;
  font-size: 12.5px; color: var(--text-muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

.article-head { max-width: var(--maxw-read); margin: 0 auto 34px; }
.article-head .post-eyebrow { justify-content: flex-start; }
.article-head h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.22; margin-bottom: 18px; }
.article-meta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.article-meta .author { color: var(--text); }

.article-lead {
  max-width: var(--maxw-read); margin: 0 auto 10px;
  font-size: 19px; line-height: 1.65; color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
}

.article-body { max-width: var(--maxw-read); margin: 0 auto; }
.article-body h2 {
  font-size: 25px; margin: 44px 0 16px; line-height: 1.3;
  padding-top: 10px;
}
.article-body h3 { font-size: 19px; margin: 30px 0 12px; color: var(--gold-soft); }
.article-body p { font-size: 16.5px; line-height: 1.85; color: #d8d7d2; margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 4px; list-style: none; }
.article-body li {
  font-size: 16px; line-height: 1.75; color: #d8d7d2;
  padding: 6px 0 6px 24px; position: relative;
}
.article-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before { content: counter(item); position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold-soft); }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 24px; margin: 26px 0;
  font-size: 18px; line-height: 1.7; color: var(--text); font-style: italic;
}

.callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 22px 26px; margin: 30px 0;
}
.callout strong { color: var(--gold-soft); display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: .3px; }
.callout p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Imagens do artigo ----------
   .article-capa e a imagem de abertura (logo abaixo do titulo); .article-figure
   sao as imagens que o autor insere no meio do texto pelo painel. */
.article-capa, .article-figure {
  max-width: var(--maxw-read); margin: 0 auto 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.article-figure { margin: 30px auto; }
.article-capa img, .article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption {
  padding: 12px 20px 14px; font-size: 13px; line-height: 1.6;
  color: var(--text-muted); border-top: 1px solid var(--border);
}

/* Aviso legal / disclaimer do artigo */
.article-disclaimer {
  max-width: var(--maxw-read); margin: 40px auto 0;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.7;
  padding-top: 18px; border-top: 1px solid var(--border); font-style: italic;
}

/* CTA ao fim do artigo */
.article-cta {
  max-width: var(--maxw-read); margin: 48px auto 0;
  background: linear-gradient(135deg, #23242a, #2b2c32);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 40px; text-align: center;
}
.article-cta h3 { font-size: 23px; margin-bottom: 12px; }
.article-cta p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 26px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-primary {
  padding: 14px 28px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--bg); border: none;
}
.btn-primary:hover { opacity: 0.92; }

.article-back { max-width: var(--maxw-read); margin: 40px auto 0; }
.article-back a { color: var(--text-muted); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.article-back a:hover { color: var(--gold); }

/* ---------- Instagram ---------- */
.insta {
  padding: 66px 0 20px; text-align: center;
  border-top: 1px solid var(--border);
}
.insta .section-tag {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.insta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.insta p { color: var(--text-muted); font-size: 15px; margin: 0 auto 34px; max-width: 500px; line-height: 1.7; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 760px; margin: 0 auto 30px; }
.insta-cell {
  aspect-ratio: 1/1; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .25s; position: relative; overflow: hidden;
}
.insta-cell::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, var(--gold) 0%, transparent 65%);
  opacity: 0.06;
}
.insta-cell:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.insta-cell img { width: 40px; height: 40px; opacity: 0.5; }
.insta-follow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); font-size: 14px; transition: all .2s;
}
.insta-follow:hover {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ---------- Toast (aviso de "copiado" no fallback de e-mail/telefone) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px;
  transform: translate(-50%, 12px);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 11px 20px; border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13px; box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35); z-index: 90;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* O hover fica restrito ao ponteiro fino: no toque ele "gruda" depois do tap
   e o scale(1.08) brigaria com o translateY que esconde o botão no celular. */
@media (pointer: fine) {
  .wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 0 0 6px rgba(37,211,102,0.2);
  }
}
/* No celular o botão sai de cena ao rolar para baixo e volta ao rolar para
   cima, liberando a leitura. No desktop nada muda: o JS só aplica .wa-hidden
   abaixo de 768px. */
@media (max-width: 768px) {
  .wa-float { transition: transform .28s ease, opacity .28s ease, box-shadow .2s ease; }
  .wa-float.wa-hidden { transform: translateY(96px); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-size: 16px; color: var(--gold); }
.footer-meta { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 12.5px; color: var(--text-muted); text-align: right; line-height: 1.7; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.01em; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Responsivo ---------- */
/* Com 7 itens no menu, o nav precisa de ~975px. Abaixo disso, colapsa no
   hambúrguer para não espremer/quebrar em duas linhas. */
@media (max-width: 1024px) {
  .nav ul { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-media { min-height: 180px; padding: 36px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .topics-list { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (max-width: 700px) {
  .topbar-contact a:last-child { display: none; }
  .footer-grid { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
}
/* No celular o header fica enxuto (marca + menu). O contato segue
   garantido pelo botão flutuante do WhatsApp e pelos ícones da topbar. */
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .nav { padding: 14px 20px; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-featured-body { padding: 32px 26px; }
  .article-cta { padding: 32px 24px; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

/* Em ponteiro fino, o tilt 3D assume — transição curta pra não ter lag. */
@media (pointer: fine) {
  .post-featured.tilting,
  .post-card.tilting,
  .topic-item.tilting { transition: transform .05s linear, border-color .25s, box-shadow .25s, opacity var(--reveal-t) ease, translate var(--reveal-t) ease; }
}
