/* =========================================================
   KATU Arquitetura — estilos do site
   Um arquivo só. Cada bloco está marcado com um título.
   Cores e medidas que se repetem ficam nas variáveis abaixo.
   ========================================================= */

/* ---------- Fontes ---------- */
@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/pp-neue-montreal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/pp-neue-montreal-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/pp-neue-montreal-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Rader"; src: url("../fonts/pp-rader-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Rader"; src: url("../fonts/pp-rader-500-italico.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Rader"; src: url("../fonts/pp-rader-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variáveis ---------- */
:root {
  --preto: #000;
  --branco: #fff;
  --cinza-texto: #1f2124;
  --linha-clara: rgba(0, 0, 0, 0.08);
  --whatsapp: #25d366;
  --vermelho: #522020;        /* Vermelho KATU (bordô) — branding book V05 */
  --vermelho-escuro: #3f1818;
  --bege: #e0dcd1;            /* off-white / bege frio da marca */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --fonte-texto: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --fonte-titulo: "PP Rader", "Arial Narrow", Arial, sans-serif;

  --lateral: 5vw;                          /* margem das laterais */
  --espaco-secao: clamp(28px, 3.6vw, 54px);  /* espaço entre a linha divisória e o conteúdo */  /* espaço acima/abaixo das linhas divisórias */
  --titulo-grande: clamp(30px, 3.5vw, 50px);
  --titulo-enorme: clamp(34px, 4.5vw, 65px);
  --altura-cabecalho: 91px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--preto);
  background: var(--branco);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--fonte-titulo); font-weight: 500; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--preto); outline-offset: 3px; }

