/* VidaPlena V2.0 · paginas.css — Páginas internas: especialidade (modelo único) e sobre o projeto.
   Usa os tokens de base.css e reaproveita .v8-wrap, .v8-kicker, .v9-btn, .vt-portrait e .v8-faq da página inicial. */

/* ---------- abertura escura ---------- */
.pg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 40%, #1d4a55 0%, #123540 45%, var(--page-bg) 85%);
  color: var(--on-dark);
  padding: clamp(36px, 6vw, 84px) 0 clamp(96px, 10vw, 150px);
}
/* mesma curva suave que separa a hero da seção seguinte na página inicial */
.pg-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: clamp(56px, 6vw, 100px);
  background: var(--porcelain);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 V78 C 380 18 1120 6 1600 64 V140 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140 V78 C 380 18 1120 6 1600 64 V140 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.pg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: 0.86rem;
  color: #b9c9ca;
}
.pg-crumbs a {
  color: #dfe8e8;
  text-underline-offset: 4px;
}
.pg-crumbs a:hover {
  color: var(--gold);
}
.pg-crumbs [aria-current] {
  color: var(--gold);
}
.pg-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pg-hero h1 {
  margin: 0;
  font: 500 clamp(3.2rem, 6.4vw, 5.6rem) / 0.95 var(--serif);
  letter-spacing: -0.03em;
  color: #fff;
}
.pg-hero h1 em,
.pg-hero__tagline em {
  font-style: italic;
  color: var(--gold);
}
.pg-hero__tagline {
  margin: 14px 0 0;
  font: 500 clamp(1.5rem, 2.4vw, 2.1rem) / 1.15 var(--serif);
  color: #f1e8db;
}
.pg-hero__lead {
  max-width: 52ch;
  margin: 22px 0 0;
  color: #d5e0e0;
  font-size: 1.06rem;
  line-height: 1.65;
}
.pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}
.pg-hero .v9-btn--gold {
  min-height: 52px;
  padding-inline: 28px;
  font-size: 0.95rem;
}
.pg-link {
  color: #f1e8db;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 183, 121, 0.55);
  padding: 6px 0;
}
.pg-link:hover {
  color: var(--gold);
}
.pg-hero__figure {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 480px);
}
/* luz quente atrás do recorte, como na hero da página inicial */
.pg-hero__figure::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 178, 108, 0.32), rgba(242, 178, 108, 0));
  filter: blur(10px);
}
.pg-hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(233, 183, 121, 0.35), 0 0 0 14px rgba(233, 183, 121, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.pg-hero__figure figcaption {
  margin-top: 18px;
  text-align: center;
  color: #a9bcbe;
  font-size: 0.8rem;
}

/* ---------- seções claras ---------- */
.pg-section {
  background: var(--porcelain);
  color: var(--ink);
  padding: clamp(64px, 8vw, 112px) 0;
}
.pg-section--sand {
  background: #f1e9dc;
}
.pg-section--deep {
  background: var(--deep);
  color: var(--on-dark);
}
.pg-section--deep .v8-wrap h2 {
  color: #fff;
}
.pg-section--deep .v8-wrap h2 em {
  color: var(--gold);
}
.pg-section--deep .v8-kicker {
  color: var(--gold);
}
.pg-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.pg-split--top {
  margin-top: clamp(40px, 5vw, 64px);
}
.pg-prose p {
  margin: 0 0 1em;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.pg-prose strong {
  color: var(--ink);
}
.pg-section--deep .pg-prose p {
  color: #c9d6d7;
}
.pg-section--deep .pg-prose strong,
.pg-section--deep code {
  color: #fff;
}
.pg-prose code,
.pg-metrics code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(233, 183, 121, 0.14);
}

/* cartões numerados */
.pg-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.pg-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pg-card {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 50px -40px rgba(16, 44, 54, 0.45);
}
.pg-card__n {
  display: block;
  margin-bottom: 18px;
  font: 500 1.05rem var(--serif);
  color: var(--copper);
  letter-spacing: 0.08em;
}
.pg-card__n::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 10px;
  background: var(--champagne);
}
.pg-card h3 {
  margin: 0 0 10px;
  font: 500 clamp(1.6rem, 2vw, 1.95rem) / 1.1 var(--serif);
  color: var(--ink);
}
.pg-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* passos */
.pg-steps {
  list-style: none;
  counter-reset: passo;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.pg-steps li {
  counter-increment: passo;
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 58px;
}
.pg-steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--gold);
  font: 600 1.15rem var(--serif);
}
.pg-steps strong {
  font-size: 1.05rem;
  color: var(--ink);
}
.pg-steps span {
  color: var(--muted);
  line-height: 1.6;
}
.pg-aside {
  padding: clamp(26px, 3vw, 36px);
  border-radius: 22px;
  background: var(--petrol);
  color: var(--on-dark);
}
.pg-aside h3 {
  margin: 0 0 18px;
  font: 500 1.8rem / 1.1 var(--serif);
  color: #fff;
}
.pg-aside p {
  margin: 18px 0 0;
  color: #c3d2d3;
  font-size: 0.9rem;
}
.pg-exams {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pg-exams a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(233, 183, 121, 0.4);
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s;
}
.pg-exams a:hover {
  background: rgba(233, 183, 121, 0.12);
  border-color: var(--gold);
}
.pg-exams a span {
  color: var(--gold);
}

