/* Blocos usados pela home, pelas páginas de especialidade e pelos guias. */

.brand { font-weight: 700; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }

/* =========================================================
   FORMULÁRIO
   ========================================================= */
.apply { background: var(--ink); color: var(--paper); }
.apply .lead { color: #D9D1C5; }
.apply .h2 em { color: var(--accent-dark); }
.apply__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.apply__points { margin-top: 30px; display: grid; gap: 10px; }
.apply__points li { font-family: var(--f-mono); font-size: 13px; color: var(--muted-dark); padding-left: 22px; position: relative; }
.apply__points li::before { content: "→"; position: absolute; left: 0; color: var(--accent-dark); }
@media (max-width: 900px) { .apply__grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper); color: var(--ink);
  border-radius: 16px; padding: clamp(22px, 3vw, 40px);
  box-shadow: 12px 12px 0 var(--accent-dark);
  min-height: 460px; display: flex; flex-direction: column;
}
.form__progress { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.form__bar { flex: 1; height: 3px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.form__bar i { display: block; height: 100%; background: var(--accent-text); transition: width .4s var(--ease); }
.form__q { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -.02em; margin: 26px 0 22px; }
.form__q:focus { outline: none; }
.form__opts { display: grid; gap: 10px; }
.form__opt {
  text-align: left; width: 100%;
  background: transparent; border: 1px solid var(--ink); border-radius: 12px;
  padding: 16px 18px; font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.form__opt::after { content: "→"; opacity: .35; transition: opacity .2s, transform .2s var(--ease); }
.form__opt:hover, .form__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.form__opt:hover::after, .form__opt[aria-pressed="true"]::after { opacity: 1; transform: translateX(3px); }
.form__field { display: grid; gap: 6px; margin-bottom: 14px; }
.form__field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form__field input {
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--ink); border-radius: 12px; padding: 15px 16px; width: 100%;
}
.form__field input:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.form__count { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: right; }
.form__error { color: var(--accent-text); font-weight: 600; font-size: 14px; min-height: 22px; margin-top: 10px; }
.form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.form__back { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--muted); }
.form__back:hover { color: var(--ink); }
.form__note { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.form__alt { display: grid; gap: 10px; }
.form__alt .btn { justify-content: center; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.form__privacy { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 24px 0; font-size: clamp(18px, 1vw + 12px, 22px); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 34px; line-height: .6; color: var(--accent-text); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq .section__head { margin-bottom: 0; } }

/* =========================================================
   CTA FINAL + RODAPÉ
   ========================================================= */
.final { background: var(--accent-dark); color: var(--ink); padding-block: clamp(80px, 12vw, 170px); text-align: center; }
.final__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 8vw, 128px); line-height: .9; letter-spacing: -.03em; max-width: 13ch; margin-inline: auto; text-wrap: balance; }
.final__title em { color: var(--ink); }
.final__sub { font-size: clamp(17px, 1.1vw + 11px, 21px); margin: 26px auto 38px; max-width: 44ch; }
.final .btn--accent { background: var(--ink); color: var(--paper); }
.final .btn--accent:hover { background: var(--paper); color: var(--ink); }

.footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 110px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.footer .brand { color: var(--paper); }
.footer__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--paper); text-decoration: none; }
.footer__links a:hover { color: var(--accent-dark); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--panel-line); padding-top: 22px; font-size: 12px; }
@media (min-width: 761px) { .footer { padding-bottom: 56px; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* CTA fixo (mobile) */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: none; justify-content: center; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
  padding: 17px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20,18,16,.3), 5px 5px 0 var(--accent);
  transition: transform .35s var(--ease), opacity .35s;
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,18,16,.88); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: 8px; background: #fff; padding: 8px; }
.lightbox__close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 0; font-size: 24px; line-height: 1;
}


/* =========================================================
   BREADCRUMB E RELACIONADOS (especialidades e guias)
   ========================================================= */
/* Breadcrumb (também usado nas páginas de especialidade) */
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current] { color: var(--muted); }

/* Relacionados */
.related { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 28px; }
.related__grid a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; min-height: 170px; transition: background-color .25s; }
.related__grid a:hover { background: var(--paper-2); }
.related__grid span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.related__grid strong { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.05; }
@media (max-width: 860px) { .related__grid { grid-template-columns: 1fr; } .related__grid a { min-height: 0; } }

.related__more { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; align-items: baseline; }
.related__more p { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.related__more a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.related__more a:hover { background: var(--ink); color: var(--paper); }
.related .crumbs { padding: 0 0 22px; }

/* =========================================================
   QUEM ESTÁ POR TRÁS (páginas de especialidade)
   ========================================================= */
.pg-about { background: var(--paper); color: var(--ink); padding-block: var(--section-y); border-top: 1px solid var(--line); }
.pg-about__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.pg-about__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 14px 14px 0 var(--accent); }
.pg-about__photo picture, .pg-about__photo img { display: block; width: 100%; height: 100%; }
.pg-about__photo img { object-fit: cover; object-position: left 35%; transform: scale(1.06); transform-origin: left center; filter: grayscale(1) sepia(.18) contrast(1.06) brightness(1.02); transition: filter .6s var(--ease); }
.pg-about__photo:hover img { filter: none; }
.pg-about__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(20,18,16,.92) 30%, transparent);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #E6DFD4;
}
.pg-about__photo figcaption b { color: var(--paper); }
.pg-about__copy > p:not(.eyebrow) { margin-top: 22px; max-width: 56ch; color: var(--ink-2); }
.pg-about__copy strong { color: var(--ink); }
.pg-about__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 34px 0 30px; }
.pg-about__stats div { padding: 16px 12px 16px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.pg-about__stats dd { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; margin: 0; }
.pg-about__stats dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-about .link-arrow { color: var(--ink); }
@media (max-width: 820px) {
  .pg-about__grid { grid-template-columns: 1fr; }
  .pg-about__photo { max-width: 420px; box-shadow: 10px 10px 0 var(--accent); }
}
.pg-about.pg-about .eyebrow { color: var(--accent-text); }
.pg-about.pg-about .h2 { color: var(--ink); }
.pg-about.pg-about .h2 em { color: var(--accent); }
.pg-about .pg-about__copy > p:not(.eyebrow) { color: var(--ink-2); }
.related.related .eyebrow { color: var(--accent-text); }
.related.related .h2 { color: var(--ink); }
.related.related .h2 em { color: var(--accent); }
