/* =========================================================================
   INETRIS — Camada Premium (somente index.html)
   Eleva o polimento e as animações mantendo a identidade visual atual
   (azul-marinho + dourado, tipografia Fraunces/Inter). Arquivo isolado
   de propósito: portfolio.html e diagnostico.html não o carregam, então
   nada aqui afeta essas páginas.
   ========================================================================= */

/* ---------- Preloader de entrada ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 20%, var(--azul-suave) 0%, var(--azul-escuro) 60%, #04101f 100%);
  transition: opacity 640ms var(--ease), visibility 640ms var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { position: relative; display: flex; align-items: center; justify-content: center; }
.preloader-mark {
  width: 74px;
  height: 74px;
  animation: preloader-pulse 1.4s var(--ease) infinite;
}
.preloader-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(244, 198, 107, 0.55));
}
.preloader-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 198, 107, 0.22);
  border-top-color: var(--dourado-brilho);
  animation: preloader-spin 1.1s linear infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.82; }
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 200ms linear; }
  .preloader-mark, .preloader-ring { animation: none; }
}

/* ---------- Hero: foto de fundo + card de texto flutuando na frente ---------- */
.hero-photo { position: relative; }
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(120% 100% at 50% 0%, var(--azul-suave) 0%, var(--azul-principal) 55%, var(--azul-escuro) 100%);
  z-index: 0;
}
.hero-people-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3%;
  pointer-events: none;
}
.hero-person-bg {
  height: 92%;
  width: auto;
  max-width: 42%;
  object-fit: contain;
  object-position: bottom center;
}
.hero-person-bg-1 {
  filter: brightness(1.14) contrast(1.05) saturate(1.05);
}
.hero-person-bg-2 {
  filter: brightness(0.86) contrast(0.98) saturate(0.94);
  height: 88%;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 18, 36, 0.25) 0%, rgba(6, 18, 36, 0.02) 22%, rgba(6, 18, 36, 0.08) 78%, rgba(6, 18, 36, 0.55) 100%);
  pointer-events: none;
}
.hero-logo-constellation {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-photo .hero-row { position: relative; z-index: 2; }
.hero-photo .hero-constellation { display: none; }
.hero-photo .hero-corner { z-index: 3; }
.hero-card {
  background: rgba(8, 20, 40, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 198, 107, 0.25);
  border-radius: var(--radius);
  padding: 44px 44px 40px;
  box-shadow: 0 40px 80px -30px rgba(2, 8, 18, 0.65);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .hero-photo { padding-bottom: 130px; }
  .hero-card { padding: 200px 26px 30px; }
  .hero-people-bg {
    top: 92px;
    bottom: auto;
    height: 210px;
    padding: 0 1%;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 3;
  }
  .hero-person-bg { height: 210px; max-width: 36%; }
  .hero-person-bg-2 { height: 196px; }
}

@media (max-width: 480px) {
  .hero-photo { padding-bottom: 110px; }
  .hero-people-bg { top: 84px; height: 175px; }
  .hero-person-bg { height: 175px; }
  .hero-person-bg-2 { height: 163px; }
}
/* ---------- Quem Somos: card de diagnóstico (fiel à referência) ---------- */
.blueprint-card {
  background: #0d1526;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -26px rgba(4, 12, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: none;
}
.blueprint-card::before,
.blueprint-card::after { content: none; }

.blueprint-grid { position: relative; display: flex; flex-direction: column; gap: 12px; }

.blueprint-card-row { display: flex; gap: 12px; }

.blueprint-tag {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: transform 480ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease), box-shadow 320ms var(--ease), opacity 480ms var(--ease);
}
.blueprint-card.is-visible .blueprint-tag { opacity: 1; transform: translateY(0) scale(1); }
.blueprint-card.is-visible .blueprint-card-row:nth-child(1) .blueprint-tag:nth-child(1) { transition-delay: 60ms; }
.blueprint-card.is-visible .blueprint-card-row:nth-child(1) .blueprint-tag:nth-child(2) { transition-delay: 160ms; }
.blueprint-card.is-visible .blueprint-card-row:nth-child(3) .blueprint-tag:nth-child(1) { transition-delay: 260ms; }
.blueprint-card.is-visible .blueprint-card-row:nth-child(3) .blueprint-tag:nth-child(2) { transition-delay: 360ms; }
.blueprint-card.is-visible .blueprint-tag-accent { transition-delay: 460ms; }