.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icone { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Linha divisória entre seções */
.divisor {
  border: 0;
  border-top: 2px solid var(--preto);
  margin: var(--espaco-secao) var(--lateral);
}
.divisor--total { margin: 0; }   /* linha de ponta a ponta (embaixo do cabeçalho e acima do rodapé) */

.titulo-secao {
  font-size: var(--titulo-grande);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

/* Botão preto padrão */
.botao {
  display: inline-block;
  padding: 15px 30px;
  background: var(--preto);
  color: var(--branco);
  border: 1px solid var(--preto);
  font-family: var(--fonte-texto);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.botao { background: var(--vermelho); border-color: var(--vermelho); transition: background-color 0.2s, color 0.2s, transform 160ms var(--ease-out); }
.botao:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .botao:hover { background: var(--branco); color: var(--vermelho); }
}
.centro { text-align: center; }

/* =========================================================
   CABEÇALHO
   ========================================================= */
.cabecalho {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--altura-cabecalho);
  padding: 20px clamp(20px, 3.1vw, 45px) 20px clamp(20px, 3.5vw, 50px);
  background: var(--branco);
}
.cabecalho__logo img { height: 51px; width: auto; }

.menu-principal { display: flex; align-items: center; gap: clamp(16px, 2vw, 29px); }
.menu-principal .links { display: flex; margin: 0; padding: 0; list-style: none; }
.menu-principal .links a {
  display: block;
  padding: 0 clamp(8px, 1vw, 15px);
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 43px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.menu-principal .links a:hover,
.menu-principal .links a[aria-current="page"] { background: var(--vermelho); color: var(--branco); }
.menu-principal .redes a { font-size: clamp(18px, 1.75vw, 25px); }

/* Ícones das redes sociais: estáticos, sem efeito ao passar o mouse */
.redes { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.redes a { display: flex; font-size: 18px; color: var(--preto); text-decoration: none; }

.botao-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.botao-menu .icone { font-size: 29px; }

/* Menu do celular (abre por cima, como no site original) */
.menu-celular {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.menu-celular.aberto { opacity: 1; visibility: visible; }
.menu-celular__painel {
  position: relative;
  background: var(--branco);
  padding: 30px 20px 24px;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 0.35s ease-out;
}
.menu-celular.aberto .menu-celular__painel { transform: none; }
.menu-celular ul.links { margin: 0 0 16px; padding: 0; list-style: none; }
.menu-celular ul.links a {
  display: inline-block;
  padding: 6px 10px;
  font-family: var(--fonte-titulo);
  font-weight: 500;
  font-size: 26px;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-celular ul.links a[aria-current="page"] { background: var(--vermelho); color: var(--branco); }
.menu-celular .redes { justify-content: center; }
.menu-celular__fechar {
  position: absolute; top: 12px; right: 12px;
  padding: 8px; background: none; border: 0; cursor: pointer; font-size: 22px;
}

@media (max-width: 1024px) {
  .menu-principal { display: none; }
  .botao-menu { display: flex; }
}
@media (max-width: 767px) {
  :root { --altura-cabecalho: 84px; }
  .cabecalho { padding: 12px 20px; }
  .cabecalho__logo img { height: 40px; }
}

/* =========================================================
   INÍCIO — destaque (fotos que trocam sozinhas)
   ========================================================= */
.destaque {
  position: relative;
  /* ocupa toda a tela abaixo do menu branco */
  height: calc(100vh - var(--altura-cabecalho) - 2px);
  height: calc(100svh - var(--altura-cabecalho) - 2px);
  min-height: 520px;
  overflow: hidden;
  background: #2b2825;
}
.destaque__foto {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.destaque__foto img { width: 100%; height: 100%; object-fit: cover; }
.destaque__foto.ativo { opacity: 1; }
/* Zoom lento e discreto. A foto que está saindo continua o zoom enquanto some (sem "pulo"). */
.destaque__foto.ativo img,
.destaque__foto.saindo img { animation: aproximar 9s linear forwards; }
@keyframes aproximar { from { transform: scale(1); } to { transform: scale(1.1); } }

@media (max-width: 767px) {
  .destaque__foto.so-computador { display: none; }
}

/* Sombra suave embaixo para o título ficar legível sobre qualquer foto */
.destaque::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.destaque__conteudo {
  position: absolute;
  inset: auto var(--lateral) clamp(24px, 3.5vw, 52px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  color: #f3efe6;
}
.destaque__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  font-size: clamp(46px, 8.4vw, 148px);
  line-height: 0.9;
  text-transform: uppercase;
}
.mascara { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.mascara > span { display: block; }
/* entrada do título: uma vez, ao abrir a página */
.destaque__titulo .mascara > span { animation: subir 1000ms var(--ease-out) 150ms both; }
.destaque__titulo .mascara:nth-of-type(2) > span { animation-delay: 260ms; }
.destaque__lado { display: grid; gap: 18px; justify-items: end; text-align: right; animation: aparecer 600ms ease 520ms both; }
.destaque__lado p { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; }
.contador { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.contador__barra { position: relative; width: 84px; height: 1px; overflow: hidden; background: rgba(243, 239, 230, 0.35); }
.contador__barra i { position: absolute; inset: 0; background: #f3efe6; transform: scaleX(0); transform-origin: left; }
.contador__barra i.correndo { animation: barra 5s linear forwards; }
@keyframes barra { to { transform: scaleX(1); } }
@keyframes subir { from { transform: translateY(105%); } }
@keyframes aparecer { from { opacity: 0; } }

@media (max-width: 767px) {
  .destaque__conteudo { flex-direction: column; align-items: flex-start; gap: 18px; }
  .destaque__lado { width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: end; justify-items: start; text-align: left; }
}

/* =========================================================
   INÍCIO — apresentação
   ========================================================= */
.apresentacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 var(--lateral);
}
.apresentacao__logo img { width: min(220px, 60%); margin: 0 auto; }
.apresentacao__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.apresentacao__texto h2 { font-size: clamp(24px, 2.1vw, 30px); text-transform: uppercase; }

@media (max-width: 767px) {
  .apresentacao { grid-template-columns: 1fr; gap: 30px; }
  .apresentacao__texto { align-items: center; }
  .apresentacao__texto h2 { text-align: center; }
  .apresentacao__texto p { text-align: justify; }
}

/* =========================================================
   Trilhos (cartões lado a lado que viram carrossel no celular)
   Usado em: serviços, antes x depois, feedbacks
   ========================================================= */
.trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--espaco-trilho, 25px)) / 3);
  gap: var(--espaco-trilho, 25px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--lateral);
  scroll-padding: 0 var(--lateral);
}
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { scroll-snap-align: start; }

.trilho-area { position: relative; }
.trilho-seta {
  position: absolute;
  top: var(--seta-topo, 50%);
  z-index: 2;
  display: none;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--preto);
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
}
.trilho-seta--anterior { left: calc(var(--lateral) + 6px); }
.trilho-seta--proxima { right: calc(var(--lateral) + 6px); }

@media (max-width: 1024px) {
  .trilho { grid-auto-columns: calc((100% - var(--espaco-trilho, 25px)) / 2); }
}
@media (max-width: 767px) {
  .trilho { grid-auto-columns: 100%; }
  .servicos .trilho-area { --seta-topo: 33.75vw; }
  .depoimento { padding: 40px 56px; font-size: 17px; }
  .trilho-seta { display: grid; }
}

/* Serviços */
.servico img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.servico h3 {
  font-family: var(--fonte-texto);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}
.servico p { text-align: justify; }
.acao-secao { margin-top: 20px; text-align: center; }

/* =========================================================
   Comparador antes x depois (arraste para comparar)
   ========================================================= */
.comparador {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #eee;
}
.comparador img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparador__antes {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.comparador__linha {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--branco);
  pointer-events: none;
}
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.comparador__alca {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: var(--vermelho);
  color: var(--branco);
  font-size: 18px;
  pointer-events: none;
}
.comparador__rotulo {
  position: absolute;
  bottom: 12px;
  padding: 2px 8px;
  color: var(--branco);
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.comparador__rotulo--antes { left: 8px; }
.comparador__rotulo--depois { right: 8px; }
.comparador input[type="range"] {
  position: absolute; inset: auto 0 0 0;
  width: 100%; margin: 0; opacity: 0; pointer-events: none;
}
.comparador:has(input:focus-visible) { outline: 2px solid var(--preto); outline-offset: 3px; }

.antes-depois { --espaco-trilho: 50px; margin-top: 30px; }
.antes-depois .comparador { aspect-ratio: 526 / 657; }

/* =========================================================
   INÍCIO — por que escolher
   ========================================================= */
.motivos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 0 var(--lateral);
}
.motivos h2 { font-size: var(--titulo-enorme); text-transform: uppercase; text-align: center; }
.motivos__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.motivos h3 {
  font-family: var(--fonte-texto);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.motivos p { text-align: justify; }
.motivos strong { font-weight: 600; }

@media (max-width: 1024px) { .motivos { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .motivos__lista { grid-template-columns: 1fr; gap: 35px; } }

/* =========================================================
   INÍCIO — feedbacks
   ========================================================= */
.feedbacks { --espaco-trilho: 10px; }
.depoimento {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  margin: 0;
  padding: 40px clamp(24px, 5vw, 70px);
  background: var(--vermelho);
  color: #f3efe6;
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   INÍCIO — perguntas frequentes
   ========================================================= */
.perguntas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px var(--lateral);
}
.perguntas h2 { font-size: var(--titulo-enorme); text-transform: uppercase; }
.pergunta { border: 1px solid var(--linha-clara); border-top: 0; }
.pergunta:first-child { border-top: 1px solid var(--linha-clara); }
.pergunta summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: var(--cinza-texto);
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary .icone { font-size: 12px; transition: transform 0.2s; }
.pergunta[open] summary .icone { transform: rotate(90deg); }
.pergunta__resposta { padding: 0 15px 20px; }
.pergunta__resposta strong { font-weight: 600; }
.pergunta__videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; }
.pergunta__videos p { font-weight: 600; margin-bottom: 10px; }

@media (max-width: 767px) {
  .perguntas { grid-template-columns: 1fr; }
  .perguntas h2 { text-align: center; }
}

/* Miniatura de vídeo (abre o vídeo do YouTube por cima da página) */
.video-miniatura {
  position: relative;
  display: block;
  overflow: hidden;
}
.video-miniatura img { width: 100%; transition: transform 0.4s; }
.video-miniatura:hover img { transform: scale(1.03); }
.video-miniatura__play {
  position: absolute;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--branco);
  font-size: 30px;
}

/* =========================================================
   Formulário de contato
   ========================================================= */
.contato-form { padding: 28px var(--lateral) 70px; }
.contato-form > p { font-size: clamp(16px, 1.4vw, 20px); text-align: center; text-transform: uppercase; margin-bottom: 20px; }
.formulario { display: grid; gap: 14px; width: min(855px, 100%); margin: 0 auto; }
.formulario label { display: block; margin-bottom: 4px; }
.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  min-height: 47px;
  padding: 6px 16px;
  border: 1px solid var(--preto);
  border-radius: 0;
  background: var(--branco);
  font-size: 16px;
}
.formulario textarea { min-height: 110px; resize: vertical; }
.formulario select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  padding-right: 40px;
  font-weight: 600;
}
.formulario ::placeholder { color: #888; }
.formulario .botao { justify-self: center; margin-top: 6px; }
.formulario__aviso { font-size: 13px; color: #555; text-align: center; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(20px, 3.5vw, 50px);
  font-size: 16px;
}
.rodape a { text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape__links,
.rodape__contato { display: flex; flex-direction: column; gap: 4px; }
.rodape__contato { align-items: flex-end; }
.rodape__linha { display: flex; align-items: center; gap: 12px; }
.rodape .redes a { font-size: 18px; }
.rodape .redes a:hover { text-decoration: none; }

@media (max-width: 600px) {
  .rodape { flex-direction: column-reverse; text-align: center; }
  .rodape__links, .rodape__contato { align-items: center; }
}

/* Botão de voltar ao topo */
.voltar-topo {
  position: fixed;
  right: 0; bottom: 0;
  z-index: 30;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, 0.54);
  color: var(--branco);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
}
.voltar-topo.visivel { opacity: 1; visibility: visible; }
.voltar-topo { background: var(--vermelho); }
@media (hover: hover) and (pointer: fine) { .voltar-topo:hover { background: var(--vermelho-escuro); } }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.grade-projetos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cartao-projeto {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  color: var(--branco);
  text-decoration: none;
}
.cartao-projeto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cartao-projeto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s;
}
.cartao-projeto span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.cartao-projeto:hover img { transform: scale(1.06); }
.cartao-projeto:hover::after { background: rgba(0, 0, 0, 0.45); }

@media (max-width: 1024px) { .grade-projetos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grade-projetos { grid-template-columns: 1fr; } }

/* =========================================================
   PÁGINA DE PROJETO
   ========================================================= */
.projeto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 26px var(--lateral) 0;
}
.projeto h1 { font-size: var(--titulo-grande); text-transform: uppercase; margin-bottom: 6px; }
.ficha { margin: 0; font-size: 16px; }
.ficha__titulo { margin-bottom: 16px; text-transform: uppercase; font-size: 16px; }
.ficha dt { font-weight: 600; }
.ficha dd { margin: 0 0 16px; }
/* A mídia ao lado da ficha fica alinhada à direita; a largura de cada coluna vem do HTML (--largura) */
/* Material ao lado da ficha: cada bloco tem a proporção da própria foto (--r = largura/altura)
   e no máximo 520px de altura; até 2 blocos ficam lado a lado. */
