/* =====================================================================
   Definirs v3 - componentes das paginas internas (Services, About, Insights,
   Contact). Usa os tokens e componentes de site.css.
   ===================================================================== */

/* hero de pagina: capitulo navy, texto a esquerda, foto numa janela de linhas a direita.
   Sem fixacao nem abertura em tela cheia (isso fica so na Home) */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 6vh, 80px)) 0 clamp(64px, 8vw, 112px); }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; min-height: min(72vh, 760px); }
.page-hero__copy { grid-column: 1 / span 7; display: grid; gap: 28px; }
.page-hero__copy .display { font-size: clamp(40px, 4.4vw, 80px); }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 56ch; }
.page-hero__photo { grid-column: 9 / span 4; }
.page-hero__photo img { aspect-ratio: 3 / 4; }
/* desktop: o hero sempre preenche a tela inteira ao abrir a pagina */
@media (min-width: 1025px) {
  .page-hero { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; }
}
@media (max-width: 1024px) {
  .page-hero__grid { min-height: 0; }
  .page-hero__copy, .page-hero__photo { grid-column: 1 / -1; }
  /* celular/tablet: como o hero da Home - largura da coluna, 4:5, janela deitada para a direita */
  .page-hero__photo { width: 100%; margin: 48px 0 0; }
  .page-hero__photo img { aspect-ratio: 4 / 5; }
}

/* faixa de chamada no fim das paginas internas: capitulo navy com os aneis do simbolo */
.cta-band { overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: min(46vw, 620px); aspect-ratio: 1;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 25px, rgba(255, 255, 255, .07) 25px 26.5px);
  -webkit-mask: radial-gradient(circle at 100% 100%, #000 55%, transparent 72%);
  mask: radial-gradient(circle at 100% 100%, #000 55%, transparent 72%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; display: grid; gap: 32px; }
.cta-band .display { font-size: clamp(40px, 5vw, 88px); max-width: 14ch; }
.cta-band p { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 52ch; }

/* ------------------------------------------------------------- Services */
/* What are you trying to achieve?: objetivos a esquerda; um painel com duas colunas
   ("What this means for you" | "What we do") que trocam juntas. Usa a grade do .intents
   (site.css): .intent em display: contents, o painel sticky na coluna 2 */
.achieve__title { max-width: none; }
.achieve__sub { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.objectives { margin-top: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 3vw, 48px); }
.objectives .intent__q {
  position: relative; padding: 22px 40px 22px 0;
  font-size: clamp(20px, 1.75vw, 28px); line-height: 1.2;
}
.objectives .intent__q::after {
  content: "\2192"; position: absolute; right: 4px; top: 22px; font-family: var(--sans);
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease-out);
}
.objectives .intent.is-active .intent__q::after { opacity: 1; transform: none; }
.objectives .intent.is-active .intent__q { text-underline-offset: 6px; }
.objectives .intent__a {
  grid-row: 1 / span 6;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: clamp(28px, 3vw, 44px) 0;
  font-size: 17px; line-height: 1.6;
}
.obj__col { padding: 0 clamp(24px, 2.8vw, 44px); }
.obj__col + .obj__col { border-left: 1px solid var(--rule); }
.obj__h { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; margin: 0 0 20px; }
.obj__triggers { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--insight); }
.obj__label { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.obj__triggers p:not(.obj__label) { color: var(--ink-soft); }
.obj__service { font-weight: 600; color: var(--insight); margin-bottom: 14px; }
.obj__list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.obj__list li::marker { color: var(--insight); }
.achieve__foot { margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
@media (max-width: 1024px) {
  /* acordeao: o painel abre logo abaixo do objetivo, com as duas colunas empilhadas */
  .objectives .intent__a { grid-template-columns: 1fr; display: none; padding: 28px 0; margin: 0 0 20px; }
  .objectives .intent.is-active .intent__a { display: grid; }
  .obj__col + .obj__col { border-left: 0; border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 28px; }
}

/* tres principios: colunas separadas por fios */
.principles__title { margin-bottom: clamp(48px, 6vw, 88px); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { padding: 0 clamp(20px, 3vw, 48px); border-left: 1px solid var(--rule-inverse); }
.principle:first-child { padding-left: 0; border-left: 0; }
.principle h3 { font-size: clamp(26px, 2.4vw, 40px); line-height: 1.1; margin-bottom: 20px; }
.principle p { color: rgba(255, 255, 255, .84); font-size: var(--fs-lead); line-height: 1.55; }
@media (max-width: 1024px) {
  .principles { grid-template-columns: 1fr; gap: 40px; }
  .principle { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--rule-inverse); }
  .principle:first-child { border-top: 0; padding-top: 0; }
}

/* --------------------------------------------------------------- About */
/* a sigla: cada pedaco se abre na palavra (JS); sem movimento, fica aberta */
.acronym { position: relative; margin-bottom: clamp(56px, 7vw, 104px); }
/* a frase aberta ("Development Finance Integrity Risk Services") precisa caber na coluna */
.acronym__line, .acronym__name { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 60px); line-height: 1.05; white-space: nowrap; }
.acronym__rest { display: inline-block; overflow: hidden; vertical-align: bottom; color: rgba(45, 62, 80, .5); white-space: pre; }
.acronym__name { position: absolute; left: 0; top: 0; opacity: 0; }
html:not(.motion) .acronym__name { display: none; }
@media (max-width: 767px) {
  /* no celular a sigla vem aberta, uma palavra por linha */
  .acronym__line { white-space: normal; }
  .acronym__line > span { display: block; }
  .acronym__rest { display: inline; }
  .acronym__name { display: none; }
}
.why__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.why__title { grid-column: 1 / span 5; }
.why__text { grid-column: 7 / span 6; font-size: var(--fs-lead); line-height: 1.55; }
.why__close { grid-column: 7 / span 6; margin-top: 40px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 40px); line-height: 1.2; }
@media (max-width: 1024px) {
  .why__title, .why__text, .why__close { grid-column: 1 / -1; }
  .why__text { margin-top: 32px; }
}
.work__title { margin-bottom: clamp(40px, 5vw, 72px); }
.work .versus { margin-top: 0; }

