/* ═══════════════════════════════════════════════════════════════
   Páginas internas: "O que é doula de fim de vida", blog e artigos.
   Carregar depois de style.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── TOPO DA PÁGINA ─────────────────────────────────────────── */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 7vw, 104px)) 0 clamp(40px, 5vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; color: var(--gold-ink); }
.crumbs a { color: var(--ink-soft); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(200, 155, 74, .6); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--forest); }
.crumbs svg { width: 14px; height: 14px; color: var(--sage); }
.page-hero__title {
  margin-top: 1.2rem;
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4.8rem);
  line-height: 1.04; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.page-hero__title em { font-style: italic; font-weight: 300; color: var(--forest); }
.page-hero__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); line-height: 1.6; max-width: 54ch; text-wrap: pretty; }
.page-hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.page-hero__art > div { position: absolute; inset: 0; }
.page-hero__art .mandala { width: 100%; height: 100%; animation: spin 140s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ── ARTIGO COM ÍNDICE ──────────────────────────────────────── */
.read { padding: 0 0 clamp(72px, 8vw, 120px); }
.read__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.toc { position: sticky; top: calc(var(--header-h) + 28px); padding: 1.3rem 1.2rem; }
.toc__title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.toc ol { counter-reset: toc; }
.toc a {
  display: block; padding: .45rem .6rem; border-radius: 10px;
  font-size: .92rem; line-height: 1.35; color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.toc a:hover { color: var(--forest); background: rgba(255, 255, 255, .55); }
.toc a.is-active { color: var(--forest); font-weight: 700; border-left-color: var(--gold); background: rgba(255, 255, 255, .6); border-radius: 0 10px 10px 0; }

.prose { max-width: 70ch; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.4rem; border-top: 1px solid rgba(200, 155, 74, .5);
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(1.8rem, 1.8vw + 1.2rem, 2.6rem); line-height: 1.12; letter-spacing: -.01em;
  color: var(--ink); text-wrap: balance;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2rem; font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.35rem, .8vw + 1.1rem, 1.65rem); line-height: 1.2; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose a:not(.btn):hover { text-decoration-color: var(--forest); }
.prose ul.dots li { position: relative; padding-left: 1.5rem; }
.prose ul.dots li + li { margin-top: .5rem; }
.prose ul.dots li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.prose .intro { font-size: clamp(1.12rem, .5vw + 1.02rem, 1.3rem); line-height: 1.6; color: var(--ink); }

.pull {
  margin-block: clamp(2rem, 4vw, 2.8rem) !important; padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 2px solid var(--gold);
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.9rem); line-height: 1.35; color: var(--forest); text-wrap: balance;
}

.boxed { padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.boxed > * + * { margin-top: 1rem; }
.boxed--dark { background: var(--forest); color: var(--on-dark-soft); border-radius: var(--r-lg); }
.boxed--dark h2, .boxed--dark h3 { color: var(--ivory); border-top: 0; padding-top: 0; }
.boxed--dark strong { color: var(--ivory); }
.boxed--dark .pull { color: var(--sand); border-left-color: var(--sand); }
.prose .boxed h2 { margin-top: 0; padding-top: 0; border-top: 0; }

/* princípios em selos */
.seals { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem !important; }
.seals li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 99px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(200, 155, 74, .55);
  font-weight: 700; font-size: .95rem; color: var(--forest);
}
.seals svg { width: 18px; height: 18px; color: var(--gold-ink); }

/* o que faz: sete frentes */
.acts { display: grid; gap: .9rem; margin-top: 1.6rem !important; counter-reset: act; }
.act { counter-increment: act; position: relative; padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 1.8rem) clamp(4.2rem, 6vw, 5.2rem); }
.act::before {
  content: counter(act); position: absolute; left: clamp(1rem, 2.4vw, 1.5rem); top: clamp(1.2rem, 3vw, 1.7rem);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(255, 255, 255, .6);
  font-family: var(--ff-display); font-size: 1.1rem; color: var(--forest);
  transition: background-color .3s, color .3s;
}
.act:hover::before { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.act h3 { margin-top: 0 !important; }
.act > * + * { margin-top: .8rem; }
.act .limit { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: rgba(33, 77, 69, .07); font-size: .95rem; line-height: 1.5; color: var(--ink); }
.act .limit svg { color: var(--gold-ink); margin-top: .15em; width: 18px; height: 18px; }

/* antes / durante / depois */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.6rem !important; }
.phase { padding: 1.4rem 1.3rem; }
.phase__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--forest); background: rgba(255, 255, 255, .55); }
.phase__ico svg { width: 22px; height: 22px; }
.phase h3 { margin-top: .9rem !important; font-size: 1.35rem; }
.phase p { margin-top: .5rem; font-size: .96rem; line-height: 1.55; }

/* onde atua */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.4rem !important; }
.places li { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); line-height: 1.4; color: var(--ink); }
.places svg { color: var(--gold-ink); width: 20px; height: 20px; margin-top: .1em; }
.places small { display: block; margin-top: .2rem; font-size: .85rem; color: var(--ink-soft); }

