/* Camada de aprimoramento visual, aditiva, nao mexe no HTML/CSS original do Elementor. */

:root {
  --enh-gold: #B38B30;
  --enh-gold-light: #DFAE4F;
  --enh-navy: #071628;
}

/* 0. Bloco "O que o Cliente Diz Sobre Nos", reduzido e mais sutil (era grande demais) */
.elementor-element-3e517e6b {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
.elementor-element-1bfb98e4 .elementor-heading-title {
  font-size: 32px !important;
  line-height: 1.25em !important;
}
.elementor-element-1bfb98e4 > .elementor-widget-container {
  margin-bottom: 20px !important;
}
.elementor-element-7126c984 .jkit-testimonials {
  max-width: 560px;
  margin: 0 auto;
}
.elementor-element-7126c984 .testimonial-box {
  padding: 0 32px !important;
}
.elementor-element-7126c984 .comment-content p {
  font-size: 16px !important;
  line-height: 1.6em !important;
  padding-bottom: 14px !important;
  color: rgb(7 22 40 / 0.62) !important;
}
.elementor-element-7126c984 .profile-image img {
  width: 42px !important;
  margin-top: 0 !important;
}
.elementor-element-7126c984 .profile-info .profile-name {
  font-size: 13px !important;
}
.elementor-element-7126c984 .profile-info .profile-des {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}
.elementor-element-7126c984 .tns-controls button i,
.elementor-element-7126c984 .tns-controls button svg {
  font-size: 15px !important;
  width: 15px !important;
}
.elementor-element-7126c984 .tns-nav {
  margin-top: 8px !important;
}

/* 0a. Hero principal: SEO title, citacao do fundador, logo com brilho, foto grande removida */
.elementor-element-f27be25 .elementor-element-24c9a9bd .heading-title {
  font-size: clamp(30px, 4vw, 42px) !important;
  line-height: 1.2em !important;
}

.enh-founder-quote {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 480px;
  margin: 22px 0 26px 0;
}
.enh-founder-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--enh-gold);
  box-shadow: 0 0 0 4px rgb(179 139 48 / 0.18), 0 0 16px rgb(223 174 79 / 0.4);
}
.enh-founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}
.enh-founder-quote-text {
  margin: 0;
  border: none;
  padding: 0;
}
.enh-founder-quote-text p {
  margin: 0 0 6px 0;
  font-family: var(--e-global-typography-secondary-font-family, "Cormorant Garamond"), serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4em;
  color: #F2F2F2;
}
.enh-founder-quote-text cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--enh-gold-light);
}

/* subtitulo menor, com brilho dourado sutil */
.elementor-element-53f92e8b .elementor-widget-container {
  font-size: 14px !important;
  color: rgb(242 242 242 / 0.75) !important;
  text-shadow: 0 0 12px rgb(223 174 79 / 0.35);
  max-width: 380px;
}

/* logo do header com brilho dourado */
.elementor-element-161ee70 img,
body.ael-on img[src*="Logo-Horizontal-Branco"] {
  filter: drop-shadow(0 0 10px rgb(223 174 79 / 0.55)) drop-shadow(0 0 22px rgb(179 139 48 / 0.3));
  transition: filter 0.35s ease;
}
.elementor-element-161ee70:hover img,
body.ael-on img[src*="Logo-Horizontal-Branco"]:hover {
  filter: drop-shadow(0 0 16px rgb(223 174 79 / 0.85)) drop-shadow(0 0 30px rgb(179 139 48 / 0.5));
}

/* foto grande do Adaias volta na lateral, revelada aos poucos, estilo cinematografico:
   funde com o fundo navy pela esquerda (mask), surge com fade + leve desfoque que dissolve */
@media (min-width: 768px) {
  .elementor-element-d40894a {
    width: 50% !important;
    max-width: 50% !important;
  }
  .elementor-element-41d9cd5a {
    width: 50% !important;
    max-width: 50% !important;
  }
}
.elementor-element-6f3a0a6f {
  position: relative;
  overflow: hidden;
}
/* o tema original usava margem negativa pra vazar a foto pra fora de uma coluna
   estreita (33%); com a coluna em 50% essa margem antiga desloca a foto errado,
   cortando o lado direito. Neutraliza e deixa a foto centrada na propria coluna. */
