/* Interações compartilhadas por todas as páginas. */
:root {
  --nav-height: 80px;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-drift: 0px;
}
html {
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
:where(a, button, summary):focus-visible {
  outline: 3px solid #7e58af;
  outline-offset: 5px;
}
header.nav {
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
header.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 32px -18px rgba(46, 21, 80, 0.28);
}
.nav-inner {
  height: var(--nav-height);
  padding: 0;
  gap: 24px;
}
.brand {
  flex-shrink: 0;
}
.nav-links {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: clamp(16px, 1.8vw, 28px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}
.nav-links > a:not(.btn),
.nav-areas > summary {
  color: var(--texto);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-links > a[aria-current="page"] {
  color: var(--roxo);
}
.nav-areas {
  position: relative;
}
.nav-areas > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-areas > summary::-webkit-details-marker {
  display: none;
}
.nav-areas > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s;
}
.nav-areas[open] > summary,
.nav-areas > summary:hover {
  color: var(--roxo);
}
.nav-areas[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -22px;
  width: 310px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px rgba(46, 21, 80, 0.3);
  animation: dropdown-in 0.22s var(--motion-ease);
}
.nav-dropdown-label {
  display: block;
  padding: 10px 12px;
  color: var(--texto-suave);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-links .nav-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texto);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links .nav-dropdown a::after {
  content: "↗";
  position: static;
  width: auto;
  height: auto;
  background: none;
  color: var(--verde);
}
.nav-links .nav-dropdown a:hover,
.nav-links .nav-dropdown a[aria-current="page"] {
  background: var(--roxo-tint);
  color: var(--roxo);
}
.nav-links .nav-dropdown .nav-overview {
  margin-top: 7px;
  border-top: 1px solid var(--linha);
  border-radius: 0 0 9px 9px;
  font-size: 0.8rem;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.burger span {
  transition:
    transform 0.25s,
    opacity 0.2s;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  background: linear-gradient(
    90deg,
    var(--roxo),
    var(--roxo-medio) 55%,
    var(--verde)
  );
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Profundidade na abertura, sem interferir na leitura. */
.hero {
  isolation: isolate;
}
.hero::before {
  pointer-events: none;
  box-shadow:
    0 0 0 65px rgba(70, 30, 126, 0.018),
    0 0 0 130px rgba(70, 30, 126, 0.012);
  translate: 0 var(--hero-drift);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 82% 22%,
      rgba(70, 30, 126, 0.085),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 20% 82%,
      rgba(39, 115, 74, 0.075),
      transparent 35%
    );
  translate: 0 calc(var(--hero-drift) * -0.6);
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.hero-copy,
.hero-visual {
  min-width: 0;
}
.hero-photo {
  translate: 0 calc(var(--hero-drift) * -0.25);
}
.hero-entry {
  animation: hero-enter 0.85s var(--motion-ease) both;
  animation-delay: var(--entry-delay, 0ms);
}
.scroll-cue {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: -30px auto 28px;
  padding: 10px 16px;
  color: var(--texto-suave);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--verde);
  stroke-width: 1.5;
  transition: transform 0.25s;
}
.scroll-cue:hover svg {
  transform: translateY(4px);
}

/* O conteúdo permanece legível quando JavaScript não está disponível. */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-pending {
  opacity: 0;
  translate: 0 28px;
}
.reveal.is-visible {
  animation: section-enter 0.75s var(--motion-ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.rule {
  transform-origin: left;
}
.is-visible .rule {
  animation: rule-enter 0.8s 0.2s var(--motion-ease) both;
}
.area,
.dor,
.card-depo,
.passo,
.service-card,
.process-card,
.info-panel,
.revisao-box {
  transition:
    transform 0.35s var(--motion-ease),
    box-shadow 0.35s,
    border-color 0.35s;
}
.area-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--linha);
  color: var(--roxo);
  font-size: 0.8rem;
  font-weight: 700;
}
.area-link span {
  transition: transform 0.25s;
}
.area-link:hover span {
  transform: translate(3px, -3px);
}
.ico,
.service-icon,
.check-ico,
.passo .n {
  transition:
    transform 0.35s var(--motion-ease),
    box-shadow 0.35s;
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform 0.65s;
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}
.btn:active {
  transform: translateY(1px);
}
.cta-box::after,
.cross-box::after {
  pointer-events: none;
}
.faq-q {
  transition:
    color 0.2s,
    background 0.2s;
}
.faq-q:hover,
.faq-item.open .faq-q {
  color: var(--roxo);
  background: rgba(70, 30, 126, 0.025);
}
.faq-a {
  transition:
    max-height 0.4s var(--motion-ease),
    opacity 0.3s;
  opacity: 0;
}
.faq-item.open .faq-a {
  opacity: 1;
}
html:not(.site-enhanced) .faq-a {
  max-height: none;
  opacity: 1;
}
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 94px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  color: var(--roxo);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sombra-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s,
    background 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--roxo-tint);
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
@media (hover: hover) and (pointer: fine) {
  .area:hover,
  .dor:hover,
  .card-depo:hover,
  .passo:hover,
  .service-card:hover,
  .process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -24px rgba(46, 21, 80, 0.3);
    border-color: rgba(70, 30, 126, 0.24);
  }
  :is(.area, .dor, .service-card, .passo):hover :is(.ico, .service-icon, .n) {
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 8px 18px -12px rgba(70, 30, 126, 0.5);
  }
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes section-enter {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes rule-enter {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1120px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-height);
    padding: 14px 0;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    padding: 18px 0 4px;
  }
  .site-enhanced .nav-inner {
    height: var(--nav-height);
    flex-wrap: nowrap;
    padding: 0;
  }
  .site-enhanced .burger {
    display: flex;
  }
  .site-enhanced .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px max(20px, 5vw) 28px;
    background: #fff;
    border-bottom: 1px solid var(--linha);
    box-shadow: 0 22px 35px -26px rgba(46, 21, 80, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.25s,
      visibility 0.25s;
  }
  .site-enhanced .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links > a:not(.btn),
  .nav-areas > summary {
    padding: 12px 4px;
    font-size: 0.96rem;
  }
  .nav-areas > summary {
    justify-content: space-between;
  }
  .nav-links > a:not(.btn)::after {
    display: none;
  }
  .nav-dropdown {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    background: #faf8fc;
    box-shadow: none;
  }
  .nav-links .btn {
    align-self: flex-start;
    margin-top: 8px;
  }
}
@media (max-width: 700px) {
  :root {
    --nav-height: 72px;
  }
  .hero-photo {
    translate: none;
  }
  .scroll-cue {
    margin-top: -22px;
    font-size: 0.6rem;
  }
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .reveal.is-pending,
  .hero-entry {
    opacity: 1;
    translate: none;
    transform: none;
  }
  .hero::before,
  .hero::after,
  .hero-photo {
    translate: none;
  }
}
@media print {
  .reveal,
  .reveal.is-pending,
  .hero-entry {
    opacity: 1;
    translate: none;
    transform: none;
    animation: none;
  }
  .scroll-progress,
  .scroll-cue,
  .back-to-top,
  .wa-float,
  .burger {
    display: none;
  }
}
