/* Abertura nova (aprovada em 24/10/2026): copiada de movimento.css */
:root {
  --ease-saida: cubic-bezier(.23, 1, .32, 1);     /* chegadas: rapido no inicio, pousa suave */
  --ease-mover: cubic-bezier(.77, 0, .175, 1);    /* coisas que se movem na tela */
  --capa-h: clamp(260px, 30vw, 440px);
}

/* ---------- abertura: frase curta + capa + atalhos na primeira tela */
.abertura { position: relative; background: var(--creme); padding-bottom: clamp(20px, 2.4vw, 36px); }
.abertura-capa { position: relative; display: flex; flex-direction: column; }
.abertura-texto { position: relative; z-index: 2; order: 0; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: clamp(28px, 3.6vw, 56px) max(16px, env(safe-area-inset-left, 0px)) 0; }
.abertura-texto h1 { font-size: clamp(34px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -.02em; color: var(--carvao); }
.abertura-texto h1 span { display: block; }
.abertura-texto p { margin-top: clamp(10px, 1.2vw, 16px); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; color: var(--tinta); max-width: 48ch; }
.abertura-arte { order: 1; position: relative; display: block; margin-top: calc(var(--capa-h) * -.46); z-index: 1; }
.abertura-arte img { width: 100%; height: var(--capa-h); object-fit: cover; object-position: 50% 100%; }

/* atalhos: quatro portas grandes, sobre a parte listrada da capa */
.atalhos { position: relative; z-index: 3; max-width: 1240px; margin: calc(var(--capa-h) * -.34) auto 0;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.atalhos-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); }
.atalho { position: relative; display: block; height: 100%; min-height: clamp(150px, 13vw, 184px); padding: 20px 20px 34px; border-radius: 16px;
  text-decoration: none; color: var(--tinta); overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 10px 28px rgba(43, 36, 32, .12);
  transition: transform 260ms var(--ease-saida), box-shadow 260ms var(--ease-saida); }
.at-comprar { background: var(--azul-pastel); }
.at-arquivo { background: var(--verde); color: var(--creme); }
.at-criar { background: var(--agua-pastel); }
.at-evento { background: var(--terracota-pastel); }
.at-texto { position: relative; z-index: 2; display: block; max-width: 64%; }
.at-texto b { display: block; font: 700 clamp(19px, 1.65vw, 24px)/1.12 var(--f-titulo); letter-spacing: -.01em; text-wrap: balance; }
.at-texto span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--suave); }
.at-arquivo .at-texto span { color: #D9E4D6; }
.atalho img { position: absolute; z-index: 1; right: -4%; bottom: 14px; width: 44%; max-width: 150px; height: auto;
  transform: rotate(-7deg); filter: drop-shadow(0 6px 8px rgba(43, 36, 32, .16));
  transition: transform 480ms var(--ease-saida); }
.at-seta { position: absolute; z-index: 2; left: 20px; bottom: 22px; width: 24px; height: 24px; color: var(--acao-escura);
  transition: transform 220ms var(--ease-saida); }
.at-arquivo .at-seta { color: var(--areia); }
/* as quatro camadas da marca no pe de cada atalho: curtas em repouso, completas ao passar o mouse */
.at-camadas { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; }
.at-camadas i { display: block; height: 3px; transform-origin: left center; transform: scaleX(.16); transition: transform 420ms var(--ease-mover); }
.at-camadas i:nth-child(1) { background: var(--areia); }
.at-camadas i:nth-child(2) { background: var(--terracota); transition-delay: 30ms; }
.at-camadas i:nth-child(3) { background: var(--oliva); transition-delay: 60ms; }
.at-camadas i:nth-child(4) { background: var(--verde); transition-delay: 90ms; }
.at-arquivo .at-camadas i:nth-child(4) { background: var(--creme); }
.atalho:active { transform: scale(.98); transition-duration: 120ms; }
.atalho:focus-visible { outline: 3px solid var(--acao); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .atalho:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(43, 36, 32, .08), 0 20px 40px rgba(43, 36, 32, .16); }
  .atalho:hover img { transform: rotate(0deg) scale(1.07); }
  .atalho:hover .at-seta { transform: translateX(5px); }
  .atalho:hover .at-camadas i { transform: scaleX(1); }
  .atalho:active { transform: translateY(-2px) scale(.98); }
}

