/* Studio Media: estilo único para todas as páginas.
   Sistema de cor CMYK: magenta = produção gráfica, amarelo = comunicação visual,
   ciano = marketing digital, preto = a marca que une as três. */

:root {
  --k: #000;
  --papel: #fff;
  --papel-2: #f2f2f2;
  --texto: #262626;
  --texto-2: #585858;
  --linha: #d9d9d9;
  --m: #e4007c;
  --y: #ffd100;
  --c: #009ee2;
  --wa: #25d366;

  --fonte: "Archivo", "Arial Narrow", Arial, Helvetica, sans-serif;
  --largura: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --secao: clamp(64px, 10vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
  font-stretch: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--k); color: var(--papel); padding: 10px 16px; text-decoration: none;
}
.pular:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Tipografia ---------- */
h1, h2, h3 { color: var(--k); margin: 0; font-weight: 800; }

.t-display {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-stretch: 66%;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.t-titulo {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-stretch: 72%;
  line-height: 1;
  text-wrap: balance;
}

.t-item {
  font-size: 1.3rem;
  font-stretch: 88%;
  line-height: 1.2;
}

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 50ch; margin: 0; }
.apoio { color: var(--texto-2); max-width: 60ch; margin: 16px 0 0; }

/* ---------- Barra de cor (tira de controle de impressão) ---------- */
.barra-cor {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--c) 0 48px, var(--m) 48px 96px, var(--y) 96px 144px, var(--k) 144px 192px);
}
.barra-cor--m { background: var(--m); }
.barra-cor--y { background: var(--y); }
.barra-cor--c { background: var(--c); }

@media (prefers-reduced-motion: no-preference) {
  .barra-cor--anima { animation: imprime 1.1s cubic-bezier(.6, 0, .2, 1) both; }
  @keyframes imprime { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--k); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.botao svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.botao--cheio { background: var(--k); color: var(--papel); }
.botao--cheio:hover { background: var(--papel); color: var(--k); }
.botao--vazado { background: transparent; color: var(--k); }
.botao--vazado:hover { background: var(--k); color: var(--papel); }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }

.link-seta { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: var(--papel); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--k); margin-right: auto; }
.marca img { width: 44px; height: 44px; }
.marca span { font-weight: 800; font-size: 1.375rem; font-stretch: 74%; letter-spacing: -0.005em; line-height: 1; }

.menu ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--k); }

.topo .botao { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

.menu-botao {
  display: none; width: 44px; height: 44px; border: 2px solid var(--k); background: var(--papel);
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-botao span, .menu-botao span::before, .menu-botao span::after {
  display: block; width: 20px; height: 2px; background: var(--k); position: relative; content: "";
}
.menu-botao span::before { position: absolute; top: -6px; }
.menu-botao span::after { position: absolute; top: 6px; }
.menu-botao[aria-expanded="true"] span { background: transparent; }
.menu-botao[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-botao { display: inline-flex; order: 3; }
  .topo .botao { order: 2; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papel); border-bottom: 1px solid var(--linha);
  }
  .menu.aberto { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: 8px var(--pad) 20px; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 1.1rem; }
  .menu a:hover { border-color: var(--linha); }
}
@media (max-width: 520px) {
  .topo .botao .rotulo-longo { display: none; }
  .marca span { font-size: 1.2rem; white-space: nowrap; }
  .topo-in { gap: 10px; }
}
@media (max-width: 400px) {
  .topo .botao .rotulo { display: none; }
  .topo .botao { padding: 8px 12px; }
}

/* ---------- Seções ---------- */
.secao { padding-block: var(--secao); }
.secao--cinza { background: var(--papel-2); }
.secao-cab { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }

/* ---------- Home: abertura ---------- */
.abertura { padding-top: clamp(48px, 8vw, 104px); }
.abertura > .wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.abertura .t-display { max-width: 13ch; }
.abertura-base { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1000px) {
  .abertura > .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .abertura-base { margin-top: 0; padding-bottom: 10px; }
}

.triptico { display: grid; grid-template-columns: repeat(3, 1fr); }
.frente { display: flex; flex-direction: column; text-decoration: none; color: var(--k); }
.frente-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frente-corpo {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px) clamp(32px, 4vw, 52px);
}
.frente--m { background: var(--m); color: var(--papel); }
.frente--y { background: var(--y); }
.frente--c { background: var(--c); }
.frente-onde { font-weight: 700; font-size: 1.05rem; }
.frente-nome { font-size: clamp(2.2rem, 3.6vw, 3.25rem); font-stretch: 68%; line-height: .96; color: inherit; }
.frente p { margin: 0; max-width: 34ch; }
.frente .link-seta { margin-top: auto; padding-top: 18px; }
.frente-corpo { min-height: 300px; }
.frente:hover .link-seta { text-decoration-thickness: 4px; }

