/*
Theme Name: Sydney Child
Template: sydney
Version: 1.0
*/

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Espaço para a barra de acessibilidade fixa */
body {
  padding-top: 190px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1rem !important; /* define base 16px para o body */
}

/* Barra de acessibilidade fixa no topo */
.accessibility-menu {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  height: 60px;
  padding: 0 10px;
  background-color: #fff;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.access-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 0.75rem; /* 12px */
  text-decoration: none;
  color: #000;
  transition: color 0.2s;
  cursor: pointer;
}

.access-btn:hover,
.access-btn:focus {
  color: #333;
  outline: none;
}

/* Navbar fixada abaixo da barra de acessibilidade */
.navbar {
  position: fixed;
  top: 60px; 
  width: 100%;
  background-color: #0f0a61;
  z-index: 1000;
  transition: top 0.3s;
}

/* Container do navbar com espaçamento e alinhamento */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo texto: organização em coluna */
.logo-text {
  display: flex;
  flex-direction: column;
  color: white;
  text-decoration: none;
  user-select: none;
}

.logo-main {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  line-height: 1.1;
  margin-top: 2px;
}

/* Esconde checkbox */
#menu-toggle {
  display: none;
}

/* Ícone hamburger (menu mobile) */
#hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  margin-right: 20px;
}

/* Menu principal - desktop */
#menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

#menu-items li a {
  color: white;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
  font-weight: 500;
}

#menu-items li a:hover,
#menu-items li a:focus {
  color: #ddd;
  outline: none;
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 25px;
    position: relative;
  }

  .logo-text {
    text-align: left;
    align-items: flex-start;
  }

  #hamburger {
    display: block;
    margin: 0;
    cursor: pointer;
    position: relative;
    z-index: 1010;
  }

  #menu-items {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px; 
    background-color: #0f0a61;
    flex-direction: column;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1005;
  }

  #menu-toggle:checked + #hamburger + #menu-items {
    display: flex;
  }

  #menu-items li {
    text-align: center; 
    padding: 10px 20px;
    width: 100%;
  }

  #menu-items li a {
    display: block;
    width: 100%;
    color: white;
  }
}

/* Rodapé personalizado */
.custom-footer {
    width: 100%;
    font-family: inherit;
    margin: 0;
    padding: 0;
}

.custom-footer .copyright-row,
.custom-footer .acessibilidade-row {
    width: 100%;
    text-align: center;
}

/* Aumenta apenas a altura da seção de copyright */
.custom-footer .copyright-row {
    background-color: #0f0a61;
    padding: 21px 0;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.custom-footer .copyright-row p {
    margin: 0; /* remove margem padrão do <p> */
}

.custom-footer .footer-copyright {
    color: #fff;
    font-size: 0.8125rem; /* 13px */
    margin: 0;
}

/* correção do footer para acessmonitor (content-single */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.ps-footer-section {
  background-color: rgb(0, 74, 173);
  color: #ffffff;
  padding: 100px 0 !important;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  background-color: transparent !important;
}

.ps-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

.ps-footer-col {
  flex: 1 1 300px;
  min-width: 250px;
}

.ps-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-footer-col ul li {
  margin-bottom: 8px;
  color: #ffffff;
}

.ps-footer-col img {
  max-width: 160px;
  height: auto;
  display: block; 
}

.ps-footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ps-footer-col a:hover,
.ps-footer-col a:focus {
  text-decoration: underline;
  color: #d1eaff;
}

/* MOBILE */
@media (max-width: 768px) {
  .ps-footer-section {
    padding-top: 100px !important;
    padding-bottom: 0px !important;
    margin-bottom: -60px !important;
    padding-bottom: -400px !important;
  }

  .ps-footer-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ps-footer-col {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Reset total para tudo dentro de ps-footer-col */
  .ps-footer-col * {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Dá um espacinho controlado entre as colunas verticalmente */
  .ps-footer-col:not(:last-child) {
    margin-bottom: -80px !important;
  }

  /* Logo com espaçamento mínimo */
  .ps-footer-col img {
    display: block !important;
    margin: 0 auto 6px auto !important;
    max-width: 160px !important;
    height: auto !important;
  }

  /* Espaço entre itens da lista, mas bem apertado */
  .ps-footer-col ul {
    list-style: none !important;
  }

  .ps-footer-col ul li {
    margin: 2px 0 !important;
    padding: 0 !important;
  }

  /* TROCA DE ORDEM DAS COLUNAS DA EXTENÇÃO DO RODAPÉ */
  .ps-footer-col:nth-child(1) {
    order: 2 !important; 
    margin-top: 25px !important;
  }

  .ps-footer-col:nth-child(2) {
    order: 1 !important;
    margin-top: -35px !important;
  }

  .ps-footer-col:nth-child(3) {
    order: 3 !important;
    margin-top: 5px !important;
    margin-bottom: -10px !important;  
  }
}

/* =============================== */
/* Correção de fontes para rem e acessibilidade */
/* =============================== */

/* Define base 16px para body e herda rem em todo o site */
body, p, li, span, a {
  font-size: 1rem !important; /* 16px */
}

/* Título principal do post */
h1.title-post.entry-title {
  font-size: 2rem !important; /* 32px */
}

/* Botões do plugin de acessibilidade */
button.AstvSkipItem,
button.AstvSpeechCfgCloseBtn {
  font-size: 1rem !important; /* 16px */
}

/* Força remoção de fontes px inline */
*[style*="font-size"] {
  font-size: inherit !important;
}

/* =============================== */
/* Classe para texto em negrito */
.bold-text {
  font-weight: 700 !important;
}