.blueprint-tag::after { display: none; }

.blueprint-icon {
  width: 24px;
  height: 24px;
  color: var(--dourado-brilho);
  transition: transform 380ms var(--ease);
}
.blueprint-tag-title {
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--branco);
}
.blueprint-tag:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 198, 107, 0.5);
  background: rgba(244, 198, 107, 0.06);
  box-shadow: 0 16px 30px -14px rgba(244, 198, 107, 0.3);
}
.blueprint-tag:hover .blueprint-icon { transform: scale(1.12) rotate(-4deg); }

/* Linha divisória com pontos brilhantes entre as duas fileiras */
.blueprint-divider {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: -4px 0;
}
.blueprint-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dourado-brilho);
  box-shadow: 0 0 12px 3px rgba(244, 198, 107, 0.65);
  transform: translate(-50%, -50%);
  animation: blueprint-dot-pulse 2.4s ease-in-out infinite;
}
.blueprint-dot:nth-child(2) { animation-delay: 0.3s; }
.blueprint-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes blueprint-dot-pulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 8px 2px rgba(244, 198, 107, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 16px 4px rgba(244, 198, 107, 0.75); }
}

/* Barra de destaque RESULTADO */
.blueprint-tag-accent {
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, var(--dourado-brilho), var(--laranja));
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: transform 480ms var(--ease), opacity 480ms var(--ease), box-shadow 320ms var(--ease);
}
.blueprint-card.is-visible .blueprint-tag-accent { opacity: 1; transform: translateY(0) scale(1); }
.blueprint-tag-accent-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.blueprint-tag-accent .blueprint-icon { width: 22px; height: 22px; color: var(--azul-escuro); flex-shrink: 0; }
.blueprint-tag-accent-text { display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
.blueprint-tag-accent .blueprint-tag-title { color: var(--azul-escuro); font-size: 0.86rem; }
.blueprint-tag-accent:hover { box-shadow: 0 18px 34px -14px rgba(244, 198, 107, 0.5); }

@media (max-width: 560px) {
  .blueprint-card-row { flex-direction: column; }
  .blueprint-divider { display: none; }
  .blueprint-tag-accent { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .blueprint-dot { animation: none; }
  .blueprint-tag, .blueprint-tag-accent { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blueprint-card::before { animation: none; }
  .blueprint-tag { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero: indicador de rolagem com a logo ---------- */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: hero-scroll-hint-fade-in 700ms var(--ease) forwards;
  animation-delay: 1.1s;
}
.hero-scroll-hint-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(244, 198, 107, 0.4);
  background: rgba(8, 20, 40, 0.35);
  backdrop-filter: blur(4px);
  animation: hero-scroll-hint-bob 2.2s ease-in-out infinite;
}
.hero-scroll-hint-logo { width: 22px; height: 22px; object-fit: contain; opacity: 0.9; }
.hero-scroll-hint-chevron {
  width: 16px;
  height: 16px;
  color: rgba(244, 198, 107, 0.75);
  animation: hero-scroll-hint-bob 2.2s ease-in-out infinite;
  animation-delay: 0.1s;
}
.hero-scroll-hint:hover .hero-scroll-hint-ring { border-color: var(--dourado-brilho); background: rgba(244, 198, 107, 0.12); }
@keyframes hero-scroll-hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@keyframes hero-scroll-hint-fade-in {
  to { opacity: 1; }
}
@media (max-width: 720px) {
  .hero-scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: hero-scroll-hint-fade-in 300ms linear forwards; animation-delay: 0.3s; }
  .hero-scroll-hint-ring, .hero-scroll-hint-chevron { animation: none; }
}

/* ---------- Cursor personalizado: anel com a logo, segue o mouse (desktop) ---------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  pointer-events: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 198, 107, 0.55);
  background: rgba(8, 20, 40, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease), height 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  will-change: transform;
}
.custom-cursor img { width: 18px; height: 18px; object-fit: contain; opacity: 0.9; transition: opacity 220ms var(--ease); }
.custom-cursor.is-active {
  width: 58px;
  height: 58px;
  border-color: var(--dourado-brilho);
  background: rgba(244, 198, 107, 0.14);
}
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .custom-cursor { display: none !important; }
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}

/* ---------- Header: encolhimento suave ao rolar ---------- */
.header-inner, .brand-logo { transition: height 380ms var(--ease); }
.site-header.is-scrolled { border-bottom-color: rgba(244, 198, 107, 0.16); }
.site-header.is-scrolled .header-inner { height: 64px; }
.site-header.is-scrolled .brand-logo { height: 34px; }

/* ---------- Reveal aprimorado: desfoque + leve escala, além do translateY já existente ---------- */
.reveal { filter: blur(6px); transform: translateY(26px) scale(0.98); }
.reveal.is-visible { filter: blur(0); }

/* ---------- Título do Hero: entrada com desfoque que assenta ---------- */
.hero-title.hero-anim {
  filter: blur(8px);
  animation-name: hero-rise-blur;
}
@keyframes hero-rise-blur {
  0% { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- Botões: resposta de clique mais tátil ---------- */
.btn:active { transform: scale(0.97) !important; }

/* ---------- Galeria: indicação de zoom + brilho dourado ao passar ---------- */
.gallery-card { cursor: zoom-in; }
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, transparent 60%, rgba(244, 198, 107, 0.18) 100%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}
.gallery-card:hover::after { opacity: 1; }

/* ---------- Lightbox da galeria ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(4, 12, 24, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 320ms var(--ease);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-figure {
  max-width: min(920px, 92vw);
  text-align: center;
  transform: scale(0.92);
  transition: transform 380ms var(--ease);
}
.lightbox-overlay.is-open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  margin: 0 auto;
}
.lightbox-caption { margin-top: 18px; }
.lightbox-caption h3 { color: var(--dourado-brilho); font-size: 1.15rem; margin-bottom: 6px; }
.lightbox-caption p { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--branco);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transicao), transform var(--transicao), border-color var(--transicao);
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: var(--dourado-brilho);
  color: var(--azul-escuro);
  border-color: var(--dourado-brilho);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { transform: scale(1.08); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 20px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ---------- Botão "Voltar ao topo" com anel de progresso ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 900;
  width: 52px;
  height: 52px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.back-to-top circle.bg { fill: rgba(10, 38, 71, 0.94); stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; transition: fill var(--transicao); }
.back-to-top circle.progress { fill: none; stroke: var(--dourado-brilho); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 120ms linear; }
.back-to-top:hover circle.bg { fill: var(--azul-brilho); }
.back-to-top-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  pointer-events: none;
  transform: rotate(0deg);
}

@media (max-width: 640px) {
  .back-to-top { right: 18px; bottom: 82px; width: 46px; height: 46px; }
}

/* ---------- Bolas douradas das seções creme: movimento bem mais perceptível ---------- */
/* Redefine a mesma animação (float-bob) usada em style.css com um trajeto maior e mais orgânico */
@keyframes float-bob {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(38px, -46px); }
  50%  { transform: translate(-24px, -78px); }
  75%  { transform: translate(-52px, -18px); }
  100% { transform: translate(0, 0); }
}
.float-dot {
  animation-duration: 13s;
  animation-timing-function: ease-in-out;
}
.fd1 { animation-duration: 15s; }
.fd2 { animation-duration: 11.5s; animation-delay: 1s; }
.fd3 { animation-duration: 17s; animation-delay: 2.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .hero-title.hero-anim { animation: none; filter: none; opacity: 1; transform: none; }
  .float-dot { animation: none !important; }
}