/* atalhos rapidos: categorias e servicos mais procurados */
.atalhos-rapidos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 16px; }
.ar-categorias, .ar-servicos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-categorias li, .ar-servicos li { flex: none; }
.ar-categorias button, .ar-servicos a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px;
  background: var(--papel); border: 0; color: var(--tinta); font: 600 16px var(--f-cond); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 36, 32, .07); transition: background 180ms ease, transform 160ms var(--ease-saida); }
.ar-categorias img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.ar-servicos a { padding-left: 14px; color: var(--verde); }
.ar-servicos svg { width: 20px; height: 20px; }
.ar-categorias button:active, .ar-servicos a:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .ar-categorias button:hover, .ar-servicos a:hover { background: #fff; } }

/* selos: agora em linha discreta, icones desenhados no lugar dos simbolos */
.selos-linha { max-width: 1240px; margin: 18px auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.selos-linha li { background: transparent; border: 0; padding: 4px 0; }
.selo-svg { flex: none; width: 22px; height: 22px; color: var(--oliva); }

@media (max-width: 1000px) {
  .atalhos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atalhos-rapidos { justify-content: flex-start; }
}
@media (max-width: 700px) {
  :root { --capa-h: 38vw; }
  .abertura-texto { padding-top: 22px; }
  .abertura-texto h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .abertura-texto p { font-size: 16px; }
  .abertura-arte { margin-top: -6px; }
  .atalhos { margin-top: -14vw; }
  .atalho { min-height: 128px; padding: 14px 14px 30px; border-radius: 14px; }
  .at-texto { max-width: 100%; }
  .at-texto b { font-size: 18px; }
  .at-texto span { display: none; }
  .atalho img { width: 38%; right: 0; bottom: 8px; }
  .at-seta { left: 14px; bottom: 16px; }
  /* no celular os atalhos rapidos correm de lado, sem quebrar em varias linhas */
  .atalhos-rapidos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0;
    padding: 2px max(16px, env(safe-area-inset-left, 0px)) 6px; scroll-padding-inline: 16px; }
  .atalhos-rapidos::-webkit-scrollbar { display: none; }
  .ar-categorias, .ar-servicos { flex-wrap: nowrap; }
  .ar-categorias button, .ar-servicos a { white-space: nowrap; }
  .selos-linha { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. a capa surge suave de baixo para cima (como a peca crescendo na mesa), sem linhas nem degraus */
  .abertura-arte img { animation: surgir-capa 1300ms var(--ease-saida) 60ms both; }
  @keyframes surgir-capa {
    from { clip-path: inset(35% 0 0 0); opacity: 0; transform: translateY(18px); }
    60% { opacity: 1; }
    to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
  }

  /* 2. frase e atalhos chegam em sequencia curta, com um leve foco (blur -> nitido) */
  .abertura-texto h1 { animation: materializar 720ms var(--ease-saida) 120ms both; }
  .abertura-texto p { animation: materializar 720ms var(--ease-saida) 200ms both; }
  .atalhos-grade > li { animation: materializar 640ms var(--ease-saida) both; animation-delay: calc(380ms + var(--n, 0) * 70ms); }
  .atalhos-grade > li:nth-child(2) { --n: 1; }
  .atalhos-grade > li:nth-child(3) { --n: 2; }
  .atalhos-grade > li:nth-child(4) { --n: 3; }
  .atalhos-rapidos, .selos-linha { animation: aparecer-suave 600ms var(--ease-saida) 700ms both; }
  @keyframes materializar { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
  @keyframes aparecer-suave { from { opacity: 0; transform: translateY(6px); } }
}