/* não faz */
.nots { display: grid; gap: 0; margin-top: 1.2rem !important; }
.nots li { display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-top: 1px solid rgba(216, 193, 154, .3); color: var(--on-dark); }
.nots li:last-child { border-bottom: 1px solid rgba(216, 193, 154, .3); }
.nots svg { color: var(--sand); width: 20px; height: 20px; }

/* chamada final */
.closing { padding: 0 0 clamp(72px, 8vw, 120px); }
.closing__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center;
  padding: clamp(1.8rem, 5vw, 3.6rem); border-radius: var(--r-lg);
  background: var(--forest); color: var(--on-dark);
  box-shadow: 0 40px 70px -40px rgba(23, 58, 51, .7);
}
.closing__card .title { max-width: 20ch; }
.closing__card p { margin-top: 1rem; max-width: 52ch; color: var(--on-dark-soft); }
.closing__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.closing__mandala { position: absolute; right: -140px; top: -140px; width: 440px; aspect-ratio: 1; opacity: .18; z-index: -1; pointer-events: none; }
.btn--ghost-light { color: var(--ivory); border: 1px solid rgba(245, 242, 236, .45); }
.btn--ghost-light:hover { background: rgba(245, 242, 236, .12); transform: translateY(-2px); }

/* ── BLOG ───────────────────────────────────────────────────── */
.posts { padding: 0 0 clamp(72px, 8vw, 120px); }
.posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), background-color .3s; }
.post-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .66); }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--forest); }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.post-card:hover .post-card__media img { scale: 1.04; }
.post-card__media > div { position: absolute; inset: 14%; opacity: .45; }
.post-card__body { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.3rem, 3vw, 2.2rem); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; font-weight: 700; color: var(--gold-ink); }
.post-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta svg { width: 15px; height: 15px; }
.post-card__title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.4rem, 1.2vw + 1.1rem, 2.1rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card__title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.post-card__more { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--forest); }
.post-card__more svg { transition: transform .35s var(--ease); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }
.post-card--soon { justify-content: center; align-items: flex-start; padding: clamp(1.3rem, 3vw, 2.2rem); background: rgba(255, 255, 255, .28); border-style: dashed; border-color: rgba(200, 155, 74, .6); }
.post-card--soon:hover { transform: none; background: rgba(255, 255, 255, .28); }
.post-card--soon p { margin-top: .6rem; font-size: .96rem; line-height: 1.55; }
.tag { display: inline-flex; align-self: flex-start; padding: .3rem .8rem; border-radius: 99px; background: rgba(33, 77, 69, .1); font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--forest); }

/* artigo */
.post-hero { padding: calc(var(--header-h) + clamp(48px, 6vw, 88px)) 0 clamp(28px, 4vw, 48px); }
.post-hero .shell { max-width: 880px; }
.post-hero .post-card__meta { margin-top: 1.4rem; }
.post-cover { width: min(100% - 2.5rem, 1040px); margin: 0 auto clamp(40px, 5vw, 64px); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--glass-shadow); }
.post-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.post-cover figcaption { padding: .7rem 1rem; font-size: .85rem; background: rgba(255, 255, 255, .6); }
.article { padding-bottom: clamp(56px, 7vw, 96px); }
.article .prose { margin-inline: auto; max-width: 68ch; }
.steps-list { counter-reset: st; display: grid; gap: 1rem; margin-top: 1.4rem !important; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; }
.steps-list li::before { content: counter(st); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255, 255, 255, .6); font-family: var(--ff-display); color: var(--forest); }
.steps-list strong { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.questions { display: grid; gap: .55rem; margin-top: 1.2rem !important; }
.questions li { padding: .9rem 1.1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85); font-family: var(--ff-display); font-style: italic; font-weight: 300; font-size: 1.12rem; line-height: 1.45; color: var(--forest); }
.author { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2.4rem, 5vw, 3.4rem) !important; padding: 1.2rem 1.3rem; }
.author img { width: 54px; height: 54px; }
.author p { line-height: 1.45; font-size: .95rem; }
.author strong { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 1.15rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.6rem !important; }
.share span { font-weight: 700; color: var(--ink); margin-right: .4rem; }

/* entrada suave sem GSAP */
.js-reveal [data-in] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js-reveal [data-in].is-in { opacity: 1; transform: none; }

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .read__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; min-width: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .3rem; }
  .toc a { border: 1px solid rgba(33, 77, 69, .15); border-radius: 99px; padding: .4rem .8rem; font-size: .86rem; }
  .toc a.is-active { border-radius: 99px; border-color: var(--gold); }
}
@media (max-width: 900px) {
  .page-hero__grid, .closing__card, .post-card--featured { grid-template-columns: 1fr; }
  .page-hero__art { display: none; }
  .phases, .posts__grid { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .post-cover img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .places { grid-template-columns: 1fr; }
  .toc { padding: 1rem; }
  .toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.2rem; padding-bottom: .2rem; }
  .toc a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__art .mandala { animation: none; }
  .js-reveal [data-in] { opacity: 1; transform: none; }
}
