/* Dentista Pro — páginas PHP no visual novo (blog, institucionais, telas da assinatura).
   Usa os tokens e componentes de style.css; aqui só o que é próprio dessas páginas. Mobile first. */

.nav a[aria-current="page"]:not(.btn) { color: var(--petrol); }

/* Topo das páginas internas */
.page-hero { padding: 40px 0 8px; background: linear-gradient(180deg, var(--white) 0%, var(--sand-soft) 100%); }
.page-hero__title { font-family: var(--font-title); font-weight: 700; color: var(--petrol); font-size: clamp(2rem, 7vw, 3rem); line-height: 1.12; letter-spacing: -.01em; }
.page-hero__sub { margin: 14px 0 0; }
.page-hero + .section { padding-top: 32px; }
.section--tight { padding: 40px 0; }
.empty { padding: 32px 0; color: var(--ink-soft); text-align: center; }

/* Lista de artigos */
.posts { list-style: none; display: grid; gap: 18px; }
.post-card { margin: 0; }
.post-card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post-card__link:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 2px 4px rgba(46, 42, 38, .06), 0 14px 30px rgba(17, 75, 95, .12); }
.post-card__link:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.post-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand-soft); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.post-card__date { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-soft); }
.post-card__date .ico { width: 16px; height: 16px; }
.post-card__title { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--petrol); }
.post-card__text { color: var(--ink-soft); font-size: 1rem; }
.post-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--coral-dark); }
.post-card__more .ico { width: 18px; height: 18px; }

.h2 + .posts { margin-top: 28px; }
.posts + .center { margin-top: 28px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager__item { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--petrol); background: var(--white); }
.pager__item[aria-current="page"] { background: var(--petrol); border-color: var(--petrol); color: var(--white); }

/* Artigo */
.article { padding: 32px 0 48px; }
.crumbs { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { font-weight: 600; }
.crumbs span:last-child { display: inline-block; max-width: 100%; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article__title { font-family: var(--font-title); font-weight: 700; color: var(--petrol); font-size: clamp(1.875rem, 6.4vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; }
.article__date { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-soft); font-size: .9375rem; }
.article__date .ico { width: 18px; height: 18px; }
.article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin: 24px 0 8px; background: var(--sand-soft); }

.prose { margin-top: 20px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
/* Os artigos do banco começam com o próprio título em <h1>; a página já mostra o título, então esse h1 fica oculto. */
.prose > article > h1:first-child, .prose > h1:first-child { display: none; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-title); color: var(--petrol); line-height: 1.25; margin: 1.6em 0 .5em; }
.prose > article > h2:nth-child(2), .prose > h2:first-child { margin-top: .4em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); height: auto; }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--coral); background: var(--sand-soft); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

.article__cta { margin-top: 40px; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--petrol); color: #E9F1F3; }
.article__cta-title { font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 8px; }
.article__cta .btn { margin-top: 16px; }

/* Telas de resultado (volta do Checkout do Stripe) */
.result { padding-bottom: 24px; }
.result__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: .9375rem; }
.result__badge .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.result__badge--ok { background: var(--petrol-soft); color: var(--petrol); }
.result__h { font-family: var(--font-title); color: var(--petrol); font-size: 1.5rem; margin-bottom: 18px; }
.result__steps { list-style: none; counter-reset: r; display: grid; gap: 14px; }
.result__steps li { counter-increment: r; position: relative; padding: 16px 18px 16px 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink-soft); }
.result__steps li::before { content: counter(r); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--coral); color: var(--white); font-weight: 700; }
.result__steps strong { color: var(--ink); }
.result .sub, .section--tight > .wrap > p { max-width: none; }
.section--tight .cta-row { margin-top: 24px; }

/* Newsletter */
.newsletter__form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 28px auto 0; }
.newsletter__input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--white); }
.newsletter__input:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.newsletter__lgpd { max-width: 560px; margin-left: auto; margin-right: auto; }

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .post-card--destaque { grid-column: 1 / -1; }
  .newsletter__form { flex-direction: row; }
  .newsletter__form .btn { flex: none; }
}

