/* Página Advocacia Pro Bono (Figma: frame "Pro Bono" 86:7254) */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pro-bono { --pb-dark: #1e1e1e; --pb-gray: #838383; --pb-radio: #d9d9d9; padding-bottom: 10.7rem; }
.pro-bono + .site-footer { padding-top: 4.6rem; }

/* Topo escuro sobre foto */
.pb-top { position: relative; height: 53.6rem; overflow: hidden; color: var(--white); background: var(--navy); }
.pb-top::before { content: ""; position: absolute; inset: 0; background: rgba(23, 49, 96, .8); z-index: 1; }
.pb-top__bg { position: absolute; inset: 0; background: var(--navy) center/cover no-repeat; }
.js .pb-top__bg { transform: scale(1.06); transition: transform 2.6s var(--ease); }
.js.is-loaded .pb-top__bg { transform: scale(1); }
.pb-top__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 3.4rem; }
.pb-top__title { font: 400 6.5rem/6.5rem var(--serif); text-transform: uppercase; white-space: nowrap; }
.pb-top__text { font-size: 1.4rem; line-height: 2rem; max-width: 64rem; margin-top: 1.5rem; }

/* Bloco escuro de abertura */
.pb-intro__box { display: grid; grid-template-columns: 1fr 41.2rem; column-gap: 4rem; background: var(--pb-dark); color: var(--white); padding: 7.7rem 9rem 7.7rem 10.9rem; }
.pb-intro__aside { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.pb-intro__icon { width: 9.3rem; height: 9.3rem; }
.pb-intro__title { font: 400 3rem/3.5rem var(--serif); text-transform: uppercase; max-width: 36rem; }
.pb-intro__text { font-size: 1.6rem; line-height: 2rem; }
.pb-intro__text p + p { max-width: 40rem; }
.pb-intro__text p + p { margin-top: 2rem; }

/* Temas de atenção prioritária */
.pb-themes { padding-top: 8.9rem; }
.pb-themes__title { font: 400 4.5rem/5.5rem var(--serif); color: var(--pb-dark); text-transform: uppercase; max-width: 53rem; margin-left: -0.2rem; }
.pb-themes__text { font-size: 1.6rem; line-height: 2rem; max-width: 63.5rem; margin-top: 3rem; }
.pb-themes__text p + p { margin-top: 2rem; }
.pb-themes__grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 0.9rem; margin-top: 3.1rem; }
.theme-card { position: relative; height: 53.1rem; background: var(--pb-dark); color: var(--white); border-radius: 1.2rem 1.2rem 1.5rem 1.5rem; padding-bottom: 2.4rem; }
.theme-card__img { height: 35rem; border-radius: 1.2rem; overflow: hidden; }
.theme-card__img img { width: 100%; height: 100%; object-fit: cover; }
.theme-card__title { display: flex; align-items: flex-end; min-height: 4rem; margin: 1.9rem 2.7rem 0; font: 500 2rem/2rem var(--sans); }
.theme-card__text { margin: 1.9rem 0 0 2.7rem; font-size: 1.4rem; line-height: 2rem; }
.theme-card:nth-child(1) .theme-card__title { max-width: 27rem; }
.theme-card:nth-child(1) .theme-card__text { max-width: 28.4rem; }
.theme-card:nth-child(2) .theme-card__text { max-width: 25.3rem; }
.theme-card:nth-child(3) .theme-card__text { max-width: 26rem; }
.theme-card:nth-child(4) .theme-card__text { max-width: 26.7rem; }
.theme-card__badge { position: absolute; z-index: 1; height: auto; }
.theme-card__badge--top { width: 6rem; left: 25.6rem; top: 1.7rem; }
.theme-card__badge--bottom { width: 4.7rem; left: 26.5rem; top: 28.8rem; }