.people__title { margin-bottom: clamp(48px, 6vw, 88px); }
.people { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 128px); row-gap: 80px; }
.person { display: grid; grid-template-columns: minmax(160px, 38%) 1fr; column-gap: clamp(24px, 3vw, 48px); align-items: start; }
/* retratos quadrados com cantos arredondados; a foto entra pelos aneis do simbolo */
.person__photo { border-radius: var(--radius); overflow: hidden; }
.person__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius); }
.person h3 { font-size: clamp(28px, 2.4vw, 40px); line-height: 1.1; }
.person__role { color: var(--insight); font-weight: 600; margin: 8px 0 18px; }
.person__bio { line-height: 1.6; }
.person .link-action { margin-top: 18px; }
@media (max-width: 1024px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .person { grid-template-columns: 1fr; row-gap: 28px; }
  .person__photo { width: min(280px, 70%); }
}

/* ------------------------------------------------------------- Insights */
.cats__title { margin-bottom: clamp(40px, 5vw, 72px); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); padding-top: clamp(40px, 4vw, 64px); }
.cat { padding: 0 clamp(20px, 3vw, 48px); border-left: 1px solid var(--rule); }
.cat:first-child { padding-left: 0; border-left: 0; }
.cat h3 { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.08; margin-bottom: 20px; }
.cat p { font-size: var(--fs-lead); line-height: 1.55; max-width: 36ch; }
@media (max-width: 1024px) {
  .cats { grid-template-columns: 1fr; gap: 40px; }
  .cat { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cat:first-child { border-top: 0; padding-top: 0; }
}

/* -------------------------------------------------------------- Contact */
.contact-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.contact-page .contact__text { gap: 28px; }
.contact-page h1 { font-size: clamp(44px, 5.2vw, 92px); line-height: 1.02; max-width: 13ch; }
.details { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
/* menores, a pedido do cliente: no tamanho do texto de apoio */
.details a, .details span { font-family: var(--sans); font-size: var(--fs-lead); line-height: 1.5; color: var(--white); text-decoration: none; }
.details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
.details a:hover, .details a:focus-visible { background-size: 100% 1px; }
.details span { color: rgba(255, 255, 255, .7); }

/* --------------------------------------------------- Privacy Statement */
.legal-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.legal__text { display: grid; gap: 28px; max-width: 60ch; }
.legal__text h1 { font-size: clamp(44px, 5.2vw, 92px); line-height: 1.02; }
.legal__text p { font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.legal__text p a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal__text p a:hover, .legal__text p a:focus-visible { text-decoration-thickness: 2px; }
.legal__text .actions { margin-top: 8px; }

/* chamada final em capitulo claro (Services: fica entre o navy dos principios e o rodape) */
.cta-plain { display: grid; gap: 32px; }
.cta-plain__title { font-size: clamp(40px, 5vw, 88px); max-width: 14ch; }
.cta-plain p { font-size: var(--fs-lead); line-height: 1.55; max-width: 52ch; }

/* Contact: no celular/tablet a foto ocupa a coluna, deitada (4:3), revelada pelos aneis */
@media (max-width: 1024px) {
  .contact-page .contact__photo { margin: 56px 0 0; }
}

/* Contact no desktop: a foto ocupa a metade direita da secao, de cima a baixo; o SVG
   desenha o arco cortado pela borda da tela (como o hero da Home) */
@media (min-width: 1025px) {
  html.motion .contact-page { position: relative; overflow: hidden; }
  html.motion .contact-page .contact__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; }
}
@media (min-width: 1025px) {
  html.motion .page-hero { position: relative; overflow: hidden; }
  html.motion .page-hero .page-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin: 0; }
}

/* tablet (768-1024): a janela deitada fica numa caixa horizontal (3:2) - em 4:5 com a
   largura inteira da coluna ela passava de 1000px de altura */
@media (min-width: 768px) and (max-width: 1024px) {
  .page-hero__photo img { aspect-ratio: 3 / 2; }
}

/* tablet e celular: o hero das paginas internas fica so com o texto, sem a foto */
@media (max-width: 1024px) {
  .page-hero .page-hero__photo { display: none; }
}

/* ------------------------------------------ Insights: biblioteca com filtros */
.library__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.library__head .cats__title { margin-bottom: clamp(40px, 5vw, 72px); }
.library__all {
  font: 600 16px/1.2 var(--sans); color: var(--navy); background: none; border: 0; padding: 6px 0; cursor: pointer;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out);
}
.library__all[aria-pressed="true"] { color: var(--action); }
.library__all:hover { background-size: 100% 1px; }
/* as categorias viram filtros clicaveis */
button.cat { all: unset; box-sizing: border-box; cursor: pointer; display: block; text-align: left; position: relative; transition: opacity .3s; }
button.cat:focus-visible { outline: 2px solid var(--insight); outline-offset: 6px; border-radius: 4px; }
.cat__title { display: block; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 44px); line-height: 1.08; margin-bottom: 20px; }
.cat__text { display: block; font-size: var(--fs-lead); line-height: 1.55; max-width: 36ch; }
.cat__title::after { content: ""; display: block; height: 2px; width: 0; background: var(--insight); margin-top: 12px; transition: width .4s var(--ease-out); }
button.cat:hover .cat__title::after { width: 40px; }
button.cat[aria-pressed="true"] .cat__title::after { width: 100%; max-width: 160px; }
.cats.is-filtering button.cat[aria-pressed="false"] { opacity: .45; }