.projeto__midia {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 20px;
}
.projeto__midia[data-qtd="3"], .projeto__midia[data-qtd="4"] { flex-wrap: wrap; }
.midia-bloco { flex: 0 1 calc(520px * var(--r)); min-width: 0; margin: 0; }
.midia-bloco .comparador { aspect-ratio: var(--r); }
.midia-bloco img { width: 100%; height: auto; }
.midia-bloco figcaption { margin-top: 8px; font-size: 13px; color: #555; }
.midia-ampliar { display: block; cursor: zoom-in; }
.projeto + .divisor { margin-top: 20px; }

@media (max-width: 767px) {
  .projeto__midia { justify-content: center; }
  .projeto { grid-template-columns: 1fr; }
  .projeto h1 { text-align: center; }
}

/* Filtros da galeria (só aparecem quando o projeto tem ambientes) */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 0 var(--lateral) 20px;
  padding: 0;
  list-style: none;
}
.filtros button {
  padding: 2px 8px;
  border: 0;
  background: none;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 24px);
  text-transform: uppercase;
  cursor: pointer;
}
.filtros button[aria-pressed="true"] { background: var(--vermelho); color: var(--branco); }
@media (hover: hover) and (pointer: fine) {
  .filtros button[aria-pressed="false"]:hover { color: var(--vermelho); }
}

