/* ==========================================================================
   CertificARTE — landing page

   Direcao: a pagina e um catalogo, nao um folheto. A estrutura vem dos
   dispositivos que o mercado de arte ja usa para carregar informacao —
   etiqueta de parede, linha de credito, registro de proveniencia, indice de
   catalogo. Por isso nao ha cards genericos nem sombras decorativas.

   Paleta: campo branco de galeria com faixas em cinza FRIO (a parede da foto
   do heroi tem B maior que R; creme seria a escolha errada). O amarelo da
   marca aparece so onde algo esta registrado — e um selo, nao enfeite. O ocre
   foi amostrado das proprias obras da foto e vive apenas em filetes.

   Tipografia: uma familia so, Satoshi, que ja estava no projeto. O contraste
   vem de peso e medida, nao de uma segunda fonte.
   ========================================================================== */

@font-face {
  font-family: Satoshi;
  src: url(assets/fontes/Satoshi/Satoshi-Regular.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url(assets/fontes/Satoshi/Satoshi-Medium.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url(assets/fontes/Satoshi/Satoshi-Bold.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --wall: #EDF0F1;
  --rule: #DCE1E3;
  --muted: #63696B;
  --seal: #FFD900;
  --ochre: #B08020;

  --medida: 68ch;
  --largura: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --t-credito: 0.8125rem;
  --t-menor: 0.9375rem;
  --t-corpo: 1.0625rem;
  --t-lede: clamp(1.0625rem, 1.5vw, 1.375rem);
  --t-h3: 1.375rem;
  --t-h2: clamp(1.875rem, 4vw, 3.25rem);
  --t-display: clamp(2.5rem, 6.5vw, 5rem);
}

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

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

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: Satoshi, system-ui, sans-serif;
  font-size: var(--t-corpo);
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.pular {
  position: absolute;
  left: -9999px;
}

.pular:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--seal);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

/* ------------------------------- ESCALA --------------------------------- */
.display {
  font-size: var(--t-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* A quebra do titulo e uma decisao de composicao, nao de conteudo: em telas
   largas as duas oracoes ficam em linhas proprias; em telas estreitas deixamos
   o texto fluir, porque forcar a quebra produzia uma linha orfa de uma palavra. */
.display span {
  display: inline;
}

@media (min-width: 560px) {
  .display span {
    display: block;
  }
}

.titulo {
  font-size: var(--t-h2);
  line-height: 1.05;
  max-width: 24ch;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  max-width: 52ch;
  color: var(--muted);
}

.lede--curta {
  max-width: 44ch;
}

/* -------------------------------- ACAO ---------------------------------- */
.acao {
  display: inline-block;
  background: var(--seal);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--t-corpo);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border: none;
  transition: background-color 0.18s ease;
}

.acao:hover {
  background: #FFC800;
}

/* -------------------------------- TOPO ---------------------------------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.topo__interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

.marca img {
  height: 30px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu a {
  font-size: var(--t-menor);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.18s ease;
}

.menu a:hover,
.menu a.atual {
  border-bottom-color: var(--seal);
}

.menu__acao {
  font-weight: 700;
}

.menu-botao {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-botao span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-botao[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-botao[aria-expanded='true'] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ------------------------------ ABERTURA -------------------------------- */
.abertura {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}

.abertura__texto {
  min-width: 0;
}

.abertura__texto .lede {
  margin: 1.75rem 0 2.25rem;
}

/* A placa. A moldura preta fina e a sombra rasa citam a obra emoldurada da
   foto; e o unico lugar da pagina com moldura, de proposito. */
.placa {
  margin: 0;
  min-width: 0;
  position: relative;
}

.placa__obra {
  width: 100%;
  border: 1px solid var(--ink);
}

.etiqueta {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: none;
  padding: 1.5rem 1.5rem 1.25rem;
}

.etiqueta__titulo {
  font-size: var(--t-credito);
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ochre);
  margin-bottom: 0.25rem;
}

.registro {
  margin: 0;
}

.registro__linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.registro__linha dt {
  font-weight: 700;
  font-size: var(--t-corpo);
  flex-shrink: 0;
}

.registro__linha dd {
  margin: 0;
  font-size: var(--t-menor);
  color: var(--muted);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* O selo: amarelo aparece so onde algo esta registrado.
   A borda de tinta nao e enfeite: amarelo puro sobre branco da 1,38:1 de
   contraste e a marca praticamente desaparece. Com a borda, o contorno fica em
   19,8:1 e o selo passa a ler como algo estampado. */
.selo {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background: var(--seal);
  border: 1px solid var(--ink);
}

.etiqueta__nota {
  font-size: var(--t-credito);
  color: var(--muted);
  line-height: 1.5;
  padding-top: 0.9rem;
}

/* ------------------------------- SECOES --------------------------------- */
.secao {
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}

.secao--faixa {
  max-width: none;
  background: var(--wall);
}

.secao--faixa > * {
  max-width: var(--largura);
  margin-inline: auto;
}

.secao .titulo {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* --------------------------- O QUE FAZEMOS ------------------------------ */
.pranchas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.prancha {
  min-width: 0;
}

.prancha img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* A marca da prancha: filete ocre em vez de pilula, para ler como legenda de
   catalogo e nao como tag de interface. */
.prancha__marca {
  font-size: var(--t-menor);
  color: var(--ink);
  padding: 0.85rem 0 0.7rem;
  border-bottom: 2px solid var(--ochre);
  display: block;
  margin-bottom: 1.1rem;
}

.prancha h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.prancha p:last-child {
  color: var(--muted);
  max-width: 42ch;
}

/* ---------------------------- COMO FUNCIONA ----------------------------- */
.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: passo;
}

.passo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* O disco amarelo e um ativo que a marca ja usava; aqui ele ganha o numero. */
.passo__disco {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--seal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.passo__disco img {
  width: 74px;
  height: 74px;
}

.passo__numero {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--t-menor);
}

.passo p {
  color: var(--muted);
  max-width: 32ch;
}

/* ------------------------------ BENEFICIOS ------------------------------ */
.publico__abas {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.publico__abas button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0.65rem 1.15rem 0.75rem;
  font-family: inherit;
  font-size: var(--t-corpo);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.publico__abas button:first-child {
  padding-left: 0;
}

.publico__abas button:hover {
  color: var(--ink);
}

.publico__abas button.ativa {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--seal);
}

.publico__painel {
  display: none;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.publico__painel.ativa {
  display: grid;
}

.publico__painel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.publico__painel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.publico__painel li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  max-width: var(--medida);
}

.publico__painel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 7px;
  height: 7px;
  background: var(--seal);
  border: 1px solid var(--ink);
}

/* ------------------------------- SERVICOS ------------------------------- */
.indice {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.75rem, 3.5vw, 3.5rem);
}

.indice li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}