.library__group { margin-top: clamp(64px, 7vw, 104px); }
.library__group[hidden] { display: none; }
.library__empty { margin-top: clamp(48px, 5vw, 72px); font-size: var(--fs-lead); color: var(--ink-soft); }

/* documentos: capa (primeira pagina do PDF) + texto */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.doc { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: clamp(20px, 2.4vw, 36px); align-items: start;
  background: var(--paper-light); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); padding: clamp(20px, 2.4vw, 32px); }
.doc[hidden], .case-lib[hidden] { display: none; }
.doc__cover { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 12px 28px -18px rgba(45, 62, 80, .45); }
.doc__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: transform .6s var(--ease-out); }
.doc:hover .doc__cover img { transform: scale(1.03); }
.doc__cat { font-weight: 600; color: var(--insight); margin-bottom: 10px; font-size: 15px; }
/* tempo de leitura, ao lado da categoria */
.doc__time { font-weight: 400; color: var(--ink-soft); }
.doc h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; margin-bottom: 14px; }
.doc__body p:not(.doc__cat) { line-height: 1.55; }
.doc__link { margin-top: 18px; }
@media (max-width: 1024px) { .docs { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .doc { grid-template-columns: 1fr; } .doc__cover { width: 60%; } }

/* engagements em cards navy */
.engagements-lib__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.engagements-lib__head .h2 { grid-column: 1 / span 6; }
.engagements-lib__head p { grid-column: 8 / span 5; font-size: var(--fs-lead); line-height: 1.55; }
.cases-lib { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.case-lib { background: var(--navy) var(--noise); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 2.8vw, 44px); position: relative; overflow: hidden; }
.case-lib .doc__cat { color: var(--insight); }
.case-lib h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; margin-bottom: 18px; }
.case-lib p:not(.doc__cat) { color: rgba(255, 255, 255, .84); line-height: 1.55; }
@media (max-width: 1024px) {
  .engagements-lib__head .h2, .engagements-lib__head p { grid-column: 1 / -1; }
  .engagements-lib__head p { margin-top: 20px; }
  .cases-lib { grid-template-columns: 1fr; }
}
/* os tres filtros alinhados pelo topo */
.cats { align-items: start; }
button.cat { align-self: start; }