.elementor-element-6f3a0a6f > .elementor-widget-container {
  margin: 0 !important;
  width: 100% !important;
}
.elementor-element-6f3a0a6f img {
  width: 100% !important;
  max-width: 100% !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
  filter: blur(10px);
  transform: scale(1.05);
  animation: enh-cinematic-reveal 3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes enh-cinematic-reveal {
  0% {
    filter: blur(10px);
    transform: scale(1.05);
  }
  100% {
    filter: blur(0);
    transform: scale(1);
  }
}
/* cortina solida que desliza pra revelar a foto, deixa o efeito cinematografico
   inconfundivel (nao so um fade sutil) */
.elementor-element-6f3a0a6f::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--enh-navy) 0%, var(--enh-navy) 65%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  animation: enh-curtain-wipe 2.8s cubic-bezier(0.76, 0, 0.24, 1) 0.3s forwards;
}
@keyframes enh-curtain-wipe {
  0% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .elementor-element-6f3a0a6f img {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
  .elementor-element-6f3a0a6f::after {
    animation: none !important;
    display: none !important;
  }
}

/* 0b. Hero de contato "A justica que voce merece", titulo menor e mais elegante */
.elementor-element-12ef32e1 .elementor-heading-title {
  font-size: 38px !important;
  line-height: 1.2em !important;
  letter-spacing: 0.2px;
}
.elementor-element-16bb1591 {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
  position: relative;
  overflow: hidden;
}
.elementor-element-16bb1591 > .elementor-background-overlay {
  opacity: 0.72 !important;
}

/* video de fundo em loop, cobre a secao, atras do conteudo e do overlay escuro */
.enh-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity 0.32s ease;
}
.enh-bg-video.enh-loop-fading {
  opacity: 0 !important;
}

/* video de cada card do carrossel "Nossas Especialidades", ocupa o mesmo
   espaco que a imagem original ocupava (o slide/testimonial ja controla altura) */
/* o tema posiciona a <img> original em absolute preenchendo o slide inteiro (679x370, radius 12px).
   o <video> nao casa com aquele seletor `img`, entao replica a geometria aqui. */
.elementor-element-073164b .elementor-testimonial__image {
  height: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
}
.enh-carousel-video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.32s ease;
}
/* o texto do card fica acima do video */
.elementor-element-073164b .elementor-testimonial__cite {
  position: relative;
  z-index: 2;
}
.enh-carousel-video.enh-loop-fading {
  opacity: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  .enh-carousel-video {
    transition-duration: 0.01ms !important;
  }
}

/* 1. Header sticky, blur + sombra progressivos ao rolar (JS adiciona .is-scrolled) */
.elementor-element-48496927 {
  transition: box-shadow 0.4s ease, backdrop-filter 0.4s ease, background-color 0.4s ease;
  /* o tema original usa margin-bottom negativo pra "tuckar" o header sob o hero;
     com o novo bloco de citacao o conteudo do hero ficou mais alto e passou a
     ficar coberto pelo header. Cancela o tuck pra garantir espaco sempre. */
  margin-bottom: 0 !important;
  /* sem o tuck o fundo proprio do header (branco) ficou exposto; usa o mesmo
     tom escuro do gradiente do hero pra continuar parecendo uma unica peca */
  background: var(--enh-navy) !important;
}
.elementor-element-f27be25 .elementor-element-d40894a > .elementor-widget-wrap {
  padding-top: 28px !important;
}
.elementor-element-48496927.enh-scrolled {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 2. Cards de area de atuacao (icon box), lift + borda dourada + icone anima */
body.ael-on .jkit-icon-box-wrapper {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  border-radius: 8px;
  position: relative;
}
body.ael-on .jkit-icon-box-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
  pointer-events: none;
}
body.ael-on .jkit-icon-box-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgb(7 22 40 / 0.18);
}
body.ael-on .jkit-icon-box-wrapper:hover::after {
  border-color: var(--enh-gold);
}
body.ael-on .jkit-icon-box-wrapper .icon {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.35s ease;
}
body.ael-on .jkit-icon-box-wrapper:hover .icon {
  transform: scale(1.15) rotate(-6deg);
}

/* Sublinhado dourado animado no titulo do card */
body.ael-on .jkit-icon-box-wrapper .icon-box-body .title {
  position: relative;
  display: inline-block;
}
body.ael-on .jkit-icon-box-wrapper .icon-box-body .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--enh-gold);
  transition: width 0.4s ease;
}
body.ael-on .jkit-icon-box-wrapper:hover .icon-box-body .title::after {
  width: 100%;
}

/* 2b. Timeline "15 anos de experiencia", sempre vertical, hover/foco revela detalhe */
.enh-timeline {
  position: relative;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.enh-timeline-step {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0 0 26px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.enh-timeline-step.enh-visible {
  opacity: 1;
  transform: translateY(0);
}

/* linha conectora: vertical em mobile, horizontal no topo em desktop */
.enh-timeline-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--enh-gold), transparent);
  opacity: 0.4;
}
@media (min-width: 900px) {
  .enh-timeline-step {
    padding: 26px 20px 0 0;
    flex: 1 1 0;
  }
  .enh-timeline-step::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--enh-gold), var(--enh-gold-light) 60%, transparent);
  }
}