/* Galeria em linhas "justificadas": cada foto cresce conforme o formato dela */
.galeria {
  --altura: 500px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 var(--lateral) 40px;
}
.galeria::after { content: ""; flex-grow: 1000000; }
.galeria a {
  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--altura));
  aspect-ratio: var(--r);
  overflow: hidden;
  background: #eee;
}
.galeria a[hidden] { display: none; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, transform 0.5s; }
.galeria a:hover img { opacity: 0.85; }

@media (max-width: 1024px) { .galeria { --altura: 260px !important; gap: 10px; } }
@media (max-width: 767px) { .galeria { --altura: 340px !important; } }

/* Visualizador de fotos e vídeos (abre por cima da página) */
.visualizador {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--branco);
}
.visualizador::backdrop { background: rgba(0, 0, 0, 0.6); }
.visualizador__conteudo {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  padding: 50px 60px;
}
.visualizador__conteudo img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; object-fit: contain; }
.visualizador__conteudo iframe { width: min(420px, 90vw); aspect-ratio: 9 / 16; max-height: calc(100vh - 100px); border: 0; }
.visualizador button {
  position: absolute;
  display: grid; place-items: center;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--branco);
  font-size: 26px;
  cursor: pointer;
  opacity: 0.8;
}
.visualizador button:hover { opacity: 1; }
.visualizador__fechar { top: 8px; right: 8px; }
.visualizador__anterior { left: 4px; top: 50%; transform: translateY(-50%); font-size: 36px !important; }
.visualizador__proxima { right: 4px; top: 50%; transform: translateY(-50%); font-size: 36px !important; }
.visualizador__contador { position: absolute; top: 18px; left: 20px; font-size: 14px; opacity: 0.8; }