@media (max-width: 900px) {
  .triptico { grid-template-columns: 1fr; }
  .frente-foto { aspect-ratio: 16 / 9; }
  .frente-corpo { min-height: 0; padding-inline: var(--pad); }
}

/* ---------- Clientes ---------- */
.clientes { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.clientes li { list-style: none; display: flex; align-items: center; justify-content: center; padding: 22px 18px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); min-height: 128px; background: var(--papel); }
.clientes img { max-height: 80px; width: auto; max-width: 100%; object-fit: contain; }
.clientes { padding: 0; margin: 0; }
@media (max-width: 900px) { .clientes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .clientes { grid-template-columns: repeat(2, 1fr); }
  .clientes li { min-height: 104px; padding: 16px 12px; }
  .clientes img { max-height: 64px; }
}

/* ---------- Pontos (uma equipe) ---------- */
.pontos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.ponto { border-top: 4px solid var(--k); padding-top: 20px; }
.ponto p { margin: 10px 0 0; color: var(--texto-2); }
@media (max-width: 800px) { .pontos { grid-template-columns: 1fr; } }

/* ---------- Passos (sequência real) ---------- */
.passos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; counter-reset: passo; }
.passos li {
  list-style: none; counter-increment: passo; padding: 0 20px 0 0; position: relative;
}
.passos li::before {
  content: counter(passo); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--k); border-radius: 50%;
  font-weight: 800; font-size: 1.1rem; background: var(--papel); position: relative; z-index: 1;
}
.passos li::after {
  content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--k);
}
.passos li:last-child::after { display: none; }
.passos h3 { margin-top: 18px; }
.passos p { margin: 6px 0 0; color: var(--texto-2); font-size: 1rem; }
@media (max-width: 900px) {
  .passos { grid-template-columns: 1fr; gap: 28px; }
  .passos li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0; }
  .passos li::before { grid-row: 1 / span 2; }
  .passos li::after { top: 44px; bottom: -28px; left: 21px; right: auto; width: 2px; height: auto; }
  .passos h3 { margin-top: 8px; }
}