.indice img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-top: 2px;
}

.indice h3 {
  font-size: var(--t-corpo);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.indice p {
  font-size: var(--t-menor);
  color: var(--muted);
  line-height: 1.5;
}

/* -------------------------------- CONTATO ------------------------------- */
.contato {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.obra {
  margin: 0;
}

.obra img {
  width: 100%;
  border: 1px solid var(--ink);
}

/* A linha de credito da obra: o dispositivo canonico do catalogo. */
.obra figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--ochre);
  margin-top: 0.9rem;
}

.obra__artista {
  font-weight: 700;
}

.obra__titulo {
  font-style: italic;
}

.obra__dados {
  font-size: var(--t-credito);
  color: var(--muted);
}

.fale .titulo {
  margin-bottom: 1.25rem;
}

.canais {
  margin: 2rem 0;
}

.canal {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.canal:first-child {
  border-top: 1px solid var(--rule);
}

.canal dt {
  font-size: var(--t-credito);
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.canal dd {
  margin: 0;
  font-size: var(--t-h3);
  font-weight: 700;
}

.canal dd a {
  text-decoration: none;
  border-bottom: 2px solid var(--seal);
}

.canal dd a:hover {
  background: var(--seal);
}

/* -------------------------------- RODAPE -------------------------------- */
.rodape {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1.5rem;
}

.rodape__interno {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  max-width: var(--largura);
  margin: 0 auto;
}

.rodape__marca p {
  font-size: var(--t-menor);
  color: #9A9A9A;
  margin-top: 1.25rem;
  max-width: 26ch;
}

.rodape__nav,
.rodape__contato {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--t-menor);
}

.rodape a {
  color: var(--paper);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
}

.rodape a:hover {
  border-bottom-color: var(--seal);
}

.rodape__copy {
  max-width: var(--largura);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #262626;
  font-size: var(--t-credito);
  color: #7A7A7A;
}

/* ------------------------------ AO TOPO --------------------------------- */
.ao-topo {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--seal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ao-topo.visivel {
  opacity: 1;
  visibility: visible;
}

.ao-topo img {
  width: 15px;
  height: 15px;
}

/* ============================ ABERTURA: MOTION ===========================
   O unico momento de movimento nao disparado pelo usuario na pagina: as tres
   linhas do registro entram em sequencia uma vez, no carregamento, para que o
   olho leia o registro como algo que se constroi. Nada mais se move sozinho. */
@media (prefers-reduced-motion: no-preference) {
  .placa .registro__linha {
    opacity: 0;
    transform: translateY(6px);
    animation: entra 0.5s ease forwards;
  }

  .placa .registro__linha:nth-child(1) { animation-delay: 0.35s; }
  .placa .registro__linha:nth-child(2) { animation-delay: 0.5s; }
  .placa .registro__linha:nth-child(3) { animation-delay: 0.65s; }
}

@keyframes entra {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================== RESPONSIVO =============================== */
@media (max-width: 1080px) {
  .abertura {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(2rem, 5vw, 3.5rem);
  }

  .placa {
    max-width: 640px;
  }

  .pranchas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .indice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contato {
    grid-template-columns: minmax(0, 1fr);
  }

  .rodape__interno {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .menu-botao {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
  }

  .menu.aberto {
    max-height: 340px;
  }

  .menu a {
    padding: 0.95rem var(--gutter);
    border-bottom: 1px solid var(--wall);
  }

  .menu a:hover,
  .menu a.atual {
    border-bottom-color: var(--wall);
    background: var(--wall);
  }

  .pranchas,
  .passos,
  .indice {
    grid-template-columns: minmax(0, 1fr);
  }

  .passo {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .passo__disco {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
  }

  .passo__disco img {
    width: 44px;
    height: 44px;
  }

  .passo__numero {
    width: 28px;
    height: 28px;
    font-size: var(--t-credito);
  }

  .passo p {
    max-width: none;
  }

  .publico__painel {
    grid-template-columns: minmax(0, 1fr);
  }

  .publico__abas {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .publico__abas::-webkit-scrollbar {
    height: 0;
  }

  .rodape__interno {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .etiqueta {
    padding: 1.25rem 1.15rem 1rem;
  }

  .registro__linha {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .registro__linha dd {
    text-align: left;
    justify-content: flex-start;
  }
}
