/* Ivorest - componentes das paginas, na grade de 12 colunas: introducoes (titulo | texto), os servicos da
   Home, listas (o que fazemos, papeis, trabalho), as duas formas de trabalho, topicos, lideranca, Contact
   e formulario. Os arcos do logo ficam so no hero e na faixa de contato: as listas nao tem marca.
   Usa os tokens e blocos de site.css. */

/* ---------------------------------------------------- duas colunas (titulo | texto) */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.intro__title { grid-column: 1 / span 5; }
.intro__body { grid-column: 7 / span 6; display: grid; gap: 24px; justify-items: start; }
.intro__body.prose p + p { margin-top: 0; }
@media (max-width: 1024px) { .intro__title, .intro__body { grid-column: 1 / -1; } }

/* ------------------------------------------------------------- servicos (Home) */
.services-head { margin-bottom: clamp(32px, 3vw, 56px); }
.services-head .h2 { font-size: clamp(36px, 4.2vw, 76px); letter-spacing: -.03em; }

/* cinco linhas; a linha inteira e o link para a pagina do servico. Com mouse ou foco, o campo azul cobre a
   linha a partir da esquerda e a seta anda */
.svc-index { --bleed: clamp(0px, 1.6vw, 28px); margin-inline: calc(var(--bleed) * -1); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr) auto; column-gap: clamp(24px, 3vw, 56px); align-items: start;
  padding: clamp(28px, 3vw, 44px) var(--bleed); border-top: 1px solid var(--rule);
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-out); }
.svc__name { font-size: clamp(24px, 2.2vw, 38px); line-height: 1.08; transition: color .3s; }
.svc__name a { text-decoration: none; }
.svc__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc__name a:focus-visible { outline: none; }
.svc__text { display: grid; gap: 12px; color: var(--soft); font-size: var(--fs-lead); line-height: 1.5; max-width: 48ch; transition: color .3s; }
.svc__go {
  width: clamp(48px, 4vw, 60px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--rule); color: var(--ink);
  display: grid; place-items: center; transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--ease-out);
}
.svc__go svg { width: 42%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:focus-within { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (hover: hover) {
  .svc:hover::after, .svc:focus-within::after { clip-path: inset(0 0 0 0); }
  .svc:hover .svc__name, .svc:focus-within .svc__name, .svc:hover .svc__text, .svc:focus-within .svc__text { color: var(--white); }
  .svc:hover .svc__go, .svc:focus-within .svc__go { background: var(--white); border-color: var(--white); color: var(--blue); transform: translateX(8px); }
}
@media (max-width: 767px) {
  .svc-index { --bleed: 0px; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .svc__name { grid-column: 1; grid-row: 1; }
  .svc__go { grid-column: 2; grid-row: 1; width: 44px; }
  .svc__text { grid-column: 1 / -1; grid-row: 2; }
}

/* ----------------------------------------------- listas (o que fazemos, papeis, trabalho) */
/* titulo a esquerda; itens em duas colunas, cada um com uma regua em cima. Sem marca em arco */
.includes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.includes__title { grid-column: 1 / span 4; }
.includes__list { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); }
.includes__list li { padding: 24px 0 32px; border-top: 1px solid var(--rule); }
.includes__term { display: block; font-size: clamp(19px, 1.4vw, 23px); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
/* a descricao vem do texto do cliente apos os dois-pontos, em minuscula: so a exibicao poe a maiuscula */
.includes__desc { display: block; margin-top: 10px; color: var(--soft); max-width: 46ch; }
.includes__desc::first-letter { text-transform: uppercase; }
/* lista de frases inteiras (sem termo e descricao) */
.includes__list--plain .includes__term { font-weight: 500; line-height: 1.35; }
@media (max-width: 1024px) { .includes__title, .includes__list { grid-column: 1 / -1; } }
@media (max-width: 680px) { .includes__list { grid-template-columns: 1fr; } }

/* -------------------------------------------- duas formas de trabalho (Managed) */
.ways__title { margin-bottom: clamp(32px, 4vw, 56px); }
.ways { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 96px); row-gap: 40px; }
.ways__item { display: grid; gap: 16px; align-content: start; padding-top: 28px; border-top: 2px solid var(--ink); color: var(--soft); }
.ways__name { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.15; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* -------------------------------------------- topicos (Training): lista curta dentro do texto */
.topics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; width: 100%; }
.topics li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 500; color: var(--ink); }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- About: lideranca */
.leadership__title { margin-bottom: clamp(32px, 4vw, 56px); }
/* a foto nunca passa da altura do texto (a figura nao tem altura propria; a imagem e absoluta e ocupa a
   altura da linha do grid, em 4:5) */
.mitch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.mitch__photo { grid-column: 1 / span 4; position: relative; min-height: 320px; }
.mitch__photo img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); }
.mitch__copy { grid-column: 5 / span 7; display: grid; gap: 24px; align-content: center; padding-left: 24px; justify-items: start; }
.mitch__name { font-size: clamp(26px, 2.4vw, 40px); line-height: 1.05; }
.mitch__role { margin-top: 6px; color: var(--soft); }
@media (max-width: 860px) {
  .mitch__photo, .mitch__copy { grid-column: 1 / -1; }
  .mitch__copy { padding-left: 0; }
  .mitch__photo { aspect-ratio: 4 / 5; max-height: 70vh; min-height: 0; margin-bottom: 40px; }
  .mitch__photo img { width: 100%; max-width: none; }
}

