/* Complemento dos mesmos tokens para sobre, contato, blog, arquivos, artigo e formulário */

/* Breadcrumbs */
.breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 40px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { text-decoration: underline; color: var(--blue-600); }
.breadcrumb [aria-current="page"] { color: var(--blue-900); font-weight: 600; }

/* Rank Math Breadcrumbs styling */
.rank-math-breadcrumb {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 40px;
}
.rank-math-breadcrumb a { color: var(--muted); }
.rank-math-breadcrumb a:hover { text-decoration: underline; color: var(--blue-600); }
.rank-math-breadcrumb .last { color: var(--blue-900); font-weight: 600; }
.rank-math-breadcrumb .separator { margin: 0 8px; }

/* Screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* About Page (page-sobre.php) */
.about-page-intro { padding: 40px 0 56px; background: var(--blue-025); }
.about-page-intro h1 { font-size: 60px; line-height: 68px; letter-spacing: -1.2px; }
.about-page-intro .container > p:last-child { margin-top: 24px; font-size: 19px; line-height: 29px; }
.about-page-profile { height: auto; min-height: 528px; }
.about-principles { background: var(--blue-025); padding: 56px 0; }
.about-principles h2 { max-width: 850px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin-top: 48px; }
.principle-grid span { font: 28px/36px var(--font-heading); color: var(--blue-600); }
.principle-grid h3 { font-size: 27px; line-height: 33px; margin: 16px 0; }
.principle-grid p { font-size: 16px; line-height: 26px; }
.about-expertise { padding: 64px 0; }
.about-expertise > .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-expertise h3 { font-size: 27px; line-height: 34px; margin-bottom: 12px; }
.about-expertise p:not(.eyebrow) { font-size: 16px; line-height: 26px; margin-bottom: 28px; }