/* =========================================================
   SOBRE
   ========================================================= */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 42px var(--lateral);
}
.sobre h1 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 20px; }
.sobre img { width: 100%; }

.fundadores { padding: 0 var(--lateral) 42px; }
.fundadores .divisor { margin: 0 0 30px; }
.fundadores h2 { font-size: 30px; text-align: center; text-transform: uppercase; margin-bottom: 20px; }
.fundadores__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 15px; }
.fundador { display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: 20px; align-items: start; }
.fundador h3 { font-size: clamp(30px, 2.8vw, 40px); font-style: italic; margin-bottom: 20px; }

@media (max-width: 1024px) {
  .fundadores__lista { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre h1 { text-align: center; }
  .fundador { grid-template-columns: 1fr; }
  .fundador img { width: min(230px, 70%); margin: 0 auto; }
  .fundador h3 { text-align: center; }
}

/* =========================================================
   CONTATO
   ========================================================= */
.contato {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px var(--lateral) 70px;
}
.contato h1 {
  font-size: clamp(34px, 3.8vw, 55px);
  font-weight: 600;
}
.contato__linha { width: 180px; border: 0; border-top: 1px solid var(--preto); margin: 20px 0 30px; }
.contato strong { font-weight: 600; }
.contato__whatsapp { display: inline-flex; margin-top: 10px; color: var(--whatsapp); font-size: 50px; }
.contato .formulario { width: 100%; }

@media (max-width: 767px) { .contato { grid-template-columns: 1fr; } }

/* =========================================================
   TEXTOS LONGOS (política de privacidade e termos de uso)
   ========================================================= */
.texto-longo { max-width: 900px; padding: 40px var(--lateral) 60px; }
.texto-longo h1 { font-size: 32px; margin-bottom: 24px; }
.texto-longo h2 { font-size: 26px; margin: 32px 0 12px; }
.texto-longo ul { padding-left: 1.2em; }
.texto-longo li { margin-bottom: 6px; }
.texto-longo strong { font-weight: 600; }

/* ---------- Menos movimento para quem prefere ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Linha logo abaixo das fotos do destaque */
.destaque + .divisor--total { margin-bottom: var(--espaco-secao); }

/* =========================================================
   KATU — acréscimos da versão Claude 02
   ========================================================= */

::selection { background: var(--vermelho); color: var(--branco); }

/* Revelação ao rolar: os blocos aparecem quando entram na tela (só com JavaScript ativo) */
.js .revela {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--atraso, 0ms);
}
.js .revela.visivel { opacity: 1; transform: none; }

