/* Estilos só da página-mãe */

/* Conteúdo acima do fundo decorado */
body { position: relative; }
.inicio, main, .rodape { position: relative; z-index: 1; }
.faixa-alt { background: rgba(255, 255, 255, 0.025); border-block: 1px solid rgba(255, 255, 255, 0.06); }

/* Primeira tela: logo pequeno, acesso rápido e calendário */
.inicio { overflow: hidden; }

/* Fundo da página inteira */
.fundo-pagina { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Grade fina */
.grade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Gotas cromadas (metal líquido) */
.gota {
  position: absolute;
  width: var(--t, 80px);
  aspect-ratio: 1.15;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFFFFF 0 5%, #DADADA 12%, #8E8E8E 28%, #2B2B2B 52%, #090909 70%, #3C3C3C 86%, #A6A6A6 100%);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.7);
  filter: blur(var(--d, 0px));
  animation: flutua var(--v, 9s) ease-in-out infinite alternate;
}
.gota.dupla::after {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  right: -38%;
  bottom: -10%;
  border-radius: 50%;
  background: inherit;
}
/* Posições ao longo da página (top em % da altura total) */
.g1  { --t: 120px; top: -34px; left: 18%; --d: 1px; --v: 11s; }
.g2  { --t: 62px;  top: 96px;  left: -22px; --v: 8s; }
.g3  { --t: 46px;  top: 7%;    right: -10px; --d: 2px; --v: 10s; }
.g4  { --t: 96px;  top: 12%;   left: 34%; --d: 3px; --v: 13s; opacity: .7; }
.g5  { --t: 26px;  top: 5%;    left: 48%; --v: 7s; }
.g6  { --t: 70px;  top: -10px; right: 12%; --v: 12s; }
.g7  { --t: 54px;  top: 22%;   right: 4%; --v: 9s; }
.g8  { --t: 110px; top: 31%;   left: -40px; --d: 2px; --v: 14s; opacity: .8; }
.g9  { --t: 64px;  top: 44%;   right: -18px; --v: 10s; }
.g10 { --t: 30px;  top: 52%;   left: 12%; --v: 8s; }
.g11 { --t: 90px;  top: 63%;   right: 22%; --d: 3px; --v: 12s; opacity: .6; }
.g12 { --t: 76px;  top: 73%;   left: -20px; --v: 11s; }
.g13 { --t: 40px;  top: 84%;   right: 8%; --v: 9s; }
.g14 { --t: 100px; top: 94%;   left: 40%; --d: 2px; --v: 13s; opacity: .7; }
@keyframes flutua { to { transform: translate(6px, 14px) rotate(8deg); } }

/* Anéis "WELCOME · CIT AGENCY" */
.anel { position: absolute; width: 150px; height: 150px; color: rgba(255, 255, 255, 0.5); animation: gira 40s linear infinite; }
.anel text { font-family: var(--fonte-titulo); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; fill: currentColor; }
.anel circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.a1 { top: -70px; left: 40%; }
.a2 { top: 16%; left: -60px; animation-direction: reverse; }
.a3 { top: 9%; right: -80px; }
.a4 { top: 28%; right: -50px; animation-direction: reverse; }
.a5 { top: 40%; left: -70px; }
.a6 { top: 57%; right: -60px; }
.a7 { top: 76%; left: -50px; animation-direction: reverse; }
.a8 { bottom: -60px; right: 18%; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gota, .anel { animation: none; } }

.inicio-conteudo {
  max-width: calc(var(--largura) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px 40px;
  display: grid;
  gap: 18px;
}
.topo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 8px 6px; }
.topo-logo { width: 96px; height: auto; justify-self: center; }
.topo-frase, .topo-lado {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.topo-frase small, .topo-lado small { display: block; font-size: 0.5rem; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 4px; color: var(--texto-suave); }
.topo-lado { text-align: right; font-size: 1.35rem; }
.topo-lado small { margin: 4px 0 0; }
.inicio-grade { display: grid; gap: 22px; }
.bloco { display: grid; gap: 10px; align-content: start; min-width: 0; }
.bloco .rotulo { margin: 0; color: var(--texto); opacity: .8; }
@media (min-width: 860px) {
  .inicio-conteudo { padding-block: 28px 64px; gap: 36px; }
  .topo-logo { width: 150px; }
  .topo-frase { font-size: 1.6rem; }
  .topo-frase small, .topo-lado small { font-size: 0.7rem; }
  .topo-lado { font-size: 2.6rem; }
  .inicio-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* Acesso rápido */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-rapido {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s;
}
a.link-rapido:hover { border-color: var(--texto); transform: translateY(-1px); }
.link-icone { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.link-icone svg { width: 20px; height: 20px; }
.link-texto { display: grid; min-width: 0; }
.link-texto strong { font-family: var(--fonte-titulo); font-size: 1rem; font-weight: 800; line-height: 1.2; }
.link-texto span { font-size: 0.8rem; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-seta { font-size: 1.1rem; }
.link-rapido.is-breve { border-style: dashed; }
.link-rapido.is-breve .link-seta { font-family: var(--fonte-dado); font-size: 0.62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave); }
.link-rapido.is-destaque { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.link-rapido.is-destaque .link-icone { background: var(--fundo); color: var(--texto); }
.link-rapido.is-destaque .link-texto span { color: #555555; }
.link-rapido.is-destaque:hover { background: #CFCFCF; border-color: #CFCFCF; }

/* Calendário compacto */
.calendario { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-item { --cor: var(--teal); min-width: 0; }
.cor-teal { --cor: var(--teal); }
.cor-laranja { --cor: var(--laranja); }
.cor-magenta { --cor: var(--magenta); }
.cor-coral { --cor: var(--coral); }
.cor-azul { --cor: #2B47E0; }
.case { --cor: #6E6E6E; }
.cal-linha {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 7px 12px 7px 7px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
a.cal-linha:hover { border-color: var(--texto); transform: translateY(-1px); }
.cal-mini {
  width: 42px; aspect-ratio: 3 / 4; border-radius: 7px; overflow: hidden;
  background: var(--cor); display: grid; place-items: center;
}
.cal-mini img { width: 100%; height: 100%; object-fit: cover; }
.cal-mini-letra { font-family: var(--fonte-titulo); font-weight: 900; font-size: 1.25rem; color: var(--fundo); }
.cal-mini:not(:has(img)) { background: var(--cromo); }
.cal-info { display: grid; min-width: 0; }
.cal-data { margin: 0; font-family: var(--fonte-dado); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); }
.cal-data strong { color: var(--texto); font-weight: 500; }
.cal-nome { font-size: 1rem; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-detalhe { margin: 0; font-size: 0.78rem; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-acao {
  font-family: var(--fonte-titulo); font-size: 0.72rem; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
  background: var(--texto); color: var(--fundo); white-space: nowrap;
}
.cal-acao.is-breve { background: transparent; color: var(--texto-suave); border: 1px dashed rgba(255, 255, 255, 0.25); }
.eventos-aviso { color: var(--texto-suave); padding: 16px 0; }

/* Cases */
.cases { display: grid; gap: 16px; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case { border-radius: var(--raio); overflow: hidden; background: var(--fundo); border: 1px solid var(--linha); }
.case-foto {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--cor) 55%, transparent), transparent 70%),
    var(--fundo);
}
.case-video { position: relative; text-decoration: none; overflow: hidden; }
.case-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-video:hover img { transform: scale(1.03); }
.case-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--texto);
  color: var(--fundo);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.85rem;
}
.case-play-icone { width: 28px; height: 28px; border-radius: 50%; background: var(--fundo); position: relative; }
.case-play-icone::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}
.case-video:hover .case-play { background: #CFCFCF; }
.case-corpo { padding: 18px; display: grid; gap: 14px; }
.case h3 { font-size: 1.3rem; font-weight: 800; }
.case-numeros { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-numeros dt, .numeros dt {
  font-family: var(--fonte-dado);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.case-numeros dd { margin: 4px 0 0; font-family: var(--fonte-titulo); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }

.portfolio { display: grid; gap: 24px; padding-top: 8px; }
@media (min-width: 640px) { .portfolio { grid-template-columns: 1fr 1fr; } }
.portfolio ul { list-style: none; margin: 0; padding: 0; display: grid; }
.portfolio li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--linha); }
.portfolio li strong { font-family: var(--fonte-titulo); font-size: 1.15rem; font-weight: 800; }
.portfolio li span { color: var(--texto-suave); font-size: 0.92rem; }

/* Quem somos */
.sobre { align-items: start; }
.numeros { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linha); }
.numeros > div { padding: 18px 0; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.numeros > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--linha); }
.numeros > div:nth-child(even) { padding-left: 16px; }
.numeros dd {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.numeros dd .ph { font-size: 0.9rem; font-weight: 500; }
@media (min-width: 760px) {
  .sobre { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

/* Para marcas */
.formatos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
@media (min-width: 640px) { .formatos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.formatos li { background: var(--superficie); padding: 20px; display: grid; gap: 6px; }
.formatos h3 { font-size: 1.1rem; font-weight: 800; }
.formatos p { margin: 0; color: var(--texto-suave); font-size: 0.95rem; }
.parceiros p:last-child { margin: 0; }
.cta-comercial { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-comercial p { margin: 0; color: var(--texto-suave); }
.cta-comercial strong { color: var(--texto); font-weight: 600; user-select: all; }

/* Contato */
.contatos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .contatos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.contatos li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--linha); min-width: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contatos .rotulo { margin: 0; }
.contatos a { text-decoration-color: var(--texto-suave); text-underline-offset: 4px; }
.selecionavel { user-select: all; }

/* Janela do formulário "Faça parte do time" (sobe de baixo no celular) */
.janela {
  --ev-texto: var(--texto);
  --ev-destaque: var(--texto);
  --ev-botao: var(--texto);
  --ev-botao-texto: var(--fundo);
  --ev-fonte-titulo: var(--fonte-titulo);
  width: 100%;
  max-width: 520px;
  max-height: 88svh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--superficie);
  color: var(--texto);
  overflow: auto;
  overscroll-behavior: contain;
}
.janela[open] { animation: sobe .28s cubic-bezier(.2,.8,.2,1); }
.janela::backdrop { background: rgba(0, 0, 0, 0.75); }
@keyframes sobe { from { transform: translateY(40px); opacity: 0.001; } }
@media (min-width: 700px) { .janela { margin: auto; border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .janela[open] { animation: none; } }
.janela-fechar { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 0; z-index: 1; }
.janela-fechar button {
  margin: 12px 12px 0 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--texto);
  color: var(--fundo);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.janela-corpo { display: grid; gap: 14px; padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.janela-corpo h2 {
  font-size: 1.6rem;
  font-weight: 900;
  font-variation-settings: "wdth" 115;
  text-transform: uppercase;
  padding-right: 48px;
}
.janela-corpo > p { margin: 0; color: var(--texto-suave); }
.janela .cad-enviar { font-weight: 800; }