/* Contact Page (page-contato.php) */
.contact-intro { height: 320px; padding: 40px 0 56px; background: var(--blue-025); }
.contact-intro h1 { font-size: 60px; line-height: 68px; }
.contact-intro > .container > p:last-child { font-size: 19px; margin-top: 20px; }
.contact-details { height: 608px; padding: 56px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.contact-grid h2 { font-size: 40px; line-height: 46px; }
.contact-lines { margin: 28px 0; display: grid; gap: 20px; }
.contact-lines > div { display: flex; gap: 20px; }
.contact-lines .icon { margin-top: 3px; color: var(--blue-600); }
.contact-lines h3 { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 6px; }
.contact-lines p, .contact-lines address, .contact-lines a:not(.text-link) { font-size: 16px; line-height: 24px; font-style: normal; }
.contact-lines .text-link { min-height: 32px; }
.contact-map { height: 496px; }

/* Contact Form Section */
.contact-form-section {
  padding: 48px 0;
  height: auto;
  min-height: 704px;
  background: var(--blue-025);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 464px);
  gap: 48px;
}
.form-layout h2 { font-size: 42px; line-height: 48px; margin-bottom: 28px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { min-width: 0; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.field label span { font-weight: 400; font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  border: 1px solid #A6BECF;
  border-radius: 6px;
  padding: 12px 14px;
  background: white;
  font: 400 16px/24px var(--font-body);
  color: var(--ink);
  min-width: 0;
}
.field input, .field select { height: 48px; }
.field textarea { height: 112px; resize: vertical; max-height: 240px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-600); }
.field [aria-invalid="true"] { border-color: #A12835; }
.field-error {
  display: block;
  min-height: 16px;
  font: 12px/16px var(--font-body);
  color: #A12835;
  margin-top: 4px;
}
.contact-form .btn { width: max-content; }
.form-explanation { font-size: 12px; line-height: 20px; color: var(--muted); }
.form-status { font-size: 13px; line-height: 20px; margin: 0; min-height: 20px; font-weight: 600; }
.form-status a { color: var(--blue-600); text-decoration: underline; }
.form-aside { padding: 64px 0 0 48px; }
.form-aside h3 { font-size: 30px; line-height: 37px; margin-bottom: 20px; }
.form-aside p { font-size: 16px; line-height: 26px; }
.form-aside hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.form-aside .small { font-size: 13px; line-height: 22px; color: var(--muted); margin-top: 24px; }

/* Contact Guidance */
.contact-guidance { height: 232px; padding: 48px 0; background: var(--blue-025); }
.guidance-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.guidance-grid h2 { font-size: 36px; line-height: 41px; }
.guidance-grid h3 { font-size: 24px; margin-bottom: 12px; }
.guidance-grid p { font-size: 16px; line-height: 24px; }
.guidance-grid .small { font-size: 12px; line-height: 18px; color: var(--muted); margin-top: 12px; }

/* Editorial / Blog List (home.php & category.php & archive.php) */
.editorial-intro { padding: 40px 0 56px; background: var(--blue-025); }
.editorial-intro h1 { font-size: 60px; line-height: 68px; letter-spacing: -1.2px; }
.editorial-intro > .container > p:last-child { font-size: 19px; line-height: 29px; margin-top: 20px; }
.editorial-list { padding: 40px 0 64px; }
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.category-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.category-nav a { font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.category-nav a[aria-current="page"], .category-nav a.active {
  border-bottom: 2px solid var(--blue-600);
  color: var(--blue-600);
  font-weight: 600;
}
.blog-search { display: flex; gap: 8px; width: 320px; flex: none; }
.blog-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 16px var(--font-body);
  color: var(--ink);
}
.blog-search .btn { min-height: 48px; padding-inline: 16px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.editorial-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  background: white;
  display: flex;
  flex-direction: column;
}
.editorial-card > .photo { height: auto; aspect-ratio: 1.75; object-fit: cover; }
.editorial-card > div { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.category-label {
  display: inline-block;
  font: 600 11px/18px var(--font-body);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.editorial-card h2 { font: 400 27px/32px var(--font-heading); letter-spacing: -0.4px; }
.editorial-card > div > p:not(.post-date) { font-size: 15px; line-height: 24px; margin-top: 16px; flex: 1; }
.editorial-card .post-date { font: 400 12px/20px var(--font-body); color: var(--muted); margin-top: 20px; }
.editorial-card .text-link { margin-top: 8px; }
.editorial-card[hidden] { display: none; }
.search-result { padding: 24px; background: var(--blue-025); font-size: 16px; border-radius: 6px; margin-bottom: 24px; }

/* Pagination */
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 40px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900);
  border: 1px solid var(--line);
}
.pagination .page-numbers.current, .pagination > span[aria-current] {
  background: var(--blue-900);
  color: white;
  border-color: var(--blue-900);
}
.pagination a.page-numbers:hover { background: var(--blue-100); text-decoration: none; }
.pagination-info { font-size: 13px; color: var(--muted); }

/* Article / Single Post (single.php) */
.article-intro { padding: 40px 0 40px; }
.article-intro .container { max-width: 1024px; }
.article-intro h1 { font-size: 60px; line-height: 67px; letter-spacing: -1.2px; }
.article-deck { font-size: 21px; line-height: 32px; margin-top: 24px; color: var(--ink); }
.article-meta {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 20px;
  margin-top: 28px;
  color: var(--muted);
}
.article-meta a { color: var(--blue-600); }
.article-cover { max-width: 1232px; margin: 0 auto; }
.article-cover > .photo { height: 420px; border-radius: 6px; object-fit: cover; }
.article-cover figcaption { font-size: 12px; line-height: 20px; color: var(--muted); margin-top: 12px; }
.article-body-wrap { max-width: 800px; margin: 48px auto 96px; }

/* CTA Box — Tratamento single */
.treatment-cta-box {
  margin-top: 56px;
  padding: 48px;
  background: linear-gradient(135deg, #0A2540 0%, #0F3B5E 100%);
  border-radius: 12px;
  color: #FFFFFF !important;
  text-align: center;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.18);
}
.treatment-cta-box h2,
.article-body-wrap .treatment-cta-box h2,
.article-body .treatment-cta-box h2 {
  font-size: 30px;
  line-height: 38px;
  margin-top: 0;
  margin-bottom: 14px;
  color: #FFFFFF !important;
  letter-spacing: -0.4px;
}
.treatment-cta-box p,
.article-body-wrap .treatment-cta-box p,
.article-body .treatment-cta-box p {
  font-size: 17px;
  line-height: 27px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9) !important;
}
.treatment-cta-box .btn,
.article-body-wrap .treatment-cta-box .btn,
.article-body .treatment-cta-box .btn {
  background: #FFFFFF !important;
  color: #0F3B5E !important;
  border-color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  min-height: 52px;
  padding-inline: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.treatment-cta-box .btn:hover,
.article-body-wrap .treatment-cta-box .btn:hover,
.article-body .treatment-cta-box .btn:hover {
  background: #E8F3F9 !important;
  color: #0B3B60 !important;
}


.article-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 720px);
  gap: 80px;
  max-width: 1024px;
  margin: 64px auto;
}
.article-toc nav { position: sticky; top: 112px; border-left: 1px solid var(--line); padding-left: 24px; }
.article-toc p {
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 1.6px;
  color: var(--blue-600);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.article-toc a { display: block; font-size: 14px; line-height: 22px; margin: 12px 0; color: var(--ink); }
.article-toc a:hover { color: var(--blue-600); }

/* Article Body Typography */
.article-body { min-width: 0; font-size: 18px; line-height: 30px; color: var(--ink); }
.article-body p { margin-bottom: 24px; }
.article-body .article-opening { font-size: 21px; line-height: 33px; }
.article-body h2 { font-size: 38px; line-height: 44px; margin: 48px 0 24px; scroll-margin-top: 112px; color: var(--blue-900); }
.article-body h3 { font-size: 27px; line-height: 34px; margin: 32px 0 16px; color: var(--blue-900); }
.article-body h4 { font: 600 20px/28px var(--font-body); margin: 28px 0 12px; color: var(--blue-900); }
.article-body h5, .article-body h6 { font: 600 18px/26px var(--font-body); margin: 24px 0 12px; color: var(--blue-900); }
.article-body strong { font-weight: 600; }
.article-body p a, .article-body li a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 4px; }
.article-body blockquote {
  background: var(--blue-025);
  border-left: 3px solid var(--blue-600);
  padding: 28px 32px;
  font-size: 30px;
  line-height: 38px;
  margin: 32px 0;
  color: var(--blue-900);
}
.article-body ul, .article-body ol { padding-left: 24px; margin: 24px 0; }
.article-body li { padding-left: 8px; margin-bottom: 12px; }

