/* RC Designers: o mosaico 2x2 do logo é a base do layout. */
:root {
    --laranja: #ff7807;
    --preto: #111;
    --tinta: #212121;
    --cinza: #414141;
    --creme: #f5f0e6;
    --branco: #fff;
    --titulo: "Archivo", "Arial Black", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --raio: 14px;
    --espaco: clamp(4.5rem, 9vw, 8.5rem);
}
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; color: var(--tinta); background: var(--creme); }
img { max-width: 100%; height: auto; }
::selection { background: var(--laranja); color: var(--preto); }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }
.sobre :focus-visible, .contato :focus-visible { outline-color: var(--preto); }
.container { max-width: 1360px; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.pular { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--laranja); color: var(--preto); }
.pular:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--titulo); font-stretch: 125%; font-weight: 900; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
.titulo { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.ponto { color: var(--laranja); }

.botao { display: inline-block; padding: .85rem 1.5rem; border: 2px solid var(--laranja); border-radius: 10px; background: var(--laranja); color: var(--preto); font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.botao:hover { background: var(--creme); border-color: var(--creme); color: var(--preto); }
.botao-linha { background: transparent; border-color: #6a6a6a; color: var(--creme); }
.botao-linha:hover { background: var(--creme); border-color: var(--creme); color: var(--preto); }
.botao-preto { background: var(--preto); border-color: var(--preto); color: var(--creme); }
.botao-preto:hover { background: var(--laranja); border-color: var(--laranja); color: var(--preto); }
.botao[disabled] { opacity: .6; }

/* ---- topo ---- */
.topo { position: sticky; top: 0; z-index: 50; background: var(--laranja); border-bottom: 1px solid var(--preto); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.topo-logo img { width: 139px; display: block; }
.topo-menu { display: flex; align-items: center; gap: 2rem; }
.topo-menu a:not(.botao) { color: var(--preto); text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.topo-menu a:not(.botao):hover, .topo-menu a.ativo:not(.botao) { border-color: var(--preto); }
.topo-menu .botao { padding: .6rem 1.1rem; background: var(--preto); border-color: var(--preto); color: var(--creme); }
.topo-menu .botao:hover { background: var(--creme); border-color: var(--creme); color: var(--preto); }
.topo :focus-visible { outline-color: var(--preto); }
.topo-botao { display: none; width: 46px; height: 46px; border: 0; background: none; }
.topo-botao i { display: block; width: 26px; height: 3px; margin: 7px auto; background: var(--preto); transition: transform .25s; }
.topo-botao[aria-expanded="true"] i:first-of-type { transform: translateY(5px) rotate(45deg); }
.topo-botao[aria-expanded="true"] i:last-of-type { transform: translateY(-5px) rotate(-45deg); }

/* ---- abertura ---- */
.abertura { background: linear-gradient(90deg, var(--preto) 40%, var(--laranja) 100%) var(--preto); color: var(--creme); overflow: hidden; }
.abertura-grade { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; min-height: min(calc(100svh - 72px), 820px); padding-block: 2.5rem; }
.abertura-slides { display: grid; align-items: end; }
.slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s, visibility 0s .45s; }
.slide.ativo { visibility: visible; opacity: 1; transform: none; transition: opacity .5s .2s, transform .5s .2s, visibility 0s .2s; }
.slide h1, .slide h2 { font-size: clamp(1.8rem, 4.55vw, 4.1rem); letter-spacing: -.035em; }
.slide p { margin: 1.4rem 0 0; font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 30ch; color: #d9d4ca; }
.abertura-acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.abertura-controle { display: flex; align-items: center; gap: .4rem; margin-top: 2.4rem; }
.passo { padding: 14px 4px; border: 0; background: none; }
.passo span { display: block; width: 46px; height: 4px; background: #4d4d4d; transition: background .25s; }
.passo:hover span { background: var(--creme); }
.passo.ativo span { background: var(--laranja); }
.pausa { margin-left: .6rem; padding: .5rem; border: 0; background: none; color: #bdb8ae; font: 500 .8rem var(--mono); }
.pausa:hover { color: var(--creme); }
html:not(.js) .abertura-controle { display: none; }

/* textura sutil do degradê: trama de tecido (clara no preto, escura no laranja) */
.abertura { position: relative; }
.abertura-grade { position: relative; z-index: 1; }
.abertura::before, .abertura::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.abertura::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 1.5h4M0 3.5h4M4 5.5h4M4 7.5h4M5.5 0v4M7.5 0v4M1.5 4v4M3.5 4v4' stroke='%23111111' stroke-opacity='.11'/%3E%3C/svg%3E"); }
.abertura::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 1.5h4M0 3.5h4M4 5.5h4M4 7.5h4M5.5 0v4M7.5 0v4M1.5 4v4M3.5 4v4' stroke='%23f5f0e6' stroke-opacity='.04'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 70%); mask-image: linear-gradient(90deg, #000 35%, transparent 70%); }

/* o logo ampliado: moldura arredondada, quatro peças e o ponto */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); padding: clamp(8px, 1vw, 14px); border: 2px solid var(--creme); border-radius: 30px; background: var(--preto); width: 100%; max-width: min(100%, calc(100svh - 150px), 680px); justify-self: end; }
.peca { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--cinza); }
.peca:first-child { border-top-left-radius: 20px; }
.peca:nth-child(2) { border-top-right-radius: 20px; }
.peca:nth-child(3) { border-bottom-left-radius: 20px; }
.peca img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.peca img.sai { clip-path: inset(0); transition: none; }
.peca img.ativo { z-index: 1; clip-path: inset(0); }
.peca:nth-child(2) img.ativo { transition-delay: .1s; }
.peca:nth-child(3) img.ativo { transition-delay: .2s; }
.peca-olho { display: grid; place-items: center; background: var(--laranja); border-bottom-right-radius: 20px; }
.olho { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--preto); transform: translate(var(--ox, 0), var(--oy, 0)); transition: transform .15s ease-out; }

/* ---- clientes ---- */
.clientes { background: var(--branco); }
.clientes ul { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 2rem 0; }
.clientes li { display: grid; place-items: center; }
.clientes img { width: 150px; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.clientes li:hover img { filter: none; opacity: 1; }

/* ---- campanhas ---- */
.campanhas { background: var(--preto); color: var(--creme); padding-block: var(--espaco); overflow: hidden; }
.campanhas-topo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.campanhas-texto { margin: 1.4rem 0 2rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 40ch; color: #d9d4ca; }
.bilhete { display: grid; grid-template-columns: 1fr 27%; transform: rotate(-4deg); color: var(--preto); transition: transform .4s cubic-bezier(.2, .7, .2, 1); container-type: inline-size; }
.bilhete:hover { transform: rotate(0); }
.bilhete > div { background: var(--laranja); padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2.2rem); border-radius: 18px; }
/* picote entre o corpo e o canhoto, com os dois recortes redondos */
.bilhete-corpo { -webkit-mask: radial-gradient(circle 13px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 13px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.bilhete-canhoto { display: grid; place-items: center; border-left: 3px dashed var(--preto); -webkit-mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 13px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.bilhete-corpo > span { display: block; font-weight: 700; margin-bottom: .6rem; }
.bilhete-numero { display: flex; font: 900 9.2cqi/1 var(--titulo); font-stretch: 125%; }
.bilhete-numero i { flex: 1; font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }
.bilhete-numero em { flex: .35; }
.olho-bilhete { width: 68%; max-width: 96px; aspect-ratio: 1; border-radius: 50%; background: var(--preto); }
.modalidades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: clamp(3rem, 5vw, 4.5rem) 0 0; padding: 0; }
.modalidades li { display: flex; align-items: center; min-height: 112px; padding: 1.2rem 1.8rem; background: var(--creme); color: var(--preto); border-radius: 14px; font: 800 clamp(1rem, 1.5vw, 1.25rem)/1.15 var(--titulo); font-stretch: 125%; -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.recursos { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 2rem; list-style: none; margin: 2.2rem 0 0; padding: 0; }
.recursos li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid #333; font-weight: 600; line-height: 1.3; }
.recursos li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--laranja); }
.jogo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: 24px; overflow: hidden; background: var(--laranja); color: var(--preto); }
.jogo-texto { align-self: center; padding: clamp(1.6rem, 3.5vw, 3.2rem); }
.jogo h3 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
.jogo .ponto { color: var(--creme); }
.jogo p { margin: 1.1rem 0 0; font-size: 1.1rem; font-weight: 500; max-width: 36ch; }
.jogo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vitrine { margin-top: clamp(2.5rem, 5vw, 4rem); overflow-x: auto; scrollbar-width: none; }
.vitrine::-webkit-scrollbar { display: none; }
.vitrine:focus-visible { outline-offset: -3px; }
.vitrine ul { display: flex; gap: 1.2rem; width: max-content; list-style: none; margin: 0; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.vitrine li { width: clamp(230px, 24vw, 340px); }
.vitrine img { display: block; width: 100%; border-radius: var(--raio); background: var(--cinza); }
.vitrine span { display: block; padding-top: .7rem; font-weight: 600; }

/* ---- quem somos ---- */
.sobre { padding-block: var(--espaco); }
.sobre p { max-width: 68ch; }
.sobre .sobre-destaque { font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; max-width: 26em; margin-bottom: 1.6rem; text-wrap: balance; }
.solucoes { list-style: none; margin: 1.8rem 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.solucoes li { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid #d3ccbd; font-weight: 600; line-height: 1.3; }
.solucoes li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--laranja); border-radius: 3px; }

.servicos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(3rem, 6vw, 5.5rem); padding: 14px; border: 2px solid var(--preto); border-radius: 30px; }
.servico { position: relative; overflow: hidden; min-height: clamp(240px, 25vw, 340px); padding: clamp(1.5rem, 3vw, 2.8rem); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.servico h3 { font-size: clamp(1.35rem, 2.6vw, 2.2rem); }
.servico p { margin: 0; max-width: 46ch; position: relative; }
.servico-cinza { background: var(--cinza); color: var(--creme); }
.servico-preto { background: var(--preto); color: var(--creme); }
.servico-laranja { background: var(--laranja); color: var(--preto); }
.servico-laranja p { font-weight: 500; padding-right: clamp(0px, 9vw, 130px); }
.servico-branco { background: var(--branco); }
.servico-olho { position: absolute; right: -36px; bottom: -36px; width: clamp(90px, 13vw, 180px); aspect-ratio: 1; border-radius: 50%; background: var(--preto); }

/* ---- portfólio ---- */
.portfolio { background: var(--preto); color: var(--creme); padding-block: var(--espaco); }
.portfolio-topo p { margin: 1rem 0 0; color: #d9d4ca; font-size: 1.15rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.2rem 0; }
html:not(.js) .filtros, html:not(.js) #ver-mais { display: none; }
.filtros button { padding: .65rem 1.05rem; border: 1px solid #4d4d4d; border-radius: 8px; background: none; color: var(--creme); font-weight: 500; line-height: 1.2; transition: border-color .2s; }
.filtros button:hover { border-color: var(--creme); }
.filtros button[aria-pressed="true"] { background: var(--laranja); border-color: var(--laranja); color: var(--preto); }
.projetos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.4rem; margin-bottom: 3rem; }
.projeto { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.projeto[hidden] { display: none; }
.js .projetos:not(.pronto) [data-extra] { display: none; }
.projeto-foto { display: block; overflow: hidden; border-radius: var(--raio); background: var(--cinza); aspect-ratio: 16 / 13; }
.projeto-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.projeto:hover .projeto-foto img { transform: scale(1.045); }
.projeto-info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .8rem; }
.projeto-info strong { font-weight: 600; line-height: 1.3; }
.projeto-info small { flex: none; max-width: 50%; font: 500 .78rem/1.4 var(--mono); color: #bdb8ae; text-align: right; }
.projeto-info svg { margin-left: .45rem; color: var(--laranja); }
a.projeto:hover strong { text-decoration: underline; text-decoration-color: var(--laranja); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 992px) {
    .projeto.grande { grid-column: span 2; grid-row: span 2; }
    .projeto.grande .projeto-foto { flex: 1; aspect-ratio: auto; min-height: 0; position: relative; }
    .projeto.grande img { position: absolute; inset: 0; }
    .projeto.grande strong { font-size: 1.35rem; }
}

/* ---- números ---- */
.numeros { background: var(--laranja); color: var(--preto); }
.numeros dl { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 2rem; margin: 0; padding: clamp(3rem, 6vw, 5rem) 0; }
.numeros dl > div { display: flex; flex-direction: column-reverse; }
.numeros dt { font-weight: 600; margin-top: .5rem; }
.numeros dd { margin: 0; display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
.numeros dd b { font: 900 clamp(2.4rem, 5.2vw, 4.8rem)/1 var(--titulo); font-stretch: 125%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.numeros small { font-size: 1rem; font-weight: 600; }

/* ---- contato ---- */
.contato { padding-block: var(--espaco); }
.contato-links { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.contato-links a { color: var(--preto); font-weight: 600; font-size: 1.15rem; text-decoration: underline; text-decoration-color: var(--laranja); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contato-links a:hover { text-decoration-color: var(--preto); }
.formulario label { display: block; font-weight: 600; margin-bottom: .35rem; }
.formulario input, .formulario textarea { width: 100%; padding: .9rem 1rem; border: 2px solid #8a857b; border-radius: 10px; background: var(--branco); color: var(--tinta); }
.formulario input:focus, .formulario textarea:focus { border-color: var(--preto); outline: 3px solid var(--laranja); outline-offset: 0; }
.formulario [aria-invalid="true"] { border-color: #b3261e; }
.formulario .botao { margin-top: 1.4rem; padding-inline: 2.4rem; }
.erro { display: block; color: #b3261e; font-size: .95rem; font-weight: 500; }
.retorno { margin: 1rem 0 0; font-weight: 600; }
.isca { position: absolute; left: -9999px; }

/* ---- rodapé ---- */
.rodape { background: var(--preto); color: var(--creme); padding: 3.5rem 0; }
.rodape-linha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.rodape img[alt="RC Designers"] { width: 230px; }
.rodape p { margin: .9rem 0 0; color: #bdb8ae; }
.rodape-fim { text-align: right; padding-right: 90px; }
.zap { position: fixed; right: 20px; bottom: 20px; z-index: 40; line-height: 0; }
.zap img { width: 60px; transition: transform .2s; }
.zap:hover img { transform: scale(1.08); }

/* ---- entrada ao rolar ---- */
.surge.espera { opacity: 0; transform: translateY(26px); }
.surge { transition: opacity .8s ease var(--atraso, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--atraso, 0s); }

@media (max-width: 991.98px) {
    .topo-botao { display: block; }
    .topo-menu { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.5rem; background: var(--laranja); border-bottom: 1px solid var(--preto); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
    .topo-menu.aberto { visibility: visible; opacity: 1; }
    html:not(.js) .topo-botao { display: none; }
    html:not(.js) .topo-menu { position: static; visibility: visible; opacity: 1; }
    .topo-menu a:not(.botao) { padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(17, 17, 17, .3); }
    .topo-menu .botao { margin-top: 1.2rem; text-align: center; padding: .9rem; }
    /* o laranja só entra na altura do mosaico, para o texto continuar sobre o preto */
    .abertura { background: linear-gradient(180deg, var(--preto) 42%, transparent 72%), linear-gradient(90deg, var(--preto) 0%, var(--laranja) 100%); }
    .abertura-grade { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .slide h1, .slide h2 { font-size: clamp(1.6rem, 8vw, 4rem); }
    .mosaico { justify-self: center; max-width: 560px; border-radius: 24px; }
    .clientes ul { grid-template-columns: repeat(4, 1fr); }
    .campanhas-topo { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .bilhete { max-width: 560px; }
    .modalidades, .recursos { grid-template-columns: 1fr 1fr; }
    .jogo { grid-template-columns: minmax(0, 1fr); }
    .projetos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numeros dl { grid-template-columns: 1fr 1fr; justify-content: stretch; }
}
@media (max-width: 575.98px) {
    .clientes ul { grid-template-columns: repeat(3, 1fr); }
    .clientes img { width: 100%; }
    .solucoes, .recursos { grid-template-columns: 1fr; }
    .modalidades { gap: 10px; }
    .modalidades li { min-height: 92px; padding: 1rem 1.2rem; }
    .servicos { grid-template-columns: 1fr; border-radius: 24px; padding: 10px; gap: 10px; }
    .servico { min-height: 0; }
    .servico-laranja { padding-bottom: 5rem; }
    .projetos { gap: 1.5rem .9rem; }
    .projeto-info { flex-direction: column; gap: .15rem; }
    .projeto-info strong { font-size: .95rem; }
    .projeto-info small { max-width: none; text-align: left; }
    .numeros dd { flex-direction: column; gap: .1rem; }
    .numeros dd:has(b:first-child) { flex-direction: row; gap: .4rem; }
    .numeros dt { font-size: .95rem; }
    .numeros dl { column-gap: 1rem; }
    .rodape-fim { text-align: left; }
}
@media print { .surge.espera { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