/* marcador (dot) */
.enh-timeline-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--enh-navy);
  border: 2px solid var(--enh-gold);
  box-shadow: 0 0 0 4px rgb(179 139 48 / 0.12);
  transition: box-shadow 0.4s ease, background 0.4s ease, transform 0.4s ease;
  z-index: 1;
}
@media (min-width: 900px) {
  .enh-timeline-step::after {
    top: -5px;
    left: -1px;
  }
}
.enh-timeline-step.enh-visible::after {
  background: var(--enh-gold);
  box-shadow: 0 0 0 5px rgb(179 139 48 / 0.2), 0 0 14px rgb(223 174 79 / 0.55);
}
.enh-timeline-step.enh-active::after {
  background: var(--enh-gold);
  box-shadow: 0 0 0 6px rgb(179 139 48 / 0.28), 0 0 20px rgb(223 174 79 / 0.85);
  transform: scale(1.15);
}
.enh-timeline-step.enh-active .enh-timeline-headline {
  color: var(--enh-gold);
}

.enh-timeline-headline {
  display: block;
  font-family: var(--e-global-typography-text-font-family, "Work Sans"), sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35em;
  color: var(--enh-navy);
  transition: color 0.3s ease;
}
.enh-timeline-step:hover .enh-timeline-headline,
.enh-timeline-step:focus-visible .enh-timeline-headline,
.enh-timeline-step.enh-open .enh-timeline-headline {
  color: var(--enh-gold);
}

.enh-timeline-detail {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  font-size: 14px;
  line-height: 1.6em;
  color: rgb(7 22 40 / 0.62);
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}
.enh-timeline-step:hover .enh-timeline-detail,
.enh-timeline-step:focus-visible .enh-timeline-detail,
.enh-timeline-step.enh-open .enh-timeline-detail {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
}
.enh-timeline-step:focus-visible {
  outline: 2px solid var(--enh-gold-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 3. Botoes (CTA "Contato" / "Entre Em Contato"), vidro dourado com reflexo permanente + sweep forte no hover */
body.ael-on .jkit-button-wrapper,
body.ael-on .icon-box-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.35s ease, transform 0.25s ease, filter 0.35s ease;
  box-shadow: 0 0 0 1px rgb(179 139 48 / 0.45), 0 4px 14px rgb(179 139 48 / 0.25);
}

/* reflexo de vidro fixo na metade superior do botao, sempre visivel */
body.ael-on .jkit-button-wrapper::after,
body.ael-on .icon-box-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0.35) 0%,
    rgb(255 255 255 / 0.08) 42%,
    transparent 55%
  );
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* faixa de brilho que varre no hover, mais larga e mais intensa */
body.ael-on .jkit-button-wrapper::before,
body.ael-on .icon-box-link::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -140%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent,
    rgb(255 250 230 / 0.85) 45%,
    var(--enh-gold-light) 52%,
    rgb(255 250 230 / 0.85) 59%,
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  pointer-events: none;
  filter: blur(1px);
}
body.ael-on .jkit-button-wrapper:hover::before,
body.ael-on .icon-box-link:hover::before {
  left: 140%;
}
body.ael-on .jkit-button-wrapper:hover,
body.ael-on .icon-box-link:hover {
  box-shadow: 0 0 0 1px var(--enh-gold-light), 0 8px 26px rgb(179 139 48 / 0.55), 0 0 22px rgb(223 174 79 / 0.4);
  transform: translateY(-2px);
}

/* 4. Foto da equipe, zoom suave + overlay dourado no hover */
body.ael-on .jkit-team img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
body.ael-on .elementor-widget-jkit_team .elementor-widget-container {
  overflow: hidden;
  border-radius: 6px;
}
body.ael-on .elementor-widget-jkit_team:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* 5. Fun facts, leve glow dourado pulsante no numero quando visivel */
@keyframes enh-glow-pulse {
  0%, 100% { text-shadow: 0 0 0 rgb(179 139 48 / 0); }
  50% { text-shadow: 0 0 18px rgb(179 139 48 / 0.55); }
}
body.ael-on .jkit-fun-fact.enh-in-view .number {
  animation: enh-glow-pulse 2.4s ease-in-out 1;
}

