/* =========================================================
   ELO18 — V19
   Auditoria final de UI/UX, responsividade e acessibilidade
   ========================================================= */

/* Foco visível consistente em todos os controles. */
:where(a, button):focus-visible {
  outline: 2px solid var(--aqua-soft);
  outline-offset: 4px;
}

.desktop-nav a[aria-current="true"]::after,
.header-cta[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* A imagem editorial volta a participar da hero sem disputar com o texto. */
.hero-media {
  display: block;
}

.hero::before {
  background:
    radial-gradient(circle at 72% 22%, rgba(232,106,60,.10) 0%, transparent 25%),
    radial-gradient(circle at 60% 42%, rgba(72,169,166,.10) 0%, transparent 32%),
    linear-gradient(90deg, rgba(2,11,20,.93) 0%, rgba(2,11,20,.76) 32%, rgba(2,11,20,.38) 60%, rgba(2,11,20,.10) 100%);
}

.hero-media img {
  opacity: .64;
  filter: saturate(1.03) contrast(1.05) brightness(1);
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(2,11,20,.95) 0%, rgba(2,11,20,.82) 27%, rgba(2,11,20,.40) 56%, rgba(2,11,20,.08) 100%);
}

.hero-copy,
.hero-footer {
  text-shadow: 0 2px 22px rgba(0,0,0,.32);
}

/* O degradê do painel não pode ficar acima do conteúdo. */
.service-copy,
.service-panel--reverse .service-copy {
  z-index: 4;
}

/* Identidade e estados de navegação. */
.menu-overlay[inert] {
  visibility: hidden;
  pointer-events: none;
}

.menu-open .site-header {
  background: var(--sand);
  color: var(--ink);
  border-color: rgba(7,20,33,.10);
}

.menu-open .menu-toggle:focus-visible {
  outline-color: var(--ink);
}

/* A logo da Java Solar é preta no arquivo de origem. */
.case-tab img[src*="java-solar.svg"] {
  filter: invert(1);
}

/* O painel ativo é o único conteúdo anunciado e exibido. */
.pillar-panel[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero::before {
    background:
      radial-gradient(circle at 70% 18%, rgba(232,106,60,.09), transparent 30%),
      linear-gradient(180deg, rgba(2,11,20,.20) 0%, rgba(2,11,20,.34) 38%, rgba(2,11,20,.88) 100%);
  }

  .hero-media img {
    object-position: center top;
    opacity: .72;
    transform: scale(1.01);
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(2,11,20,.08) 0%, rgba(2,11,20,.25) 40%, rgba(2,11,20,.91) 100%),
      linear-gradient(90deg, rgba(2,11,20,.34) 0%, rgba(2,11,20,.10) 100%);
  }

  .hero-lockup.hero-lockup--single {
    width: 100%;
    max-width: none;
    gap: .1em;
  }

  .hero-lockup--single .hero-line--single {
    font-size: clamp(2.45rem, 10.7vw, 4.5rem);
    line-height: .92;
    white-space: nowrap;
  }

  .menu-overlay {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .overlay-nav a {
    font-size: clamp(2.35rem, 9.6vw, 4rem);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: calc(var(--header-h) + 4.2vh);
  }

  .hero-copy {
    padding-bottom: 4.5rem;
  }

  .hero-copy .eyebrow {
    margin-bottom: .85rem;
  }

  .hero-lockup.hero-lockup--single {
    width: 100%;
  }

  .hero-lockup--single .hero-line--single {
    font-size: clamp(2.35rem, 10.55vw, 3.25rem);
    line-height: .91;
    letter-spacing: -.055em;
    white-space: nowrap;
  }

  .hero-summary {
    margin-top: 1rem;
    font-size: .93rem;
    line-height: 1.55;
    margin-bottom: 3rem;
  }

  .hero-footer {
    gap: 1rem;
    padding-top: 1rem;
  }

  .hero-services {
    margin-top: 0;
    line-height: 1.65;
    text-align: center;
  }

  .hero-actions {
    gap: 16px;
  }

  .menu-overlay {
    padding: calc(var(--header-h) + 1.5rem) 6vw 2rem;
  }

  .overlay-nav a {
    gap: 14px;
    padding: 7px 0;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: .9;
  }

  .overlay-note {
    position: static;
    margin-top: 2rem;
    line-height: 1.55;
  }

  .case-ribbon__hint span {
    font-size: .62rem;
  }
}

@media (max-width: 340px) {
  .hero-lockup--single .hero-line--single {
    font-size: 9.45vw;
    letter-spacing: -.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