/* ---------- Portfólio ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtros button {
  min-height: 44px; padding: 8px 18px; border: 2px solid var(--k); background: var(--papel);
  font-weight: 600; cursor: pointer;
}
.filtros button[aria-pressed="true"] { background: var(--k); color: var(--papel); }

.grade-trabalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; }
.grade-trabalhos li { list-style: none; }
.trabalho { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.trabalho-img { aspect-ratio: 4 / 3; background: var(--papel); display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.trabalho-img img { width: 100%; height: 100%; object-fit: contain; }
.trabalho-nome { display: block; margin-top: 10px; font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--k); }
.trabalho:hover .trabalho-nome { text-decoration: underline; text-underline-offset: 3px; }
.mais { margin-top: 32px; }
@media (max-width: 900px) { .grade-trabalhos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .trabalho-img { padding: 8px; } .trabalho-nome { font-size: .88rem; } }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .94); color: var(--papel);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.lb-topo { display: flex; justify-content: flex-end; padding: 12px; }
.lb-palco { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; }
.lb-palco img { max-width: 100%; max-height: 100%; object-fit: contain; background: var(--papel); }
.lb-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 20px; }
.lb-legenda { margin: 0; font-weight: 600; }
.lb-botao {
  width: 48px; height: 48px; border: 2px solid var(--papel); background: transparent; color: var(--papel);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.lb-botao:hover { background: var(--papel); color: var(--k); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-ant { left: 8px; }
.lb-prox { right: 8px; }
@media (max-width: 700px) {
  .lb-palco { padding: 0 8px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-ant { left: auto; right: 72px; }
  .lb-prox { right: 16px; }
  .lb-base { padding-right: 140px; }
}

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.sobre-texto .t-titulo { margin-bottom: 24px; }
.sobre p { margin: 0 0 16px; max-width: 60ch; }
.sobre-foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre-foto { aspect-ratio: 4 / 3; }
}

/* ---------- Contato ---------- */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.form { align-self: start; background: var(--papel); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; align-content: start; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--k); background: var(--papel); border-radius: 0;
}
.campo textarea { min-height: 128px; resize: vertical; }
.campo .erro { color: #b00020; font-size: .95rem; font-weight: 600; min-height: 0; margin: 0; }
.campo [aria-invalid="true"] { border-color: #b00020; }
.form-nota { margin: 0; color: var(--texto-2); font-size: .95rem; }

.dados { display: grid; gap: 22px; align-content: start; margin: 0; }
.dados dt { font-weight: 700; color: var(--k); }
.dados dd { margin: 2px 0 0; }
.dados a { text-underline-offset: 3px; }
.mapa { margin-top: 8px; aspect-ratio: 16 / 10; width: 100%; border: 0; background: var(--papel-2); }
@media (max-width: 860px) { .contato { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.rodape { background: var(--k); color: #e6e6e6; padding-block: clamp(48px, 7vw, 80px) 28px; }
.rodape a { color: var(--papel); text-underline-offset: 3px; }
.rodape-grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.rodape .marca { color: var(--papel); }
.rodape h2 { color: var(--papel); font-size: 1rem; font-weight: 700; margin-bottom: 12px; font-stretch: 100%; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape p { margin: 14px 0 0; max-width: 40ch; }
.rodape-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #333; font-size: .9rem; color: #b8b8b8; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.rodape-legal p { margin: 0; max-width: none; }
@media (max-width: 800px) { .rodape-grade { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante (home) ---------- */
.wa-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.wa-flutuante svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Páginas de campanha ---------- */
.campanha .topo-in { min-height: 68px; }

.cp-hero { color: var(--k); overflow: hidden; }
.cp-hero--m { background: var(--m); color: var(--papel); }
.cp-hero--m h1 { color: var(--papel); }
.cp-hero--y { background: var(--y); }
.cp-hero--c { background: var(--c); }
.cp-hero-in {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
}
.cp-hero .t-display { font-size: clamp(2.6rem, 6.6vw, 5.5rem); max-width: 14ch; }
.cp-hero .lead { margin-top: 22px; }
.cp-hero .botoes { margin-top: 30px; }
.cp-hero--m .botao--cheio { border-color: var(--k); }
.cp-hero--m .botao--cheio:hover { background: var(--papel); color: var(--k); border-color: var(--papel); }

.garantias { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.garantias li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.garantias li::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; transform: translateY(-1px); }

/* Foto humanizada com uma peça do portfólio por cima, como impresso sobre a mesa */
.cp-foto { position: relative; width: 100%; max-width: 480px; justify-self: center; margin-bottom: 28px; }
.cp-foto-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.cp-peca {
  position: absolute; left: -6%; bottom: -28px; width: 50%; margin: 0;
  background: var(--papel); padding: 8px; transform: rotate(-3deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
.cp-peca img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
@media (max-width: 900px) {
  .cp-hero-in { grid-template-columns: 1fr; }
  .cp-foto { max-width: 440px; }
  .cp-foto-img { aspect-ratio: 4 / 3; }
  .cp-peca { left: -2%; width: 44%; }
}

.produtos { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.produtos li {
  list-style: none; padding: clamp(22px, 2.6vw, 32px); border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  display: flex; flex-direction: column; gap: 8px; background: var(--papel);
}
.produtos p { margin: 0; color: var(--texto-2); }
.produtos .link-orcar {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; color: var(--k); align-self: flex-start;
}
.produtos .link-orcar svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.produtos--m { border-top: 4px solid var(--m); }
.produtos--y { border-top: 4px solid var(--y); }
.produtos--c { border-top: 4px solid var(--c); }
@media (min-width: 901px) {
  .produtos li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .produtos li:last-child:nth-child(3n+2) { grid-column: span 2; }
}
@media (max-width: 900px) and (min-width: 561px) {
  .produtos { grid-template-columns: repeat(2, 1fr); }
  .produtos li:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .produtos { grid-template-columns: 1fr; } }

.cp-chamada { padding-block: clamp(56px, 8vw, 96px); }
.cp-chamada--m { background: var(--m); color: var(--papel); }
.cp-chamada--m h2 { color: var(--papel); }
.cp-chamada--y { background: var(--y); }
.cp-chamada--c { background: var(--c); }
.cp-chamada-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.cp-chamada p { margin: 16px 0 0; max-width: 52ch; }

.tambem { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tambem a {
  display: block; padding: 24px 26px; text-decoration: none; border: 2px solid var(--k); border-left-width: 12px;
}
.tambem a:hover .link-seta { text-decoration-thickness: 4px; }
.tambem-m { border-left-color: var(--m) !important; }
.tambem-y { border-left-color: var(--y) !important; }
.tambem-c { border-left-color: var(--c) !important; }
.tambem strong { display: block; font-size: 1.5rem; font-stretch: 74%; font-weight: 800; color: var(--k); line-height: 1.1; }
.tambem span { display: block; margin-top: 6px; color: var(--texto-2); }
@media (max-width: 700px) { .tambem { grid-template-columns: 1fr; } }

/* Barra fixa de orçamento no celular (páginas de campanha) */
.barra-orcar { display: none; }
@media (max-width: 767px) {
  .campanha { padding-bottom: 76px; }
  .barra-orcar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--papel); border-top: 1px solid var(--linha);
  }
  .barra-orcar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
    background: var(--wa); color: #fff; font-weight: 700; text-decoration: none;
  }
  .barra-orcar svg { width: 22px; height: 22px; fill: currentColor; }
  .campanha .topo .botao { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