/* 6. Reveal extra em heading/text-editor que ainda nao tem animacao Elementor propria */
.enh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.enh-reveal.enh-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 7. Glow dourado seguindo o cursor, so desktop, decorativo, atras do conteudo */
.enh-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(223 174 79 / 0.22) 0%, rgb(179 139 48 / 0.10) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  mix-blend-mode: screen;
}
@media (max-width: 900px), (hover: none) {
  .enh-cursor-glow { display: none; }
}

/* 7b. Blobs dourados ambientes, fixos por secao, dao profundidade e mais brilho ao fundo navy */
.enh-ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: enh-drift 14s ease-in-out infinite alternate;
}
.enh-ambient-glow.enh-glow-a {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgb(223 174 79 / 0.55) 0%, transparent 70%);
  animation-duration: 16s;
}
.enh-ambient-glow.enh-glow-b {
  width: 520px;
  height: 520px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, rgb(179 139 48 / 0.5) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -6s;
}
@keyframes enh-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -24px) scale(1.12); }
}

/* Secao "15 anos de experiencia": espaco em branco reduzido, coluna da imagem alinhada */
.elementor-element-2f6212db {
  padding-top: 40px !important;
  padding-bottom: 30px !important;
}
.elementor-element-3d2d30eb .elementor-widget-wrap {
  align-items: center !important;
}

/* 6b. Imagem da balanca (Lady Justice): video real "boomerang" (forward + reverse
   concatenados via ffmpeg), loop nativo sem corte visivel. Bordas camufladas com
   mascara radial pra fundir com o fundo da secao. Glow dourado surge no hover. */
/* o video transborda so pra ESQUERDA; a direita fica rente a coluna pra nao
   invadir o texto da timeline */
.enh-statue-wrap {
  position: relative;
  display: block;
  width: 118%;
  max-width: 118%;
  margin-left: -18%;
}
@media (max-width: 900px) {
  .enh-statue-wrap {
    width: 104%;
    max-width: 104%;
    margin-left: -4%;
  }
}
/* afasta o texto do video da estatua */
.elementor-element-37e03126 > .elementor-widget-wrap {
  padding-left: 46px !important;
}
@media (max-width: 900px) {
  .elementor-element-37e03126 > .elementor-widget-wrap {
    padding-left: 0 !important;
  }
}
.enh-statue-wrap::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(223 174 79 / 0.55) 0%, rgb(179 139 48 / 0.2) 45%, transparent 72%);
  filter: blur(28px);
  z-index: -1;
  opacity: 0.28;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.enh-statue-wrap:hover::before,
.enh-statue-wrap:focus-within::before {
  opacity: 1;
  transform: scale(1.08);
}

.enh-statue-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 617 / 1024;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 26px rgb(7 22 40 / 0.18));
  /* funde as bordas do video com o fundo, disfarça o retangulo do vídeo */
  -webkit-mask-image: radial-gradient(ellipse 78% 92% at center, black 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 92% at center, black 60%, transparent 100%);
  transition: transform 0.15s ease-out, opacity 0.35s ease;
  opacity: 1;
}
.enh-statue-video.enh-switching {
  opacity: 0;
}

/* botao de rewind manual, discreto ate o hover na estatua */
.enh-statue-rewind {
  position: absolute;
  right: 14%;
  bottom: 8%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgb(223 174 79 / 0.55);
  border-radius: 50%;
  background: rgb(7 22 40 / 0.55);
  color: var(--enh-gold-light);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.enh-statue-rewind svg {
  width: 20px;
  height: 20px;
}
.enh-statue-wrap:hover .enh-statue-rewind,
.enh-statue-wrap:focus-within .enh-statue-rewind {
  opacity: 1;
  transform: translateY(0);
}
.enh-statue-rewind:hover {
  background: rgb(7 22 40 / 0.8);
  box-shadow: 0 0 18px rgb(223 174 79 / 0.6);
}
.enh-statue-rewind:focus-visible {
  opacity: 1;
  transform: translateY(0);
  outline: 2px solid var(--enh-gold-light);
  outline-offset: 3px;
}
/* enquanto rebobina, um leve dessaturar deixa o movimento reverso legivel */
.enh-statue-wrap.enh-rewinding .enh-statue-video {
  filter: drop-shadow(0 14px 26px rgb(7 22 40 / 0.18)) saturate(0.72) brightness(1.04);
}
.enh-statue-wrap.enh-rewinding .enh-statue-rewind {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 22px rgb(223 174 79 / 0.75);
}
.enh-statue-wrap.enh-tilting .enh-statue-video {
  transition: transform 0.15s ease-out;
}

/* 7c. Poeira dourada no hero, canvas por cima da imagem/gradiente, atras do texto */
.enh-dust-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Secoes que recebem glow/poeira precisam do seu proprio stacking context,
   assim os elementos com z-index negativo ficam atras do conteudo da secao
   sem vazar para a secao anterior da pagina. */
.enh-fx-host {
  isolation: isolate;
  /* os blobs de brilho sao posicionados pra fora da secao (right/left negativos)
     e a animacao de drift empurra mais ainda; sem clipar, isso vira scroll
     horizontal e aparece uma faixa branca na lateral da pagina.
     `clip` (e nao `hidden`) porque nao cria contexto de rolagem, entao nao
     quebra position:sticky em nenhum descendente. */
  overflow-x: clip;
}

/* 8. Botao voltar ao topo, discreto, aparece apos rolar */
.enh-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--enh-navy);
  border: 1px solid var(--enh-gold);
  color: var(--enh-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
  z-index: 999;
  font-size: 18px;
}
.enh-back-to-top.enh-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.enh-back-to-top:hover {
  background: var(--enh-gold);
  color: var(--enh-navy);
}
.enh-back-to-top:focus-visible {
  outline: 2px solid var(--enh-gold-light);
  outline-offset: 3px;
}

