/* Como trabalhamos: the ten questions, built on base.css.
   Headings stay big (--t-h2); the one-sentence answer sits at --t-lead and the reading text at --t-body. */

/* Work-around for base.css: ".site-head nav a { padding: 10px 0 }" wins over .btn and strips the header button's side padding. */
.site-head nav a.btn { padding: 0 22px; }

.qm { color: var(--oxblood); margin-left: .02em; }

/* Opening: title and intro on the left, the index of the ten questions on the right */
.abertura { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.abertura h1 { font-size: var(--t-hero); margin: 0 0 clamp(20px, 2.4vw, 32px); }
.abertura .lede { font-size: var(--t-lead); line-height: 1.3; max-width: 20em; margin: 0; }

.indice { font-family: var(--q); padding-top: 6px; }
.indice ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: i; }
.indice li { counter-increment: i; border-bottom: 1px solid var(--rule); }
.indice a { position: relative; display: block; min-height: 48px; padding: 11px 2px 11px 2.4em; font-weight: 700; font-size: clamp(1.06rem, 1.4vw, 1.3rem); line-height: 1.25; letter-spacing: -.01em; text-decoration: none; }
.indice a::before { content: counter(i); position: absolute; left: 2px; top: 15px; font-size: 14px; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .indice a:hover .qm { color: inherit; } }

/* The questions. On wide screens the column keeps room on the right for the question rail. */
/* The reserve shrinks as the outer margin grows, so wide screens do not carry an empty strip beside the rail. */
@media (min-width: 1180px) { .zona { padding-right: calc(var(--pad) + max(0px, 150px - max(0px, (100vw - var(--max)) / 2))); } }

.zona { font-size: max(var(--t-body), 1.3rem); } /* the top of the --t-body range from tablet up: reading text clearly larger than the old 19px */
@media (max-width: 760px) { .zona { font-size: var(--t-body); } }
.q { border-top: 2px solid var(--ink); padding: clamp(36px, 4.4vw, 64px) 0 clamp(56px, 6.4vw, 96px); scroll-margin-top: 16px; }
.q h2 { font-size: var(--t-h2); line-height: .96; letter-spacing: -.045em; max-width: 10.5em; margin: 0 0 clamp(18px, 2.2vw, 30px); }
.curta { font-family: var(--a); font-size: var(--t-lead); line-height: 1.26; letter-spacing: -.005em; max-width: 24em; margin: 0 0 clamp(24px, 3vw, 40px); text-wrap: balance; }
.curta.quando { color: var(--oxblood); }

.ans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ans.solo { grid-template-columns: minmax(0, 1fr); }
.txt { max-width: 34em; }
.txt > :last-child { margin-bottom: 0; }
.fact { font-family: var(--q); font-size: var(--t-small); line-height: 1.5; color: var(--soft); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 28px; }
.depois { margin-top: 1.2em; }

figure { margin: 0; }
figcaption { font-family: var(--q); font-size: 15px; line-height: 1.4; color: var(--soft); padding-top: 10px; }
figcaption b { color: var(--ink); font-weight: 600; }

.retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 62%; }
/* Desktop: the portrait takes the height of the text beside it, top and bottom aligned, instead of running past it. */
@media (min-width: 861px) {
  #quem .ans { align-items: stretch; }
  #quem .retrato { position: relative; margin: 0; min-height: 420px; }
  #quem .retrato img { position: absolute; inset: 0 0 34px 0; width: 100%; height: calc(100% - 34px); aspect-ratio: auto; object-position: 60% 55%; }
  #quem .retrato figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
}

/* The renders, laid out like the homepage gallery: an even grid of same-shaped pictures, thin gaps. */
.renders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: clamp(32px, 3.6vw, 52px) 0 0; }
.renders figure { position: relative; margin: 0; }
.renders img, .renders .par { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3 !important; object-fit: cover; }
.renders figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-family: var(--q); font-size: 15px; font-weight: 600; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.renders figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 13, 10, .62), rgba(18, 13, 10, 0) 45%); pointer-events: none; }
@media (max-width: 980px) { .renders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .renders { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--pad)); } }

