
/* v36 — Refinamento fino de animações, hovers e loader premium */

/* Loader premium */
.preloader-v36 {
  background:
    radial-gradient(circle at 50% 42%, rgba(199,161,89,.18), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(135deg, #061f38 0%, #082847 48%, #0d345e 100%) !important;
  z-index: 9998 !important;
  overflow: hidden;
}

.preloader-v36::before,
.preloader-v36::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.preloader-v36::before {
  inset: 38px;
  border: 1px solid rgba(255,255,255,.075);
}

.preloader-v36::after {
  left: -15%;
  right: -15%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,161,89,.35), transparent);
  opacity: .68;
  transform: translateY(-50%);
}

.loader-shell {
  position: relative;
  width: 310px;
  min-height: 310px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.loader-orbit {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(199,161,89,.22);
  animation: loaderOrbitSpin 4.8s linear infinite;
}

.loader-orbit::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
}

.loader-orbit span:first-child,
.loader-orbit span:nth-child(2) {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(199,161,89,.13), 0 0 24px rgba(199,161,89,.55);
}

.loader-orbit span:first-child { top: -4px; left: 50%; transform: translateX(-50%); }
.loader-orbit span:nth-child(2) { bottom: 18px; right: 22px; opacity: .55; }

.loader-mark {
  position: relative;
  z-index: 2;
  width: 214px;
  min-height: 138px;
  display: grid;
  place-items: center;
  padding: 24px 28px;
  border: 1px solid rgba(199,161,89,.30);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow:
    0 32px 90px rgba(0,0,0,.24),
    inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  animation: loaderMarkIn 1.05s cubic-bezier(.16,1,.3,1) both, loaderMarkFloat 2.6s ease-in-out 1.05s infinite;
}

.loader-mark::before,
.loader-mark::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(199,161,89,.55);
  pointer-events: none;
}

.loader-mark::before {
  left: -1px;
  top: -1px;
  border-left: 1px solid rgba(199,161,89,.55);
  border-top: 1px solid rgba(199,161,89,.55);
}

.loader-mark::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid rgba(199,161,89,.55);
  border-bottom: 1px solid rgba(199,161,89,.55);
}

.loader-mark img {
  width: auto !important;
  height: auto !important;
  max-width: 178px !important;
  max-height: 116px !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.22));
}

.loader-line {
  position: absolute;
  left: 50%;
  bottom: 37px;
  width: 210px;
  height: 2px;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(255,255,255,.11);
  border-radius: 999px;
}

.loader-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), #fff, var(--gold), transparent);
  animation: loaderLineMove 1.35s cubic-bezier(.65,0,.35,1) infinite;
}

.loader-caption {
  position: absolute;
  left: 50%;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.loader-caption i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .8;
}

@keyframes loaderOrbitSpin { to { transform: rotate(360deg); } }
@keyframes loaderMarkIn { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(9px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes loaderMarkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes loaderLineMove { from { transform: translateX(-115%); } to { transform: translateX(275%); } }

/* Home — Áreas de actuação: remover borda no hover, mantendo leveza */
.practices .practice::before,
.practices .practice:hover::before {
  display: none !important;
  opacity: 0 !important;
  border: 0 !important;
}

.practices .practice:hover {
  border-color: #d9dfe6 !important;
  box-shadow: 0 22px 48px rgba(8,40,71,.075) !important;
  background: rgba(255,255,255,.70) !important;
}

.practices .practice:hover h3 {
  color: var(--navy);
}

/* Social rail no slider: divider leve, hover contido na área */
.hero .social-rail {
  overflow: hidden !important;
  border-left: 1px solid rgba(255,255,255,.06);
}

.hero .social-rail a {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
  transform: none !important;
}

.hero .social-rail a:last-child {
  border-bottom: 0 !important;
}

.hero .social-rail:hover a {
  opacity: .74 !important;
}

.hero .social-rail a:hover {
  opacity: 1 !important;
  transform: scale(1.035) !important;
  background: rgba(255,255,255,.055) !important;
}

.hero .social-rail a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,161,89,.32), transparent);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .28s ease, transform .28s ease;
}

.hero .social-rail a:hover::after {
  opacity: .55;
  transform: scaleX(1);
}

.hero .social-rail a:last-child::after {
  display: none;
}

/* Entradas uma a uma nas caixas institucionais */
.signature-panel.reveal,
.method-list.reveal {
  overflow: visible;
}

.signature-panel .signature-item,
.method-list > div {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.965);
  filter: blur(5px);
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    transform .62s cubic-bezier(.22,.61,.36,1),
    filter .62s cubic-bezier(.22,.61,.36,1),
    box-shadow .34s ease,
    border-color .34s ease,
    background .34s ease !important;
  transition-delay: var(--stagger-delay, 0ms) !important;
  will-change: opacity, transform, filter;
}

.signature-panel.show .signature-item,
.method-list.show > div,
.signature-panel.motion-children-ready .signature-item,
.method-list.motion-children-ready > div {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.signature-panel .signature-item::before,
.method-list > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x,50%) var(--spot-y,50%), rgba(199,161,89,.16), transparent 38%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.signature-panel .signature-item::after,
.method-list > div::after {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}

.signature-panel .signature-item:hover,
.method-list > div:hover,
.signature-panel .signature-item.is-proximity,
.method-list > div.is-proximity {
  transform: translateY(-5px) scale(1.012) !important;
  background: #fff !important;
  border-color: rgba(199,161,89,.32) !important;
  box-shadow: 0 18px 42px rgba(8,40,71,.105);
}

.signature-panel .signature-item:hover::before,
.method-list > div:hover::before,
.signature-panel .signature-item.is-proximity::before,
.method-list > div.is-proximity::before {
  opacity: 1;
}

.signature-panel .signature-item:hover::after,
.method-list > div:hover::after,
.signature-panel .signature-item.is-proximity::after,
.method-list > div.is-proximity::after {
  transform: scaleY(1);
}

.signature-panel .signature-item .panel-fa,
.method-list > div .panel-fa {
  transition: transform .38s cubic-bezier(.22,.61,.36,1), color .28s ease;
}

.signature-panel .signature-item:hover .panel-fa,
.method-list > div:hover .panel-fa,
.signature-panel .signature-item.is-proximity .panel-fa,
.method-list > div.is-proximity .panel-fa {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  color: var(--gold) !important;
}

/* Dando destaque contextual às áreas pedidas */
.about-intro .signature-panel,
.sector-method .method-list,
.carreiras-cultura .signature-panel,
.team-profile .method-list {
  transform-style: preserve-3d;
}

/* Classe aplicada via JS nos blocos indicados caso o HTML não tenha classe própria */
.motion-context-panel {
  border-color: rgba(8,40,71,.075) !important;
}

.motion-context-panel:hover {
  border-color: rgba(199,161,89,.28) !important;
}

@media (max-width: 760px) {
  .loader-shell {
    width: 270px;
    min-height: 285px;
  }
  .loader-mark {
    width: 190px;
    min-height: 122px;
  }
  .loader-mark img {
    max-width: 154px !important;
    max-height: 98px !important;
  }
  .loader-caption {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-panel .signature-item,
  .method-list > div {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