/* Tables in Article */
.table-scroll { overflow: auto; max-width: 100%; margin: 32px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.article-body caption { text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.article-body th, .article-body td { text-align: left; padding: 16px; border: 1px solid var(--line); }
.article-body th { background: var(--blue-025); font-weight: 600; color: var(--blue-900); }

/* Gutenberg Blocks */
.article-body .wp-block-image img { width: 100%; height: auto; border-radius: 6px; }
.article-body .wp-element-caption { font-size: 12px; line-height: 20px; color: var(--muted); margin-top: 12px; }
.article-body .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.article-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.article-body .wp-block-button__link {
  display: inline-flex;
  padding: 16px 24px;
  background: var(--blue-600);
  color: white;
  border-radius: 10px;
  font: 600 14px/20px var(--font-body);
  text-decoration: none;
}
.article-body .wp-block-embed__wrapper { aspect-ratio: 16/9; }
.article-body .wp-block-embed__wrapper iframe { width: 100%; height: 100%; border: 0; }

/* Tags, Author, Share */
.article-tags {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.article-tags a { color: var(--blue-600); text-decoration: underline; }
.author-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--blue-025);
  border-radius: 6px;
}
.author-box h2 { font-size: 28px; line-height: 34px; margin: 0 0 12px; }
.author-box p { font-size: 14px; line-height: 23px; margin-bottom: 8px; }
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
}
.article-share button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
}
.copy-status { font-size: 12px; color: var(--muted); }

/* Related Posts */
.related-posts { padding: 48px 0 64px; background: var(--blue-025); }
.related-posts > .container > h2 { font-size: 42px; margin-bottom: 32px; }

/* Responsive Media Queries */

/* Max-width: 1279px */
@media (max-width: 1279px) {
  .blog-controls { flex-wrap: wrap; }
  .editorial-card > div { padding: 20px; }
  .editorial-card h2 { font-size: 25px; line-height: 30px; }
  .form-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
  .form-aside { padding: 60px 0 0 24px; }
  .contact-form-section { height: auto; min-height: 660px; }
  .article-layout { grid-template-columns: 200px minmax(0, 720px); gap: 48px; }
  .article-intro h1 { font-size: 54px; line-height: 61px; }
}

/* Max-width: 1023px */
@media (max-width: 1023px) {
  .about-page-intro h1 { font-size: 48px; line-height: 56px; }
  .principle-grid { gap: 28px; }
  .principle-grid h3 { font-size: 24px; }
  .about-expertise > .container { gap: 40px; }
  .about-expertise h2 { font-size: 36px; }

  .contact-intro h1 { font-size: 46px; line-height: 52px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 420px; }
  .contact-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-guidance h2 { font-size: 32px; line-height: 37px; }
  .guidance-grid { grid-template-columns: 1fr 1fr; }

  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; max-width: 720px; gap: 32px; }
  .article-toc nav { position: static; padding: 24px; background: var(--blue-025); border: 0; border-radius: 6px; }
  .article-toc a { display: inline-block; margin: 4px 24px 4px 0; }
  .article-cover > .photo { height: auto; aspect-ratio: 2.5; }
  .article-intro h1 { font-size: 48px; line-height: 56px; }
  .article-intro .container { max-width: 720px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { padding: 24px 0 0; }
  .form-aside hr { margin: 20px 0; }
  .editorial-intro h1 { font-size: 48px; line-height: 56px; }
}