/* Respeitar reduced motion de verdade */
@media (prefers-reduced-motion: reduce) {
  body.ael-on .jkit-icon-box-wrapper,
  body.ael-on .jkit-icon-box-wrapper .icon,
  body.ael-on .jkit-icon-box-wrapper .icon-box-body .title::after,
  body.ael-on .jkit-team img,
  .enh-reveal,
  .enh-back-to-top,
  body.ael-on .jkit-button-wrapper::before,
  body.ael-on .icon-box-link::before,
  .enh-timeline-step,
  .enh-timeline-detail {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .enh-timeline-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .enh-cursor-glow,
  .enh-ambient-glow,
  .enh-dust-canvas {
    display: none !important;
  }
  .enh-statue-wrap::before {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MOBILE E TABLET
   Medido contra o site ORIGINAL na mesma largura, pra separar o
   que e da camada do que o site ja tinha.
   ============================================================ */

/* 1. CONTROLE ALCANCAVEL EM TOQUE.
   O botao de rewind so aparecia em :hover / :focus-within. Em celular e
   tablet nao existe hover, entao ele ficava com opacity 0: invisivel e
   inalcancavel, quebrando metade da interacao da estatua justamente onde
   esta a maior parte do trafego. */
/* Casa por CAPACIDADE (toque) e tambem por LARGURA. So `hover:none` deixaria
   de fora um tablet hibrido com mouse acoplado, e a largura sozinha deixaria de
   fora um celular em paisagem. Os dois criterios juntos cobrem os dois casos. */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .enh-statue-rewind {
    opacity: 1;
    transform: translateY(0);
    width: 46px;
    height: 46px;
  }
  /* no desktop o detalhe abre no hover; em toque quem abre e o toque
     (classe enh-open, ja tratada no JS). Sem isto o :hover fica "grudado"
     depois do toque e o texto nao fecha mais. */
  .enh-timeline-step:hover .enh-timeline-detail {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }
  .enh-timeline-step.enh-open .enh-timeline-detail {
    max-height: 420px;
    opacity: 1;
    margin-top: 10px;
  }
  .enh-timeline-step:hover .enh-timeline-headline {
    color: var(--enh-navy);
  }
  .enh-timeline-step.enh-open .enh-timeline-headline,
  .enh-timeline-step.enh-active .enh-timeline-headline {
    color: var(--enh-gold);
  }
}

/* 2. TEXTO QUE CABE.
   O detalhe usa max-height fixo; em tela estreita o mesmo texto ocupa mais
   linhas e era cortado no meio. */
@media (max-width: 767px) {
  .enh-timeline-headline { font-size: 17px; }
  .enh-timeline-detail { font-size: 15px; }
  .enh-timeline-step.enh-open .enh-timeline-detail,
  .enh-timeline-step:focus-visible .enh-timeline-detail { max-height: 460px; }
  .enh-founder-quote-text p { font-size: 15px; }
  .enh-founder-quote { gap: 12px; margin: 18px 0 22px 0; }
}

/* 3. SEM ROLAGEM HORIZONTAL (a "listra" na lateral).
   Medicao: em 375 a camada somava 11px; em 768 e 1024 o PROPRIO SITE ja
   estourava 51px e 87px, por causa do `.elementor-main-swiper` do tema, que
   e declarado com width:120%. `clip` e nao `hidden` porque nao cria contexto
   de rolagem, entao nao quebra position:sticky do cabecalho. */
@media (max-width: 1024px) {
  html.ael-html, body.ael-on { overflow-x: clip; }
}
