/* Para negócios. Built on base.css; same language as como-trabalhamos.css:
   big grotesk headings, serif reading text at --t-body or larger, oxblood accents, paper and plaster grounds. */

/* 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; }

.sec { font-size: var(--t-h2); line-height: .96; letter-spacing: -.045em; }
.qm { color: var(--oxblood); margin-left: .02em; }
figure { margin: 0; }
figcaption { font-family: var(--q); font-size: 16px; line-height: 1.4; color: var(--soft); padding-top: 14px; }

/* Cedofeita renders carry a small generator mark in the bottom corner: always crop from the top, in 4:3. */
.abertura-img img, .trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; }

/* 1. Opening: title and a few lines on the left, the bedroom on the right */
.abertura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(72px, 10vw, 140px); }
.abertura h1 { font-size: var(--t-h2); line-height: .94; letter-spacing: -.045em; margin: 0 0 clamp(24px, 3vw, 40px); }
.abertura .lede { font-size: var(--t-lead); line-height: 1.26; letter-spacing: -.005em; max-width: 17em; margin: 0 0 .9em; text-wrap: balance; }
.abertura-texto p:not(.lede) { max-width: 30em; margin: 0; }

/* 2. Para quem: a typographic list, kind of business on the left, what matters on the right */
.quem .sec { margin: 0 0 clamp(32px, 4.4vw, 64px); }

/* 3. The case */
.caso-cabeca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(36px, 4.5vw, 64px); }
.caso .rotulo { font-size: 16px; color: var(--oxblood); margin-bottom: 14px; }
.caso-texto { max-width: 34em; }
.caso-texto p:last-child { margin-bottom: 0; }
.trio > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(4px, .6vw, 10px); }
.caso-acao { margin: clamp(28px, 3vw, 40px) 0 0; }

/* 4. Como funciona: the four phase names in one row, then what changes for a business */
.caso { padding-bottom: clamp(56px, 7vw, 100px); }
.funciona { padding-bottom: clamp(72px, 10vw, 140px); }
.funciona::before { content: ""; display: block; border-top: 2px solid var(--ink); margin-bottom: clamp(40px, 5vw, 72px); }
.funciona .sec { margin: 0 0 clamp(28px, 3.6vw, 52px); }
.funciona-corpo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 80px); align-items: start; }
.fases { list-style: none; margin: 0; padding: 0; font-family: var(--q); font-weight: 800; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.025em; }
.fases li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fases li:first-child { padding-top: 0; }
.funciona-texto { max-width: 32em; font-size: var(--t-lead); line-height: 1.3; }
.funciona-texto .mais { margin: 1.1em 0 0; font-family: var(--q); font-size: 17px; font-weight: 600; }
.funciona-texto .mais a { display: inline-block; padding: 12px 0; text-decoration-color: var(--oxblood); text-decoration-thickness: 2px; }

/* 5. Closing */
.fecho { text-align: center; padding-block: clamp(110px, 14vw, 200px); }
.fecho h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: 11em; margin: 0 auto clamp(36px, 4.4vw, 56px); text-wrap: balance; }
.fecho p { margin: 0; }

@media (max-width: 860px) {
  .abertura, .caso-cabeca, .funciona-corpo { grid-template-columns: minmax(0, 1fr); }
  .abertura { align-items: start; }
}
@media (max-width: 560px) {
  /* Three renders do not fit side by side on a phone: the first one wide, the other two below it. */
  .trio > div { grid-template-columns: 1fr 1fr; }
  .trio picture:first-child { grid-column: 1 / -1; }
}

/* Para quem: the kinds of business as a list, beside one general text. */
.quem-grelha { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (min-width: 900px) { .quem-grelha { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tipos { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tipos li { font-family: var(--q); font-weight: 800; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.025em; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.quem-texto p { max-width: 34em; }

/* Projects already done for businesses: one after the other, each with its name, the brief and its pictures. */
.projetos-negocio-titulo { margin: 0 0 clamp(36px, 4.4vw, 64px); }
.caso-nome { font-size: var(--t-h3); }
.caso-seguinte { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