/* Demandas que podem ser avaliadas */
.pb-demands { padding-top: 9.6rem; }
.pb-demands .container { padding-left: 11.2rem; padding-right: 5.5rem; }
.pb-demands__head { display: flex; justify-content: space-between; align-items: flex-end; }
.pb-demands__title { font: 400 4.5rem/5.5rem var(--serif); color: var(--pb-dark); text-transform: uppercase; max-width: 53rem; }
.pb-demands__intro { font-size: 1.6rem; line-height: 2rem; max-width: 32.5rem; margin: 0 0.7rem 0.7rem 0; }
.demand-list { list-style: none; margin: 3.9rem 0 0; padding: 0; }
.demand { position: relative; display: grid; grid-template-columns: 16.9rem 1fr auto; align-items: center; height: 10.1rem; }
.demand:nth-child(2) { height: 11.1rem; }
.demand:nth-child(3) { height: 9.6rem; }
.demand:nth-child(4) { height: 10.6rem; }
.demand:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 5.9rem; bottom: 0; border-top: 1px solid var(--pb-dark); }
.demand__icon { display: flex; align-items: center; }
.demand__icon img { height: auto; }
.demand .ic-contrato { width: 5.1rem; }
.demand .ic-pasta { width: 4.5rem; }
.demand .ic-regularizacao { width: 4.1rem; }
.demand .ic-bussola { width: 4.2rem; }
.demand__name { font: 400 2rem/2rem var(--serif); color: var(--pb-dark); }
.demand__text { font-size: 1.4rem; line-height: 2rem; text-align: right; margin-right: 5rem; }
.demand:nth-child(2) .demand__text { position: relative; top: -0.6rem; }
.demand:nth-child(3) .demand__text { position: relative; top: 0.2rem; }

/* O atendimento pressupõe */
.pb-terms { display: flex; align-items: flex-start; margin-top: 6.9rem; }
.pb-terms__box { flex: 0 0 88.7rem; }
.pb-terms__line { border: 0; border-top: 1px solid var(--pb-gray); margin: 0; }
.pb-terms__body { display: grid; grid-template-columns: 21.5rem 1fr; padding: 2.8rem 0 2.1rem; color: var(--pb-gray); }
.pb-terms__label { font: 400 2.2rem/2.2rem var(--serif); max-width: 16rem; margin-top: 0.1rem; }
.pb-terms__text { font-size: 1.4rem; line-height: 2.5rem; max-width: 67rem; }
.pb-terms__btn { margin-left: 8rem; width: 25.8rem; height: 5.9rem; padding: 0; }

