/*
 * Continuidade visual do site inteiro.
 * Esta camada aproxima páginas internas, artigos e autoavaliações da
 * direção editorial da home: superfícies abertas, linhas e hierarquia clara.
 */

/* Páginas editoriais genéricas */
.page-template-default .site-main > .max-w-5xl {
  width: min(100%, var(--fl-content-width));
  max-width: none;
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) var(--fl-page-gutter);
}

.page-template-default .page-content {
  max-width: 52rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fl-ink);
  font-size: 1rem;
  line-height: 1.8;
}

.page-template-default .page-content .page-header {
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--fl-line);
  text-align: left;
}

.page-template-default .page-content .page-breadcrumb,
.assessments-page .assessment-breadcrumb {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fl-clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-template-default .page-content .page-title {
  margin: 0;
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.page-template-default .page-content .page-excerpt,
.page-template-default .page-content .page-meta {
  justify-content: flex-start;
  margin-inline: 0;
  color: var(--fl-muted);
}

.page-template-default .page-content .page-body h2,
.page-template-default .page-content .page-body h3 {
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-template-default .page-content .page-body h2 {
  margin-top: 2.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.page-template-default .page-content .page-body h3 {
  margin-top: 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.08;
}

.page-template-default .page-content .page-body img,
.page-template-default .page-content .page-pagination > * {
  border-radius: 0;
}

/* Arquivo e listagem de artigos */
.blog-archive {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--fl-paper-light);
}

.blog-archive__inner {
  width: min(100%, var(--fl-content-width));
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--fl-page-gutter);
}

.blog-archive__header {
  display: grid;
  gap: 0.85rem;
  max-width: 54rem;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  text-align: left;
}

.blog-archive__eyebrow,
.post-header__eyebrow {
  color: var(--fl-clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-archive__title {
  margin: 0;
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.blog-archive__description {
  max-width: 42rem;
  margin: 0;
  color: var(--fl-muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.7;
}

.blog-archive__list,
.blog-archive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--fl-line);
}

.blog-list-item,
.blog-card {
  display: grid;
  grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border: 0;
  border-top: 1px solid var(--fl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: color 160ms ease;
}

.blog-list-item:hover,
.blog-card:hover {
  transform: none;
  box-shadow: none;
}

.blog-list-item__thumbnail,
.blog-card__thumbnail {
  display: block;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: var(--fl-paper);
  overflow: hidden;
}

.blog-list-item__image,
.blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.blog-list-item:hover .blog-list-item__image,
.blog-card:hover .blog-card__image {
  transform: scale(1.015);
}

.blog-list-item__content,
.blog-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0;
}

.blog-card__meta {
  color: var(--fl-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.blog-card__categories {
  gap: 0.75rem;
}

.blog-card__category {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fl-clay);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card__category:hover,
.blog-card__category:focus-visible {
  background: transparent;
  color: var(--fl-forest-dark);
  transform: none;
  outline: none;
}

.blog-list-item__title,
.blog-card__title {
  margin: 0;
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.blog-list-item__title a:hover,
.blog-list-item__title a:focus-visible,
.blog-card__title a:hover,
.blog-card__title a:focus-visible {
  color: var(--fl-clay);
  outline: none;
}

.blog-list-item__excerpt,
.blog-card__excerpt {
  max-width: 48rem;
  color: var(--fl-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.blog-list-item__footer,
.blog-card__footer {
  margin-top: auto;
}

.blog-card__readmore {
  min-height: 2.75rem;
  padding-block: 0.55rem;
  color: var(--fl-forest-dark);
  font-size: 0.85rem;
  font-weight: 800;
  border-bottom: 1px solid var(--fl-forest-dark);
}

.blog-card__readmore:hover,
.blog-card__readmore:focus-visible {
  color: var(--fl-clay);
  border-color: var(--fl-clay);
  transform: none;
  outline: none;
}

.blog-archive__pagination .nav-links {
  gap: 0;
  border: 1px solid var(--fl-line);
}

.blog-archive__pagination .page-numbers {
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--fl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fl-forest-dark);
}

.blog-archive__pagination .page-numbers:last-child {
  border-right: 0;
}

.blog-archive__pagination .page-numbers.current,
.blog-archive__pagination .page-numbers:hover,
.blog-archive__pagination .page-numbers:focus-visible {
  background: var(--fl-forest-dark);
  color: var(--fl-white);
  transform: none;
  outline: none;
}

/* Artigos individuais */
.single-post .site-main {
  width: min(100%, var(--fl-content-width));
  max-width: none;
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) var(--fl-page-gutter);
}

.single-post .post-content {
  max-width: none;
  margin: 0;
  color: var(--fl-ink);
  font-size: 1rem;
  line-height: 1.82;
}

.single-post .post-header {
  display: grid;
  gap: 1.15rem;
  max-width: 64rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  text-align: left;
}

.single-post .post-title {
  max-width: 16ch;
  margin: 0;
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 7.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.single-post .post-meta {
  justify-content: flex-start;
  color: var(--fl-muted);
}

.single-post .post-thumbnail {
  width: min(100%, 64rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.single-post .post-thumbnail img,
.single-post .post-body img {
  border-radius: 0;
}

.single-post .post-body,
.single-post .post-author-bio,
.single-post .conversion-answer,
.single-post .post-footer-actions {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.single-post .post-body h2,
.single-post .post-body h3 {
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.single-post .post-body h2 {
  margin-top: 3.25rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
}

.single-post .post-body h3 {
  margin-top: 2.4rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.single-post .post-author-bio {
  margin-top: 4rem;
  padding: 1.75rem 0;
  border: 0;
  border-top: 1px solid var(--fl-line);
  border-bottom: 1px solid var(--fl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.single-post .post-author-bio__eyebrow {
  color: var(--fl-clay);
}

.single-post .post-author-bio__name {
  color: var(--fl-forest-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.single-post .post-footer-actions {
  margin-top: 3.5rem;
  padding: 2rem 0;
  border: 0;
  border-top: 1px solid var(--fl-line);
  border-bottom: 1px solid var(--fl-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.single-post .post-footer-actions::before {
  content: none;
}

/* Autoavaliações */
.assessments-page {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--fl-paper-light);
}

.assessment-shell {
  width: min(100% - (2 * var(--fl-page-gutter)), var(--fl-content-width));
}

.assessments-page .assessment-breadcrumb {
  margin-bottom: 1.5rem;
}

.assessment-hero {
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--fl-line);
  border-bottom: 1px solid var(--fl-line);
  border-radius: 0;
  background: transparent;
}

.assessment-hero__meta-card,
.assessment-hero__panel,
.assessment-disclaimer,
.assessment-card,
.assessment-copy-card,
.assessment-editorial,
.assessment-form-wrap,
.assessment-quick-notes p,
.assessment-progress,
.assessment-question,
.assessment-question__option,
.assessment-result__inner,
.assessment-result__emergency,
.assessment-result__score-card,
.assessment-result__section,
.assessment-result__axis-card,
.assessment-cta__trust,
.assessments-page .faq-card {
  border-radius: 0;
  box-shadow: none;
}

.assessment-hero__meta-card,
.assessment-hero__panel,
.assessment-card,
.assessment-copy-card,
.assessment-editorial,
.assessment-form-wrap {
  background: transparent;
  border-color: var(--fl-line);
}

.assessment-disclaimer,
.assessment-progress,
.assessment-quick-notes p,
.assessment-result__inner,
.assessment-cta__trust {
  background: var(--fl-paper);
  border-color: var(--fl-line);
}

.assessment-card-grid {
  gap: 0;
  border-bottom: 1px solid var(--fl-line);
}

.assessment-card {
  min-height: 17rem;
  padding: 1.5rem;
  border-width: 1px 1px 0 0;
}

.assessment-card:first-child {
  border-left-width: 1px;
}

.assessment-card:hover,
.assessment-card:focus-within {
  transform: none;
  border-color: var(--fl-clay);
  box-shadow: inset 0 3px 0 var(--fl-clay);
}

.assessments-page .terapia-button,
.assessment-card__cta,
.assessment-form__submit {
  border-radius: 0;
  background: var(--fl-forest);
  box-shadow: none;
  color: var(--fl-white);
}

.assessments-page .terapia-button:hover,
.assessments-page .terapia-button:focus-visible {
  background: var(--fl-forest-dark);
  box-shadow: none;
  transform: none;
}

.assessment-question__number {
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--fl-clay);
}

.assessment-question__option {
  background: var(--fl-white);
}

.assessment-question__option:hover,
.assessment-question__option:focus-within,
.assessment-question__option.is-selected,
.assessment-question__option:has(.assessment-question__input:checked) {
  background: var(--fl-paper);
  box-shadow: none;
}

.assessment-progress__fill {
  background: var(--fl-forest);
}

/* A mesma fotografia profissional nas páginas de conversão. */
.terapia-hero__visual--photo {
  min-height: clamp(34rem, 52vw, 46rem);
}

.terapia-hero__visual--photo .terapia-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}

@media (max-width: 767px) {
  .page-template-default .site-main > .max-w-5xl,
  .single-post .site-main,
  .blog-archive {
    padding-block: 3.75rem;
  }

  .page-template-default .page-content .page-title,
  .blog-archive__title,
  .single-post .post-title {
    font-size: clamp(2.7rem, 13vw, 3.75rem);
    line-height: 0.94;
  }

  .blog-list-item,
  .blog-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 0;
  }

  .blog-list-item__thumbnail,
  .blog-card__thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .blog-list-item__image,
  .blog-card__image {
    min-height: 0;
  }

  .blog-list-item__title,
  .blog-card__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .single-post .post-header {
    margin-bottom: 2.5rem;
  }

  .single-post .post-meta {
    align-items: flex-start;
  }

  .assessments-page {
    padding-block: 3rem;
  }

  .assessment-shell {
    width: calc(100% - (2 * var(--fl-page-gutter)));
  }

  .assessment-hero,
  .assessment-copy-card,
  .assessment-editorial,
  .assessment-form-wrap,
  .assessment-card,
  .assessment-question,
  .assessment-result__inner {
    border-radius: 0;
  }

  .assessment-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .assessment-card {
    min-height: 0;
    padding: 1.35rem 0;
    border-width: 1px 0 0;
  }

  .assessment-card:first-child {
    border-left-width: 0;
  }

  .terapia-hero__visual--photo {
    width: 100%;
    height: clamp(29rem, 126vw, 34rem);
    min-height: 0;
  }

  .terapia-hero__visual--photo .terapia-hero__photo {
    height: 100%;
    object-position: 50% 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-list-item__image,
  .blog-card__image {
    transition: none;
  }
}
