/* APS Header — INTERNAL PAGES ONLY
   Home/capa intentionally untouched.
*/
:root{
  --aps-areia:#F6F0EA;
  --aps-areia-profunda:#E6D7C8;
  --aps-marrom:#7A532C;
  --aps-dourado:#C98A3C;
  --aps-tinta:#2F261F;
}

/* Internal pages only */
body:not(.home) #masthead,
body:not(.home) .site-header{
  position:relative;
  z-index:50;
  background:
  linear-gradient(
    to top,
    rgba(122,83,44,.10) 0%,
    rgba(122,83,44,.04) 14%,
    rgba(122,83,44,0) 30%
  ),
  var(--aps-areia)!important;
  overflow:hidden!important;
}

body:not(.home) #masthead .ast-primary-header-bar,
body:not(.home) #masthead .ast-above-header-bar,
body:not(.home) #masthead .ast-below-header-bar{
  background:transparent!important;
  border-color:rgba(122,83,44,.14)!important;
}

body:not(.home) #masthead .main-header-menu>.menu-item>.menu-link,
body:not(.home) #masthead .ast-builder-menu-1 .menu-item>.menu-link{
  color:var(--aps-tinta)!important;
  font-family:Arial,sans-serif!important;
}
body:not(.home) #masthead .main-header-menu>.menu-item:hover>.menu-link,
body:not(.home) #masthead .main-header-menu>.current-menu-item>.menu-link,
body:not(.home) #masthead .main-header-menu>.current-menu-ancestor>.menu-link,
body:not(.home) #masthead .ast-builder-menu-1 .current-menu-item>.menu-link{
  color:var(--aps-dourado)!important;
}

@media (min-width:922px){
  body:not(.home) #masthead .ast-primary-header-bar{
    min-height:150px!important;
  }

  body:not(.home) #masthead .ast-primary-header-bar .ast-builder-grid-row{
    min-height:150px!important;
    align-items:center!important;
    padding-right:245px!important;
  }

  body:not(.home) #masthead .aps-internal-white-logo .custom-logo-link{
    display:block;
    width:280px;
    height:78px;
    background:var(--aps-dourado);
    -webkit-mask:url("https://anapaulasalvador.com/wp-content/uploads/2026/08/Ana-Paula-Salvador-Logo-2.png") center / contain no-repeat;
    mask:url("https://anapaulasalvador.com/wp-content/uploads/2026/08/Ana-Paula-Salvador-Logo-2.png") center / contain no-repeat;
  }

  body:not(.home) #masthead .aps-internal-white-logo img{
    opacity:0!important;
    width:280px!important;
    height:78px!important;
  }

  /* Exact uploaded photo, structurally anchored to header base */
  body:not(.home) #masthead::after{
    content:"";
    position:absolute;
    right:max(0px,calc((100vw - 1240px)/2));
    bottom:0!important;
    width:220px;
    height:150px;
    margin:0!important;
    padding:0!important;
    background-image:url("https://anapaulasalvador.com/wp-content/uploads/2026/10/Ana-Paula-Salvador-Foto-Cabecalho.png");
    background-repeat:no-repeat;
    background-position:center bottom!important;
    background-size:cover!important;
    pointer-events:none;
    z-index:100;
  }
}

@media (max-width:921px){
  body:not(.home) #masthead .ast-primary-header-bar{
    min-height:96px!important;
  }

  body:not(.home) #masthead .ast-primary-header-bar .ast-builder-grid-row{
    min-height:96px!important;
    padding-right:95px!important;
  }

  body:not(.home) #masthead .aps-internal-white-logo .custom-logo-link{
    display:block;
    width:180px;
    height:50px;
    background:var(--aps-dourado);
    -webkit-mask:url("https://anapaulasalvador.com/wp-content/uploads/2026/08/Ana-Paula-Salvador-Logo-2.png") center / contain no-repeat;
    mask:url("https://anapaulasalvador.com/wp-content/uploads/2026/08/Ana-Paula-Salvador-Logo-2.png") center / contain no-repeat;
  }

  body:not(.home) #masthead .aps-internal-white-logo img{
    opacity:0!important;
    width:180px!important;
    height:50px!important;
  }

  body:not(.home) #masthead::after{
    content:"";
    position:absolute;
    right:0!important;
    bottom:0!important;
    width:92px;
    height:96px;
    margin:0!important;
    padding:0!important;
    background-image:url("https://anapaulasalvador.com/wp-content/uploads/2026/10/Ana-Paula-Salvador-Foto-Cabecalho.png");
    background-repeat:no-repeat;
    background-position:center bottom!important;
    background-size:cover!important;
    pointer-events:none;
    z-index:100;
  }
}

body:not(.home) #masthead a:focus-visible{
  outline:2px solid var(--aps-dourado);
  outline-offset:3px;
}