/* Como funciona */
.pb-how { padding-top: 10rem; }
.pb-how__box { position: relative; isolation: isolate; color: var(--white); padding: 0 5.5rem 5.8rem 5.3rem; }
.pb-how__box::before { content: ""; position: absolute; left: 0; right: -0.1rem; top: 14.9rem; bottom: 0; background: var(--pb-dark); z-index: -1; }
.pb-how__photo { height: 34.5rem; border-radius: 1.2rem; overflow: hidden; }
.pb-how__photo img { width: 100%; height: 100%; object-fit: cover; }
.pb-how__head { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 3.5rem; }
.pb-how__title { font: 400 4.5rem/5.5rem var(--serif); text-transform: uppercase; }
.pb-how__subtitle { font: 400 2rem/2.5rem var(--serif); max-width: 38rem; margin-top: 1.1rem; }
.pb-how__text { font-size: 1.4rem; line-height: 2rem; width: 39.6rem; padding-right: 0.6rem; margin-top: 1.6rem; }
.pb-how__text p + p { margin-top: 2rem; }
.steps { position: relative; height: 20.1rem; margin-top: 9.4rem; }
.steps__line { position: absolute; left: 4.8rem; width: 112.1rem; top: 9.7rem; height: 0.3rem; background: var(--pb-radio); }
.js .steps__line[data-reveal="line"] { transform: scaleX(0); }
.js .steps__line[data-reveal="line"].is-in { transform: scaleX(1); }
.steps__list { list-style: none; margin: 0; padding: 0; }
.step { position: absolute; top: 0; width: 20rem; margin-left: -10rem; height: 100%; display: flex; flex-direction: column; align-items: center; }
.step--1 { left: 4.75rem; }
.step--2 { left: 42.15rem; }
.step--3 { left: 78.25rem; }
.step--4 { left: 116.85rem; }
.step__icon { display: flex; align-items: center; justify-content: center; height: 4.7rem; }
.step__icon img { height: auto; }
.step .ic-chat { width: 4.6rem; }
.step .ic-arquivo { width: 4.7rem; }
.step .ic-retorno { width: 3.6rem; }
.step .ic-usuario { width: 4.7rem; }
.step--2 .step__icon { margin-left: 0.6rem; }
.step__dot { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e3e3e3; margin-top: 3.5rem; position: relative; z-index: 1; }
.step__name { display: flex; align-items: center; justify-content: center; height: 6rem; margin-top: 2.4rem; font: 700 2rem/3rem var(--serif); text-align: center; max-width: 14rem; }
.step--1 .step__name { margin-left: 1.2rem; }
.steps__arrow { position: absolute; top: 15.4rem; width: 3.4rem; height: auto; }
.steps__arrow--1 { left: 22.7rem; }
.steps__arrow--2 { left: 58.9rem; }
.steps__arrow--3 { left: 94.7rem; }
.pb-how__cta { display: flex; justify-content: flex-end; margin-top: 5.3rem; }
.pb-how__btn { width: 21.1rem; height: 5.9rem; padding: 0; color: var(--pb-dark); }

/* Formulário */
.pb-form { padding-top: 13.7rem; }
.pb-form__grid { display: grid; grid-template-columns: 1fr 79rem; column-gap: 4rem; }
.pb-form__title { font: 400 3rem/3.5rem var(--serif); color: var(--pb-dark); text-transform: uppercase; max-width: 24rem; }
.pb-form__text { font-size: 1.6rem; line-height: 2rem; max-width: 26rem; margin-top: 3rem; }
.pb-form__form { position: relative; }
.pb-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--full { grid-column: 1 / -1; }
.field { position: relative; display: block; }
.field input, .field textarea {
  display: block; width: 100%; height: 6rem; margin: 0; padding: 2rem;
  border: 1px solid var(--pb-gray); border-radius: 1.2rem; background: var(--white);
  font: 400 1.4rem/2rem var(--sans); color: var(--ink);
  -webkit-appearance: none; appearance: none; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: none; min-height: 6rem; overflow: auto; }
