/*
  Theme Name: SLPG Advogados
  Text Domain: slpg
  Author: BW8 Martech
  Author URI: https://bw8.com.br/
  Description: Tema estático para SLPG Advogados baseado no framework Oito.
  Version: 1.0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Ocultar o título de acessibilidade padrão do WP */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Compensa a altura do seu menu fixo */
}

.screen-reader-text {
  display: none !important;
}

.site-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

/* Estilos da Paginação */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f5f3f0;
  padding: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #495f82;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background-color: #e4e2df;
  color: #000b1f;
}

.pagination .page-numbers.current {
  background-color: #072242;
  color: #ffffff;
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
  padding: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

/* Estilo de Lista: Checklist */
.wp-block-list.is-style-checklist {
  list-style-type: none !important;
  padding-left: 0 !important;
}

.wp-block-list.is-style-checklist li {
  position: relative;
  padding-left: 2.25rem !important;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: block;
}

/* Ícone do Checklist */
.wp-block-list.is-style-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #495f82;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-312 282-282-56-56-226 226-114-114-56 56 170 170Zm56 232q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='m424-312 282-282-56-56-226 226-114-114-56 56 170 170Zm56 232q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Estilo de Citação: Editorial */
.wp-block-quote.is-style-editorial {
  background-color: #f5f3f0;
  padding: 2.5rem 2.5rem 2.5rem 3.5rem;
  border-left: 6px solid #072242;
  border-top: none;
  border-right: none;
  border-bottom: none;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.wp-block-quote.is-style-editorial p {
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #000b1f;
  font-weight: 500;
  margin: 0;
}

.wp-block-quote.is-style-editorial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495f82;
}

/* --- Navegação Global --- */
.nav-global ul li a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #495f82;
  transition: all 0.3s ease;
  padding-bottom: 4px;
}

.nav-global ul li a:hover {
  color: #000b1f;
}

/* Item Ativo */
.nav-global ul li.current-menu-item a {
  color: #072242;
  border-bottom: 2px solid #072242;
}

/* Botão CTA (Links com #) */
.nav-global a[href*="/contato/#Formulario-contato"] {
  background-color: #072242 !important;
  color: #ffffff !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 0.5rem !important;
  border-bottom: none !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}

.nav-global a[href*="/contato/#Formulario-contato"]:hover {
  background-color: #000b1f !important;
  transform: scale(1.02);
}

/* Empurrar o botão para a direita em telas grandes e adicionar mais espaço */
@media (min-width: 1100px) {
  .nav-global ul {
    display: flex;
    align-items: center;
  }

  .nav-global ul li:has(a[href*="#"]) {
    margin-left: auto;
    padding-left: 3rem; /* Espaço extra entre o menu e o botão */
  }
}

/* --- Menu Mobile (Padrão Pontomix) --- */
@media (max-width: 1100px) {
  .nav-global.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fbf9f6;
    z-index: 9999; /* Garante que fique acima de tudo */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .nav-global.open ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
  }

  .nav-global.open ul li {
    margin: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-global.open ul li a {
    font-size: 1rem !important;
    display: inline-block;
    width: auto;
  }

  /* Ajuste específico para o botão no mobile */
  .nav-global.open a[href*="#"] {
    width: 100% !important;
    max-width: 260px;
    text-align: center;
    padding: 0.8rem 1.25rem !important;
    margin: 0 auto !important;
    font-size: 0.875rem !important; /* Um pouco menor para o botão */
  }
}

/* Animação das Barrinhas -> X */
.btn-mobile.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.btn-mobile.open span:nth-child(2) {
  opacity: 0;
}
.btn-mobile.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