/* ---------------------------------------------------------- Insights (sem artigos ainda) */
.insights-empty .lead { color: var(--soft); }

/* ---------------------------------------------------------- Contact */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.contact__info { grid-column: 1 / span 5; display: grid; gap: 24px; }
.contact__big { display: grid; gap: 6px; }
.contact__big a {
  font-size: clamp(24px, 2.2vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink);
  text-decoration: none; overflow-wrap: anywhere; justify-self: start;
  background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease-out);
}
.contact__big a:hover, .contact__big a:focus-visible { background-size: 100% 3px; }
.contact__panel { grid-column: 7 / span 6; background: var(--stone); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
.contact__form-title { margin-bottom: 24px; }
@media (max-width: 1024px) { .contact__info, .contact__panel { grid-column: 1 / -1; } .contact__panel { margin-top: 48px; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field__opt { margin-left: 6px; font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px; min-height: 50px;
  transition: border-color .25s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form.is-checked :invalid { border-color: #B3261E; }
.form__note { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--soft); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__status { margin-top: 16px; color: var(--soft); }
.form__status a { color: var(--blue); }
.form__done { font-size: var(--fs-statement); font-weight: 520; line-height: 1.3; color: var(--ink); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* campo azul logo depois de outro: uma regua separa os dois */
.chapter--deep + .cta-band .cta-band__inner { padding-top: clamp(56px, 6vw, 104px); border-top: 2px solid var(--rule-inverse); }

/* ------------------------------------------- titulos de secao: tamanho e posicao */
/* os titulos da coluna da esquerda: grandes, mas sem virar bloco (muitos sao frases longas). No desktop,
   o titulo para no alto da coluna enquanto o texto da direita passa: a coluna nao fica vazia */
.intro__title, .includes__title { font-size: clamp(28px, 2.6vw, 46px); line-height: 1.08; }
@media (min-width: 1025px) {
  .intro__title, .includes__title { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------------------------------------------------------- escolha de fotos (/photo-options, so para o Mitch)
   o site num iframe a esquerda e o painel a direita; no celular, o iframe em cima e o painel embaixo */
body.picker { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 400px; overflow: hidden; background: var(--stone); }
.picker__stage { position: relative; display: flex; justify-content: center; min-width: 0; background: #DDE4EA; }
.picker__frame { width: 100%; height: 100%; border: 0; background: var(--paper); transition: width .35s var(--ease-out); }
.picker__stage[data-device="mobile"] { align-items: center; padding: 20px 0; }
.picker__stage[data-device="mobile"] .picker__frame { width: 390px; height: min(844px, 100%); border-radius: 22px; box-shadow: 0 0 0 10px #12222D, 0 20px 50px rgba(18, 34, 45, .3); }
.picker__panel { overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-left: 1px solid var(--rule); padding: 24px 24px 40px; font-size: 15px; line-height: 1.45; }

.pk-logo { display: block; width: 116px; height: auto; }
.pk-title { margin-top: 18px; font-size: 26px; line-height: 1.1; font-weight: 650; letter-spacing: -.01em; }
.pk-help { margin-top: 8px; color: var(--soft); }
.pk-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.pk-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.pk-label [data-page-name] { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; }
#pk-photos-label { display: block; }
.pk-count { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* fundo e tela lado a lado, pequenos */
.pk-toggles { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 10px; }
.pk-seg { display: inline-flex; flex: none; padding: 2px; border-radius: 999px; background: var(--stone); }
.pk-seg button { font: inherit; font-size: 12.5px; line-height: 1.2; white-space: nowrap; border: 0; background: none; color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.pk-seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(18, 34, 45, .18); font-weight: 600; }

.pk-pages { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.pk-page { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.pk-page:hover { background: var(--stone); }
.pk-page[aria-current="page"] { background: #E2F2F9; box-shadow: inset 3px 0 0 var(--blue); }
.pk-page__thumb { flex: none; width: 44px; height: 44px; border-radius: 0 50% 50% 50%; overflow: hidden; background: var(--stone); box-shadow: inset 0 0 0 1px var(--rule); }
.pk-page__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-page__text { display: grid; min-width: 0; }
.pk-page__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.pk-page__state { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-page__tick { margin-left: auto; color: var(--blue); font-weight: 700; }

.pk-photos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pk-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--stone); cursor: pointer; }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease-out); }
.pk-photo:hover img { transform: scale(1.05); }
.pk-photo[aria-pressed="true"] { outline: 3px solid var(--blue); outline-offset: 2px; }
.pk-photo:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pk-photo__tags { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pk-tag { font-size: 10.5px; line-height: 1.2; font-weight: 600; padding: 2px 5px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tag--chosen { background: var(--blue); color: var(--white); }
.pk-tag--other { background: rgba(18, 34, 45, .78); color: var(--white); }
.pk-now { margin-top: 10px; font-size: 13px; color: var(--soft); }

.pk-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 18px; margin-top: 12px; }
.pk-use[disabled] { background: var(--blue); cursor: default; opacity: 1; }
/* "Next" ao lado do "Use this photo", com a seta indo para a direita sem parar (parada com movimento reduzido) */
.pk-next { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: inherit; font-size: 16px; border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; padding: 8px 2px; }
.pk-next[hidden] { display: none; }
.pk-next__arrow { display: inline-block; font-size: 18px; line-height: 1; animation: pk-nudge 1.3s cubic-bezier(.45, 0, .55, 1) infinite; }
.pk-next:hover .pk-next__arrow { animation-duration: .7s; }
@keyframes pk-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .pk-next__arrow { animation: none; } }

.pk-field { display: grid; gap: 6px; margin-top: 16px; border: 0; padding: 0; min-width: 0; }
.pk-field > span, .pk-field legend { font-size: 14px; font-weight: 600; padding: 0; }
.pk-field em { font-style: normal; font-weight: 400; color: var(--soft); }
.pk-field textarea, .pk-copy { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; resize: vertical; background: var(--paper); color: var(--ink); }
.pk-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.pk-bg { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pk-bg legend { width: 100%; margin-bottom: 6px; }
.pk-bg label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.pk-submit { margin-top: 18px; }
.pk-status { margin-top: 10px; font-size: 14px; }
.pk-status:empty { display: none; }
.pk-reset { display: block; margin-top: 22px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pk-reset:hover { color: var(--ink); }
.pk-copy { display: block; margin-top: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

@media (max-width: 900px) {
  body.picker { display: block; height: auto; overflow: visible; }
  .picker__stage { height: 64vh; position: sticky; top: 0; z-index: 1; }
  .picker__stage[data-device="mobile"] .picker__frame { height: 100%; }
  .picker__panel { border-left: 0; overflow: visible; }
}
