/* Service pages (/servicos/<slug>). Same parts as Como trabalhamos (perguntas.css): the opening title,
   the one-sentence answer, sections with big headings, the situation rows, the deliverables list,
   the cross list for what is not included, the render row and the closing band. */

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

/* Opening: the service name and what it is, in one sentence */
.abertura { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.abertura h1 { font-size: var(--t-hero); max-width: 12em; margin: 0 0 clamp(20px, 2.4vw, 32px); }
.abertura .curta { margin-bottom: 0; text-wrap: pretty; }
/* With a picture: text on the left; the picture on the right runs to the edge of the screen and is taller than the text. Stacked on phones. */
.abertura.com-imagem { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.abertura-imagem { margin: 0; overflow: hidden; background: var(--plaster); aspect-ratio: 16 / 10; }
/* Phones: the picture runs from edge to edge, with no margin on either side. */
@media (max-width: 899px) { .abertura-imagem { margin-left: calc(-1 * max(var(--pad), env(safe-area-inset-left))); margin-right: calc(-1 * max(var(--pad), env(safe-area-inset-right))); } }
.abertura-imagem img { width: 100%; height: 100%; object-fit: cover; display: block; outline: none; }
@media (min-width: 900px) {
  .abertura.com-imagem { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(24px, 3vw, 48px); }
  .abertura-imagem { aspect-ratio: auto; height: clamp(380px, 42vw, 680px); margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--pad))); }
}
/* Very large screens: the picture stops in line with the header's last button, instead of running on to the edge. */
@media (min-width: 1600px) { .abertura-imagem { margin-right: 0; } }

.zona { font-size: max(var(--t-body), 1.3rem); }
@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); }
.q h2 { font-size: var(--t-h2); line-height: .96; letter-spacing: -.012em; 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; }
.txt { max-width: 34em; }
.txt > :last-child { margin-bottom: 0; }

/* Para quem: a plaster band, the situation as the short answer, then the rows */
.para-quem .q { border-top: 0; padding-block: clamp(56px, 7vw, 104px); }
.linhas { margin: clamp(28px, 3.4vw, 48px) 0 0; border-top: 2px solid var(--ink); }
.linhas > div { display: grid; grid-template-columns: 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; }

/* O que recebe: the deliverables list of Como trabalhamos, two columns on wide screens */
.entregas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(32px, 4vw, 56px); }
/* The same ticked list as "O que recebo" in Como trabalhamos. */
.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) 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") center / 20px 20px no-repeat; }
.entregas h3 { 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: 40ch; }
@media (max-width: 760px) { .entregas { grid-template-columns: minmax(0, 1fr); } }
.complemento { max-width: 46em; margin: clamp(28px, 3vw, 40px) 0 0; padding: 14px 0 14px 18px; border-left: 2px solid var(--oxblood); font-family: var(--q); font-size: 1rem; line-height: 1.5; }
.complemento a { color: var(--oxblood); font-weight: 600; text-underline-offset: 3px; }
.depois { margin: clamp(24px, 3vw, 36px) 0 0; }

/* The renders, laid out like the homepage gallery */
figure { margin: 0; }
.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 { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; 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; line-height: 1.4; 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)); } .renders figure:last-child { display: none; } }
@media (max-width: 560px) { .renders { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--pad)); } .renders figure:last-child { display: block; } }

/* O que não inclui: the cross list, two columns */
.lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.lista li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); line-height: 1.5; }
.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); }
.ans.pilha { display: grid; gap: clamp(24px, 3vw, 36px); }
@media (max-width: 760px) { .lista { grid-template-columns: minmax(0, 1fr); } .lista li:last-child { border-bottom: 1px solid var(--rule); } }

.mais { margin: clamp(36px, 4vw, 56px) 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: -.012em; 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; }

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