/* ==========================================================
   SCAVI US — Blog (listing + article)
   Uses the tokens from /styles.css. Dark editorial header,
   light reading surface, cover overlapping the seam.
   ========================================================== */

/* ---------- shared dark header band ---------- */
.b-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 152px 0 0;
  background:
    radial-gradient(ellipse 82% 60% at 50% -10%, rgba(42,190,141,.34) 0%, transparent 62%),
    radial-gradient(ellipse 60% 40% at 84% 6%, rgba(201,162,78,.14) 0%, transparent 60%),
    linear-gradient(180deg, #06180F 0%, #0A2417 55%, #071A11 100%);
  color: var(--on-d2);
}
.b-head h1 { color: #fff; }

/* ---------- listing ---------- */
.blog-hero { padding-bottom: 78px; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; max-width: 16em; }
.blog-hero p { font-size: 1.1rem; color: #B6CCC0; max-width: 44em; }

.blog-search { margin-top: 34px; position: relative; max-width: 480px; }
.blog-search input {
  width: 100%; font-family: var(--body); font-size: .96rem; color: #fff;
  padding: 15px 18px 15px 46px;
  border: 1px solid var(--line-d2); border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.blog-search input::placeholder { color: rgba(255,255,255,.45); }
.blog-search input:focus { outline: 0; border-color: rgba(42,190,141,.7); background: rgba(255,255,255,.11); }
.blog-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: rgba(255,255,255,.5); fill: none; stroke-width: 2;
}
.search-empty { display: none; padding: 48px 0; color: var(--txt2); font-size: 1rem; }
.search-empty.show { display: block; }

.lista { padding: 74px 0 104px; background: var(--l1); }
.lista-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px 24px; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald-l), var(--gold-l));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); color: inherit; }
.post-card:hover::before { transform: scaleX(1); }
.post-card.hidden { display: none; }
.post-card .etiqueta {
  align-self: flex-start;
  font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-d); background: var(--gold-soft);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.post-card h2 { font-size: 1.18rem; line-height: 1.28; margin-bottom: 11px; }
.post-card p { font-size: .93rem; color: var(--txt2); flex: 1; }
.post-card .rodape {
  margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--txt3);
}

/* ---------- article ---------- */
.artigo-head { padding-bottom: 190px; }
.trilha { font-size: .85rem; color: var(--on-d3); margin-bottom: 26px; }
.trilha a { color: rgba(255,255,255,.72); }
.trilha a:hover { color: #fff; }
.trilha span { margin: 0 8px; color: rgba(255,255,255,.28); }

.artigo-head .etiqueta {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-l); background: rgba(201,162,78,.14);
  border: 1px solid rgba(201,162,78,.28);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.artigo-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 24px; max-width: 17em; }
.ficha {
  display: flex; flex-wrap: wrap; align-items: center; gap: 11px;
  font-size: .88rem; color: var(--on-d3);
}
.ficha .ponto { color: rgba(255,255,255,.24); }

.artigo { background: var(--l0); padding-bottom: 100px; }
.artigo .container { max-width: 780px; }

.capa {
  margin-top: -124px; margin-bottom: 46px; position: relative; z-index: 3;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,.6);
}
.capa img { width: 100%; height: auto; }

.chamada {
  font-size: 1.16rem; color: var(--txt); line-height: 1.58; margin-bottom: 38px;
  padding-left: 20px; border-left: 3px solid var(--emerald);
}

.indice {
  background: var(--l1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 50px;
}
.indice p {
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--txt3); margin-bottom: 16px;
}
.indice ol { margin: 0; padding-left: 21px; }
.indice li { font-size: .96rem; margin-bottom: 9px; color: var(--txt2); }
.indice li::marker { color: var(--gold-d); font-weight: 700; }
.indice a { color: var(--txt); transition: color .2s var(--ease); }
.indice a:hover { color: var(--emerald-d); }

.prose { font-size: 1.06rem; line-height: 1.76; color: var(--txt); }
.prose h2 {
  font-size: clamp(1.42rem, 2.8vw, 1.86rem);
  margin: 58px 0 20px; scroll-margin-top: 100px; position: relative;
}
.prose h3 { font-size: 1.18rem; margin: 36px 0 12px; }
.prose p { margin-bottom: 21px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--emerald-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(23,147,107,.4); }
.prose a:hover { text-decoration-color: var(--emerald); }
.prose ul, .prose ol { margin: 0 0 21px 22px; }
.prose li { margin-bottom: 9px; }

.prose .callout {
  background: linear-gradient(150deg, var(--emerald-soft), #fff);
  border: 1px solid rgba(23,147,107,.2); border-left: 3px solid var(--emerald);
  border-radius: 0 var(--r) var(--r) 0; padding: 24px 26px; margin: 34px 0;
}
.prose .callout strong { display: block; margin-bottom: 9px; color: var(--emerald-d); font-size: 1.04rem; }
.prose .callout p { margin: 0; font-size: .99rem; }

.prose blockquote {
  background: linear-gradient(150deg, var(--gold-soft), #fff);
  border: 1px solid rgba(201,162,78,.26); border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0; padding: 24px 26px; margin: 34px 0;
}
.prose blockquote p { margin-bottom: 14px; font-size: .99rem; color: #5B4718; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote strong { color: #422F0B; }

/* ---------- CTA inside the article ---------- */
.acao {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: 52px 40px; margin: 64px 0 48px; text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(42,190,141,.3) 0%, transparent 62%),
    linear-gradient(160deg, #0A2417, #06180F);
}
.acao h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 14px; }
.acao p { color: var(--on-d2); font-size: 1.02rem; margin: 0 auto 30px; max-width: 40em; }
.acao-botoes { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ in the article ---------- */
.pergunta {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); margin: 34px 0 9px; letter-spacing: -.022em; line-height: 1.36;
}

/* ---------- related ---------- */
.relacionados { margin-top: 60px; padding-top: 38px; border-top: 1px solid var(--line); }
.relacionados h2 { font-size: 1.24rem; margin-bottom: 18px; }
.relacionados ul { list-style: none; margin: 0; padding: 0; }
.relacionados li { margin-bottom: 12px; }
.relacionados a { font-size: 1rem; }

@media (max-width: 940px) { .lista-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .b-head { padding-top: 118px; }
  .blog-hero { padding-bottom: 54px; }
  .lista { padding: 54px 0 74px; }
  .lista-grid { grid-template-columns: 1fr; }
  .artigo-head { padding-bottom: 140px; }
  .capa { margin-top: -108px; margin-bottom: 34px; }
  .prose { font-size: 1.02rem; }
  .acao { padding: 36px 22px; border-radius: var(--r-lg); }
}