/* profissional */
.pg-pro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.pg-pro .v8-wrap h2,
.pg-pro h2 {
  margin-bottom: 20px;
}
.pg-checks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pg-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.pg-checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(29, 83, 97, 0.1);
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg-checks--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.pg-note {
  max-width: 60ch;
  margin: 22px 0 0;
  color: #6a7b7e;
  font-size: 0.84rem;
}

/* quando procurar */
.pg-when {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.pg-when > div > p:not(.v8-kicker) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 52ch;
}
.pg-alert {
  padding: 26px 28px;
  border-left: 4px solid var(--error);
  border-radius: 6px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 24px 50px -40px rgba(16, 44, 54, 0.5);
}
.pg-alert__title {
  margin: 0 0 8px;
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pg-alert p:last-child {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

/* outras especialidades */
.pg-pager {
  background: #faf7f0;
  padding: 0 0 clamp(56px, 7vw, 96px);
}
.pg-pager__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pg-pager a {
  display: grid;
  gap: 6px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.pg-pager a[rel="next"] {
  text-align: right;
}
.pg-pager a:hover {
  border-color: var(--champagne);
  transform: translateY(-2px);
}
.pg-pager span {
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pg-pager strong {
  font: 500 1.9rem / 1.1 var(--serif);
}
.pg-pager a:focus-visible,
.pg-exams a:focus-visible,
.pg-crumbs a:focus-visible,
.pg-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- sobre o projeto ---------- */
.pg-about-hero {
  position: relative;
}
/* as três regiões da figura, em círculos sobrepostos (decorativo) */
.pg-about-art {
  position: absolute;
  right: 0;
  top: 40px;
  width: min(36vw, 470px);
  height: min(36vw, 470px);
  pointer-events: none;
}
.pg-about-art img {
  position: absolute;
  width: 54%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(233, 183, 121, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.pg-about-art img:nth-child(1) { left: 23%; top: 0; }
.pg-about-art img:nth-child(2) { left: 0; top: 40%; }
.pg-about-art img:nth-child(3) { right: 0; top: 46%; }
.pg-about-hero h1 {
  max-width: 14ch;
}
.pg-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(36px, 5vw, 60px) 0 0;
  border-top: 1px solid rgba(233, 183, 121, 0.3);
}
.pg-facts div {
  padding: 18px 20px 0 0;
}
.pg-facts dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pg-facts dd {
  margin: 6px 0 0;
  color: #e3ebeb;
  font-size: 0.95rem;
  line-height: 1.5;
}
.pg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pg-metrics div {
  display: grid;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid rgba(233, 183, 121, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.pg-metrics strong {
  font: 500 clamp(2rem, 2.8vw, 2.6rem) / 1 var(--serif);
  color: var(--gold);
}
.pg-metrics span {
  color: #c9d6d7;
  font-size: 0.92rem;
  line-height: 1.5;
}
.pg-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--champagne);
}
.pg-timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 26px 28px;
}
.pg-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--copper);
}
.pg-timeline li:last-child::before {
  background: var(--copper);
}
.pg-timeline strong {
  color: var(--ink);
  font-size: 1.02rem;
}
.pg-timeline span {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- responsivo ---------- */
@media (min-width: 1100px) {
  .pg-about-hero .pg-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }
}
@media (max-width: 1099px) {
  .pg-about-art {
    display: none;
  }
}
@media (max-width: 980px) {
  .pg-cards,
  .pg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .pg-hero__grid,
  .pg-split,
  .pg-when,
  .pg-pro {
    grid-template-columns: 1fr;
  }
  .pg-hero__figure {
    width: min(78%, 340px);
  }
  .pg-hero .pg-crumbs {
    margin-bottom: 24px;
  }
  .pg-pro .vt-portrait {
    width: min(100%, 300px);
  }
  .pg-checks--2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .pg-cards,
  .pg-cards--2,
  .pg-metrics,
  .pg-pager__grid {
    grid-template-columns: 1fr;
  }
  .pg-pager a[rel="next"] {
    text-align: left;
  }
  .pg-hero__actions .v9-btn--gold {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-pager a,
  .pg-exams a {
    transition: none;
  }
  .pg-pager a:hover {
    transform: none;
  }
}