/* Services: a frase da abordagem sob medida, em destaque logo abaixo do texto do hero */
.page-hero__bespoke { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 32px); line-height: 1.25; color: var(--white); max-width: 34ch; }

/* ------------------------------------------- pedido do scan: modal com o formulario */
.request {
  width: min(780px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--navy); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -30px rgba(20, 30, 40, .55);
}
.request::backdrop { background: rgba(31, 43, 56, .62); backdrop-filter: blur(3px); }
.request[open] { animation: request-in .4s var(--ease-out); }
@keyframes request-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .request[open] { animation: none; } }
html.is-modal { overflow: hidden; }
.request__box { position: relative; padding: clamp(28px, 4vw, 56px); }
.request__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); font: 300 32px/1 var(--sans); cursor: pointer; transition: background .2s;
}
.request__close:hover { background: rgba(45, 62, 80, .08); }
.request__close:focus-visible { outline: 2px solid var(--insight); outline-offset: 2px; }
.request__title { font-size: clamp(30px, 3vw, 46px); line-height: 1.08; padding-right: 48px; }
.request__lead { margin-top: 14px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); max-width: 48ch; }
.request__form { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.request__form[hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--navy); }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--navy);
  background: var(--paper-light); border: 1px solid rgba(45, 62, 80, .28); border-radius: 12px;
  padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
/* select: seta propria (a nativa cola na borda e ignora o padding) */
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%279%27 viewBox=%270 0 14 9%27%3E%3Cpath d=%27M1 1.5l6 6 6-6%27 fill=%27none%27 stroke=%27%232D3E50%27 stroke-width=%271%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--insight); box-shadow: 0 0 0 3px rgba(0, 171, 200, .2); }
.request__form.is-checked .field :invalid { border-color: #B3261E; }
.request__bot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request__privacy { font-size: 15px; color: var(--ink-soft); }
.request__privacy a { color: var(--navy); }
.request__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.request__send .btn[disabled] { opacity: .6; cursor: wait; }
.request__status { font-size: 16px; color: var(--ink-soft); }
.request__status.is-error { color: #B3261E; }
.request__status.is-error a { color: inherit; }
/* enviado: o formulario da lugar a confirmacao */
.request__done { margin-top: clamp(28px, 3vw, 40px); font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; color: var(--navy); }
@media (max-width: 600px) {
  .request { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .request__form { grid-template-columns: 1fr; }
}
