/* ===== Páginas internas: artigos, blog e 404 ===== */
/* Usa as cores, botões, ilha e rodapé do style.css */

/* Barra de leitura */
.read-bar { background: linear-gradient(90deg, var(--bordo), var(--accent) 55%, var(--rose)); height: 3px; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; transform: scaleX(var(--p, 0)); transform-origin: left; z-index: 70; }

/* Topo das páginas internas */
.page-hero { background: radial-gradient(80% 90% at 10% 0%, #7a1d18 0%, transparent 60%), linear-gradient(160deg, #5c1411 0%, #3a0d0b 55%, #2c0a09 100%); border-radius: 0 0 var(--r-sec) var(--r-sec); box-shadow: 0 40px 70px -40px rgb(30 6 5 / 70%); color: var(--marfim); isolation: isolate; overflow: hidden; padding: 168px 0 calc(var(--r-sec) + 76px); position: relative; z-index: 3; }
.page-hero .hero-plan .plan { opacity: .75; top: -6%; }
.page-hero-in { max-width: 880px; position: relative; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(38px, 4.8vw, 66px); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 22px 0 22px; max-width: 21ch; }
.page-hero .lead { color: rgb(243 234 226 / 76%); font-size: 18.5px; line-height: 1.6; max-width: 60ch; }
.page-glyph { bottom: -0.32em; color: rgb(243 234 226 / 6%); font-family: var(--serif); font-size: clamp(260px, 34vw, 480px); line-height: 1; pointer-events: none; position: absolute; right: 4%; user-select: none; z-index: -1; }
.js .page-glyph { opacity: 0; transform: translateY(40px) rotate(-8deg); transition: opacity 1.4s var(--ease) .3s, transform 1.6s var(--ease) .3s; }
.loaded .page-glyph { opacity: 1; transform: none; }

.crumbs { align-items: center; color: rgb(243 234 226 / 58%); display: flex; flex-wrap: wrap; font-size: 13.5px; gap: 8px; margin-bottom: 22px; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--marfim); }
.crumbs i { background: rgb(243 234 226 / 30%); border-radius: 50%; height: 4px; width: 4px; }
.crumbs span { color: rgb(243 234 226 / 82%); }

.byline { align-items: center; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding-top: 24px; }
.byline .who { align-items: center; display: flex; gap: 12px; }
.byline strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.byline small { color: rgb(243 234 226 / 60%); display: block; font-size: 12.5px; }
.byline .facts { color: rgb(243 234 226 / 70%); display: flex; flex-wrap: wrap; font-size: 14px; gap: 10px 22px; }
.byline .facts span { align-items: center; display: inline-flex; gap: 8px; }
.byline .facts svg { color: var(--rose); height: 17px; width: 17px; }

/* Corpo do artigo */
.sec.first.art-sec { padding-bottom: 136px; padding-top: calc(96px + var(--r-sec)); }
.art-grid { align-items: start; display: grid; gap: 80px; grid-template-columns: minmax(0, 1fr) 300px; }
.prose { counter-reset: sec; max-width: 720px; }
.prose > p { color: #45322f; font-size: 18px; line-height: 1.78; margin-bottom: 1.15em; }
.prose > p:first-child { color: var(--ink); font-size: 20px; line-height: 1.7; }
.prose > p:first-child::first-letter { color: var(--bordo); float: left; font-family: var(--serif); font-size: 4.3em; line-height: .8; padding: 8px 12px 0 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--bordo); text-underline-offset: 3px; }
.prose h2 { font-family: var(--serif); font-size: clamp(28px, 2.7vw, 36px); font-weight: 400; letter-spacing: -.005em; line-height: 1.14; margin: 2.1em 0 .7em; scroll-margin-top: 110px; }
.prose h2::before { color: var(--accent); content: counter(sec, decimal-leading-zero); counter-increment: sec; display: block; font: 600 13px/1 var(--sans); letter-spacing: .1em; margin-bottom: 14px; }
.prose h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.2; margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.prose ul { background: var(--gray); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; list-style: none; margin: 4px 0 1.5em; padding: 24px 26px; }
.prose li { color: #45322f; font-size: 17px; line-height: 1.55; padding-left: 28px; position: relative; }
.prose li::before { background: var(--bordo); border-radius: 2px; content: ""; height: 7px; left: 4px; position: absolute; top: .62em; transform: rotate(45deg) scale(var(--s, 1)); transition: transform .5s var(--spring); width: 7px; }
.js .prose ul.reveal li::before { --s: 0; }
.js .prose ul.reveal.in li::before { --s: 1; }
.prose ul.reveal.in li:nth-child(2)::before { transition-delay: .06s; }
.prose ul.reveal.in li:nth-child(3)::before { transition-delay: .12s; }
.prose ul.reveal.in li:nth-child(4)::before { transition-delay: .18s; }
.prose ul.reveal.in li:nth-child(5)::before { transition-delay: .24s; }
.prose ul.reveal.in li:nth-child(6)::before { transition-delay: .3s; }
.prose ul.reveal.in li:nth-child(n+7)::before { transition-delay: .36s; }
.prose blockquote { background: #fbf4f1; border: 1px solid var(--line); border-left: 3px solid var(--bordo); border-radius: 4px 16px 16px 4px; color: #45322f; font-size: 16.5px; line-height: 1.65; margin: 8px 0 1.6em; padding: 18px 22px; }
.prose blockquote p { margin: 0; }

.art-note { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 40px; max-width: 720px; padding-top: 20px; }

/* Chamada no fim do artigo */
.art-cta { background: radial-gradient(90% 90% at 0% 0%, #7a1d18 0%, transparent 60%), var(--dark); border-color: transparent; color: var(--marfim); display: grid; gap: 16px; margin-top: 56px; max-width: 720px; padding: 36px; }
.art-cta h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 36px); font-weight: 400; line-height: 1.1; }
.art-cta p { color: rgb(243 234 226 / 72%); line-height: 1.6; max-width: 52ch; }
.art-cta .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.art-cta .btn { min-height: 54px; padding: 0 24px; }

/* Lateral: sumário e compartilhar */
.art-aside { display: grid; gap: 14px; position: sticky; top: 112px; }
.toc { padding: 24px 22px; }
.toc .eyebrow { margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.toc a { border-radius: 10px; color: var(--muted); display: block; font-size: 14.5px; line-height: 1.4; padding: 8px 10px 8px 14px; position: relative; text-decoration: none; transition: color .25s, background .25s; }
.toc a::before { background: var(--bordo); border-radius: 2px; bottom: 9px; content: ""; left: 2px; position: absolute; top: 9px; transform: scaleY(0); transition: transform .35s var(--ease); width: 2px; }
.toc a:hover { background: var(--gray); color: var(--ink); }
.toc a.on { color: var(--bordo); font-weight: 600; }
.toc a.on::before { transform: scaleY(1); }
.share { align-items: center; display: flex; gap: 10px; justify-content: space-between; padding: 16px 16px 16px 22px; }
.share b { font-size: 14px; font-weight: 600; }
.share .acts { display: flex; gap: 8px; }
.share a, .share button { align-items: center; background: var(--gray); border: 1px solid var(--line); border-radius: 50%; color: var(--bordo); cursor: pointer; display: inline-flex; height: 42px; justify-content: center; position: relative; transition: background .25s, color .25s, transform .4s var(--spring); width: 42px; }
.share a:hover, .share button:hover { background: var(--bordo); color: var(--marfim); transform: translateY(-2px); }
.share svg { height: 19px; width: 19px; }
.share .tip { background: var(--ink); border-radius: 8px; bottom: calc(100% + 8px); color: #fff; font-size: 12px; font-weight: 600; left: 50%; opacity: 0; padding: 6px 9px; pointer-events: none; position: absolute; transform: translate(-50%, 4px); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; }
.share .copied .tip { opacity: 1; transform: translate(-50%, 0); }
.aside-cta { display: grid; gap: 12px; padding: 22px; }
.aside-cta strong { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; }
.aside-cta p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.aside-cta .btn { min-height: 48px; width: 100%; }

/* Lista de artigos (blog e "continue lendo") */
.posts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts.three .post { min-height: 250px; }
.blog-sec .posts-foot { margin-top: 56px; }

/* 404 */
.page-hero.nf { min-height: 82svh; display: grid; align-content: center; }
.page-hero.nf .hero-actions { margin-top: 32px; }

/* Animações respeitam quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .js .page-glyph { opacity: 1; transform: none; }
  .js .prose ul.reveal li::before { --s: 1; }
  .read-bar { display: none; }
}

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  .art-grid { gap: 48px; grid-template-columns: 1fr; }
  .art-aside { position: static; max-width: 720px; }
  .toc { display: none; }
  .posts.three { grid-template-columns: 1fr; }
  .posts.three .post { min-height: 0; }
}

/* ===== Celular ===== */
@media (max-width: 640px) {
  .page-hero { padding: 120px 0 calc(var(--r-sec) + 52px); }
  .page-hero h1 { font-size: clamp(32px, 9vw, 42px); margin: 18px 0 16px; }
  .page-hero .lead { font-size: 16.5px; line-height: 1.55; }
  .crumbs { font-size: 12.5px; margin-bottom: 16px; }
  .byline { gap: 14px; margin-top: 26px; padding-top: 20px; }
  .byline .facts { font-size: 13px; gap: 8px 16px; }
  .page-glyph { right: -6%; }
  .sec.first.art-sec { padding-bottom: 112px; padding-top: calc(64px + var(--r-sec)); }
  .prose > p { font-size: 17px; line-height: 1.72; }
  .prose > p:first-child { font-size: 18px; }
  .prose h2 { font-size: 27px; margin-top: 1.9em; }
  .prose h3 { font-size: 22px; }
  .prose ul { padding: 18px 18px; }
  .prose li { font-size: 16px; padding-left: 24px; }
  .art-cta { margin-top: 44px; padding: 26px 20px; }
  .art-cta .btn { flex: 1 1 100%; }
  .page-hero.nf { min-height: 78svh; }
  .page-hero.nf .hero-actions .btn { flex: 1 1 100%; }
}

/* ===== Páginas de serviço ===== */
.page-hero p.hero-chip { margin: 0; width: fit-content; }
.svc-hero .hero-actions { margin-top: 32px; }
.sits { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.sit { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: grid; align-content: start; gap: 10px; padding: 26px 24px; }
.sit .icon { margin-bottom: 6px; }
.sit h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; }
.sit p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.sit a { color: var(--bordo); font-weight: 600; text-decoration: none; }
.sit a:hover { text-decoration: underline; }
.svc-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.svc-link { align-items: center; background: var(--gray); border: 1px solid var(--line); border-radius: 18px; color: var(--dark); display: flex; gap: 14px; padding: 18px 20px; position: relative; overflow: hidden; text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.svc-link:hover { border-color: var(--bordo); transform: translateY(-2px); }
.svc-link svg { color: var(--bordo); flex: 0 0 auto; height: 22px; width: 22px; }
.svc-link span { flex: 1; font-size: 15.5px; font-weight: 600; }
.svc-link .go { height: 16px; opacity: .6; transition: transform .3s var(--ease); width: 16px; }
.svc-link:hover .go { transform: translateX(3px); }
.svc-mini { color: var(--dark); display: grid; gap: 10px; padding: 22px; text-decoration: none; }
.svc-mini-t { align-items: center; display: flex; font-family: var(--serif); font-size: 21px; gap: 10px; line-height: 1.2; }
.svc-mini-t svg { color: var(--bordo); flex: 0 0 auto; height: 22px; width: 22px; }
.svc-mini .read { align-items: center; color: var(--bordo); display: inline-flex; font-size: 14px; font-weight: 600; gap: 6px; }
.svc-mini .read svg { height: 15px; width: 15px; }
.prose a { color: var(--bordo); }
@media (max-width: 1100px) { .sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sits { grid-template-columns: 1fr; }
  .sit { padding: 22px 20px; }
  .svc-hero .hero-actions .btn { flex: 1 1 100%; }
}