/* ---------- Empresas que confiaram na KATU ---------- */
.empresas__sub {
  max-width: 82ch;
  margin: -6px auto 28px;
  padding: 0 var(--lateral);
  color: #555;
  text-align: center;
}
.empresas__sub strong { color: var(--preto); font-weight: 600; }
.empresas__faixa {
  overflow: hidden;
  padding: 16px 0;
  /* as pontas somem suavemente */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.empresas__trilho { display: flex; width: max-content; animation: passar 42s linear infinite; }
.empresas__trilho ul { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); margin: 0; padding: 0 clamp(24px, 3vw, 48px); list-style: none; }
.empresas__trilho img {
  width: auto;
  /* altura óptica de cada logo vem do HTML (--h); no celular fica 70% */
  height: var(--h, 64px);
  max-width: none;
}
@keyframes passar { to { transform: translateX(-50%); } }

/* ---------- Portfólio: filtro por categoria ---------- */
.filtros--portfolio { margin: 28px var(--lateral) 24px; }
.grade-projetos li[hidden] { display: none; }
.portfolio__vazio { padding: 40px var(--lateral); text-align: center; color: #555; }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .revela, .js .revela.visivel { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .destaque__titulo .mascara > span, .destaque__lado { animation: none; }
  .empresas__trilho { animation: none; flex-wrap: wrap; width: auto; }
  .empresas__trilho ul[aria-hidden] { display: none; }
  .empresas__trilho ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
}

@media (max-width: 767px) {
  .empresas__trilho img { height: calc(var(--h, 64px) * 0.7); }
}

/* Foto dos sócios no lugar do logo (seção depois do topo) */
.apresentacao__foto img { width: min(520px, 88%); margin: 0 auto; aspect-ratio: 1; object-fit: cover; }

/* Botão das avaliações no Google, abaixo dos feedbacks */
.feedbacks + .acao-secao .icone { font-size: 13px; margin-left: 8px; vertical-align: -1px; }

/* Equipe (Sobre) */
.equipe { padding: 0 var(--lateral) 42px; }
.equipe .divisor { margin: 0 0 30px; }
.equipe h2 { font-size: 30px; text-align: center; text-transform: uppercase; margin-bottom: 20px; }
.equipe__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 15px; }
.equipe .fundador h3 { margin-bottom: 6px; }
.equipe__cargo { margin-bottom: 20px; font-weight: 600; }
@media (max-width: 1024px) { .equipe__lista { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .equipe .equipe__cargo { text-align: center; } }