/* The unexpected option, next to the obvious one */
.ans.alt { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.ans.alt .btn { margin-top: 8px; }
.opcoes > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.opcoes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Business case */
/* Heading beside the text, the three rooms across the full width below: no column runs much longer than the other. */
.caso { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(24px, 3.6vw, 52px); margin-top: clamp(32px, 3.6vw, 52px); display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(20px, 2.6vw, 36px) clamp(24px, 4vw, 56px); align-items: start; }
.caso .trio { grid-column: 1 / -1; }
.caso h3 { font-size: var(--t-h3); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.caso .tipo { font-family: var(--q); font-weight: 600; font-size: var(--t-small); color: var(--soft); margin: 0 0 8px; }
.caso-txt { max-width: 34em; }
.caso p:last-child { margin-bottom: 0; }
.trio > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }

/* Situation, service, what it is */
.linhas { margin: clamp(36px, 4.4vw, 64px) 0 0; border-top: 2px solid var(--ink); }
.linhas > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(14px, 3vw, 48px); padding: clamp(22px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.linhas dt { font-family: var(--q); font-weight: 800; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.025em; }
.linhas dd { margin: 0; }
.linhas .svc { font-family: var(--q); font-weight: 600; font-size: clamp(1.1rem, 1.3vw, 1.25rem); line-height: 1.3; color: var(--oxblood); }

/* Lists: a dash for what is in, a cross for what is not */
.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.lista li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.lista li::before { content: ""; position: absolute; left: 2px; top: calc(14px + .75em); width: 16px; height: 2px; background: var(--oxblood); }
.lista.nao li::before, .lista.nao li::after { content: ""; position: absolute; left: 2px; top: calc(14px + .75em); width: 16px; height: 2px; background: var(--ink); }
.lista.nao li::before { transform: rotate(45deg); }
.lista.nao li::after { transform: rotate(-45deg); }

.fases { display: grid; gap: 24px; }
.fases img { width: 100%; background: var(--sheet); }

.espaco img { width: 100%; border: 1px solid var(--rule); }
/* The project space: the screenshot gets the wider column, so it reads and matches the height of the text. */
.ans.ecra { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }

/* What is not included: the short answer first, the four items below in two columns. */
.ans.pilha { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 36px); }
.ans.pilha .lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 0; }
.ans.pilha .lista li { border-top: 1px solid var(--rule); border-bottom: 0; }
@media (max-width: 760px) { .ans.pilha .lista { grid-template-columns: minmax(0, 1fr); } .ans.pilha .lista li:last-child { border-bottom: 1px solid var(--rule); } }


.todas { font-family: var(--q); font-size: 1.1rem; font-weight: 600; margin: clamp(28px, 3vw, 40px) 0 0; }

/* Closing call */
.fecho { background: var(--plaster); color: var(--ink); text-align: center; padding-block: clamp(72px, 9vw, 128px); }
.fecho h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; margin: 0 auto 28px; }
.fecho .qm { color: var(--rose); }
.fecho-texto { font-size: var(--t-lead); line-height: 1.3; max-width: 24em; margin: 0 auto 32px; }
.fecho .nota { font-family: var(--q); font-size: var(--t-small); color: var(--soft); max-width: 32em; margin: 22px 0 0; }

@media (max-width: 860px) {
  .abertura, .ans, .ans.alt, .ans.ecra, .caso { grid-template-columns: minmax(0, 1fr); }
  .linhas > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .linhas dt { margin-bottom: 2px; }
  .retrato { max-width: 440px; }
}
@media (max-width: 520px) {
  .q h2 { letter-spacing: -.04em; }
}

/* Question navigation: a rail in the right margin when there is room, a slim bar at the top when there is not.
   perguntas.js picks the mode (html[data-nav]) by measuring the free margin; without it, neither shows. */
.rail, .barra { display: none; font-family: var(--q); }
html[data-nav="rail"] .rail, html[data-nav="barra"] .barra { display: block; }
html[data-nav="barra"] .q { scroll-margin-top: 56px; }

