/* ===== Nobreworks · site público ===== */
:root {
  --papel: #EBEBE8;      /* fundo, cinza-pedra frio */
  --tinta: #000000;      /* texto e nome gigante */
  --grafite: #4F4F54;    /* texto de apoio */
  --linha: rgba(0, 0, 0, 0.14);
  --latao: #8A6522;      /* dourado da marca (mesmo do CRM) */
  --branco: #FFFFFF;
  --whats: #1FAF5A;

  --fonte: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --margem: clamp(16px, 4vw, 48px);
  --largura: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--latao); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--tinta); color: var(--branco); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tinta); color: var(--branco);
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 15px 24px; border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--latao); }
.btn-pequeno { padding: 10px 18px; font-size: 14px; }
.btn-grande { padding: 20px 34px; font-size: 18px; }
.ico-whats { width: 20px; height: 20px; fill: var(--whats); }

/* ===== Topo fixo ===== */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--margem);
  background: rgba(235, 235, 232, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-variation-settings: 'wdth' 112; }
.marca img { width: 40px; height: 25px; border-radius: 3px; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { text-decoration: none; font-size: 15px; color: var(--grafite); }
.menu a:hover { color: var(--tinta); }

/* ===== Hero: o único momento chamativo ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: end;
  min-height: min(calc(100svh - 68px), 900px);
  padding: 24px var(--margem) 0;
  overflow: hidden;
}
.hero-foto {
  grid-column: 2; grid-row: 1;
  align-self: end;
  margin-bottom: clamp(40px, 8vw, 96px);
}
.hero-foto img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.04);
}
.hero-texto {
  grid-column: 1; grid-row: 1;
  align-self: center;
  max-width: 300px;
  padding-right: 24px;
  position: relative; z-index: 2;
}
.hero-lista {
  grid-column: 3; grid-row: 1; align-self: center; justify-self: end;
  list-style: none; text-align: right;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; font-weight: 700;
  font-variation-settings: 'wdth' 118; letter-spacing: -0.01em;
  position: relative; z-index: 2;
}
.hero-local { font-size: 14px; color: var(--grafite); margin-bottom: 14px; }
.hero-frase { font-size: 19px; line-height: 1.45; margin-bottom: 28px; text-wrap: pretty; }

.nome {
  position: absolute; left: 0; right: 0; bottom: clamp(8px, 2vw, 24px);
  z-index: 1; pointer-events: none;
  mix-blend-mode: difference; color: var(--branco);
}
.nome-trilho {
  display: flex; width: max-content;
  animation: correr 38s linear infinite;
}
.nome-trilho span {
  font-size: clamp(88px, 17vw, 260px);
  line-height: .9;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  letter-spacing: -0.035em;
  white-space: nowrap;
  padding-right: .35em;
}
@keyframes correr { to { transform: translateX(-50%); } }

/* ===== Vídeos ===== */
.reels { padding: clamp(72px, 10vw, 128px) 0 0; }
.reels-cabeca {
  max-width: var(--largura); margin: 0 auto 32px; padding: 0 var(--margem);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px;
}
.reels-cabeca h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; max-width: 18ch; letter-spacing: -0.015em; }
.reels-cabeca p { color: var(--grafite); max-width: 34ch; }
.reels-lista {
  list-style: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 15vw, 220px);
  gap: 14px;
  padding: 0 var(--margem) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margem);
  justify-content: safe center;
  scrollbar-width: thin;
}
.reels-lista li { scroll-snap-align: start; }
.reels-lista video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 6px; background: #1a1a1a; cursor: pointer;
}
.reels-lista figcaption { font-size: 14px; color: var(--grafite); margin-top: 10px; line-height: 1.35; }

/* ===== Seções de texto ===== */
.servicos, .trabalhos, .processo, .sobre {
  max-width: var(--largura); margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--margem) 0;
}
.servicos > h2, .trabalhos > h2, .processo > h2, .sobre > h2 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 40px;
}

/* Serviços: linhas, nome grande à esquerda */
.servico {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px;
  padding: 32px 0; border-top: 1px solid var(--linha);
}
.servico:last-child { border-bottom: 1px solid var(--linha); }
.servico h3 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; font-weight: 700; font-variation-settings: 'wdth' 118; letter-spacing: -0.02em; }
.servico p { max-width: 52ch; }
.servico .detalhe { color: var(--grafite); font-size: 15px; margin-top: 10px; }

/* Trabalhos */
.trabalhos-grade {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px;
}
.trabalho img { width: 100%; border-radius: 6px; background: var(--branco); }
.trabalho-largo { grid-column: span 2; }
.trabalho:not(.trabalho-largo) img { aspect-ratio: 4 / 5; object-fit: cover; }
.trabalho-largo img { aspect-ratio: 8 / 5; object-fit: cover; object-position: top; height: calc(100% - 64px); }
.trabalho h3 { font-size: 18px; font-weight: 700; margin-top: 14px; }
.trabalho p { font-size: 15px; color: var(--grafite); }
.clientes { margin-top: 40px; max-width: 60ch; color: var(--grafite); }
.clientes strong { color: var(--tinta); font-weight: 600; }

/* Processo */
.processo ol { list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.processo li { counter-increment: passo; }
.processo li::before {
  content: counter(passo);
  display: block; font-size: 64px; line-height: 1; font-weight: 800;
  font-variation-settings: 'wdth' 125; color: var(--latao); margin-bottom: 16px;
}
.processo h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.processo p { color: var(--grafite); max-width: 34ch; }

/* Sobre */
.sobre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; }
.sobre > h2 { margin-bottom: 0; }
.sobre-texto p { font-size: 19px; line-height: 1.55; max-width: 56ch; }
.sobre-texto p + p { margin-top: 16px; }

/* Chamada final */
.final {
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(72px, 10vw, 120px) var(--margem);
  background: var(--tinta); color: var(--branco);
  text-align: center;
}
.final h2 {
  font-size: clamp(34px, 6vw, 76px); line-height: 1; font-weight: 800;
  font-variation-settings: 'wdth' 118; letter-spacing: -0.03em;
  max-width: 16ch; margin: 0 auto 40px; text-wrap: balance;
}
.final .btn { background: var(--branco); color: var(--tinta); }
.final .btn:hover { background: var(--latao); color: var(--branco); }

.rodape {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 24px var(--margem) 96px;
  background: var(--tinta); color: #A9A9AE; font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Botão fixo de WhatsApp */
.whats-fixo {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whats); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.whats-fixo svg { width: 30px; height: 30px; fill: var(--branco); }

/* ===== Celular ===== */
@media (max-width: 860px) {
  .menu, .hero-lista { display: none; }
  .topo .btn-pequeno { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 12px; }
  .nome { min-width: 0; overflow: hidden; }
  .hero-foto { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .nome { position: relative; grid-column: 1; grid-row: 2; bottom: auto; margin: -0.55em calc(var(--margem) * -1) 24px; }
  .hero-texto { grid-column: 1; grid-row: 3; max-width: none; padding: 0 0 48px; }
  .nome-trilho span { font-size: 22vw; }
  .servico, .sobre { grid-template-columns: 1fr; }
  .trabalhos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .trabalho-largo img { height: auto; }
  .processo ol { grid-template-columns: 1fr; }
  .reels-lista { justify-content: start; grid-auto-columns: 62vw; }
  .rodape { flex-direction: column; }
}
@media (max-width: 480px) {
  .topo .btn-pequeno { display: none; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nome-trilho { animation: none; }
}
