/* ===== SCAVI BLOG — Estética ===== */

/* Reset leve pra páginas de conteúdo (sem preloader/cursor/particles) */
.blog-page { min-height: 100vh; }

/* O seletor PT/EN usa a tradução automática sem exibir a barra externa. */
.goog-te-banner-frame,
.skiptranslate iframe,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.lang-switch.notranslate { flex-shrink: 0; }

@media (max-width: 480px) {
  .blog-page .lang-switch { padding: 3px; gap: 2px; }
  .blog-page .lang-btn { padding: 5px 7px; font-size: 10px; gap: 4px; }
  .blog-page .lang-btn svg { width: 16px; height: 11px; }
}

/* ---------- HEADER DO BLOG ---------- */
.blog-hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-l);
  padding: 8px 18px;
  border: 1px solid var(--brd-g);
  border-radius: var(--radius-pill);
  background: var(--gold-glow2);
  margin-bottom: 28px;
}
.blog-hero h1 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  color: var(--txt);
  max-width: 900px;
  margin: 0 auto 22px;
}
.blog-hero h1 .gold { color: var(--gold); font-style: italic; }
.blog-hero-sub {
  font-family: var(--body);
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--txt2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- GRID DE POSTS ---------- */
.blog-grid-section { padding: 40px 0 120px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--brd-g);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--brd-g2);
  box-shadow: var(--shadow-card-hover);
}
.post-card-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card3));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--gold-glow2), transparent 60%);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #08130D;
  background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.post-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--txt3);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.post-card h2 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--txt);
  margin: 0 0 12px;
}
.post-card p {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--txt2);
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}
.post-card-link {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-l);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card:hover .post-card-link svg { transform: translateX(4px); }
.post-card-link svg { transition: transform .3s var(--ease); }

/* ---------- ARTIGO ---------- */
.article-wrap { padding: 140px 0 100px; }
.article-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--txt3);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--txt2); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: var(--gold-l); }
.breadcrumb span { color: var(--txt4); }

.article-tag {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 18px;
}
.article-inner h1 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  color: var(--txt);
  margin: 0 0 24px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--txt3);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--brd-g);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt4); }
.article-meta strong { color: var(--txt2); font-weight: 600; }

/* Prosa */
.prose { font-family: var(--body); color: var(--txt); }
.prose > p { font-size: 1.08rem; line-height: 1.85; color: #C9D3CB; margin: 0 0 24px; }
.prose .lead { font-size: 1.22rem; line-height: 1.7; color: var(--txt); margin-bottom: 34px; }
.prose h2 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  color: var(--txt);
  margin: 52px 0 20px;
}
.prose h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--txt);
  margin: 38px 0 16px;
}
.prose a { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold-xl); }
.prose strong { color: var(--txt); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.prose ul li, .prose ol li {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #C9D3CB;
  padding-left: 32px;
  margin-bottom: 14px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
}
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-l);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brd-g);
  border-radius: 6px;
  background: var(--gold-glow2);
}
.prose blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { font-family: var(--heading); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--txt); margin: 0; }

/* Box de destaque / key takeaway */
.callout {
  margin: 36px 0;
  padding: 26px 28px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--brd-g);
  border-radius: var(--radius);
}
.callout strong { display: block; color: var(--gold-l); font-family: var(--body); font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.callout p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: #C9D3CB; }

/* CTA dentro do artigo */
.article-cta {
  margin: 60px 0 20px;
  padding: 44px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card3));
  border: 1px solid var(--brd-g2);
  border-radius: var(--radius-lg);
}
.article-cta h3 { font-family: var(--heading); font-weight: 500; font-size: 1.9rem; color: var(--txt); margin: 0 0 12px; }
.article-cta p { font-family: var(--body); color: var(--txt2); font-size: 1rem; line-height: 1.6; margin: 0 auto 26px; max-width: 480px; }

/* Artigos relacionados */
.related { padding: 20px 0 40px; }
.related-title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--txt);
  margin-bottom: 28px;
  text-align: center;
}

@media (max-width: 640px) {
  .blog-hero { padding: 130px 0 40px; }
  .article-wrap { padding: 110px 0 70px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 22px; }
}

/* Nav sempre sólida nas páginas de blog (sem script.js pesado) */
.blog-page #nav {
  padding: 14px 0;
  background: var(--bg-nav);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border-bottom: 1px solid var(--brd);
}

/* ===== CAPAS DOS POSTS ===== */
.post-card-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.article-cover {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brd-g);
  line-height: 0;
}
.article-cover img { width: 100%; height: auto; display: block; }

/* ===== BOTÃO WHATSAPP (dourado claro, alto contraste) ===== */
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 20px 44px;
  background: linear-gradient(135deg, #E23744, #B01F2C);
  color: #fff;
  font-family: var(--body); font-size: 15px; font-weight: 700;
  letter-spacing: .3px;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  box-shadow: 0 8px 34px rgba(226, 55, 68, 0.32);
}
.btn-wa:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 12px 46px rgba(226, 55, 68, 0.45); }
.btn-wa:active { transform: translateY(-1px); }
.btn-wa svg { fill: #fff; }
/* vence a regra .prose a (dourado claro + sublinhado) dentro do artigo */
.prose a.btn-wa, .btn-wa, .btn-wa span { color: #fff; text-decoration: none; }
