/* ==========================================================================
   Páginas & Seções Específicas
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero da Página Inicial (Home)
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  background: var(--gradiente-hero-azul);
  color: var(--cor-branco);
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
  border-bottom: 2px solid var(--cor-dourado);
}

/* Camada sutil com grafismo oficial em marca d'água */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/grafismo-01-1280.jpg');
  background-image: image-set(
    url('../assets/images/grafismo-01-1280.webp') type('image/webp'),
    url('../assets/images/grafismo-01-1280.jpg') type('image/jpeg')
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.14;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}

.hero-home .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-visual {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
  z-index: 1;
}

.hero-visual picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content {
  order: 2;
  z-index: 2;
}

.hero-tag {
  display: none !important;
  /* Ocultado temporariamente a pedido do cliente */
  align-items: center;
  gap: 0.5rem;
  font-size: var(--tamanho-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cor-dourado-claro);
  background: rgba(220, 163, 102, 0.15);
  border: 1px solid var(--cor-borda-dourada);
  padding: 0.35rem 0.85rem;
  border-radius: var(--raio-pill);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--cor-branco);
  font-size: var(--tamanho-hero);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-title span {
  background: var(--gradiente-dourado);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: #D6DCE5;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-credenciais {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credencial-item {
  display: flex;
  flex-direction: column;
}

.credencial-comarca,
.credencial-legenda-mobile {
  display: none;
}

.credencial-destaque {
  font-family: var(--fonte-serif);
  font-size: var(--tamanho-xl);
  font-weight: 700;
  color: var(--cor-dourado);
}

.credencial-legenda {
  font-size: var(--tamanho-xs);
  color: #A9B5C6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Imagem da Deusa da Justiça no Hero */

.hero-visual-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(220, 163, 102, 0.15) 0%, rgba(37, 54, 80, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-themis {
  display: block;
  width: 303px;
  height: auto;
  aspect-ratio: 892 / 1763;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
}

/* Entrada leve sem JavaScript pesado. */
.hero-animado .hero-content > *,
.hero-animado .hero-themis,
.hero-animado-mobile .hero-content > *,
.hero-animado-mobile .hero-themis {
  animation: hero-fade-up 0.65s ease-out both;
}

.hero-animado .hero-content > *:nth-child(2),
.hero-animado-mobile .hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-animado .hero-content > *:nth-child(3),
.hero-animado-mobile .hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-animado .hero-content > *:nth-child(4),
.hero-animado-mobile .hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-animado .hero-themis,
.hero-animado-mobile .hero-themis { animation-delay: 0.12s; }

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animado .hero-content > *,
  .hero-animado .hero-themis,
  .hero-animado-mobile .hero-content > *,
  .hero-animado-mobile .hero-themis {
    animation: none;
  }
}

@media (max-width: 992px) {
  .hero-home {
    /* Mantém o hero preenchendo a área visível do celular sem cortar conteúdo. */
    min-height: calc(100vh - 74px);
    min-height: calc(100svh - 74px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.875rem, 7.7vw, 2rem);
  }

  .hero-content {
    order: 1;
    min-width: 0;
  }

  .hero-visual {
    order: 2;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-credenciais {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  /* No mobile, prioriza OAB/SP, experiência e comarca em três colunas. */
  .hero-credenciais .credencial-item:nth-child(2) {
    display: none;
  }

  .hero-credenciais .credencial-item {
    align-items: center;
    min-width: 0;
    text-align: center;
  }

  .hero-credenciais .credencial-comarca {
    display: flex;
  }

  .hero-credenciais .credencial-legenda-desktop {
    display: none;
  }

  .hero-credenciais .credencial-legenda-mobile {
    display: block;
  }

  .hero-credenciais .credencial-destaque {
    font-size: 1.125rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .hero-credenciais .credencial-legenda {
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 0.85rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-themis {
    width: min(100%, 213px);
    height: auto;
    max-height: none;
    filter: none;
  }

  /* No mobile, o grafismo usa uma camada de fundo estática, sem blend-mode,
     para permanecer visível sem reintroduzir tiles brancas durante o scroll. */
  .hero-home::before {
    display: none;
  }

  .hero-home {
    background-image:
      linear-gradient(
        rgba(27, 40, 59, 0.86) 0%,
        rgba(37, 54, 80, 0.86) 100%
      ),
      url('../assets/images/grafismo-01-1280.jpg');
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    contain: paint;
  }

}

@media (max-width: 375px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Seção Sobre / Autoridade (Home e Página Sobre)
   -------------------------------------------------------------------------- */
.grid-autoridade {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}

.autoridade-foto-box {
  position: relative;
  border-radius: var(--raio-md);
  overflow: hidden;
  box-shadow: var(--sombra-card-hover);
  border: 1px solid var(--cor-borda);
}

.autoridade-foto-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--cor-dourado);
  border-radius: var(--raio-md);
  margin: 12px;
  pointer-events: none;
}

.autoridade-pontos {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.autoridade-pontos li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--tamanho-sm);
  color: var(--cor-texto);
}

.autoridade-pontos svg {
  width: 20px;
  height: 20px;
  color: var(--cor-dourado-escuro);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .grid-autoridade {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Seção Como Funciona o Atendimento
   -------------------------------------------------------------------------- */
.grid-etapas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card-etapa {
  background-color: var(--cor-branco);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-md);
  padding: 2.25rem 1.75rem;
  position: relative;
  box-shadow: var(--sombra-card);
  transition: var(--transicao-suave);
}

.card-etapa:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 54, 80, 0.12);
  border-color: rgba(37, 54, 80, 0.18);
}

.etapa-num {
  font-family: var(--fonte-serif);
  font-size: var(--tamanho-2xl);
  font-weight: 700;
  color: var(--cor-dourado-escuro);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card-etapa h3 {
  font-size: var(--tamanho-md);
  color: var(--cor-azul);
  margin-bottom: 0.75rem;
}

.card-etapa p {
  font-size: var(--tamanho-sm);
  color: var(--cor-texto-suave);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Template das Páginas de Serviço (Landing Pages)
   -------------------------------------------------------------------------- */
.servico-hero {
  background: var(--gradiente-hero-azul);
  color: var(--cor-branco);
  padding: 3.5rem 0 4rem;
  border-bottom: 2px solid var(--cor-dourado);
}

.servico-hero h1 {
  color: var(--cor-branco);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.servico-hero p {
  color: #D6DCE5;
  font-size: var(--tamanho-md);
  max-width: 780px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--tamanho-xs);
  color: var(--cor-dourado-claro);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #A9B5C6;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--cor-branco);
}

.servico-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
}

.servico-conteudo {
  font-size: var(--tamanho-base);
  color: var(--cor-texto);
}

.servico-conteudo h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--tamanho-xl);
}

.servico-conteudo ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.servico-conteudo ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.servico-conteudo ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cor-dourado-escuro);
  font-weight: bold;
}

.servico-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-sidebar {
  background-color: var(--cor-gelo);
  border: 1px solid var(--cor-borda);
  border-top: 3px solid var(--cor-dourado);
  border-radius: var(--raio-md);
  padding: 2rem 1.75rem;
}

.card-sidebar h4 {
  font-family: var(--fonte-serif);
  color: var(--cor-azul);
  font-size: var(--tamanho-lg);
  margin-bottom: 1rem;
}

.card-sidebar p {
  font-size: var(--tamanho-sm);
  color: var(--cor-texto-suave);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .servico-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