@media (min-width: 960px) {
  .page-hero { padding: 64px 0 12px; }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .post-card--destaque .post-card__link { display: grid; grid-template-columns: 1.15fr 1fr; }
  .post-card--destaque .post-card__img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .post-card--destaque .post-card__body { padding: 32px; justify-content: center; }
  .post-card--destaque .post-card__title { font-size: 1.9rem; }
  .posts--3 .post-card--destaque { grid-column: auto; }
  .article { padding: 48px 0 64px; }
}

@media (prefers-reduced-motion: reduce) { .post-card__link { transition: none; } .post-card__link:hover { transform: none; } }

/* Assistente virtual Richard (home) */
.richard__in { display: grid; gap: 24px; align-items: center; justify-items: center; text-align: center; }
.richard__img { width: 220px; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.richard__sub { margin-left: auto; margin-right: auto; }
.richard__btn { margin-top: 22px; }
.richard-fab { display: none; }
.richard-dialog { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.richard-dialog::backdrop { background: rgba(46, 42, 38, .55); }
.richard-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; background: var(--petrol); color: var(--white); }
.richard-dialog__title { font-weight: 700; }
.richard-dialog__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.richard-dialog__close:focus-visible { outline: 3px solid var(--sand); }
@media (min-width: 960px) {
  .richard__in { grid-template-columns: 300px 1fr; justify-items: start; text-align: left; gap: 56px; }
  .richard__img { width: 300px; }
  .richard__sub { margin-left: 0; }
  .richard-fab { display: inline-flex; align-items: center; gap: 0; position: fixed; right: 22px; bottom: 22px; z-index: 45; padding: 4px; border: 0; border-radius: 999px; background: var(--petrol); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px rgba(17, 75, 95, .35); }
  .richard-fab img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sand); }
  .richard-fab:hover { background: var(--petrol-dark); }
  .richard-fab:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
}

/* Documentos (Termos de Uso, Política de Privacidade): o texto vem como está, num único bloco. */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow); }
.doc .paragraph-22 { margin: 0; font-size: 1.0625rem; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.doc strong { color: var(--petrol); }
.doc a { font-weight: 600; }
.doc a strong { color: inherit; }
.page-hero .eyebrow + .page-hero__title { margin-top: 2px; }

/* Quem somos */
.about-hero { display: grid; gap: 28px; align-items: center; }
.about-hero__img { width: 100%; max-width: 520px; height: auto; justify-self: center; }
.about-intro { margin-top: 16px; color: var(--ink); font-size: 1.125rem; font-weight: 500; }
.about h2:first-child { margin-top: .2em; }
@media (min-width: 640px) { .doc { padding: 36px 40px; } }
@media (min-width: 960px) { .about-hero { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* Vídeo do topo da home (player próprio: começa sem som; o clique liga o som) */
.vplayer { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0B1F27; border: 6px solid var(--petrol-dark); box-shadow: 0 22px 48px rgba(11, 54, 68, .30), 0 4px 12px rgba(11, 54, 68, .18); }
.vplayer__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0B1F27; }
.vplayer button[hidden] { display: none; }
.vplayer__som { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: min(300px, 78%); padding: 16px 18px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 16px; background: rgba(17, 75, 95, .9); color: var(--white); font: 700 1.125rem/1.25 var(--font-text); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: vplayerPulso 2.4s ease-in-out infinite; }
.vplayer__som:hover { background: rgba(11, 54, 68, .95); }
.vplayer__som:focus-visible, .vplayer__play:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.vplayer__ico { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vplayer__t2 { font-weight: 600; font-size: .9375rem; color: #E9F1F3; }
.vplayer__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--coral); color: var(--white); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.vplayer__play:hover { background: var(--coral-dark); }
.vplayer__play svg { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; }
@keyframes vplayerPulso { 0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 10px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .vplayer__som { animation: none; } }
@media (max-width: 480px) { .vplayer { border-width: 4px; } .vplayer__som { padding: 12px 14px; font-size: 1rem; } .vplayer__ico { width: 36px; height: 36px; } }