.rail { position: fixed; right: clamp(16px, 2.4vw, 40px); top: 50%; z-index: 5; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity .25s ease-out, visibility 0s linear .25s; }
.rail.on { opacity: 1; visibility: visible; transition: opacity .25s ease-out, visibility 0s; }
.rail ol { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--rule); }
.rail a { position: relative; display: block; padding: 5px 12px 5px 0; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--soft); text-align: right; text-decoration: none; white-space: nowrap; transition: color .15s ease-out; }
@media (hover: hover) and (pointer: fine) { .rail a:hover { color: var(--oxblood); } }
.rail a[aria-current="true"] { color: var(--ink); }
.rail a[aria-current="true"]::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: -2px; width: 3px; background: var(--oxblood); }
.rail a:focus-visible { outline-offset: 1px; }

.barra { position: fixed; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top); z-index: 20; background: var(--plaster); border-bottom: 1px solid var(--rule); transform: translateY(-101%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; }
.barra.on { transform: none; visibility: visible; transition: transform .2s ease-out, visibility 0s; }
.barra button { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; margin: 0; padding: 0 var(--pad); border: 0; background: transparent; color: var(--ink); font: 600 16px/1.2 var(--q); text-align: left; cursor: pointer; }
.barra button:focus-visible { outline-offset: -3px; }
.barra .atual { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra .pos { font-weight: 500; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra .seta { width: 8px; height: 8px; margin: -4px 2px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease-out; }
.barra button[aria-expanded="true"] .seta { transform: translateY(4px) rotate(-135deg); }
.painel { max-height: calc(100vh - 52px - 96px); max-height: calc(100dvh - 52px - 96px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--rule); border-bottom: 2px solid var(--ink); }
.painel ol { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.painel li { counter-increment: p; border-bottom: 1px solid var(--rule); }
.painel li:last-child { border-bottom: 0; }
.painel a { display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 13px var(--pad); font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.painel a::before { content: counter(p); min-width: 1.3em; font-size: 14px; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.painel a[aria-current="true"], .painel a[aria-current="true"]::before { color: var(--oxblood); }
.painel a:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .rail, .rail.on, .barra, .barra.on, .barra .seta, .rail a { transition: none; } }

/* O que recebo: one short checklist per service. Five services: three across, then two, each half the width.
   Each item is a tick, the deliverable in plain weight, and at most one quiet line under it. No rules between items. */
.entregas-bloco { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(36px, 4.4vw, 64px); align-items: start; margin-top: clamp(28px, 3vw, 40px); }
.entrega-col { grid-column: span 2; }
.entrega-col:nth-child(n+4) { grid-column: span 3; }
.entrega-grupo { font-size: 1.3rem; line-height: 1.2; margin: 0 0 20px; padding-top: 16px; border-top: 2px solid var(--ink); min-height: 2.4em; }
.entregas { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.entregas li { position: relative; padding: 0 0 0 32px; }
.entregas li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--oxblood);
  -webkit-mask: none; mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 20px 20px; }
.entregas h4 { font-family: var(--q); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; margin: 0; }
.entregas p { margin: 4px 0 0; color: var(--soft); font-family: var(--q); font-size: .9375rem; line-height: 1.45; max-width: 34ch; }
@media (max-width: 980px) {
  .entregas-bloco { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .entrega-col, .entrega-col:nth-child(n+4) { grid-column: auto; }
  .entrega-grupo { min-height: 0; }
}

/* O que dizem os clientes: the same review cards as the homepage. */
.vozes.mural { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 680px) { .vozes.mural { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .vozes.mural { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.critica { box-shadow: var(--elevacao); margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(26px, 2.6vw, 36px); background: #fff; border-radius: 6px; }
.critica blockquote { margin: 0; font-family: var(--a); font-size: clamp(1.3rem, 1.05rem + .7vw, 1.65rem); line-height: 1.35; letter-spacing: -.005em; text-wrap: pretty; }
.critica blockquote p { margin: 0; }
.critica mark { color: inherit; background: linear-gradient(100deg, rgba(240, 211, 199, .2) 0, #F0D3C7 .35em, #F0D3C7 calc(100% - .35em), rgba(240, 211, 199, .2) 100%) 0 58% / 100% 82% no-repeat; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.critica figcaption { display: flex; flex-direction: column; gap: 1px; font-family: var(--q); font-size: 16px; line-height: 1.35; }
.critica figcaption strong { font-weight: 700; }
.critica figcaption span { font-size: 15px; color: var(--soft); }