.field input::placeholder, .field textarea::placeholder { color: var(--pb-gray); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

.pb-docs { display: flex; align-items: center; height: 6rem; margin: 0; padding: 0 0 0 2rem; border: 0; min-width: 0; }
.pb-docs__question { float: left; width: 37.5rem; padding: 0; font-size: 1.4rem; line-height: 2rem; color: var(--pb-gray); margin-top: -0.6rem; position: relative; top: 0.7rem; }
.pb-radio { display: inline-flex; align-items: center; gap: 1rem; font-size: 1.4rem; line-height: 1; color: var(--pb-gray); cursor: pointer; }
.pb-radio + .pb-radio { margin-left: 3.5rem; }
.pb-radio { position: relative; top: 0.4rem; }
.pb-radio--sim { margin-left: 1rem; }
.pb-radio input { -webkit-appearance: none; appearance: none; flex: none; width: 2rem; height: 2rem; margin: 0; border-radius: 50%; background: var(--pb-radio); cursor: pointer; transition: background .2s, box-shadow .2s; }
.pb-radio input:checked { background: var(--navy); box-shadow: inset 0 0 0 0.4rem var(--pb-radio); }
.pb-radio input:focus-visible { outline: 1px solid var(--navy); outline-offset: 2px; }

.pb-upload { position: relative; display: flex; align-items: flex-start; gap: 1rem; height: 6rem; padding: 2rem 2rem 0; font-size: 1.4rem; line-height: 2rem; color: var(--pb-gray); cursor: pointer; }
.pb-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pb-upload img { width: 2.3rem; height: 2.3rem; }
.pb-upload:hover .pb-upload__label, .pb-upload input:focus-visible ~ .pb-upload__label { color: var(--navy); text-decoration: underline; }

.pb-form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2.7rem; margin-right: -0.1rem; }
.consent { display: flex; align-items: center; gap: 1rem; padding: 0 1rem; font-size: 1rem; line-height: 1rem; color: var(--pb-gray); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; flex: none; width: 1.4rem; height: 1.4rem; margin: 0; border-radius: 50%; background: var(--pb-radio); cursor: pointer; transition: background .2s, box-shadow .2s; }
.consent input:checked { background: var(--navy); box-shadow: inset 0 0 0 0.3rem var(--pb-radio); }
.consent input:focus-visible { outline: 1px solid var(--navy); outline-offset: 2px; }
.pb-form__foot .btn { width: 27.6rem; height: 5.9rem; padding: 0; }
.pb-form .form-status { position: absolute; left: 1rem; top: 100%; margin-top: 1.2rem; font-size: 1.4rem; line-height: 2rem; }
.form-status.is-ok { color: var(--navy); }
.form-status.is-error { color: #b3261e; }

/* ---------- Responsivo ---------- */
@media (max-width: 1199px) {
  .pb-top { height: auto; }
  .pb-top__inner { min-height: 46rem; padding-top: 16rem; padding-bottom: 4rem; }
  .pb-top__title { font-size: 5.6rem; line-height: 6rem; white-space: normal; }
  .pb-intro .container { padding: 0; }
  .pb-intro__box { grid-template-columns: 1fr 1fr; padding: 7rem var(--gutter); column-gap: 5rem; }
  .pb-intro__title { margin-top: 5rem; }
  .pb-themes { padding-top: 8rem; }
  .pb-themes__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .theme-card:nth-child(n) .theme-card__text, .theme-card:nth-child(n) .theme-card__title { max-width: none; margin-right: 2.7rem; }
  .theme-card { height: auto; }
  .theme-card__badge--top { left: auto; right: 1.2rem; }
  .theme-card__badge--bottom { left: auto; right: 1.6rem; }
  .pb-demands { padding-top: 8rem; }
  .pb-demands .container { padding: 0 var(--gutter); }
  .pb-demands__head { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .pb-demands__intro { margin: 0; }
  .demand:nth-child(n) { height: auto; min-height: 9.6rem; padding: 2.4rem 0; grid-template-columns: 8rem 22rem 1fr; column-gap: 2rem; }
  .demand::after { right: 0 !important; }
  .demand__text { margin-right: 0; }
  .pb-top__text br { display: none; }
  .demand:nth-child(n) .demand__text { top: 0; }
  .pb-terms { flex-direction: column; gap: 4rem; }
  .pb-terms__box { flex: none; width: 100%; }
  .pb-terms__btn { margin-left: 0; }
  .pb-how { padding-top: 8rem; }
  .pb-how .container { padding: 0; }
  .pb-how__box { padding: 0 var(--gutter) 6rem; }
  .pb-how__box::before { right: 0; top: 15rem; }
  .pb-how__head { gap: 4rem; }
  .pb-how__text { width: auto; max-width: 42rem; }
  .steps { height: auto; margin-top: 7rem; }
  .steps__line, .steps__arrow { display: none; }
  .steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
  .steps__list::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9.7rem; height: 0.3rem; background: var(--pb-radio); }
  .step { position: relative; left: auto !important; width: auto; margin: 0; height: auto; }
  .step--1 .step__name, .step--2 .step__icon { margin-left: 0; }
  .step__name { font-size: 1.8rem; line-height: 2.6rem; }
  .pb-form { padding-top: 9rem; }
  .pb-form__grid { grid-template-columns: 1fr; row-gap: 4rem; }
  .pb-form__title { max-width: none; }
  .pb-form__text { max-width: 44rem; margin-top: 1.6rem; }
}

@media (max-width: 720px) {
  .pro-bono { padding-bottom: 8rem; }
  .pb-top__inner { min-height: 52rem; padding-top: 14rem; }
  .pb-top__title { font-size: 4rem; line-height: 4.4rem; }
  .pb-intro__box { grid-template-columns: 1fr; row-gap: 3rem; padding: 5rem var(--gutter); }
  .pb-intro__icon { width: 7rem; height: 7rem; }
  .pb-intro__title { margin-top: 3rem; font-size: 2.4rem; line-height: 3rem; }
  .pb-themes { padding-top: 6rem; }
  .pb-themes__title, .pb-demands__title, .pb-how__title { font-size: 3.2rem; line-height: 4rem; margin-left: 0; }
  .pb-themes__grid { grid-template-columns: 1fr; }
  .theme-card__img { height: 30rem; }
  .theme-card__title { min-height: 0; }
  .theme-card__badge--bottom { top: 24.8rem; }
  .pb-demands { padding-top: 7rem; }
  .demand-list { margin-top: 2.4rem; }
  .demand:nth-child(n) { grid-template-columns: 5.6rem 1fr; row-gap: 0.8rem; column-gap: 1.6rem; }
  .demand__icon { grid-row: 1 / span 2; align-self: start; }
  .demand__name br { display: none; }
  .demand__text { text-align: left; }
  .pb-terms { margin-top: 4rem; }
  .pb-terms__body { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .pb-terms__btn { width: 100%; }
  .pb-how__box::before { top: 12rem; }
  .pb-how__photo { height: 24rem; }
  .pb-how__head { flex-direction: column; gap: 2.4rem; }
  .pb-how__subtitle { font-size: 1.8rem; line-height: 2.4rem; }
  .pb-how__text { margin-top: 0; max-width: none; }
  .steps { margin-top: 5rem; }
  .steps__list { grid-template-columns: 1fr; gap: 0; }
  .steps__list::before { left: 1.6rem; right: auto; top: 3rem; bottom: 3rem; width: 0.3rem; height: auto; }
  .step { display: grid; grid-template-columns: 3.5rem 5.6rem 1fr; align-items: center; column-gap: 1.6rem; padding: 1.4rem 0; }
  .step__icon { grid-column: 2; grid-row: 1; height: auto; justify-content: flex-start; }
  .step .step__icon img { width: 3.6rem; }
  .step__dot { grid-column: 1; grid-row: 1; margin: 0; }
  .step__name { grid-column: 3; grid-row: 1; height: auto; margin: 0; max-width: none; justify-content: flex-start; text-align: left; }
  .pb-how__cta { justify-content: flex-start; margin-top: 4rem; }
  .pb-how__btn { width: 100%; }
  .pb-form { padding-top: 7rem; }
  .pb-form__fields { grid-template-columns: 1fr; }
  .pb-docs { flex-wrap: wrap; height: auto; padding: 1rem 1rem 0; row-gap: 1.4rem; }
  .pb-docs__question { float: none; width: 100%; margin: 0; top: 0; }
  .pb-radio { top: 0; }
  .pb-radio--sim { margin-left: 0; }
  .pb-upload { padding: 1rem 1rem 0; height: auto; }
  .pb-form__foot { flex-direction: column; align-items: stretch; gap: 2.4rem; margin-top: 2.4rem; }
  .pb-form__foot .btn { width: 100%; }
  .consent { padding: 0; line-height: 1.4rem; }
  .pb-form .form-status { position: static; margin: 1.6rem 0 0; }
}

/* No celular as quebras manuais do desktop saem, para o texto se ajustar à tela */
@media (max-width: 720px) { .theme-card__title br, .demand__name br, .pb-top__text br { display: none; } }