/* Max-width: 767px */
@media (max-width: 767px) {
  .breadcrumb { gap: 8px; font-size: 12px; line-height: 19px; margin-bottom: 28px; }
  .rank-math-breadcrumb { font-size: 12px; line-height: 19px; margin-bottom: 28px; }

  .about-page-intro { padding: 24px 0 36px; }
  .about-page-intro h1 { font-size: 36px; line-height: 43px; }
  .about-page-intro h1 br { display: none; }
  .about-page-intro .container > p:last-child { font-size: 16px; line-height: 25px; }
  .principle-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .about-principles { padding: 40px 0; }
  .about-expertise { padding: 40px 0; }
  .about-expertise > .container { grid-template-columns: 1fr; gap: 24px; }
  .about-expertise h2 { font-size: 32px; line-height: 36px; }
  .about-expertise h2 br { display: none; }
  .about-expertise h3 { font-size: 25px; }
  .about-page-profile { min-height: 0; }

  .contact-intro { padding: 24px 0 36px; height: auto; }
  .contact-intro h1 { font-size: 38px; line-height: 44px; }
  .contact-intro > .container > p:last-child { font-size: 16px; line-height: 25px; margin-top: 16px; }
  .contact-details { padding: 40px 0; height: auto; }
  .contact-grid { gap: 32px; }
  .contact-grid h2 { font-size: 32px; line-height: 36px; }
  .contact-lines { grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
  .contact-details .btn { width: 100%; }
  .contact-map { height: 360px; }
  .contact-guidance { padding: 36px 0; height: auto; }
  .guidance-grid { grid-template-columns: 1fr; gap: 24px; }
  .guidance-grid h2 { font-size: 30px; line-height: 35px; }

  .contact-form-section { padding: 40px 0; min-height: 0; }
  .form-layout { gap: 24px; }
  .form-layout h2 { font-size: 32px; line-height: 36px; margin-bottom: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { gap: 16px; }
  .contact-form .btn { width: 100%; font-size: 13px; }
  .form-aside { padding: 16px 0 0; }
  .form-aside h3 { font-size: 28px; line-height: 34px; }
  .field textarea { height: 128px; }

  .editorial-intro { padding: 24px 0 36px; }
  .editorial-intro h1 { font-size: 38px; line-height: 44px; }
  .editorial-intro > .container > p:last-child { font-size: 16px; line-height: 25px; }
  .editorial-list { padding: 28px 0 40px; }
  .blog-controls { gap: 20px; margin-bottom: 28px; }
  .category-nav { gap: 8px 20px; }
  .category-nav a { font-size: 13px; }
  .blog-search { width: 100%; }
  .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .editorial-card h2 { font-size: 26px; line-height: 31px; }
  .editorial-card > div { padding: 20px; }
  .pagination-info { font-size: 12px; }

  .article-intro { padding: 24px 0 28px; }
  .article-intro h1 { font-size: 38px; line-height: 44px; }
  .article-intro h1 br { display: none; }
  .article-deck { font-size: 18px; line-height: 28px; margin-top: 20px; }
  .article-deck br { display: none; }
  .article-meta { gap: 10px 20px; font-size: 12px; line-height: 20px; margin-top: 24px; }
  .article-meta > span { display: block; }
  .article-cover > .photo { aspect-ratio: 1.75; }
  .article-cover figcaption { font-size: 11px; line-height: 18px; }
  .article-layout { margin-top: 32px; margin-bottom: 40px; gap: 28px; }
  .article-toc nav { display: flex; flex-direction: column; align-items: stretch; padding: 20px; }
  .article-toc a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 10px 0; font-size: 14px; line-height: 22px; }
  .article-toc p { margin-bottom: 8px; }
  .article-body { font-size: 17px; line-height: 28px; }
  .article-body .article-opening { font-size: 19px; line-height: 30px; }
  .article-body h2 { font-size: 30px; line-height: 36px; margin-top: 36px; margin-bottom: 20px; }
  .article-body h3 { font-size: 25px; line-height: 31px; }
  .article-body blockquote { font-size: 26px; line-height: 33px; padding: 24px; }
  .article-body table { font-size: 13px; line-height: 21px; min-width: 340px; }
  .article-body th, .article-body td { padding: 12px; }
  .author-box { padding: 24px; }
  .author-box h2 { font-size: 26px; line-height: 32px; margin-top: 0; }
  .related-posts { padding: 36px 0 40px; }
  .related-posts > .container > h2 { font-size: 32px; line-height: 36px; }

  .article-body-wrap { margin: 28px auto 56px; }
  .treatment-cta-box {
    margin-top: 36px;
    padding: 32px 20px;
  }
  .treatment-cta-box h2,
  .article-body-wrap .treatment-cta-box h2,
  .article-body .treatment-cta-box h2 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 12px;
    color: #FFFFFF !important;
  }
  .treatment-cta-box p,
  .article-body-wrap .treatment-cta-box p,
  .article-body .treatment-cta-box p {
    font-size: 15px;
    line-height: 23px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .treatment-cta-box .btn {
    width: 100%;
    justify-content: center;
  }
}
